Skip to content

Commit 3188e46

Browse files
committed
Fix downgrade script for 2.21.3
1 parent 3a247de commit 3188e46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/updates/2.22.0--2.21.3.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ SELECT
228228
FROM _timescaledb_catalog.hypertable h
229229
JOIN pg_index ht_i ON ht_i.indrelid = format('%I.%I',h.schema_name,h.table_name)::regclass
230230
JOIN pg_class ht_ci ON ht_ci.oid=ht_i.indexrelid
231-
JOIN _timescaledb_catalog.chunk ch ON ch.hypertable_id=h.id
231+
JOIN _timescaledb_catalog.chunk ch ON ch.hypertable_id=h.id AND NOT ch.dropped
232232
JOIN pg_index ch_i ON
233233
ch_i.indrelid=format('%I.%I',ch.schema_name,ch.table_name)::regclass AND
234234
ht_i.indnatts = ch_i.indnatts AND

0 commit comments

Comments
 (0)