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

From Rahila Syed
Subject Re: Extend injection_points_attach() to accept a user-defined function
Date
Msg-id CAH2L28uHM_b3_g3zr0GiX2+efWjsX1J1f3EWgNaBwnFT9d_EYg@mail.gmail.com
Whole thread Raw
In response to Re: Extend injection_points_attach() to accept a user-defined function  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
Hi,

> How about a simpler injection_points_attach(point_name text, func
> text, module text) with a second SQL function, but a different number
> of arguments?   Using a new hardcoded action for this purpose is
> confusing as your point is to introduce a SQL wrapper on top of
> InjectionPointAttach(), and using input arguments that match with the
> C function is an attractive option.

Thank you for the suggestion.
I agree that having a separate SQL function for this would make the design
easier to understand.

Please find attached a patch that implements this.

Thank you,
Rahila Syed

Attachment

pgsql-hackers by date:

Previous
From: Aleksander Alekseev
Date:
Subject: Re: Add uuid_to_base32hex() and base32hex_to_uuid() built-in functions
Next
From: Álvaro Herrera
Date:
Subject: Re: Bug in pg_stat_statements