pgsql: Implement NOWAIT option for BASE_BACKUP command

Lists: pgsql-committers
From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Implement NOWAIT option for BASE_BACKUP command
Date: 2011-02-09 10:02:14
Message-ID: E1Pn6sI-0002Bf-4K@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers

Implement NOWAIT option for BASE_BACKUP command

Specifying this option makes the server not wait for the
xlog to be archived, or emit a warning that it can't,
instead leaving the responsibility with the client.

This is useful when the log is being streamed using
the streaming protocol in parallel with the backup,
without having log archiving enabled.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3144c33a2f764610d7ad56f1b82e9716d0d65447

Modified Files
--------------
doc/src/sgml/protocol.sgml | 15 ++++++++++++++-
src/backend/access/transam/xlog.c | 8 ++++----
src/backend/replication/basebackup.c | 13 ++++++++++++-
src/backend/replication/repl_gram.y | 8 +++++++-
src/backend/replication/repl_scanner.l | 1 +
src/include/access/xlog.h | 2 +-
6 files changed, 39 insertions(+), 8 deletions(-)