Re: 041_checkpoint_at_promote.pl might fail due to race condition on child kill

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: Alexander Lakhin <exclusion(at)gmail(dot)com>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: 041_checkpoint_at_promote.pl might fail due to race condition on child kill
Date: 2026-10-07 16:46:33
Message-ID: CAHGQGwFvuGE5cJJfTFtaYY855=3pmuiczAd13JvcpTVWnUVgFg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Oct 7, 2026 at 1:00 PM Alexander Lakhin <exclusion(at)gmail(dot)com> wrote:
> It looks like the same race condition was fixed in 022_crash_temp_files.pl
> by e37ad5fa4 two years before 041_checkpoint_at_promote.pl appeared: [2].

I tried creating the patch based on that fix. How about the attached patch?

Regards,

--
Fujii Masao

Attachment Content-Type Size
v1-0001-Fix-crash-restart-race-in-041_checkpoint_at_promo.patch application/octet-stream 2.6 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jacob Champion 2026-10-07 16:58:31 Re: Adding init-po and update-po targets to the meson build system
Previous Message Andrey Borodin 2026-10-07 16:42:42 Re: Compression of bigger WAL records