Fix pg_recvlogical avoidance of superfluous Standby Status Update.

Noah Misch <noah@leadboat.com>

Commit: 1ab5b672e43ae89f1eb49107062125936d1e9794
Author: Noah Misch <noah@leadboat.com>
Date: 2020-05-14T03:42:46Z
Releases: 9.6.19
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/20200502221647.GA3941274@rfd.leadboat.com

Files

PathChange+/−
src/bin/pg_basebackup/pg_recvlogical.c modified +1 −1

Discussion