Fix typo in the test and revoke public privileges in the downgrade script.

pull/7450/head
eaydingol 2024-01-24 12:24:08 +00:00
parent 3c6377738b
commit a1abbb6fa4
2 changed files with 2 additions and 1 deletions

View File

@ -21,3 +21,4 @@ DROP FUNCTION citus_internal.mark_object_distributed(
DROP FUNCTION citus_internal.commit_management_command_2pc();
ALTER TABLE pg_catalog.pg_dist_transaction DROP COLUMN outer_xid;
REVOKE USAGE ON SCHEMA citus_internal FROM PUBLIC;

View File

@ -4,5 +4,5 @@ SET ROLE nonsuperuser;
--- The non-superuser role should not be able to access citus_internal functions
SELECT citus_internal.commit_management_command_2pc();
ERROR: permission denied for function commit_management_command_2pc
select citus_internal.replace_isolation_tester_func();
SELECT citus_internal.replace_isolation_tester_func();
ERROR: permission denied for function replace_isolation_tester_func