pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add ability to reserve WAL upon slot creation via replication pr
Date: Sun, 06 Sep 2015 11:32:14 +0000
Message-ID: <E1ZYYBC-0005py-Nd@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Add ability to reserve WAL upon slot creation via replication protocol.

Since 6fcd885 it is possible to immediately reserve WAL when creating a
slot via pg_create_physical_replication_slot(). Extend the replication
protocol to allow that as well.

Although, in contrast to the SQL interface, it is possible to update the
reserved location via the replication interface, it is still useful
being able to reserve upon creation there. Otherwise the logic in
ReplicationSlotReserveWal() has to be repeated in slot employing
clients.

Author: Michael Paquier
Discussion: CAB7nPqT0Wc1W5mdYGeJ_wbutbwNN+3qgrFR64avXaQCiJMGaYA@mail.gmail.com

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/c314ead5be0c627a6f654a74f18099466c566c47

Modified Files
--------------
doc/src/sgml/protocol.sgml             |   13 ++++++++++++-
src/backend/replication/repl_gram.y    |   12 ++++++++++--
src/backend/replication/repl_scanner.l |    1 +
src/backend/replication/walsender.c    |    8 ++++++++
src/include/nodes/replnodes.h          |    1 +
5 files changed, 32 insertions(+), 3 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: <E1ZYYBC-0005py-Nd@gemulon.postgresql.org>
Permalink:  ../E1ZYYBC-0005py-Nd@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ZYYBC-0005py-Nd@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: andres@anarazel.de
  Subject: Re: pgsql: Add ability to reserve WAL upon slot creation via replication pr
  In-Reply-To: <E1ZYYBC-0005py-Nd@gemulon.postgresql.org>
  References: <E1ZYYBC-0005py-Nd@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