Fixes missing flag error

grant_database_2pc_onur_1
gurkanindibay 2024-02-20 12:51:54 +03:00
parent ad938fd79f
commit a8fae40417
2 changed files with 3 additions and 6 deletions

View File

@ -58,7 +58,7 @@ test: multi_metadata_attributes
test: multi_read_from_secondaries test: multi_read_from_secondaries
test: grant_on_database_propagation test: grant_on_database_propagation grant_on_database_propagation_from_non_maindb
test: alter_database_propagation test: alter_database_propagation
test: citus_shards test: citus_shards

View File

@ -3,21 +3,16 @@
-- since public role privileges are inherited by new roles/users -- since public role privileges are inherited by new roles/users
set citus.enable_create_database_propagation to on; set citus.enable_create_database_propagation to on;
create database test_2pc_db; create database test_2pc_db;
show citus.main_db; show citus.main_db;
revoke connect,temp,temporary on database test_2pc_db from public; revoke connect,temp,temporary on database test_2pc_db from public;
CREATE SCHEMA grant_on_database_propagation_non_maindb; CREATE SCHEMA grant_on_database_propagation_non_maindb;
SET search_path TO grant_on_database_propagation_non_maindb; SET search_path TO grant_on_database_propagation_non_maindb;
-- test grant/revoke CREATE privilege propagation on database -- test grant/revoke CREATE privilege propagation on database
create user "myuser'_test"; create user "myuser'_test";
\c test_2pc_db - - :master_port \c test_2pc_db - - :master_port
grant create on database test_2pc_db to "myuser'_test"; grant create on database test_2pc_db to "myuser'_test";
@ -248,4 +243,6 @@ drop database test_2pc_db;
set citus.enable_create_database_propagation to off; set citus.enable_create_database_propagation to off;
DROP SCHEMA grant_on_database_propagation_non_maindb CASCADE; DROP SCHEMA grant_on_database_propagation_non_maindb CASCADE;
reset citus.enable_create_database_propagation;
--------------------------------------------------------------------------- ---------------------------------------------------------------------------