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:
Sven Klemm 2022-08-15 10:28:19 +02:00 committed by Sven Klemm
parent 131773a902
commit a6cda9c9f0
2 changed files with 46 additions and 46 deletions

View File

@ -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

View File

@ -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' );