pgsql: Only kill sync workers at commit time in subscription DDL

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Only kill sync workers at commit time in subscription DDL
Date: 2017-08-05 01:29:47
Message-ID: E1ddnuV-0000Iq-6L@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Only kill sync workers at commit time in subscription DDL

This allows a transaction abort to avoid killing those workers.

Author: Petr Jelinek <petr(dot)jelinek(at)2ndquadrant(dot)com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7e174fa793a2df89fe03d002a5087ef67abcdde8

Modified Files
--------------
src/backend/access/transam/xact.c | 9 ++++
src/backend/commands/subscriptioncmds.c | 28 ++++++++--
src/backend/replication/logical/launcher.c | 83 +++++++++++++++++++++++++++++-
src/include/replication/logicallauncher.h | 1 +
src/include/replication/worker_internal.h | 2 +
5 files changed, 117 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2017-08-05 02:05:51 pgsql: Fix bug in deciding whether to scan newly-attached partition.
Previous Message Robert Haas 2017-08-05 00:54:30 pgsql: hash: Immediately after a bucket split, try to clean the old buc