PostgreSQL Source Code  git master
slotsync.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * slotsync.h
4  * Exports for slot synchronization.
5  *
6  * Portions Copyright (c) 2016-2024, PostgreSQL Global Development Group
7  *
8  * src/include/replication/slotsync.h
9  *
10  *-------------------------------------------------------------------------
11  */
12 #ifndef SLOTSYNC_H
13 #define SLOTSYNC_H
14 
16 
18 
19 /*
20  * GUCs needed by slot sync worker to connect to the primary
21  * server and carry on with slots synchronization.
22  */
23 extern PGDLLIMPORT char *PrimaryConnInfo;
24 extern PGDLLIMPORT char *PrimarySlotName;
25 
26 extern char *CheckAndGetDbnameFromConninfo(void);
27 extern bool ValidateSlotSyncParams(int elevel);
28 
29 extern void ReplSlotSyncWorkerMain(char *startup_data, size_t startup_data_len) pg_attribute_noreturn();
30 
31 extern void ShutDownSlotSync(void);
32 extern bool SlotSyncWorkerCanRestart(void);
33 extern bool IsSyncingReplicationSlots(void);
34 extern Size SlotSyncShmemSize(void);
35 extern void SlotSyncShmemInit(void);
37 
38 #endif /* SLOTSYNC_H */
#define PGDLLIMPORT
Definition: c.h:1274
#define pg_attribute_noreturn()
Definition: c.h:236
size_t Size
Definition: c.h:559
void SyncReplicationSlots(WalReceiverConn *wrconn)
Definition: slotsync.c:1724
PGDLLIMPORT char * PrimarySlotName
Definition: xlogrecovery.c:97
void ShutDownSlotSync(void)
Definition: slotsync.c:1561
PGDLLIMPORT bool sync_replication_slots
Definition: slotsync.c:107
bool SlotSyncWorkerCanRestart(void)
Definition: slotsync.c:1629
char * CheckAndGetDbnameFromConninfo(void)
Definition: slotsync.c:1010
void SlotSyncShmemInit(void)
Definition: slotsync.c:1667
bool ValidateSlotSyncParams(int elevel)
Definition: slotsync.c:1037
void ReplSlotSyncWorkerMain(char *startup_data, size_t startup_data_len) pg_attribute_noreturn()
Definition: slotsync.c:1329
bool IsSyncingReplicationSlots(void)
Definition: slotsync.c:1649
Size SlotSyncShmemSize(void)
Definition: slotsync.c:1658
PGDLLIMPORT char * PrimaryConnInfo
Definition: xlogrecovery.c:96
static WalReceiverConn * wrconn
Definition: walreceiver.c:92