pull/7436/head
Onur Tirtir 2024-01-24 12:58:59 +03:00
parent 1cb2e1e4e8
commit be243780d9
2 changed files with 20 additions and 0 deletions

View File

@ -71,6 +71,15 @@ SELECT citus_internal.execute_command_on_remote_nodes_as_user($$SELECT 'dangerou
ERROR: operation is not allowed
HINT: Run the command with a superuser.
\c other_db1
SET citus.local_hostname TO '127.0.0.1';
SET ROLE nonsuperuser;
-- Make sure that we don't try to access pg_dist_node.
-- Otherwise, we would get the following error:
-- ERROR: cache lookup failed for pg_dist_node, called too early?
CREATE USER other_db_user9;
ERROR: cache lookup failed for pg_dist_node, called too early?
RESET ROLE;
RESET citus.local_hostname;
SET ROLE nonsuperuser;
CREATE USER other_db_user9;
RESET ROLE;

View File

@ -51,6 +51,17 @@ SET ROLE nonsuperuser;
SELECT citus_internal.execute_command_on_remote_nodes_as_user($$SELECT 'dangerous query'$$, 'postgres');
\c other_db1
SET citus.local_hostname TO '127.0.0.1';
SET ROLE nonsuperuser;
-- Make sure that we don't try to access pg_dist_node.
-- Otherwise, we would get the following error:
-- ERROR: cache lookup failed for pg_dist_node, called too early?
CREATE USER other_db_user9;
RESET ROLE;
RESET citus.local_hostname;
SET ROLE nonsuperuser;
CREATE USER other_db_user9;