diff options
author | Michael Paquier <michael@paquier.xyz> | 2024-04-08 09:47:50 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2024-04-08 09:47:50 +0900 |
commit | f587338dec87d3c35b025e131c5977930ac69077 (patch) | |
tree | 1e22b2e03cf17a034da5e62ed4173ec4e6f347a4 /src/interfaces/libpq/fe-secure-openssl.c | |
parent | 705843d294d5d3bc5cce4001596df4df5f1c8b59 (diff) | |
download | postgresql-f587338dec87d3c35b025e131c5977930ac69077.tar.gz postgresql-f587338dec87d3c35b025e131c5977930ac69077.zip |
injection_points: Introduce runtime conditions
This adds a new SQL function injection_points_set_local() that can be
used to force injection points to be run only in the process where they
are attached. This is handy for SQL tests to:
- Detach automatically injection points when the process exits.
- Allow tests with injection points to run concurrently with other test
suites, so as such modules do not have to be marked with
NO_INSTALLCHECK.
Currently, the only condition that can be registered is for a PID.
This could be extended to more kinds later, if required, like database
names/OIDs, roles, or more concepts I did not consider.
Using a single function for SQL scripts is an idea from Heikki
Linnakangas.
Reviewed-by: Andrey Borodin
Discussion: https://postgr.es/m/ZfP7IDs9TvrKe49x@paquier.xyz
Diffstat (limited to 'src/interfaces/libpq/fe-secure-openssl.c')
0 files changed, 0 insertions, 0 deletions