Re: injection_points: Switch wait/wakeup to use atomics rather than latches - Mailing list pgsql-hackers

From Andrey Borodin
Subject Re: injection_points: Switch wait/wakeup to use atomics rather than latches
Date
Msg-id 46821C66-E6B2-420D-BB83-E20EF36665B8@yandex-team.ru
Whole thread
In response to Re: injection_points: Switch wait/wakeup to use atomics rather than latches  (Andrey Borodin <x4mmm@yandex-team.ru>)
List pgsql-hackers

> On 30 May 2026, at 13:05, Andrey Borodin <x4mmm@yandex-team.ru> wrote:
> 
> I'll do another pass tomorrow, maybe something else will catch my eye.

I've tried the patch on my old corruption experiments. And it works for me.

I had to switch killing to something like
foreach my $i (1 .. 100)
{
my @alive = grep { kill 0, $_ } @cluster_pids;
last unless @alive;
kill 'KILL', @alive;
usleep(100_000);
}


The shared memory segment must be released before we attempt recovery.
But that's exactly what I wanted anyway. Thank you!


Best regards, Andrey Borodin.



pgsql-hackers by date:

Previous
From: Etsuro Fujita
Date:
Subject: Re: [(known) BUG] DELETE/UPDATE more than one row in partitioned foreign table
Next
From: Ashutosh Bapat
Date:
Subject: Re: (SQL/PGQ) cache lookup failed for label