Re: Fix archive restore race that could unlink WAL before rename

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Andrey Borodin <x4mmm(at)yandex-team(dot)ru>
Cc: Neil Chen <carpenter(dot)nail(dot)cz(at)gmail(dot)com>, Stepan Neretin <slpmcf(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Fix archive restore race that could unlink WAL before rename
Date: 2026-08-05 23:38:48
Message-ID: anPJiIxl_uU947DJ@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Aug 06, 2026 at 07:16:43AM +0900, Michael Paquier wrote:
> I'll do that, and likely apply the result. Another part is if this
> should be backpatched or not, but I always find these recovery changes
> quite stressing to do in stable branches, so for now I'd tend to just
> do this change on HEAD, also due to the fact that we don't seem to
> have reports about this tiny window being a problem in practice.

I have added a note about the window still existing on WIN32, and
applied the result as 1200dfd60c36 on HEAD. If somebody is interested
in the WIN32 case, feel free.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2026-08-06 00:19:19 Re: Optimize UUID parse using SIMD
Previous Message Peter Geoghegan 2026-08-05 23:33:34 Whole row var issue