pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add subtransaction handling for table synchronization workers.
Date: Mon, 16 Jul 2018 21:59:38 +0000
Message-ID: <E1ffBWs-0007VX-Dh@gemulon.postgresql.org> (raw)

Add subtransaction handling for table synchronization workers.

Since the old logic was completely unaware of subtransactions, a
change made in a subsequently-aborted subtransaction would still cause
workers to be stopped at toplevel transaction commit.  Fix that by
managing a stack of worker lists rather than just one.

Amit Khandekar and Robert Haas

Discussion: http://postgr.es/m/CAJ3gD9eaG_mWqiOTA2LfAug-VRNn1hrhf50Xi1YroxL37QkZNg@mail.gmail.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9ec9f8f6833db5bafc30c480f96f06bdf5c012e6

Modified Files
--------------
src/backend/access/transam/xact.c          |   2 +
src/backend/replication/logical/launcher.c | 116 +++++++++++++++++++++++++++--
src/include/replication/logicallauncher.h  |   1 +
src/tools/pgindent/typedefs.list           |   1 +
4 files changed, 112 insertions(+), 8 deletions(-)



view thread (3+ messages)

Message-ID: <E1ffBWs-0007VX-Dh@gemulon.postgresql.org>
Permalink:  ../E1ffBWs-0007VX-Dh@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ffBWs-0007VX-Dh@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Add subtransaction handling for table synchronization workers.
  In-Reply-To: <E1ffBWs-0007VX-Dh@gemulon.postgresql.org>
  References: <E1ffBWs-0007VX-Dh@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox