> On 26 Feb 2024, at 08:57, Michael Paquier <mich...@paquier.xyz> wrote: > > <v4-0001-injection_points-Add-routines-to-wait-and-wake-pr.patch> Would it be possible to have a helper function to check this: +ok( $node_standby->poll_query_until( + 'postgres', + qq[SELECT count(*) FROM pg_stat_activity + WHERE backend_type = 'checkpointer' AND wait_event = 'CreateRestartPoint' ;], + '1'), + 'checkpointer is waiting in restart point' +) or die "Timed out while waiting for checkpointer to run restart point”; So that we could do something like ok(node_standby->await_injection_point(“CreateRestartPoint”,”checkpointer")); IMO, this could make many tests cleaner. Or, perhaps, it’s a functionality for a future development? Thanks! Best regards, Andrey Borodin.
- Re: Injection points: some tools to wait and wake Michael Paquier
- Re: Injection points: some tools to wait and wake Bertrand Drouvot
- Re: Injection points: some tools to wait and wa... Michael Paquier
- Re: Injection points: some tools to wait an... Michael Paquier
- Re: Injection points: some tools to wai... Bertrand Drouvot
- Re: Injection points: some tools to wai... Michael Paquier
- Re: Injection points: some tools to wai... Bertrand Drouvot
- Re: Injection points: some tools to wai... Michael Paquier
- Re: Injection points: some tools to wai... Bertrand Drouvot
- Re: Injection points: some tools to wai... Michael Paquier
- Re: Injection points: some tools to wai... Andrey M. Borodin
- Re: Injection points: some tools to wai... Michael Paquier
- Re: Injection points: some tools to wai... Andrey M. Borodin
- Re: Injection points: some tools to wai... Bertrand Drouvot
- Re: Injection points: some tools to wai... Andrey M. Borodin
- Re: Injection points: some tools to wai... Bertrand Drouvot
- Re: Injection points: some tools to wai... Michael Paquier
- Re: Injection points: some tools to wai... Andrey M. Borodin
- Re: Injection points: some tools to wai... Michael Paquier
- Re: Injection points: some tools to wai... Bertrand Drouvot
- Re: Injection points: some tools to wai... Michael Paquier