PostgreSQL Source Code  git master
logicallauncher.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * logicallauncher.h
4  * Exports for logical replication launcher.
5  *
6  * Portions Copyright (c) 2016-2024, PostgreSQL Global Development Group
7  *
8  * src/include/replication/logicallauncher.h
9  *
10  *-------------------------------------------------------------------------
11  */
12 #ifndef LOGICALLAUNCHER_H
13 #define LOGICALLAUNCHER_H
14 
18 
19 extern void ApplyLauncherRegister(void);
20 extern void ApplyLauncherMain(Datum main_arg);
21 
22 extern Size ApplyLauncherShmemSize(void);
23 extern void ApplyLauncherShmemInit(void);
24 
25 extern void ApplyLauncherForgetWorkerStartTime(Oid subid);
26 
27 extern void ApplyLauncherWakeupAtCommit(void);
28 extern void AtEOXact_ApplyLauncher(bool isCommit);
29 
30 extern bool IsLogicalLauncher(void);
31 
32 extern pid_t GetLeaderApplyWorkerPid(pid_t pid);
33 
34 #endif /* LOGICALLAUNCHER_H */
#define PGDLLIMPORT
Definition: c.h:1274
size_t Size
Definition: c.h:559
PGDLLIMPORT int max_parallel_apply_workers_per_subscription
Definition: launcher.c:52
void AtEOXact_ApplyLauncher(bool isCommit)
Definition: launcher.c:1092
Size ApplyLauncherShmemSize(void)
Definition: launcher.c:905
bool IsLogicalLauncher(void)
Definition: launcher.c:1249
PGDLLIMPORT int max_logical_replication_workers
Definition: launcher.c:50
PGDLLIMPORT int max_sync_workers_per_subscription
Definition: launcher.c:51
void ApplyLauncherMain(Datum main_arg)
Definition: launcher.c:1128
void ApplyLauncherShmemInit(void)
Definition: launcher.c:960
void ApplyLauncherWakeupAtCommit(void)
Definition: launcher.c:1111
pid_t GetLeaderApplyWorkerPid(pid_t pid)
Definition: launcher.c:1259
void ApplyLauncherForgetWorkerStartTime(Oid subid)
Definition: launcher.c:1081
void ApplyLauncherRegister(void)
Definition: launcher.c:924
uintptr_t Datum
Definition: postgres.h:64
unsigned int Oid
Definition: postgres_ext.h:31