Adds additional tests for set tablespace

pull/7253/head
gindibay 2023-10-11 20:40:26 +03:00
parent 80e450b860
commit 7278968365
2 changed files with 21 additions and 4 deletions

View File

@ -156,11 +156,16 @@ NOTICE: issuing ALTER DATABASE regression2 WITH IS_TEMPLATE false;
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
NOTICE: issuing ALTER DATABASE regression2 WITH IS_TEMPLATE false;
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
alter database regression2 set TABLESPACE pg_default;
NOTICE: Citus partially supports ALTER DATABASE SET TABLESPACE for distributed databases
DETAIL: Citus does not propagate ALTER DATABASE SET TABLESPACE command to workers
HINT: You can manually alter a tablespace for a database and its extensions on workers.
\c - - - :worker_1_port
alter database regression2 set TABLESPACE pg_default;
\c - - - :worker_2_port
alter database regression2 set TABLESPACE pg_default;
\c - - - :master_port
alter database regression2 rename to regression3;
NOTICE: issuing ALTER DATABASE regression2 RENAME TO regression3
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
NOTICE: issuing ALTER DATABASE regression2 RENAME TO regression3
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
drop database regression3;
set citus.log_remote_commands = false;
set citus.enable_create_database_propagation=off;

View File

@ -54,6 +54,18 @@ alter database regression2 with CONNECTION LIMIT 100;
alter database regression2 with IS_TEMPLATE true CONNECTION LIMIT 50;
alter database regression2 with IS_TEMPLATE false;
alter database regression2 set TABLESPACE pg_default;
\c - - - :worker_1_port
alter database regression2 set TABLESPACE pg_default;
\c - - - :worker_2_port
alter database regression2 set TABLESPACE pg_default;
\c - - - :master_port
alter database regression2 rename to regression3;
drop database regression3;