Add InjectionPointList() to retrieve list of injection points
Michael Paquier <michael@paquier.xyz>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/misc/injection_point.c | modified | +46 −0 |
| src/include/utils/injection_point.h | modified | +16 −0 |
| src/tools/pgindent/typedefs.list | modified | +1 −0 |
Discussion
- Persist injection points across server restarts 18 messages · 2025-04-30 → 2025-07-02
- Add pg_get_injection_points() for information of injection points 23 messages · 2025-04-14 → 2025-07-10