pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Tighten the concurrent abort check during decoding.
Date: Thu, 06 May 2021 03:09:01 +0000
Message-ID: <E1leUNp-0006UZ-0K@gemulon.postgresql.org> (raw)

Tighten the concurrent abort check during decoding.

During decoding of an in-progress or prepared transaction, we detect
concurrent abort with an error code ERRCODE_TRANSACTION_ROLLBACK. That is
not sufficient because a callback can decide to throw that error code
at other times as well.

Reported-by: Tom Lane
Author: Amit Kapila
Reviewed-by: Dilip Kumar
Discussion: https://postgr.es/m/CAA4eK1KCjPRS4aZHB48QMM4J8XOC1+TD8jo-4Yu84E+MjwqVhA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2ce353fc19024d62e59ad99850d7592ebc9abecf

Modified Files
--------------
src/backend/replication/logical/reorderbuffer.c | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)



Message-ID: <E1leUNp-0006UZ-0K@gemulon.postgresql.org>
Permalink:  ../E1leUNp-0006UZ-0K@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1leUNp-0006UZ-0K@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: akapila@postgresql.org
  Subject: Re: pgsql: Tighten the concurrent abort check during decoding.
  In-Reply-To: <E1leUNp-0006UZ-0K@gemulon.postgresql.org>
  References: <E1leUNp-0006UZ-0K@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox