Add subtransaction handling for table synchronization workers.
Robert Haas <rhaas@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xact.c | modified | +2 −0 |
| src/backend/replication/logical/launcher.c | modified | +108 −8 |
| src/include/replication/logicallauncher.h | modified | +1 −0 |
| src/tools/pgindent/typedefs.list | modified | +1 −0 |
Discussion
- AtEOXact_ApplyLauncher() and subtransactions 12 messages · 2018-06-05 → 2018-07-18