Skip to content

Commit 6d242ee

Browse files
committed
Update code comment for temporary replication slots
Reported-by: Alvaro Herrera <alvherre@2ndquadrant.com>
1 parent 1e1b01c commit 6d242ee

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy