diff options
| author | Peter Eisentraut | 2016-12-08 17:00:00 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2016-12-12 13:38:17 +0000 |
| commit | a924c327e2793d2025b19e18de7917110dc8afd8 (patch) | |
| tree | 2a81b0fd87cf4efb98a9a05aa3c27e8c8767bba3 /src/include/replication | |
| parent | e7f051b8f9a6341f6d3bf80b29c1dbc1837be9ab (diff) | |
Add support for temporary replication slots
This allows creating temporary replication slots that are removed
automatically at the end of the session or on error.
From: Petr Jelinek <petr.jelinek@2ndquadrant.com>
Diffstat (limited to 'src/include/replication')
| -rw-r--r-- | src/include/replication/slot.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/replication/slot.h b/src/include/replication/slot.h index e00562d274f..b653e5c1962 100644 --- a/src/include/replication/slot.h +++ b/src/include/replication/slot.h @@ -28,7 +28,8 @@ typedef enum ReplicationSlotPersistency { RS_PERSISTENT, - RS_EPHEMERAL + RS_EPHEMERAL, + RS_TEMPORARY } ReplicationSlotPersistency; /* @@ -165,6 +166,7 @@ extern void ReplicationSlotDrop(const char *name); extern void ReplicationSlotAcquire(const char *name); extern void ReplicationSlotRelease(void); +extern void ReplicationSlotCleanup(void); extern void ReplicationSlotSave(void); extern void ReplicationSlotMarkDirty(void); |
