]> granicus.if.org Git - postgresql/commit
Add ability to reserve WAL upon slot creation via replication protocol.
authorAndres Freund <andres@anarazel.de>
Sun, 6 Sep 2015 11:17:23 +0000 (13:17 +0200)
committerAndres Freund <andres@anarazel.de>
Sun, 6 Sep 2015 11:30:57 +0000 (13:30 +0200)
commitc314ead5be0c627a6f654a74f18099466c566c47
tree4d5b680e6f2a8e1012345f9a943be56a10a93675
parent258ee1b635e43a37e901fd5f62bdd5f1087d65a5
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
doc/src/sgml/protocol.sgml
src/backend/replication/repl_gram.y
src/backend/replication/repl_scanner.l
src/backend/replication/walsender.c
src/include/nodes/replnodes.h