Mats Kindahl 51745b3553 Add check for dropped chunk on update
If `drop_chunks` has been executed on a hypertable that has a
continuous aggregate defined, the chunks will be removed and marked as
dropped in `_timescaledb_catalog.chunk` but the lines will not be
removed. This will cause problems for the update script since it is
missing a check to only process chunks that are not dropped and will
try to cast the chunk name into a `REGCLASS` for a table that does not
exist.

This commit fixes this by adding a check that the chunk is not dropped
and also fixes the update test to not count dropped chunks when
comparing with the chunk index since the chunk index does not count
dropped chunks.

Fixes #2791
2021-01-13 13:34:36 +01:00
..
2020-11-18 15:26:57 +01:00
2021-01-13 13:34:36 +01:00
2020-11-10 13:48:21 +01:00