From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add InjectionPointList() to retrieve list of injection points
Date: Wed, 02 Jul 2025 23:42:11 +0000
Message-ID: <E1uX75e-004QX6-2p@gemulon.postgresql.org> (raw)
Add InjectionPointList() to retrieve list of injection points
This routine has come as a useful piece to be able to know the list of
injection points currently attached in a system. One area would be to
use it in a set-returning function, or just let out-of-core code play
with it.
This hides the internals of the shared memory array lookup holding the
information about the injection points (point name, library and function
name), allocating the result in a palloc'd List consumable by the
caller.
Reviewed-by: Jeff Davis <pgsql@j-davis.com>
Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Reviewed-by: Rahila Syed <rahilasyed90@gmail.com>
Discussion: https://postgr.es/m/Z_xYkA21KyLEHvWR@paquier.xyz
Discussion: https://postgr.es/m/aBG2rPwl3GE7m1-Q@paquier.xyz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/7b2eb72b1b8ce4279e42848a3978e781ae239355
Modified Files
--------------
src/backend/utils/misc/injection_point.c | 46 ++++++++++++++++++++++++++++++++
src/include/utils/injection_point.h | 16 +++++++++++
src/tools/pgindent/typedefs.list | 1 +
3 files changed, 63 insertions(+)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add InjectionPointList() to retrieve list of injection points
In-Reply-To: <E1uX75e-004QX6-2p@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox