Re: Add pg_get_injection_points() for information of injection points - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Add pg_get_injection_points() for information of injection points
Date
Msg-id aGd0s0R3rgWcX0YM@paquier.xyz
Whole thread Raw
In response to Re: Add pg_get_injection_points() for information of injection points  (Rahila Syed <rahilasyed90@gmail.com>)
List pgsql-hackers
On Thu, Jul 03, 2025 at 12:14:55PM +0530, Rahila Syed wrote:
>> Now for the second part with the SRF making the injection point
>> information available at SQL level.  The point about adding the new
>> function in the core engine has been sticky, and I'm coming down to
>> the conclusion that I'd still want to make this stuff backpatchable if
>> need be in the future.  So let's just add a new function in the test
>> module injection_points and call it a day.
>
> Do you plan to document this function anywhere where it would be more
> visible to those who might want to use it in their tests?

It's a bit larger than just this function, as we have never exposed
any of the test modules in the docs.  Perhaps we could just add a line
in the section for injection points for this case.  At the end, I
don't want these additions to be an extra documentation burden if one
wants to add more tools, which may be in the scope of a bug fix as
that would just cause extra work.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: A assert failure when initdb with track_commit_timestamp=on
Next
From: Ronan Dunklau
Date:
Subject: Non-blocking archiver process