timescale / timescaledb

An open-source time-series SQL database optimized for fast ingest and complex queries. Packaged as a PostgreSQL extension.
https://www.timescale.com/
Other
16.8k stars 852 forks source link

Backport to 2.15.x: #7023: Fix catalog corruption on Continuous Aggregate #7037

Closed timescale-automation closed 1 week ago

timescale-automation commented 2 weeks ago

This is an automated backport of #7023: Fix catalog corruption on Continuous Aggregate. This PR will be merged automatically after all the relevant CI checks pass. If this fix should not be backported, or will be backported manually, just close this PR. You can use the backport branch to add your changes, it won't be modified automatically anymore.

For more details, please see the documentation

Original description

Fix catalog corruption on Continuous Aggregate

Unfortunately the code-path for ALTER TABLE...{RENAME | SET SCHEMA} over a Continuous Aggregate was not handled very well in the process utility hook leading to a catalog corruption because it was not updating properly the internal metadata information.

Fixed it by properly update the catalog information.

Disable-check: force-changelog-file