Adds follower ddl propagation

pull/7563/head
gurkanindibay 2024-03-25 13:16:41 +03:00
parent c049b5159f
commit 35c808e120
2 changed files with 37 additions and 0 deletions

View File

@ -22,6 +22,30 @@ SELECT pg_reload_conf();
t
(1 row)
\c - - - :follower_master_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
pg_reload_conf
---------------------------------------------------------------------
t
(1 row)
\c - - - :follower_worker_1_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
pg_reload_conf
---------------------------------------------------------------------
t
(1 row)
\c - - - :follower_worker_2_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
pg_reload_conf
---------------------------------------------------------------------
t
(1 row)
\c - - - :follower_master_port
CREATE TABLE tab (a int);
ERROR: cannot execute CREATE TABLE in a read-only transaction

View File

@ -10,6 +10,19 @@ SELECT pg_reload_conf();
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
\c - - - :follower_master_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
\c - - - :follower_worker_1_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
\c - - - :follower_worker_2_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
\c - - - :follower_master_port
CREATE TABLE tab (a int);
\c - - - :follower_worker_1_port