pgsql: Reorganize logical replication worker disconnect code

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Reorganize logical replication worker disconnect code
Date: 2017-06-02 03:16:51
Message-ID: E1dGd51-0005aP-N9@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2017-06-02 07:41:38 pgsql: Fix typo in comment
Previous Message Peter Eisentraut 2017-06-02 01:20:12 pgsql: psql: Fix display of whether table is part of publication