mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user