From b0e406a4785e6726fd5db63694ae70cbf49f40a5 Mon Sep 17 00:00:00 2001 From: Jelte Fennema Date: Wed, 16 Mar 2022 15:12:20 +0100 Subject: [PATCH] Disable ddl propagation when creating users in arbitrary config tests (#5814) This should help with failing enterprise tests. --- src/test/regress/citus_tests/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/regress/citus_tests/common.py b/src/test/regress/citus_tests/common.py index c6e551fa1..73d6183af 100644 --- a/src/test/regress/citus_tests/common.py +++ b/src/test/regress/citus_tests/common.py @@ -64,11 +64,11 @@ def add_settings(abs_data_path, settings): def create_role(pg_path, node_ports, user_name): def create(port): - command = "SELECT worker_create_or_alter_role('{}', 'CREATE ROLE {} WITH LOGIN CREATEROLE CREATEDB;', NULL)".format( + command = "SET citus.enable_ddl_propagation TO OFF; SELECT worker_create_or_alter_role('{}', 'CREATE ROLE {} WITH LOGIN CREATEROLE CREATEDB;', NULL)".format( user_name, user_name ) utils.psql(pg_path, port, command) - command = "GRANT CREATE ON DATABASE postgres to {}".format(user_name) + command = "SET citus.enable_ddl_propagation TO OFF; GRANT CREATE ON DATABASE postgres to {}".format(user_name) utils.psql(pg_path, port, command) parallel_run(create, node_ports)