From: Bertrand Drouvot Date: Fri, 30 Jan 2026 07:50:36 +0000 Subject: [PATCH v1] Fix other cases of literal 0 instead of InvalidXLogRecPtr assignment Those ones were missed in ec317440716. Author: Bertrand Drouvot Discussion: https://postgr.es/m/aRtd2dw8FO1nNX7k@ip-10-97-1-34.eu-west-3.compute.internal --- src/backend/access/transam/xact.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 100.0% src/backend/access/transam/ diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index eba4f063168..7e3dc3f9386 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -1573,7 +1573,7 @@ RecordTransactionCommit(void) XactLastCommitEnd = XactLastRecEnd; /* Reset XactLastRecEnd until the next transaction writes something */ - XactLastRecEnd = 0; + XactLastRecEnd = InvalidXLogRecPtr; cleanup: /* Clean up local data */ if (rels) @@ -1787,7 +1787,7 @@ RecordTransactionAbort(bool isSubXact) { /* Reset XactLastRecEnd until the next transaction writes something */ if (!isSubXact) - XactLastRecEnd = 0; + XactLastRecEnd = InvalidXLogRecPtr; return InvalidTransactionId; } @@ -1879,7 +1879,7 @@ RecordTransactionAbort(bool isSubXact) /* Reset XactLastRecEnd until the next transaction writes something */ if (!isSubXact) - XactLastRecEnd = 0; + XactLastRecEnd = InvalidXLogRecPtr; /* And clean up local data */ if (rels) @@ -2701,7 +2701,7 @@ PrepareTransaction(void) */ /* Reset XactLastRecEnd until the next transaction writes something */ - XactLastRecEnd = 0; + XactLastRecEnd = InvalidXLogRecPtr; /* * Transfer our locks to a dummy PGPROC. This has to be done before -- 2.34.1 --31r/W+W8Qcw0VOW+--