pgsql: Store 2PC GID in commit/abort WAL recs for logical decoding - Mailing list pgsql-committers

From Simon Riggs
Subject pgsql: Store 2PC GID in commit/abort WAL recs for logical decoding
Date
Msg-id E1f1EEd-000851-3T@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Attempt to fix jsonb_plpython build on Windows
Next
From: Tom Lane
Date:
Subject: pgsql: Fix actual and potential double-frees around tuplesort usage.