postgresql/src/backend/replication/logical
Tom Lane 5a3a95385b Track logrep apply workers' last start times to avoid useless waits.
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
2023-01-22 14:08:46 -05:00
..
applyparallelworker.c Display the leader apply worker's PID for parallel apply workers. 2023-01-18 09:03:12 +05:30
decode.c Perform apply of large transactions by parallel workers. 2023-01-09 07:52:45 +05:30
launcher.c Track logrep apply workers' last start times to avoid useless waits. 2023-01-22 14:08:46 -05:00
logical.c Acquire spinlock when updating 2PC slot data during logical decoding creation 2023-01-12 13:40:33 +09:00
logicalfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
Makefile Perform apply of large transactions by parallel workers. 2023-01-09 07:52:45 +05:30
meson.build Perform apply of large transactions by parallel workers. 2023-01-09 07:52:45 +05:30
message.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
origin.c Perform apply of large transactions by parallel workers. 2023-01-09 07:52:45 +05:30
proto.c Perform apply of large transactions by parallel workers. 2023-01-09 07:52:45 +05:30
relation.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
reorderbuffer.c Perform apply of large transactions by parallel workers. 2023-01-09 07:52:45 +05:30
snapbuild.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
tablesync.c Track logrep apply workers' last start times to avoid useless waits. 2023-01-22 14:08:46 -05:00
worker.c Track logrep apply workers' last start times to avoid useless waits. 2023-01-22 14:08:46 -05:00