diff options
Diffstat (limited to 'src/test/modules/injection_points/expected/injection_points.out')
-rw-r--r-- | src/test/modules/injection_points/expected/injection_points.out | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/modules/injection_points/expected/injection_points.out b/src/test/modules/injection_points/expected/injection_points.out index 3d94016ac9c..1341d66c927 100644 --- a/src/test/modules/injection_points/expected/injection_points.out +++ b/src/test/modules/injection_points/expected/injection_points.out @@ -1,4 +1,11 @@ CREATE EXTENSION injection_points; +\getenv libdir PG_LIBDIR +\getenv dlsuffix PG_DLSUFFIX +\set regresslib :libdir '/regress' :dlsuffix +CREATE FUNCTION wait_pid(int) + RETURNS void + AS :'regresslib' + LANGUAGE C STRICT; SELECT injection_points_attach('TestInjectionBooh', 'booh'); ERROR: incorrect action "booh" for injection point creation SELECT injection_points_attach('TestInjectionError', 'error'); @@ -156,8 +163,17 @@ NOTICE: notice triggered for injection point TestConditionLocal2 (1 row) +SELECT pg_backend_pid() AS oldpid \gset -- reload, local injection points should be gone. \c +-- Wait for the previous backend process to exit, ensuring that its local +-- injection points are cleaned up. +SELECT wait_pid(:'oldpid'); + wait_pid +---------- + +(1 row) + SELECT injection_points_run('TestConditionLocal1'); -- nothing injection_points_run ---------------------- @@ -193,3 +209,4 @@ SELECT injection_points_detach('TestConditionLocal1'); (1 row) DROP EXTENSION injection_points; +DROP FUNCTION wait_pid; |