Re: [PATCH] add concurrent_abort callback for output plugin

Ajin Cherian <itsajin@gmail.com>

From: Ajin Cherian <itsajin@gmail.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: Markus Wanner <markus.wanner@enterprisedb.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-03-29T11:02:34Z
Lists: pgsql-hackers
On Mon, Mar 29, 2021 at 8:33 PM Amit Kapila <amit.kapila16@gmail.com> wrote:

> On Mon, Mar 29, 2021 at 12:36 PM Markus Wanner
> <markus.wanner@enterprisedb.com> wrote:
> >
> > On 27.03.21 07:37, Amit Kapila wrote:
> > > Isn't it better to send prepare from the publisher in such a case so
> > > that subscribers can know about it when rollback prepared arrives?
>
> Nice catch, Markus.
Interesting suggestion Amit. Let me try and code this.

regards,
Ajin Cherian
Fujitsu Australia

Commits

  1. Avoid sending prepare multiple times while decoding.

  2. Ensure to send a prepare after we detect concurrent abort during decoding.