pgsql: Add ability to reserve WAL upon slot creation via replication pr

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add ability to reserve WAL upon slot creation via replication pr
Date: 2015-09-06 11:32:14
Message-ID: E1ZYYBC-0005py-Nd@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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(at)mail(dot)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2015-09-06 12:38:30 pgsql: Support RADIUS passwords up to 128 characters
Previous Message Greg Stark 2015-09-06 03:14:43 Re: pgsql: Move DTK_ISODOW DTK_DOW and DTK_DOY to be type UNITS rather than