Re: Stabilize and shorten test_checksums/013_rewind test - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: Stabilize and shorten test_checksums/013_rewind test
Date
Msg-id F888A261-0717-46CD-94FE-B6B0FC933A0B@yesql.se
Whole thread
In response to Re: Stabilize and shorten test_checksums/013_rewind test  (Nazir Bilal Yavuz <byavuz81@gmail.com>)
List pgsql-hackers
> On 28 Sep 2026, at 14:49, Nazir Bilal Yavuz <byavuz81@gmail.com> wrote:
>
> Hi,
>
> On Mon, 28 Sept 2026 at 12:46, Daniel Gustafsson <daniel@yesql.se> wrote:
>>
>> I've been looking at this patch and have tested it extensively both on local
>> hardware and CI instances.  Copilot review pointed out one thing which I think
>> is accurate (though unlikely to happen), if the START WAL LOCATION and
>> CHECKPOINT LOCATION straddle segments then the test would fail.  Extracting the
>> WAL filename from $shutdown_ckpt is the safer option.  That fix and some commit
>> message tweaking are the only changes in the attached v4.
>
> Thanks, v4 LGTM.
>
> There is one more issue found by an LLM: the checkpoint record itself
> can straddle two WAL segments. However, I think this is a very rare
> corner case and might not be worth fixing.

Thanks.  I'll add a comment explaining this in the test to make sure we keep it
in mind should we need it.

--
Daniel Gustafsson




pgsql-hackers by date:

Previous
From: Nazir Bilal Yavuz
Date:
Subject: Re: Stabilize and shorten test_checksums/013_rewind test
Next
From: Andrew Dunstan
Date:
Subject: Re: Allow table AMs to define their own reloptions