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 73C7E112-D190-4499-8E92-770F1AEB4979@yandex-team.ru
Whole thread Raw
In response to Re: Fix XLogFileReadAnyTLI silently applying divergent WAL from wrong timeline  (Ants Aasma <ants.aasma@cybertec.at>)
Responses Re: Fix XLogFileReadAnyTLI silently applying divergent WAL from wrong timeline
List pgsql-hackers

> On 20 Feb 2026, at 22:53, Ants Aasma <ants.aasma@cybertec.at> wrote:
> 
> I saw something very similar some time ago. [1]

Thanks for the link. Yes, this thread is about the same bug and your
patch is functionally equivalent to what I just proposed.

Basically, it all boils down to simple invariant: "When restoring to
specific timeline we should not take turns to other timelines."


Best regards, Andrey Borodin.



pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: Speed up COPY FROM text/CSV parsing using SIMD
Next
From: Nathan Bossart
Date:
Subject: Re: Discrepancy in --no-tablespaces behavior between Tar and Plain-text formats