Re: Fix XLogFileReadAnyTLI silently applying divergent WAL from wrong timeline

From: Andrey Borodin <x4mmm(at)yandex-team(dot)ru>
To: Ants Aasma <ants(dot)aasma(at)cybertec(dot)at>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fix XLogFileReadAnyTLI silently applying divergent WAL from wrong timeline
Date: 2026-02-20 18:36:06
Message-ID: 73C7E112-D190-4499-8E92-770F1AEB4979@yandex-team.ru
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 20 Feb 2026, at 22:53, Ants Aasma <ants(dot)aasma(at)cybertec(dot)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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2026-02-20 18:37:45 Re: Discrepancy in --no-tablespaces behavior between Tar and Plain-text formats
Previous Message Nathan Bossart 2026-02-20 18:15:41 Re: Speed up COPY FROM text/CSV parsing using SIMD