Skip to content

Commit d7ea919

Browse files
committed
Have pg_receivexlog always send an invalid log position in status messages
This prevents pg_basebackup and pg_receivexlog from becoming a synchronous standby in case 'write' is used for synchronous_commit. Fujii Masao
1 parent 82e73ba commit d7ea919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_basebackup/receivelog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ ReceiveXlogStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, char *sysi
307307
char replybuf[sizeof(StandbyReplyMessage) + 1];
308308
StandbyReplyMessage *replymsg = (StandbyReplyMessage *) (replybuf + 1);
309309

310-
replymsg->write = blockpos;
310+
replymsg->write = InvalidXLogRecPtr;
311311
replymsg->flush = InvalidXLogRecPtr;
312312
replymsg->apply = InvalidXLogRecPtr;
313313
replymsg->sendTime = now;

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