mirror of https://github.com/citusdata/citus.git
repro
parent
1cb2e1e4e8
commit
be243780d9
|
@ -71,6 +71,15 @@ SELECT citus_internal.execute_command_on_remote_nodes_as_user($$SELECT 'dangerou
|
||||||
ERROR: operation is not allowed
|
ERROR: operation is not allowed
|
||||||
HINT: Run the command with a superuser.
|
HINT: Run the command with a superuser.
|
||||||
\c other_db1
|
\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;
|
SET ROLE nonsuperuser;
|
||||||
CREATE USER other_db_user9;
|
CREATE USER other_db_user9;
|
||||||
RESET ROLE;
|
RESET ROLE;
|
||||||
|
|
|
@ -51,6 +51,17 @@ SET ROLE nonsuperuser;
|
||||||
SELECT citus_internal.execute_command_on_remote_nodes_as_user($$SELECT 'dangerous query'$$, 'postgres');
|
SELECT citus_internal.execute_command_on_remote_nodes_as_user($$SELECT 'dangerous query'$$, 'postgres');
|
||||||
|
|
||||||
\c other_db1
|
\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;
|
SET ROLE nonsuperuser;
|
||||||
CREATE USER other_db_user9;
|
CREATE USER other_db_user9;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue