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(dot)jelinek(at)2ndquadrant(dot)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(-)