injection_points: Add variant for injection_point_attach()
Michael Paquier <michael@paquier.xyz>
injection_points: Add variant for injection_point_attach() This new function is able to take in input more data than the existing injection_point_attach(): - A library name. - A function name. - Some private data. This gives more flexibility for tests so as these would not need to reinvent a wrapper for InjectionPointAttach() when attaching a callback from a library other than "injection_points". injection_point_detach() can be used with both versions of injection_point_attach(). Author: Rahila Syed <rahilasyed.90@gmail.com> Reviewed-by: Mihail Nikalayeu <mihailnikalayeu@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://postgr.es/m/CAH2L28sOG2b_TKkZU51dy+pWJtny1mqDmeFiFoUASGa0X0iiKQ@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/test/modules/injection_points/expected/injection_points.out | modified | +34 −1 |
| src/test/modules/injection_points/injection_points--1.0.sql | modified | +12 −0 |
| src/test/modules/injection_points/injection_points.c | modified | +41 −0 |
| src/test/modules/injection_points/sql/injection_points.sql | modified | +10 −1 |
Discussion
- Extend injection_points_attach() to accept a user-defined function 10 messages · 2025-10-28 → 2025-11-10