]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix pg_recvlogical avoidance of superfluous Standby Status Update.
authorNoah Misch <noah@leadboat.com>
Thu, 14 May 2020 03:42:09 +0000 (20:42 -0700)
committerNoah Misch <noah@leadboat.com>
Thu, 14 May 2020 03:42:37 +0000 (20:42 -0700)
commita267894529b260002cdb85cde9680529ae4ceeb4
tree32721ea1d1c57846bef3494a3c93695fbcf6e844
parent357012e17f3f7d47bd276d4441c28fbcd58a2c8b
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
src/bin/pg_basebackup/pg_recvlogical.c