mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Add subtransaction handling for table synchronization workers.
Since the old logic was completely unaware of subtransactions, a change made in a subsequently-aborted subtransaction would still cause workers to be stopped at toplevel transaction commit. Fix that by managing a stack of worker lists rather than just one. Amit Khandekar and Robert Haas Discussion: http://postgr.es/m/CAJ3gD9eaG_mWqiOTA2LfAug-VRNn1hrhf50Xi1YroxL37QkZNg@mail.gmail.com
This commit is contained in:
@@ -24,6 +24,7 @@ extern void ApplyLauncherShmemInit(void);
|
||||
extern void ApplyLauncherWakeupAtCommit(void);
|
||||
extern bool XactManipulatesLogicalReplicationWorkers(void);
|
||||
extern void AtEOXact_ApplyLauncher(bool isCommit);
|
||||
extern void AtEOSubXact_ApplyLauncher(bool isCommit, int nestDepth);
|
||||
|
||||
extern bool IsLogicalLauncher(void);
|
||||
|
||||
|
Reference in New Issue
Block a user