Re: Extend injection_points_attach() to accept a user-defined function - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Extend injection_points_attach() to accept a user-defined function
Date
Msg-id aRE4akMIV80DFWgc@paquier.xyz
Whole thread Raw
In response to Re: Extend injection_points_attach() to accept a user-defined function  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Extend injection_points_attach() to accept a user-defined function
List pgsql-hackers
On Sun, Nov 09, 2025 at 08:35:55AM +0900, Michael Paquier wrote:
> Yeah.  What you are doing would be enough on simplicity ground.  The
> test added is also fine enough, it's safe to run even under an
> installcheck.  So LGTM to use a minimal implementation.

The patch had a one problem other than style.  Contrary to its
existing cousin, the new function is not strict.  Hence, it would
crash if given a NULL value for the point name, the library name or
the function name.

Fixed all that, adjusted a few comments, then applied the result.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: Some efforts to get rid of "long" in our codebase
Next
From: Michael Paquier
Date:
Subject: Re: isolation tester limitation in case of multiple injection points in a single command