From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add option to control snapshot export to CREATE_REPLICATION_SLOT
Date: Tue, 14 Mar 2017 21:38:07 +0000
Message-ID: <E1cnu8t-0004fv-Rc@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Add option to control snapshot export to CREATE_REPLICATION_SLOT
We used to export snapshots unconditionally in CREATE_REPLICATION_SLOT
in the replication protocol, but several upcoming patches want more
control over what happens.
Suppress snapshot export in pg_recvlogical, which neither needs nor can
use the exported snapshot. Since snapshot exporting can fail this
improves reliability.
This also paves the way for allowing the creation of replication slots
on standbys, which cannot export snapshots because they cannot allocate
new XIDs.
Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/eb4da3e3807d2054bb05c3eb201cb9a363682f09
Modified Files
--------------
doc/src/sgml/logicaldecoding.sgml | 11 +++-
doc/src/sgml/protocol.sgml | 19 ++++++-
src/backend/commands/subscriptioncmds.c | 6 ++-
.../libpqwalreceiver/libpqwalreceiver.c | 15 ++++--
src/backend/replication/repl_gram.y | 43 ++++++++++++----
src/backend/replication/repl_scanner.l | 2 +
src/backend/replication/walsender.c | 58 ++++++++++++++++++++--
src/bin/pg_basebackup/streamutil.c | 5 ++
src/include/nodes/replnodes.h | 2 +-
src/include/replication/walreceiver.h | 6 +--
10 files changed, 141 insertions(+), 26 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: peter_e@gmx.net
Subject: Re: pgsql: Add option to control snapshot export to CREATE_REPLICATION_SLOT
In-Reply-To: <E1cnu8t-0004fv-Rc@gemulon.postgresql.org>
References: <E1cnu8t-0004fv-Rc@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