Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d51b087

Browse files
committed
Update code comment for temporary replication slots
Reported-by: Alvaro Herrera <[email protected]>
1 parent da19c32 commit d51b087

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/include/replication/slot.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@
2222
*
2323
* Slots marked as PERSISTENT are crash-safe and will not be dropped when
2424
* released. Slots marked as EPHEMERAL will be dropped when released or after
25-
* restarts.
25+
* restarts. Slots marked TEMPORARY will be dropped at the end of a session
26+
* or on error.
2627
*
27-
* EPHEMERAL slots can be made PERSISTENT by calling ReplicationSlotPersist().
28+
* EPHEMERAL is used as a not-quite-ready state when creating persistent
29+
* slots. EPHEMERAL slots can be made PERSISTENT by calling
30+
* ReplicationSlotPersist(). For a slot that goes away at the end of a
31+
* session, TEMPORARY is the appropriate choice.
2832
*/
2933
typedef enum ReplicationSlotPersistency
3034
{

0 commit comments

Comments
 (0)