pgsql: Make pg_stop_backup's wait_for_archive flag work on standbys.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make pg_stop_backup's wait_for_archive flag work on standbys.
Date: 2017-08-05 14:50:16
Message-ID: E1de0PA-0007L5-FC@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/52f8a59dd953c6820baf153e97cf07d31b8ac1d6

Modified Files
--------------
doc/src/sgml/backup.sgml | 13 ++--
doc/src/sgml/func.sgml | 7 ++-
src/backend/access/transam/xlog.c | 128 ++++++++++++++++++++------------------
3 files changed, 81 insertions(+), 67 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-08-05 15:48:54 pgsql: Improve configure's check for ICU presence.
Previous Message Peter Eisentraut 2017-08-05 13:36:31 pgsql: Add support for ICU 4.2