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_C26B62ED5BC2129C9AA2F10B9EA30D8DD605@qq.com
Whole thread
Responses Re: Return value of XLogInsertRecord() for XLOG_SWITCH record
Re: Return value of XLogInsertRecord() for XLOG_SWITCH record
List pgsql-hackers
rebase v4.

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: "ZizhuanLiu X-MAN"
Date:
Subject: Re: Add ParameterDescription message to libpq frontend long message types
Next
From: Ken Hibino
Date:
Subject: [PATCH v1] Fix typo in InitWalRecovery() comment