]> granicus.if.org Git - postgresql/commit
Store 2PC GID in commit/abort WAL recs for logical decoding
authorSimon Riggs <simon@2ndQuadrant.com>
Wed, 28 Mar 2018 16:42:50 +0000 (17:42 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Wed, 28 Mar 2018 16:42:50 +0000 (17:42 +0100)
commit1eb6d6527aae264b3e0b9c95aa70bb7a594ad1cf
tree8c012c2faa15dbeeed87c11490eb68f685aeae0a
parent75e95dd79ba22e18687a069d2ff2fd29afab5798
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
src/backend/access/rmgrdesc/xactdesc.c
src/backend/access/transam/twophase.c
src/backend/access/transam/xact.c
src/include/access/twophase.h
src/include/access/xact.h