Re: Track replica origin progress for Rollback Prepared - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Track replica origin progress for Rollback Prepared
Date
Msg-id X/QO71SVVDPcc7IL@paquier.xyz
Whole thread Raw
In response to Track replica origin progress for Rollback Prepared  (Amit Kapila <amit.kapila16@gmail.com>)
Responses Re: Track replica origin progress for Rollback Prepared
List pgsql-hackers
On Tue, Jan 05, 2021 at 09:35:21AM +0530, Amit Kapila wrote:
> As noted in [1], without this the subscriber might again ask for
> rollback prepared lsn after restart.
>
> Attached patch addresses this problem.

Is it possible to add some tests in test_decoding?

    /* dump transaction origin information only for abort prepared */
    if ((replorigin_session_origin != InvalidRepOriginId) &&
-               TransactionIdIsValid(twophase_xid) &&
-               XLogLogicalInfoActive())
+               TransactionIdIsValid(twophase_xid))
It seems to me that you may want to document as a comment the reason
why this gets sent even if (wal_level < logical).
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Moving other hex functions to /common
Next
From: Luc Vlaming
Date:
Subject: Re: Parallel Inserts in CREATE TABLE AS