Skip to content

Drop compressed chunks during DROP SCHEMA CASCADE - #10668

Merged
antekresic merged 1 commit into
mainfrom
antekresic/drop_schema_fix
Sep 26, 2026
Merged

antekresic merged 1 commit into
mainfrom
antekresic/drop_schema_fix

Conversation

@antekresic

Copy link
Copy Markdown
Member

Dropping a schema that contains a compressed hypertable misses dropping the compressed chunks because relations cascade on PG side which has no information about the relation between ht chunks and compressed relations. Drop these chunks by mapping the alredy dropped relid using the compression settings.

@antekresic antekresic self-assigned this Sep 25, 2026
@antekresic antekresic added the bug label Sep 25, 2026
@antekresic antekresic added this to the v2.30.2 milestone Sep 25, 2026
@github-actions

Copy link
Copy Markdown

@Poroma-Banerjee, @kpan2034: please review this pull request.

Powered by pull-review

@codecov

codecov Bot commented Sep 25, 2026

Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.

πŸ“’ Thoughts on this report? Let us know!

@antekresic
antekresic force-pushed the antekresic/drop_schema_fix branch from 4db0c19 to c42c7e9 Compare September 26, 2026 16:20
@antekresic
antekresic enabled auto-merge (rebase) September 26, 2026 16:20
Dropping a schema that contains a compressed hypertable
misses dropping the compressed chunks because relations
cascade on PG side which has no information about the
relation between ht chunks and compressed relations.
Drop these chunks by mapping the alredy dropped relid
using the compression settings.
@antekresic
antekresic merged commit e328f49 into main Sep 26, 2026
62 of 65 checks passed
@antekresic
antekresic deleted the antekresic/drop_schema_fix branch September 26, 2026 16:42
@surister surister mentioned this pull request Sep 28, 2026
surister pushed a commit that referenced this pull request Sep 29, 2026
## 2.30.2 (2026-09-29)

This release contains bug fixes since the 2.30.1 release. We recommend that you upgrade at the next available opportunity.

**Bugfixes**
* [#10665](#10665) Fix crash when merging chunks with different column layouts
* [#10668](#10668) Fix `DROP SCHEMA CASCADE` leaving orphaned compressed chunks
* [#10682](#10682) Fix vectorized text comparison ignoring a non-deterministic collation given in the query
* [#10609](#10609) Fix race while updating granular refresh setting for hypertable
* [#10613](#10613) Rename the granular refresh options to `timescaledb.cagg_granular_refresh_*`
* [#10636](#10636) Free the tenant tracker's shared memory when its hypertable is dropped
* [#10585](#10585) Potential crash in `CREATE TABLE AS` query selecting from a compressed hypertable
@timescale-automation timescale-automation added the released-2.30.2 Released in 2.30.2 label Sep 29, 2026
@timescale-automation timescale-automation added the released-2.31.0 Released in 2.31.0 label Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants