Skip to content

Backport to 2.29.x: #10339: Fix crash when deleting from compressed cagg source - #10350

Merged
timescale-automation merged 2 commits into
2.29.xfrom
backport/2.29.x/10339
Jul 28, 2026
Merged

Backport to 2.29.x: #10339: Fix crash when deleting from compressed cagg source#10350
timescale-automation merged 2 commits into
2.29.xfrom
backport/2.29.x/10339

Conversation

@timescale-automation

Copy link
Copy Markdown
Member

This is an automated backport of #10339: Fix crash when deleting from compressed cagg source.
The original issue is #10259.
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 crash when deleting from compressed cagg source

Deleting whole batches from a compressed hypertable that has a
continuous aggregate needs the time range of each deleted batch to
record the aggregate invalidation. It read that range from the min and
max metadata of the time column unless the time column is a segmentby
column. When the time column was neither segmentby nor orderby
invalidation for direct batch delete would crash. Add proper error
handling when time column is neither segmentby nor orderby and
automatically add time column to orderby when it gets removed from
segmentby in an ALTER statement.

Fixes #10259

Deleting whole batches from a compressed hypertable that has a
continuous aggregate needs the time range of each deleted batch to
record the aggregate invalidation. It read that range from the min and
max metadata of the time column unless the time column is a segmentby
column. When the time column was neither segmentby nor orderby
invalidation for direct batch delete would crash. Add proper error
handling when time column is neither segmentby nor orderby.

(cherry picked from commit 56f1656)
@codecov

codecov Bot commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@timescale-automation
timescale-automation merged commit f09b7b3 into 2.29.x Jul 28, 2026
58 checks passed
@timescale-automation
timescale-automation deleted the backport/2.29.x/10339 branch July 28, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

is-auto-backport PR created by backport automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants