mirror of https://github.com/citusdata/citus.git
Tests error cause
parent
85963e9cb5
commit
1ab31646d8
|
@ -1,11 +1,3 @@
|
|||
\set create_drop_db_tablespace :abs_srcdir '/tmp_check/ts3'
|
||||
CREATE TABLESPACE create_drop_db_tablespace LOCATION :'create_drop_db_tablespace';
|
||||
\c - - - :worker_1_port
|
||||
\set create_drop_db_tablespace :abs_srcdir '/tmp_check/ts4'
|
||||
CREATE TABLESPACE create_drop_db_tablespace LOCATION :'create_drop_db_tablespace';
|
||||
\c - - - :worker_2_port
|
||||
\set create_drop_db_tablespace :abs_srcdir '/tmp_check/ts5'
|
||||
CREATE TABLESPACE create_drop_db_tablespace LOCATION :'create_drop_db_tablespace';
|
||||
\c - - - :master_port
|
||||
create user create_drop_db_test_user;
|
||||
set citus.enable_create_database_propagation=on;
|
||||
|
@ -16,7 +8,6 @@ CREATE DATABASE mydatabase
|
|||
ENCODING = 'UTF8'
|
||||
LC_COLLATE = 'C'
|
||||
LC_CTYPE = 'C'
|
||||
TABLESPACE = create_drop_db_tablespace
|
||||
ALLOW_CONNECTIONS = true
|
||||
IS_TEMPLATE = false;
|
||||
SELECT pd.datname, pd.encoding,
|
||||
|
@ -29,7 +20,7 @@ join pg_tablespace pt on pd.dattablespace = pt.oid
|
|||
WHERE datname = 'mydatabase';
|
||||
datname | encoding | datistemplate | datallowconn | datconnlimit | datcollate | datctype | datacl | database_owner | database_owner | tablespace
|
||||
---------------------------------------------------------------------
|
||||
mydatabase | 6 | f | t | 10 | C | C | | create_drop_db_test_user | create_drop_db_test_user | create_drop_db_tablespace
|
||||
mydatabase | 6 | f | t | 10 | C | C | | create_drop_db_test_user | create_drop_db_test_user | pg_default
|
||||
(1 row)
|
||||
|
||||
\c - - - :worker_1_port
|
||||
|
@ -43,7 +34,7 @@ join pg_tablespace pt on pd.dattablespace = pt.oid
|
|||
WHERE datname = 'mydatabase';
|
||||
datname | encoding | datistemplate | datallowconn | datconnlimit | datcollate | datctype | datacl | database_owner | database_owner | tablespace
|
||||
---------------------------------------------------------------------
|
||||
mydatabase | 6 | f | t | 10 | C | C | | create_drop_db_test_user | create_drop_db_test_user | create_drop_db_tablespace
|
||||
mydatabase | 6 | f | t | 10 | C | C | | create_drop_db_test_user | create_drop_db_test_user | pg_default
|
||||
(1 row)
|
||||
|
||||
\c - - - :worker_2_port
|
||||
|
@ -57,7 +48,7 @@ join pg_tablespace pt on pd.dattablespace = pt.oid
|
|||
WHERE datname = 'mydatabase';
|
||||
datname | encoding | datistemplate | datallowconn | datconnlimit | datcollate | datctype | datacl | database_owner | database_owner | tablespace
|
||||
---------------------------------------------------------------------
|
||||
mydatabase | 6 | f | t | 10 | C | C | | create_drop_db_test_user | create_drop_db_test_user | create_drop_db_tablespace
|
||||
mydatabase | 6 | f | t | 10 | C | C | | create_drop_db_test_user | create_drop_db_test_user | pg_default
|
||||
(1 row)
|
||||
|
||||
\c - - - :master_port
|
||||
|
@ -101,11 +92,5 @@ WHERE datname = 'mydatabase';
|
|||
---------------------------------------------------------------------
|
||||
(0 rows)
|
||||
|
||||
\c - - - :master_port
|
||||
drop tablespace create_drop_db_tablespace;
|
||||
\c - - - :worker_1_port
|
||||
drop tablespace create_drop_db_tablespace;
|
||||
\c - - - :worker_2_port
|
||||
drop tablespace create_drop_db_tablespace;
|
||||
\c - - - :master_port
|
||||
drop user create_drop_db_test_user;
|
||||
|
|
|
@ -1,16 +1,3 @@
|
|||
|
||||
|
||||
\set create_drop_db_tablespace :abs_srcdir '/tmp_check/ts3'
|
||||
CREATE TABLESPACE create_drop_db_tablespace LOCATION :'create_drop_db_tablespace';
|
||||
|
||||
\c - - - :worker_1_port
|
||||
\set create_drop_db_tablespace :abs_srcdir '/tmp_check/ts4'
|
||||
CREATE TABLESPACE create_drop_db_tablespace LOCATION :'create_drop_db_tablespace';
|
||||
|
||||
\c - - - :worker_2_port
|
||||
\set create_drop_db_tablespace :abs_srcdir '/tmp_check/ts5'
|
||||
CREATE TABLESPACE create_drop_db_tablespace LOCATION :'create_drop_db_tablespace';
|
||||
|
||||
\c - - - :master_port
|
||||
create user create_drop_db_test_user;
|
||||
|
||||
|
@ -23,7 +10,6 @@ CREATE DATABASE mydatabase
|
|||
ENCODING = 'UTF8'
|
||||
LC_COLLATE = 'C'
|
||||
LC_CTYPE = 'C'
|
||||
TABLESPACE = create_drop_db_tablespace
|
||||
ALLOW_CONNECTIONS = true
|
||||
IS_TEMPLATE = false;
|
||||
|
||||
|
@ -92,17 +78,6 @@ JOIN pg_authid pa ON pd.datdba = pa.oid
|
|||
join pg_tablespace pt on pd.dattablespace = pt.oid
|
||||
WHERE datname = 'mydatabase';
|
||||
|
||||
\c - - - :master_port
|
||||
|
||||
drop tablespace create_drop_db_tablespace;
|
||||
|
||||
\c - - - :worker_1_port
|
||||
|
||||
drop tablespace create_drop_db_tablespace;
|
||||
|
||||
\c - - - :worker_2_port
|
||||
|
||||
drop tablespace create_drop_db_tablespace;
|
||||
|
||||
\c - - - :master_port
|
||||
|
||||
|
|
Loading…
Reference in New Issue