Skip to content

Backport to 2.27.x: #9800: Check hypertable ownership before recompression - #9855

Merged
timescale-automation merged 2 commits into
2.27.xfrom
backport/2.27.x/9800
May 19, 2026
Merged

Backport to 2.27.x: #9800: Check hypertable ownership before recompression#9855
timescale-automation merged 2 commits into
2.27.xfrom
backport/2.27.x/9800

Conversation

@timescale-automation

Copy link
Copy Markdown
Member

This is an automated backport of #9800: Check hypertable ownership before recompression.
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

Check hypertable ownership before recompression

The SQL functions for compressing and rebuilding chunks did not
verify that the caller owned the hypertable. The first-time
compression path was protected by a check inside a shared helper,
but the recompression paths skipped it. Any user who could read a
chunk OID from the catalog could trigger a recompression on chunks
owned by someone else.

Add the ownership check at the entry of each affected function.

Disable-check: force-changelog-file

The SQL functions for compressing and rebuilding chunks did not
verify that the caller owned the hypertable. The first-time
compression path was protected by a check inside a shared helper,
but the recompression paths skipped it. Any user who could read a
chunk OID from the catalog could trigger a recompression on chunks
owned by someone else.

Add the ownership check at the entry of each affected function.

(cherry picked from commit c3e42dd)
@codecov

codecov Bot commented May 19, 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 15f5893 into 2.27.x May 19, 2026
48 of 49 checks passed
@timescale-automation
timescale-automation deleted the backport/2.27.x/9800 branch May 19, 2026 06:33
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