mirror of
https://github.com/postgres/postgres.git
synced 2025-12-07 00:02:34 -05:00
Enforce wal_retrieve_retry_interval on a per-subscription basis, rather than globally, and arrange to skip that delay in case of an intentional worker exit. This probably makes little difference in the field, where apply workers wouldn't be restarted often; but it has a significant impact on the runtime of our logical replication regression tests (even though those tests use artificially-small wal_retrieve_retry_interval settings already). Nathan Bossart, with mostly-cosmetic editorialization by me Discussion: https://postgr.es/m/20221122004119.GA132961@nathanxps13
35 lines
1.0 KiB
C
35 lines
1.0 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* logicallauncher.h
|
|
* Exports for logical replication launcher.
|
|
*
|
|
* Portions Copyright (c) 2016-2023, PostgreSQL Global Development Group
|
|
*
|
|
* src/include/replication/logicallauncher.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef LOGICALLAUNCHER_H
|
|
#define LOGICALLAUNCHER_H
|
|
|
|
extern PGDLLIMPORT int max_logical_replication_workers;
|
|
extern PGDLLIMPORT int max_sync_workers_per_subscription;
|
|
extern PGDLLIMPORT int max_parallel_apply_workers_per_subscription;
|
|
|
|
extern void ApplyLauncherRegister(void);
|
|
extern void ApplyLauncherMain(Datum main_arg);
|
|
|
|
extern Size ApplyLauncherShmemSize(void);
|
|
extern void ApplyLauncherShmemInit(void);
|
|
|
|
extern void ApplyLauncherForgetWorkerStartTime(Oid subid);
|
|
|
|
extern void ApplyLauncherWakeupAtCommit(void);
|
|
extern void AtEOXact_ApplyLauncher(bool isCommit);
|
|
|
|
extern bool IsLogicalLauncher(void);
|
|
|
|
extern pid_t GetLeaderApplyWorkerPid(pid_t pid);
|
|
|
|
#endif /* LOGICALLAUNCHER_H */
|