Adds config as seperate file

pull/7563/head
gurkanindibay 2024-03-22 16:22:25 +03:00
parent 1b24b3c5ff
commit 2bb01f9e76
7 changed files with 33 additions and 34 deletions

View File

@ -3,6 +3,7 @@ test: isolation_setup
# tests that change node metadata should precede
# isolation_cluster_management such that tests
# that come later can be parallelized
test: enable_ddl_propagation
test: isolation_cluster_management
test: isolation_move_placement_vs_move_placement

View File

@ -0,0 +1,19 @@
---------------------------------------------------------------------
t
(1 row)
\c - - - :worker_1_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
pg_reload_conf
---------------------------------------------------------------------
t
(1 row)
\c - - - :worker_2_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
pg_reload_conf
---------------------------------------------------------------------
t
(1 row)

View File

@ -1,28 +1,4 @@
-- File to create functions and helpers needed for subsequent tests
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
pg_reload_conf
---------------------------------------------------------------------
t
(1 row)
\c - - - :worker_1_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
pg_reload_conf
---------------------------------------------------------------------
t
(1 row)
\c - - - :worker_2_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
pg_reload_conf
---------------------------------------------------------------------
t
(1 row)
\c - - - :master_port
-- create a helper function to create objects on each node
CREATE OR REPLACE FUNCTION run_command_on_master_and_workers(p_sql text)
RETURNS void LANGUAGE plpgsql AS $$

View File

@ -1,4 +1,5 @@
# import this file (from psql you can use \i) to use mitmproxy manually
test: enable_ddl_propagation
test: failure_test_helpers
# this should only be run by pg_regress_multi, you don't need it

View File

@ -64,6 +64,7 @@ test: alter_database_propagation
test: citus_shards
test: reassign_owned
test: alter_database_from_nonmain_db
test: enable_ddl_propagation
# ----------
# multi_citus_tools tests utility functions written for citus tools

View File

@ -0,0 +1,11 @@
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
\c - - - :worker_1_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
\c - - - :worker_2_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();

View File

@ -1,15 +1,5 @@
-- File to create functions and helpers needed for subsequent tests
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
\c - - - :worker_1_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
\c - - - :worker_2_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
\c - - - :master_port
-- create a helper function to create objects on each node
CREATE OR REPLACE FUNCTION run_command_on_master_and_workers(p_sql text)
RETURNS void LANGUAGE plpgsql AS $$