diff options
author | Amit Kapila | 2024-07-01 06:06:56 +0000 |
---|---|---|
committer | Amit Kapila | 2024-07-01 06:06:56 +0000 |
commit | 2357c9223b710c91b0f05cbc56bd435baeac961f (patch) | |
tree | aa6c7bd96ebff42cab21978962dede203e82b61e /src/include | |
parent | 0c3930d0768943ad1dedb5a6ace250ce9b65915c (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')
-rw-r--r-- | src/include/replication/slot.h | 4 | ||||
-rw-r--r-- | src/include/replication/walsender_private.h | 4 | ||||
-rw-r--r-- | src/include/utils/guc_hooks.h | 6 |
3 files changed, 7 insertions, 7 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; diff --git a/src/include/utils/guc_hooks.h b/src/include/utils/guc_hooks.h index d64dc5fcdb0..070d3f2a1ad 100644 --- a/src/include/utils/guc_hooks.h +++ b/src/include/utils/guc_hooks.h @@ -174,8 +174,8 @@ extern bool check_wal_consistency_checking(char **newval, void **extra, extern void assign_wal_consistency_checking(const char *newval, void *extra); extern bool check_wal_segment_size(int *newval, void **extra, GucSource source); extern void assign_wal_sync_method(int new_wal_sync_method, void *extra); -extern bool check_standby_slot_names(char **newval, void **extra, - GucSource source); -extern void assign_standby_slot_names(const char *newval, void *extra); +extern bool check_synchronized_standby_slots(char **newval, void **extra, + GucSource source); +extern void assign_synchronized_standby_slots(const char *newval, void *extra); #endif /* GUC_HOOKS_H */ |