Re: Remove page-read callback from XLogReaderState. - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Remove page-read callback from XLogReaderState.
Date
Msg-id d722a94e-9fad-1320-be0d-9e9fe4b7ab12@iki.fi
Whole thread Raw
In response to Re: Remove page-read callback from XLogReaderState.  (Craig Ringer <craig@2ndquadrant.com>)
List pgsql-hackers
On 21/01/2020 13:33, Craig Ringer wrote:
> On Tue, 21 Jan 2020 at 18:46, Kyotaro Horiguchi <horikyota.ntt@gmail.com> wrote:
>> It seems to me that it works perfectly, and everything looks good
> 
> I seem to remember some considerable pain in this area when it came to
> timeline switches. Especially with logical decoding and xlog records
> that split across a segment boundary.
> 
> My first attempts at logical decoding timeline following appeared fine
> and passed tests until they were put under extended real world
> workloads, at which point they exploded when they tripped corner cases
> like this.
> 
> I landed up writing ridiculous regression tests to trigger some of
> these behaviours. I don't recall how many of them made it into the
> final patch to core but it's worth a look in the TAP test suite.

Yeah, the timeline switching stuff is complicated. The small 
XLogBeginRead() patch isn't really affected, but it's definitely 
something to watch out for in the callback API patch. If you happen to 
have any extra ridiculous tests still lying around, would be nice to 
look at them.

- Heikki



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Remove page-read callback from XLogReaderState.
Next
From: Vik Fearing
Date:
Subject: Add %x to PROMPT1 and PROMPT2