pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Make pg_stop_backup's wait_for_archive flag work on standbys.
Date: Sat, 05 Aug 2017 14:50:16 +0000
Message-ID: <E1de0PA-0007L5-FC@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1de0PA-0007L5-FC@gemulon.postgresql.org>
Permalink:  ../E1de0PA-0007L5-FC@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1de0PA-0007L5-FC@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Make pg_stop_backup's wait_for_archive flag work on standbys.
  In-Reply-To: <E1de0PA-0007L5-FC@gemulon.postgresql.org>
  References: <E1de0PA-0007L5-FC@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox