Re: Fix XLogFileReadAnyTLI silently applying divergent WAL from wrong timeline - Mailing list pgsql-hackers

From Andrey Borodin
Subject Re: Fix XLogFileReadAnyTLI silently applying divergent WAL from wrong timeline
Date
Msg-id 3238B48C-91CC-4029-AEEB-59AC561A25B0@yandex-team.ru
Whole thread
In response to Fix XLogFileReadAnyTLI silently applying divergent WAL from wrong timeline  (Andrey Borodin <x4mmm@yandex-team.ru>)
List pgsql-hackers
Hi Surya,

On 31 Aug 2026, Surya Poondla wrote:
> Could it be gated on there actually being an older timeline to abandon,
> i.e. only when the eligible entry isn't the last in expectedTLEs?

Thank you for the review.  PFA v4.

I first made "not searching older timelines for WAL segment" a
throttled LOG message.  Looking at the result, however, it reports an
action recovery deliberately does not take.  On reconsideration, it is
better left as a DEBUG1 diagnostic used by the tests.  The tests enable
DEBUG1, while normal recovery logs remain unchanged.  I also separated
xlogfname from path as suggested and renumbered the tests to 057/058.

Thank you!


Best regards, Andrey Borodin.

Attachment

pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: Teach pg_upgrade to deal with invalid databases
Next
From: Corey Huinker
Date:
Subject: Re: Credits For v19