diff options
| author | Peter Eisentraut | 2017-03-14 21:13:56 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2017-03-14 21:34:22 +0000 |
| commit | eb4da3e3807d2054bb05c3eb201cb9a363682f09 (patch) | |
| tree | c17c676ae946fa0df632217ec163987f155820ac /src/include/nodes | |
| parent | 71504026556fc1494c9a7045aad9645f7d9e4cdf (diff) | |
Add option to control snapshot export to CREATE_REPLICATION_SLOT
We used to export snapshots unconditionally in CREATE_REPLICATION_SLOT
in the replication protocol, but several upcoming patches want more
control over what happens.
Suppress snapshot export in pg_recvlogical, which neither needs nor can
use the exported snapshot. Since snapshot exporting can fail this
improves reliability.
This also paves the way for allowing the creation of replication slots
on standbys, which cannot export snapshots because they cannot allocate
new XIDs.
Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>
Diffstat (limited to 'src/include/nodes')
| -rw-r--r-- | src/include/nodes/replnodes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/nodes/replnodes.h b/src/include/nodes/replnodes.h index f27354faaf3..996da3c02ea 100644 --- a/src/include/nodes/replnodes.h +++ b/src/include/nodes/replnodes.h @@ -56,7 +56,7 @@ typedef struct CreateReplicationSlotCmd ReplicationKind kind; char *plugin; bool temporary; - bool reserve_wal; + List *options; } CreateReplicationSlotCmd; |
