diff options
| author | Andres Freund <andres@anarazel.de> | 2015-09-06 13:17:23 +0200 |
|---|---|---|
| committer | Andres Freund <andres@anarazel.de> | 2015-09-06 13:30:57 +0200 |
| commit | c314ead5be0c627a6f654a74f18099466c566c47 (patch) | |
| tree | 4d5b680e6f2a8e1012345f9a943be56a10a93675 /src/include | |
| parent | 258ee1b635e43a37e901fd5f62bdd5f1087d65a5 (diff) | |
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
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/nodes/replnodes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/nodes/replnodes.h b/src/include/nodes/replnodes.h index cac64198508..4e35be6a286 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; |
