Re: [HACKERS] logical decoding of two-phase transactions - Mailing list pgsql-hackers

From Andres Freund
Subject Re: [HACKERS] logical decoding of two-phase transactions
Date
Msg-id 20180330190714.ykicf7eqoqhegtrs@alap3.anarazel.de
Whole thread Raw
In response to Re: [HACKERS] logical decoding of two-phase transactions  (Petr Jelinek <petr.jelinek@2ndquadrant.com>)
List pgsql-hackers
Hi,

On 2018-03-30 21:05:29 +0200, Petr Jelinek wrote:
> You mean, if we detect abort in the write callback, set something in the
> context which will make all the future writes noop until it's reset
> again after we yield back to the logical decoding?

Something like that, yea. I *think* doing it via signalling is going to
be a more efficient design than constantly checking, but I've not
thought it fully through.


> That's not the most beautiful design I've seen, but I'd be okay with
> that, it seems like it would solve all the issues we have with this.

Yea, it's not too pretty, but seems pragmatic.

Greetings,

Andres Freund


pgsql-hackers by date:

Previous
From: Petr Jelinek
Date:
Subject: Re: [HACKERS] logical decoding of two-phase transactions
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] pg_serial early wraparound