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 688F6266-3901-4C84-B27A-AF5904801A3A@yandex-team.ru
Whole thread
In response to Re: injection_points: Switch wait/wakeup to use atomics rather than latches  (Michael Paquier <michael@paquier.xyz>)
Responses Re: injection_points: Switch wait/wakeup to use atomics rather than latches
List pgsql-hackers

> On 2 Jun 2026, at 10:27, Michael Paquier <michael@paquier.xyz> wrote:
> 
> Rewording my question a bit: did you consider some options regarding
> what an equivalent of a wait event lookup should look like when we
> don't have a PGPROC?  My idea of printing a LOG and do a server log
> lookup would work, just asking if others have better ideas than the
> only one I got.

For tests without PGPROC we can mmap() inj_state to a fixed file in
PGDATA/injection_points.shm. TAP can poll name[] to detect that a wait
point was reached and bump wait_counts[] to wake.


Best regards, Andrey Borodin.



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Heads Up: cirrus-ci is shutting down June 1st
Next
From: Andrew Dunstan
Date:
Subject: Re: Broken build on macOS (Universal / Intel): cpuid instruction not available