mirror of https://github.com/citusdata/citus.git
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
-- check that the nodes are all in read-only mode and rejecting write queries
|
|
\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
|
|
\c - - - :follower_worker_1_port
|
|
CREATE TABLE tab (a int);
|
|
ERROR: cannot execute CREATE TABLE in a read-only transaction
|
|
\c - - - :follower_worker_2_port
|
|
CREATE TABLE tab (a int);
|
|
ERROR: cannot execute CREATE TABLE in a read-only transaction
|