We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a247de commit 3188e46Copy full SHA for 3188e46
sql/updates/2.22.0--2.21.3.sql
@@ -228,7 +228,7 @@ SELECT
228
FROM _timescaledb_catalog.hypertable h
229
JOIN pg_index ht_i ON ht_i.indrelid = format('%I.%I',h.schema_name,h.table_name)::regclass
230
JOIN pg_class ht_ci ON ht_ci.oid=ht_i.indexrelid
231
-JOIN _timescaledb_catalog.chunk ch ON ch.hypertable_id=h.id
+JOIN _timescaledb_catalog.chunk ch ON ch.hypertable_id=h.id AND NOT ch.dropped
232
JOIN pg_index ch_i ON
233
ch_i.indrelid=format('%I.%I',ch.schema_name,ch.table_name)::regclass AND
234
ht_i.indnatts = ch_i.indnatts AND
0 commit comments