This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WITH chunks AS ( | |
SELECT | |
ht.schema_name AS hypertable_schema, | |
ht.table_name AS hypertable_name, | |
ck.table_name AS chunk_name | |
FROM _timescaledb_catalog.hypertable ht | |
JOIN _timescaledb_catalog.chunk ck | |
ON ht.id = ck.hypertable_id | |
), |