Re: Injection points: some tools to wait and wake - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Injection points: some tools to wait and wake
Date
Msg-id Zd0e8SAwwA4U5UW_@paquier.xyz
Whole thread Raw
In response to Re: Injection points: some tools to wait and wake  ("Andrey M. Borodin" <x4mmm@yandex-team.ru>)
Responses Re: Injection points: some tools to wait and wake
List pgsql-hackers
On Mon, Feb 26, 2024 at 02:10:49PM +0500, Andrey M. Borodin wrote:
> So that we could do something like
>
> ok(node_standby->await_injection_point(“CreateRestartPoint”,”checkpointer"));

It would be more flexible with a full string to describe the test
rather than a process name in the second argument.

> IMO, this could make many tests cleaner.
> Or, perhaps, it’s a functionality for a future development?

This could just happen as separate refactoring, I guess.  But I'd wait
to see if more tests requiring scans to pg_stat_activity pop up.  For
example, the test just posted here does not rely on that:
https://www.postgresql.org/message-id/ZdyZya4YrNapWKqz@ip-10-97-1-34.eu-west-3.compute.internal
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: [PATCH] updates to docs about HOT updates for BRIN
Next
From: Ivan Trofimov
Date:
Subject: Re: libpq: PQfnumber overload for not null-terminated strings