Skip to content

Commit 8b99228

Browse files
committed
do not call XLogIncludeOrigin() for session with DoNotReplicateId
1 parent 0957c76 commit 8b99228

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/access/transam/twophase.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,8 @@ EndPrepare(GlobalTransaction gxact)
12501250
for (record = records.head; record != NULL; record = record->next)
12511251
XLogRegisterData(record->data, record->len);
12521252

1253-
XLogIncludeOrigin();
1253+
if (replorigin)
1254+
XLogIncludeOrigin();
12541255

12551256
gxact->prepare_end_lsn = XLogInsert(RM_XACT_ID, info);
12561257

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy