mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-28 09:46:44 +08:00
Fix chunk_utils_internal test
Change chunk_utils_internal test to not use oid but instead use the role name. Using the oid can lead to failing tests when oid assignment is different especially when run with regresschecklocal-t.
This commit is contained in:
parent
131773a902
commit
a6cda9c9f0
@ -392,13 +392,13 @@ SELECT * FROM ht_try ORDER BY 1;
|
|||||||
Tue May 05 01:00:00 2020 PDT | 222 | 222
|
Tue May 05 01:00:00 2020 PDT | 222 | 222
|
||||||
(2 rows)
|
(2 rows)
|
||||||
|
|
||||||
SELECT relname, relowner FROM pg_class
|
SELECT relname, relowner::regrole FROM pg_class
|
||||||
WHERE relname in ( select chunk_name FROM timescaledb_information.chunks
|
WHERE relname in ( select chunk_name FROM timescaledb_information.chunks
|
||||||
WHERE hypertable_name = 'ht_try' );
|
WHERE hypertable_name = 'ht_try' );
|
||||||
relname | relowner
|
relname | relowner
|
||||||
------------------+----------
|
------------------+-------------
|
||||||
child_fdw_table | 16392
|
child_fdw_table | test_role_4
|
||||||
_hyper_5_9_chunk | 16392
|
_hyper_5_9_chunk | test_role_4
|
||||||
(2 rows)
|
(2 rows)
|
||||||
|
|
||||||
SELECT inhrelid::regclass
|
SELECT inhrelid::regclass
|
||||||
|
@ -236,7 +236,7 @@ WHERE hypertable_name = 'ht_try' ORDER BY 1;
|
|||||||
|
|
||||||
SELECT * FROM ht_try ORDER BY 1;
|
SELECT * FROM ht_try ORDER BY 1;
|
||||||
|
|
||||||
SELECT relname, relowner FROM pg_class
|
SELECT relname, relowner::regrole FROM pg_class
|
||||||
WHERE relname in ( select chunk_name FROM timescaledb_information.chunks
|
WHERE relname in ( select chunk_name FROM timescaledb_information.chunks
|
||||||
WHERE hypertable_name = 'ht_try' );
|
WHERE hypertable_name = 'ht_try' );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user