mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-22 22:11:29 +08:00
Make views test more deterministic
This commit is contained in:
parent
bf15cfec24
commit
b7f32f2a79
@ -66,13 +66,13 @@ SELECT * FROM timescaledb_information.hypertable;
|
|||||||
(4 rows)
|
(4 rows)
|
||||||
|
|
||||||
\c single :ROLE_DEFAULT_PERM_USER
|
\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
|
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 | 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
|
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)
|
(4 rows)
|
||||||
|
|
||||||
-- filter by schema
|
-- filter by schema
|
||||||
@ -90,10 +90,10 @@ SELECT * FROM timescaledb_information.hypertable WHERE table_name = 'ht1';
|
|||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
-- filter by owner
|
-- 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
|
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 | | | |
|
closed | closed_ht | super_user | 1 | 1 | | | |
|
||||||
|
open | open_ht | super_user | 1 | 3 | 24 kB | 48 kB | | 72 kB
|
||||||
(2 rows)
|
(2 rows)
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ INSERT INTO closed.closed_ht SELECT '2000-01-01'::TIMESTAMPTZ;
|
|||||||
SELECT * FROM timescaledb_information.hypertable;
|
SELECT * FROM timescaledb_information.hypertable;
|
||||||
|
|
||||||
\c single :ROLE_DEFAULT_PERM_USER
|
\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
|
-- filter by schema
|
||||||
SELECT * FROM timescaledb_information.hypertable WHERE table_schema = 'closed';
|
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';
|
SELECT * FROM timescaledb_information.hypertable WHERE table_name = 'ht1';
|
||||||
|
|
||||||
-- filter by owner
|
-- 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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user