1/*-------------------------------------------------------------------------
2 *
3 * logicallauncher.h
4 * Exports for logical replication launcher.
5 *
6 * Portions Copyright (c) 2016-2019, PostgreSQL Global Development Group
7 *
8 * src/include/replication/logicallauncher.h
9 *
10 *-------------------------------------------------------------------------
11 */
12#ifndef LOGICALLAUNCHER_H
13#define LOGICALLAUNCHER_H
14
15extern int max_logical_replication_workers;
16extern int max_sync_workers_per_subscription;
17
18extern void ApplyLauncherRegister(void);
19extern void ApplyLauncherMain(Datum main_arg);
20
21extern Size ApplyLauncherShmemSize(void);
22extern void ApplyLauncherShmemInit(void);
23
24extern void ApplyLauncherWakeupAtCommit(void);
25extern bool XactManipulatesLogicalReplicationWorkers(void);
26extern void AtEOXact_ApplyLauncher(bool isCommit);
27extern void AtEOSubXact_ApplyLauncher(bool isCommit, int nestDepth);
28
29extern bool IsLogicalLauncher(void);
30
31#endif /* LOGICALLAUNCHER_H */
32