pgsql: Store 2PC GID in commit/abort WAL recs for logical decoding

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Store 2PC GID in commit/abort WAL recs for logical decoding
Date: 2018-03-28 16:47:39
Message-ID: E1f1EEd-000851-3T@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Store 2PC GID in commit/abort WAL recs for logical decoding

Store GID of 2PC in commit/abort WAL records when wal_level = logical.
This allows logical decoding to send the SAME gid to subscribers
across restarts of logical replication.

Track relica origin replay progress for 2PC.

(Edited from patch 0003 in the logical decoding 2PC series.)

Authors: Nikhil Sontakke, Stas Kelvich
Reviewed-by: Simon Riggs, Andres Freund

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1eb6d6527aae264b3e0b9c95aa70bb7a594ad1cf

Modified Files
--------------
src/backend/access/rmgrdesc/xactdesc.c | 39 ++++++++++++
src/backend/access/transam/twophase.c | 105 ++++++++++++++++++++++++++++-----
src/backend/access/transam/xact.c | 78 ++++++++++++++++++++++--
src/include/access/twophase.h | 5 +-
src/include/access/xact.h | 27 ++++++++-
5 files changed, 230 insertions(+), 24 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2018-03-28 17:27:22 pgsql: Fix actual and potential double-frees around tuplesort usage.
Previous Message Peter Eisentraut 2018-03-28 15:49:57 pgsql: Attempt to fix jsonb_plpython build on Windows

Browse pgsql-hackers by date

  From Date Subject
Next Message Teodor Sigaev 2018-03-28 16:53:22 Re: [HACKERS] GSoC 2017: weekly progress reports (week 6)
Previous Message Pavel Stehule 2018-03-28 16:42:34 Re: Re: csv format for psql