From: Peter Eisentraut Date: Wed, 23 Aug 2017 18:59:25 +0000 (-0400) Subject: Update code comment for temporary replication slots X-Git-Tag: REL_10_BETA4~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d51b0872bf9a71d9585ca13bbf1f9463d9c61182;p=postgresql Update code comment for temporary replication slots Reported-by: Alvaro Herrera --- diff --git a/src/include/replication/slot.h b/src/include/replication/slot.h index 0bf2611fe9..0c442330b2 100644 --- a/src/include/replication/slot.h +++ b/src/include/replication/slot.h @@ -22,9 +22,13 @@ * * Slots marked as PERSISTENT are crash-safe and will not be dropped when * released. Slots marked as EPHEMERAL will be dropped when released or after - * restarts. + * restarts. Slots marked TEMPORARY will be dropped at the end of a session + * or on error. * - * EPHEMERAL slots can be made PERSISTENT by calling ReplicationSlotPersist(). + * EPHEMERAL is used as a not-quite-ready state when creating persistent + * slots. EPHEMERAL slots can be made PERSISTENT by calling + * ReplicationSlotPersist(). For a slot that goes away at the end of a + * session, TEMPORARY is the appropriate choice. */ typedef enum ReplicationSlotPersistency {