Re: Return value of XLogInsertRecord() for XLOG_SWITCH record - Mailing list pgsql-hackers

From ZizhuanLiu X-MAN
Subject Re: Return value of XLogInsertRecord() for XLOG_SWITCH record
Date
Msg-id tencent_66C1D28CDABC71031EA1CD8EB67DE2FFFB05@qq.com
Whole thread
In response to Re: Return value of XLogInsertRecord() for XLOG_SWITCH record  ("ZizhuanLiu X-MAN" <44973863@qq.com>)
Responses Re: Return value of XLogInsertRecord() for XLOG_SWITCH record
List pgsql-hackers
Rebase v4 .

regards,
--
ZizhuanLiu (X-MAN) 
44973863@qq.com


>Original
>From: ZizhuanLiu X-MAN <44973863@qq.com>
>Date: 2026-06-14 22:37
>To: rring0727 <rring0727@gmail.com>, cca5507 <cca5507@qq.com>
>Cc: pgsql-hackers <pgsql-hackers@lists.postgresql.org>
>Subject: Re: Return value of XLogInsertRecord() for XLOG_SWITCH record
>
>Early v2/v3 only fixed the page-cross judgment condition, but still retained duplicated
>EndPos calculation logic. v4 refactors ReserveXLogSwitch to compute standard EndPos 
>once and reuse it, eliminating redundant code fundamentally.
>
>All behavior remains identical to v2/v3 after fix; v4 just unifies the calculation
>point without changing runtime logic.
>
>
>ZizhuanLiu X-MAN
>44973863@qq.com


Attachment

pgsql-hackers by date:

Previous
From: Tatsuya Kawata
Date:
Subject: [PATCH] Change wait_time column of pg_stat_lock to double precision
Next
From: Chao Li
Date:
Subject: Re: postgres_fdw: fix cumulative stats after imported foreign-table stats