Reorganize logical replication worker disconnect code Move the walrcv_disconnect() calls into the before_shmem_exit handler. This makes sure the call is always made even during exit by signal, it saves some duplicate code, and it makes the logic more similar to walreceiver.c.
Author: Petr Jelinek <petr.jeli...@2ndquadrant.com> Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/6812330f1cc95f258ffe4ce7d56bdd56efbd9fde Modified Files -------------- src/backend/replication/logical/launcher.c | 6 ++++++ src/backend/replication/logical/tablesync.c | 1 - src/backend/replication/logical/worker.c | 8 -------- 3 files changed, 6 insertions(+), 9 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers