From c314ead5be0c627a6f654a74f18099466c566c47 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Sun, 6 Sep 2015 13:17:23 +0200 Subject: 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 --- src/include/nodes/replnodes.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include/nodes/replnodes.h') diff --git a/src/include/nodes/replnodes.h b/src/include/nodes/replnodes.h index cac6419850..4e35be6a28 100644 --- a/src/include/nodes/replnodes.h +++ b/src/include/nodes/replnodes.h @@ -55,6 +55,7 @@ typedef struct CreateReplicationSlotCmd char *slotname; ReplicationKind kind; char *plugin; + bool reserve_wal; } CreateReplicationSlotCmd; -- cgit v1.2.1