pgsql: Track replication origin progress for rollbacks.

From: Amit Kapila <akapila(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Track replication origin progress for rollbacks.
Date: 2021-03-08 02:36:47
Message-ID: E1lJ5lH-0004sJ-2a@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Track replication origin progress for rollbacks.

Commit 1eb6d6527a allowed to track replica origin replay progress for 2PC
but it was not complete. It misses to properly track the progress for
rollback prepared especially it missed updating the code for recovery.
Additionally, we need to allow tracking it on subscriber nodes where
wal_level might not be logical.

It is required to track decoding of 2PC which is committed in PG14
(a271a1b50e) and also nobody complained about this till now so not
backpatching it.

Author: Amit Kapila
Reviewed-by: Michael Paquier and Ajin Cherian
Discussion: https://postgr.es/m/CAA4eK1L-kHmMnSdrRW6UhRbCjR7cgh04c+6psY15qzT6ktcd+g@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8a812e5106c5db50039336288d376a188844e2cc

Modified Files
--------------
src/backend/access/transam/twophase.c | 13 +++++++++++++
src/backend/access/transam/xact.c | 24 ++++++++++++++++++------
2 files changed, 31 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2021-03-08 21:32:52 pgsql: Further tweak memory management for regex DFAs.
Previous Message Peter Eisentraut 2021-03-06 18:31:10 pgsql: Add bit_xor aggregate function