Make views test more deterministic

This commit is contained in:
Amy Tai 2018-12-02 12:31:57 -05:00 committed by amytai
parent bf15cfec24
commit b7f32f2a79
2 changed files with 7 additions and 7 deletions

View File

@ -66,13 +66,13 @@ SELECT * FROM timescaledb_information.hypertable;
(4 rows)
\c single :ROLE_DEFAULT_PERM_USER
SELECT * FROM timescaledb_information.hypertable;
SELECT * FROM timescaledb_information.hypertable ORDER BY table_schema,table_name;
table_schema | table_name | table_owner | num_dimensions | num_chunks | table_size | index_size | toast_size | total_size
--------------+------------+-------------------+----------------+------------+------------+------------+------------+------------
closed | closed_ht | super_user | 1 | 1 | | | |
open | open_ht | super_user | 1 | 3 | 24 kB | 48 kB | | 72 kB
public | ht1 | default_perm_user | 1 | 1 | 8192 bytes | 16 kB | | 24 kB
public | ht2 | default_perm_user | 1 | 1 | 8192 bytes | 16 kB | 8192 bytes | 32 kB
open | open_ht | super_user | 1 | 3 | 24 kB | 48 kB | | 72 kB
closed | closed_ht | super_user | 1 | 1 | | | |
(4 rows)
-- filter by schema
@ -90,10 +90,10 @@ SELECT * FROM timescaledb_information.hypertable WHERE table_name = 'ht1';
(1 row)
-- filter by owner
SELECT * FROM timescaledb_information.hypertable WHERE table_owner = 'super_user';
SELECT * FROM timescaledb_information.hypertable WHERE table_owner = 'super_user' ORDER BY table_schema,table_name;
table_schema | table_name | table_owner | num_dimensions | num_chunks | table_size | index_size | toast_size | total_size
--------------+------------+-------------+----------------+------------+------------+------------+------------+------------
open | open_ht | super_user | 1 | 3 | 24 kB | 48 kB | | 72 kB
closed | closed_ht | super_user | 1 | 1 | | | |
open | open_ht | super_user | 1 | 3 | 24 kB | 48 kB | | 72 kB
(2 rows)

View File

@ -37,7 +37,7 @@ INSERT INTO closed.closed_ht SELECT '2000-01-01'::TIMESTAMPTZ;
SELECT * FROM timescaledb_information.hypertable;
\c single :ROLE_DEFAULT_PERM_USER
SELECT * FROM timescaledb_information.hypertable;
SELECT * FROM timescaledb_information.hypertable ORDER BY table_schema,table_name;
-- filter by schema
SELECT * FROM timescaledb_information.hypertable WHERE table_schema = 'closed';
@ -46,5 +46,5 @@ SELECT * FROM timescaledb_information.hypertable WHERE table_schema = 'closed';
SELECT * FROM timescaledb_information.hypertable WHERE table_name = 'ht1';
-- filter by owner
SELECT * FROM timescaledb_information.hypertable WHERE table_owner = 'super_user';
SELECT * FROM timescaledb_information.hypertable WHERE table_owner = 'super_user' ORDER BY table_schema,table_name;