mirror of https://github.com/citusdata/citus.git
Adds follower ddl propagation
parent
c049b5159f
commit
35c808e120
|
@ -22,6 +22,30 @@ SELECT pg_reload_conf();
|
||||||
t
|
t
|
||||||
(1 row)
|
(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
|
\c - - - :follower_master_port
|
||||||
CREATE TABLE tab (a int);
|
CREATE TABLE tab (a int);
|
||||||
ERROR: cannot execute CREATE TABLE in a read-only transaction
|
ERROR: cannot execute CREATE TABLE in a read-only transaction
|
||||||
|
|
|
@ -10,6 +10,19 @@ SELECT pg_reload_conf();
|
||||||
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
|
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
|
||||||
SELECT pg_reload_conf();
|
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
|
\c - - - :follower_master_port
|
||||||
CREATE TABLE tab (a int);
|
CREATE TABLE tab (a int);
|
||||||
\c - - - :follower_worker_1_port
|
\c - - - :follower_worker_1_port
|
||||||
|
|
Loading…
Reference in New Issue