| From: | Michael Paquier <michael(at)paquier(dot)xyz> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: injection_points: Add support and tests for runtime arguments |
| Date: | 2025-05-09 22:41:13 |
| Message-ID: | E1uDWP3-000z2z-0F@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
injection_points: Add support and tests for runtime arguments
This commit provides some test coverage for the runtime arguments of
injection points, for both INJECTION_POINT_CACHED() and
INJECTION_POINT(), as extended in 371f2db8b05e.
The SQL functions injection_points_cached() and injection_points_run()
are extended so as it is possible to pass an optional string value to
them.
Reviewed-by: Greg Burd <greg(at)burd(dot)me>
Discussion: https://postgr.es/m/Z_y9TtnXubvYAApS@paquier.xyz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/36e5fda6326045f4523568d4c9d682ee5d2f0867
Modified Files
--------------
.../injection_points/expected/injection_points.out | 45 ++++++++++++++++++++++
.../injection_points/injection_points--1.0.sql | 10 +++--
.../modules/injection_points/injection_points.c | 38 +++++++++++++++---
.../injection_points/sql/injection_points.sql | 10 +++++
4 files changed, 93 insertions(+), 10 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2025-05-10 03:37:30 | pgsql: aio: Use runtime arguments with injections points in tests |
| Previous Message | Michael Paquier | 2025-05-09 21:58:58 | pgsql: Add support for runtime arguments in injection points |