summaryrefslogtreecommitdiff
path: root/src/include/replication
diff options
context:
space:
mode:
authorAmit Kapila2024-07-01 06:06:56 +0000
committerAmit Kapila2024-07-01 06:06:56 +0000
commit2357c9223b710c91b0f05cbc56bd435baeac961f (patch)
treeaa6c7bd96ebff42cab21978962dede203e82b61e /src/include/replication
parent0c3930d0768943ad1dedb5a6ace250ce9b65915c (diff)
Rename standby_slot_names to synchronized_standby_slots.
The standby_slot_names GUC allows the specification of physical standby slots that must be synchronized before the logical walsenders associated with logical failover slots. However, for this purpose, the GUC name is too generic. Author: Hou Zhijie Reviewed-by: Bertrand Drouvot, Masahiko Sawada Backpatch-through: 17 Discussion: https://postgr.es/m/ZnWeUgdHong93fQN@momjian.us
Diffstat (limited to 'src/include/replication')
-rw-r--r--src/include/replication/slot.h4
-rw-r--r--src/include/replication/walsender_private.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/include/replication/slot.h b/src/include/replication/slot.h
index 1bc80960ef7..c9675ee87cc 100644
--- a/src/include/replication/slot.h
+++ b/src/include/replication/slot.h
@@ -229,7 +229,7 @@ extern PGDLLIMPORT ReplicationSlot *MyReplicationSlot;
/* GUCs */
extern PGDLLIMPORT int max_replication_slots;
-extern PGDLLIMPORT char *standby_slot_names;
+extern PGDLLIMPORT char *synchronized_standby_slots;
/* shmem initialization functions */
extern Size ReplicationSlotsShmemSize(void);
@@ -278,7 +278,7 @@ extern void CheckSlotPermissions(void);
extern ReplicationSlotInvalidationCause
GetSlotInvalidationCause(const char *invalidation_reason);
-extern bool SlotExistsInStandbySlotNames(const char *slot_name);
+extern bool SlotExistsInSyncStandbySlots(const char *slot_name);
extern bool StandbySlotsHaveCaughtup(XLogRecPtr wait_for_lsn, int elevel);
extern void WaitForStandbyConfirmation(XLogRecPtr wait_for_lsn);
diff --git a/src/include/replication/walsender_private.h b/src/include/replication/walsender_private.h
index 109924ffcdc..cf32ac2488a 100644
--- a/src/include/replication/walsender_private.h
+++ b/src/include/replication/walsender_private.h
@@ -115,8 +115,8 @@ typedef struct
/*
* Used by physical walsenders holding slots specified in
- * standby_slot_names to wake up logical walsenders holding logical
- * failover slots when a walreceiver confirms the receipt of LSN.
+ * synchronized_standby_slots to wake up logical walsenders holding
+ * logical failover slots when a walreceiver confirms the receipt of LSN.
*/
ConditionVariable wal_confirm_rcv_cv;