aboutsummaryrefslogtreecommitdiff
path: root/src/test/modules/test_rls_hooks/test_rls_hooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/modules/test_rls_hooks/test_rls_hooks.c')
-rw-r--r--src/test/modules/test_rls_hooks/test_rls_hooks.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/modules/test_rls_hooks/test_rls_hooks.c b/src/test/modules/test_rls_hooks/test_rls_hooks.c
index 4f862d081b0..b8e0aa2d0b3 100644
--- a/src/test/modules/test_rls_hooks/test_rls_hooks.c
+++ b/src/test/modules/test_rls_hooks/test_rls_hooks.c
@@ -29,34 +29,17 @@
PG_MODULE_MAGIC;
-/* Saved hook values in case of unload */
-static row_security_policy_hook_type prev_row_security_policy_hook_permissive = NULL;
-static row_security_policy_hook_type prev_row_security_policy_hook_restrictive = NULL;
-
void _PG_init(void);
-void _PG_fini(void);
/* Install hooks */
void
_PG_init(void)
{
- /* Save values for unload */
- prev_row_security_policy_hook_permissive = row_security_policy_hook_permissive;
- prev_row_security_policy_hook_restrictive = row_security_policy_hook_restrictive;
-
/* Set our hooks */
row_security_policy_hook_permissive = test_rls_hooks_permissive;
row_security_policy_hook_restrictive = test_rls_hooks_restrictive;
}
-/* Uninstall hooks */
-void
-_PG_fini(void)
-{
- row_security_policy_hook_permissive = prev_row_security_policy_hook_permissive;
- row_security_policy_hook_restrictive = prev_row_security_policy_hook_restrictive;
-}
-
/*
* Return permissive policies to be added
*/