Turn ddl propagation off in worker on multi_copy

pull/5545/head
Halil Ozan Akgul 2021-12-17 15:26:30 +03:00
parent 695653911a
commit 25755a7094
2 changed files with 4 additions and 0 deletions

View File

@ -572,6 +572,7 @@ SET session_replication_role = DEFAULT;
-- disable test_user on the first worker
\c - :default_user - :worker_1_port
SET citus.enable_object_propagation TO off;
ALTER USER test_user WITH nologin;
\c - test_user - :master_port
@ -605,6 +606,7 @@ SELECT shardid, shardstate, nodename, nodeport
-- re-enable test_user on the first worker
\c - :default_user - :worker_1_port
SET citus.enable_object_propagation TO off;
ALTER USER test_user WITH login;
\c - test_user - :master_port

View File

@ -737,6 +737,7 @@ UPDATE pg_dist_shard_placement SET nodeport = :worker_1_port+10 WHERE shardid =
SET session_replication_role = DEFAULT;
-- disable test_user on the first worker
\c - :default_user - :worker_1_port
SET citus.enable_object_propagation TO off;
ALTER USER test_user WITH nologin;
\c - test_user - :master_port
-- reissue copy, and it should fail
@ -795,6 +796,7 @@ SELECT shardid, shardstate, nodename, nodeport
-- re-enable test_user on the first worker
\c - :default_user - :worker_1_port
SET citus.enable_object_propagation TO off;
ALTER USER test_user WITH login;
\c - test_user - :master_port
DROP TABLE numbers_hash;