Skip to content

Commit cee9cad

Browse files
committed
Fix pg_recvlogical avoidance of superfluous Standby Status Update.
The defect suppressed a Standby Status Update message when bytes flushed to disk had changed but bytes received had not changed. If pg_recvlogical then exited with no intervening Standby Status Update, the next pg_recvlogical repeated already-flushed records. The defect could also cause superfluous messages, which are functionally harmless. Back-patch to 9.5 (all supported versions). Discussion: https://postgr.es/m/[email protected]
1 parent 8222a9d commit cee9cad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_basebackup/pg_recvlogical.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ sendFeedback(PGconn *conn, TimestampTz now, bool force, bool replyRequested)
126126
*/
127127
if (!force &&
128128
last_written_lsn == output_written_lsn &&
129-
last_fsync_lsn != output_fsync_lsn)
129+
last_fsync_lsn == output_fsync_lsn)
130130
return true;
131131

132132
if (verbose)

0 commit comments

Comments
 (0)