Make pg_stop_backup's wait_for_archive flag work on standbys.

Robert Haas <rhaas@postgresql.org>

Commit: 52f8a59dd953c6820baf153e97cf07d31b8ac1d6
Author: Robert Haas <rhaas@postgresql.org>
Date: 2017-08-05T14:49:26Z
Releases: 10.0
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

Files

PathChange+/−
doc/src/sgml/backup.sgml modified +9 −4
doc/src/sgml/func.sgml modified +6 −1
src/backend/access/transam/xlog.c modified +66 −62

Documentation touched

Discussion