]> granicus.if.org Git - postgresql/commitdiff
Update code comment for temporary replication slots
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 23 Aug 2017 18:59:25 +0000 (14:59 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 23 Aug 2017 18:59:25 +0000 (14:59 -0400)
Reported-by: Alvaro Herrera <alvherre@2ndquadrant.com>
src/include/replication/slot.h

index 0bf2611fe9c0f6e6af98281c7391f508ad20d502..0c442330b227ac6f583ea8bb3e6a81e19adf5b01 100644 (file)
  *
  * 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
 {