| 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 | |
| 15 | extern int max_logical_replication_workers; |
| 16 | extern int max_sync_workers_per_subscription; |
| 17 | |
| 18 | extern void ApplyLauncherRegister(void); |
| 19 | extern void ApplyLauncherMain(Datum main_arg); |
| 20 | |
| 21 | extern Size ApplyLauncherShmemSize(void); |
| 22 | extern void ApplyLauncherShmemInit(void); |
| 23 | |
| 24 | extern void ApplyLauncherWakeupAtCommit(void); |
| 25 | extern bool XactManipulatesLogicalReplicationWorkers(void); |
| 26 | extern void AtEOXact_ApplyLauncher(bool isCommit); |
| 27 | extern void AtEOSubXact_ApplyLauncher(bool isCommit, int nestDepth); |
| 28 | |
| 29 | extern bool IsLogicalLauncher(void); |
| 30 | |
| 31 | #endif /* LOGICALLAUNCHER_H */ |
| 32 | |