pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Expose waitforarchive option through pg_stop_backup()
Date: Thu, 23 Mar 2017 03:46:26 +0000
Message-ID: <E1cqthi-0002My-GE@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Expose waitforarchive option through pg_stop_backup()

Internally, we have supported the option to either wait for all of the
WAL associated with a backup to be archived, or to return immediately.
This option is useful to users of pg_stop_backup() as well, when they
are reading the stop backup record position and checking that the WAL
they need has been archived independently.

This patch adds an additional, optional, argument to pg_stop_backup()
which allows the user to indicate if they wish to wait for the WAL to be
archived or not.  The default matches current behavior, which is to
wait.

Author: David Steele, with some minor changes, doc updates by me.
Reviewed by: Takayuki Tsunakawa, Fujii Masao
Discussion: https://postgr.es/m/758e3fd1-45b4-5e28-75cd-e9e7f93a4c02@pgmasters.net

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/017e4f2588a7fc6f2d1fbb6fff8afa1ff6e31f2b

Modified Files
--------------
doc/src/sgml/backup.sgml               | 13 ++++++++++++-
doc/src/sgml/func.sgml                 | 10 ++++++++--
src/backend/access/transam/xlog.c      |  3 ++-
src/backend/access/transam/xlogfuncs.c | 12 ++++++++++--
src/backend/catalog/system_views.sql   |  8 +++++++-
src/include/catalog/catversion.h       |  2 +-
src/include/catalog/pg_proc.h          |  2 +-
7 files changed, 41 insertions(+), 9 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: <E1cqthi-0002My-GE@gemulon.postgresql.org>
Permalink:  ../E1cqthi-0002My-GE@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cqthi-0002My-GE@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: sfrost@snowman.net
  Subject: Re: pgsql: Expose waitforarchive option through pg_stop_backup()
  In-Reply-To: <E1cqthi-0002My-GE@gemulon.postgresql.org>
  References: <E1cqthi-0002My-GE@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