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: Avoid sending prepare multiple times while decoding.
Date: Mon, 26 Apr 2021 06:12:35 +0000
Message-ID: <E1lauTz-0002cf-7l@gemulon.postgresql.org> (raw)

Avoid sending prepare multiple times while decoding.

We send the prepare for the concurrently aborted xacts so that later when
rollback prepared is decoded and sent, the downstream should be able to
rollback such a xact. For 'streaming' case (when we send changes for
in-progress transactions), we were sending prepare twice when concurrent
abort was detected.

Author: Peter Smith
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/f82133c6-6055-b400-7922-97dae9f2b50b@enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f25a4584c6f56f3407f8f8734c78f2a87e4b77e8

Modified Files
--------------
src/backend/replication/logical/reorderbuffer.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)



Message-ID: <E1lauTz-0002cf-7l@gemulon.postgresql.org>
Permalink:  ../E1lauTz-0002cf-7l@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lauTz-0002cf-7l@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: Avoid sending prepare multiple times while decoding.
  In-Reply-To: <E1lauTz-0002cf-7l@gemulon.postgresql.org>
  References: <E1lauTz-0002cf-7l@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