]> granicus.if.org Git - postgresql/commit
Make pg_stop_backup's wait_for_archive flag work on standbys.
authorRobert Haas <rhaas@postgresql.org>
Sat, 5 Aug 2017 14:49:26 +0000 (10:49 -0400)
committerRobert Haas <rhaas@postgresql.org>
Sat, 5 Aug 2017 14:49:26 +0000 (10:49 -0400)
commit52f8a59dd953c6820baf153e97cf07d31b8ac1d6
treeb574cd6c92d372a4d885f53be5b1fdf8d57e75d3
parenteccead9ed43dc6e653c76dce1d2f455d251bb00c
Make pg_stop_backup's wait_for_archive flag work on standbys.

Previously, it had no effect.  Now, if archive_mode=always, it will
work, and if not, you'll get a warning.

Masahiko Sawada, Michael Paquier, and Robert Haas.  The patch as
submitted also changed the behavior so that we would write and remove
history files on standbys, but that seems like material for a separate
patch to me.

Discussion: http://postgr.es/m/CAD21AoC2Xw6M=ZJyejq_9d_iDkReC_=rpvQRw5QsyzKQdfYpkw@mail.gmail.com
doc/src/sgml/backup.sgml
doc/src/sgml/func.sgml
src/backend/access/transam/xlog.c