diff --git a/src/test/regress/expected/create_drop_database_propagation.out b/src/test/regress/expected/create_drop_database_propagation.out index 993abee1d..ac3b9a1c2 100644 --- a/src/test/regress/expected/create_drop_database_propagation.out +++ b/src/test/regress/expected/create_drop_database_propagation.out @@ -548,7 +548,7 @@ select 1 from citus_remove_node('localhost', :worker_2_port); (1 row) CREATE DATABASE db_role_grants_test; -revoke connect,temp,temporary on database db_role_grants_test from public; +revoke connect,temp,temporary,create on database db_role_grants_test from public; SET citus.log_remote_commands = true; set citus.grep_remote_commands = '%CREATE ROLE%'; CREATE ROLE db_role_grants_test_role_missing_on_node_2; @@ -711,6 +711,7 @@ SELECT result from run_command_on_all_nodes( t (3 rows) +grant connect,temp,temporary,create on database db_role_grants_test to public; DROP DATABASE db_role_grants_test; DROP ROLE db_role_grants_test_role_exists_on_node_2; DROP ROLE db_role_grants_test_role_missing_on_node_2; diff --git a/src/test/regress/sql/create_drop_database_propagation.sql b/src/test/regress/sql/create_drop_database_propagation.sql index c151f4638..5eed4ad24 100644 --- a/src/test/regress/sql/create_drop_database_propagation.sql +++ b/src/test/regress/sql/create_drop_database_propagation.sql @@ -313,7 +313,7 @@ select 1 from citus_remove_node('localhost', :worker_2_port); CREATE DATABASE db_role_grants_test; -revoke connect,temp,temporary on database db_role_grants_test from public; +revoke connect,temp,temporary,create on database db_role_grants_test from public; SET citus.log_remote_commands = true; set citus.grep_remote_commands = '%CREATE ROLE%'; @@ -411,12 +411,15 @@ SELECT result from run_command_on_all_nodes( $$ ) ORDER BY result; +grant connect,temp,temporary,create on database db_role_grants_test to public; DROP DATABASE db_role_grants_test; DROP ROLE db_role_grants_test_role_exists_on_node_2; DROP ROLE db_role_grants_test_role_missing_on_node_2; + + --clean up resources created by this test -- DROP TABLESPACE is not supported, so we need to drop it manually.