From: Magnus Hagander Date: Thu, 9 Feb 2012 13:12:49 +0000 (+0100) Subject: Have pg_receivexlog always send an invalid log position in status messages X-Git-Tag: REL9_2_BETA1~444 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d7ea9193d18d29bea82b30604cdd087e90c5ee27;p=postgresql 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 --- diff --git a/src/bin/pg_basebackup/receivelog.c b/src/bin/pg_basebackup/receivelog.c index 8ca3882a72..2e03c65fff 100644 --- a/src/bin/pg_basebackup/receivelog.c +++ b/src/bin/pg_basebackup/receivelog.c @@ -307,7 +307,7 @@ ReceiveXlogStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, char *sysi char replybuf[sizeof(StandbyReplyMessage) + 1]; StandbyReplyMessage *replymsg = (StandbyReplyMessage *) (replybuf + 1); - replymsg->write = blockpos; + replymsg->write = InvalidXLogRecPtr; replymsg->flush = InvalidXLogRecPtr; replymsg->apply = InvalidXLogRecPtr; replymsg->sendTime = now;