Content-Length: 338997 | pFad | https://github.com/timescale/timescaledb/pull/7695

6A Block dropping internal compressed chunks with `drop_chunk()` by zilder · Pull Request #7695 · timescale/timescaledb · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block dropping internal compressed chunks with drop_chunk() #7695

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

zilder
Copy link
Contributor

@zilder zilder commented Feb 12, 2025

Follow up on this SDC

Dropping internal compressed chunks is blocked on DDL level (with process utility hook), but is still possible with _timescaledb_functions.drop_chunk function. This patch adds a simple check to prevent that.

Copy link

@erimatnor, @akuzm: please review this pull request.

Powered by pull-review

Copy link

codecov bot commented Feb 12, 2025

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 81.93%. Comparing base (59f50f2) to head (5b6a8ee).
Report is 783 commits behind head on main.

Files with missing lines Patch % Lines
src/chunk.c 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7695      +/-   ##
==========================================
+ Coverage   80.06%   81.93%   +1.86%     
==========================================
  Files         190      247      +57     
  Lines       37181    45425    +8244     
  Branches     9450    11354    +1904     
==========================================
+ Hits        29770    37219    +7449     
- Misses       2997     3741     +744     
- Partials     4414     4465      +51     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zilder zilder force-pushed the zilder/drop_chunk_compressed branch from a47ff5c to ea24f09 Compare February 12, 2025 13:24
@svenklemm svenklemm added this to the v2.18.2 milestone Feb 18, 2025
Dropping internal compressed chunks is blocked on DDL level, but
is still possible with `_timescaledb_functions.drop_chunk` function.
This patch adds a simple check to prevent that.
@zilder zilder force-pushed the zilder/drop_chunk_compressed branch from ea24f09 to 5b6a8ee Compare February 18, 2025 13:19
@zilder zilder merged commit a1b950f into timescale:main Feb 18, 2025
46 of 47 checks passed
@fabriziomello fabriziomello added the force-auto-backport Automatically backport this PR or fix of this issue, even if it's not marked as "bug" label Feb 18, 2025
svenklemm added a commit to svenklemm/timescaledb that referenced this pull request Feb 19, 2025
This release contains performance improvements and bug fixes since
the 2.18.1 release. We recommend that you upgrade at the next
available opportunity.

**Bugfixes**
* timescale#7686 Potential wrong aggregation result when using vectorized aggregation with hash grouping in reverse order
* timescale#7694 Fix ExplainHook breaking call chain
* timescale#7695 Block dropping internal compressed chunks with `drop_chunk()`
* timescale#7711 License error when using hypercore handler
* timescale#7712 Respect other extensions' ExecutorStart hooks

**Thanks**
* @davidmehren and @jflambert for reporting an issue with extension hooks
* @jflambert for reporting a bug with license errors shown in autovacuum
svenklemm added a commit to svenklemm/timescaledb that referenced this pull request Feb 19, 2025
This release contains performance improvements and bug fixes since
the 2.18.1 release. We recommend that you upgrade at the next
available opportunity.

**Bugfixes**
* timescale#7686 Potential wrong aggregation result when using vectorized aggregation with hash grouping in reverse order
* timescale#7694 Fix ExplainHook breaking call chain
* timescale#7695 Block dropping internal compressed chunks with `drop_chunk()`
* timescale#7711 License error when using hypercore handler
* timescale#7712 Respect other extensions' ExecutorStart hooks

**Thanks**
* @davidmehren and @jflambert for reporting an issue with extension hooks
* @jflambert for reporting a bug with license errors shown in autovacuum
@svenklemm svenklemm mentioned this pull request Feb 19, 2025
svenklemm added a commit to svenklemm/timescaledb that referenced this pull request Feb 19, 2025
This release contains performance improvements and bug fixes since
the 2.18.1 release. We recommend that you upgrade at the next
available opportunity.

**Bugfixes**
* timescale#7686 Potential wrong aggregation result when using vectorized aggregation with hash grouping in reverse order
* timescale#7694 Fix ExplainHook breaking call chain
* timescale#7695 Block dropping internal compressed chunks with `drop_chunk()`
* timescale#7711 License error when using hypercore handler
* timescale#7712 Respect other extensions' ExecutorStart hooks

**Thanks**
* @davidmehren and @jflambert for reporting an issue with extension hooks
* @jflambert for reporting a bug with license errors shown in autovacuum
svenklemm added a commit that referenced this pull request Feb 19, 2025
This release contains performance improvements and bug fixes since
the 2.18.1 release. We recommend that you upgrade at the next
available opportunity.

**Bugfixes**
* #7686 Potential wrong aggregation result when using vectorized aggregation with hash grouping in reverse order
* #7694 Fix ExplainHook breaking call chain
* #7695 Block dropping internal compressed chunks with `drop_chunk()`
* #7711 License error when using hypercore handler
* #7712 Respect other extensions' ExecutorStart hooks

**Thanks**
* @davidmehren and @jflambert for reporting an issue with extension hooks
* @jflambert for reporting a bug with license errors shown in autovacuum
svenklemm added a commit to svenklemm/timescaledb that referenced this pull request Feb 19, 2025
This release contains performance improvements and bug fixes since
the 2.18.1 release. We recommend that you upgrade at the next
available opportunity.

**Bugfixes**
* timescale#7686 Potential wrong aggregation result when using vectorized aggregation with hash grouping in reverse order
* timescale#7694 Fix ExplainHook breaking call chain
* timescale#7695 Block dropping internal compressed chunks with `drop_chunk()`
* timescale#7711 License error when using hypercore handler
* timescale#7712 Respect other extensions' ExecutorStart hooks

**Thanks**
* @davidmehren and @jflambert for reporting an issue with extension hooks
* @jflambert for reporting a bug with license errors shown in autovacuum
@svenklemm svenklemm mentioned this pull request Feb 19, 2025
svenklemm added a commit that referenced this pull request Feb 19, 2025
This release contains performance improvements and bug fixes since
the 2.18.1 release. We recommend that you upgrade at the next
available opportunity.

**Bugfixes**
* #7686 Potential wrong aggregation result when using vectorized aggregation with hash grouping in reverse order
* #7694 Fix ExplainHook breaking call chain
* #7695 Block dropping internal compressed chunks with `drop_chunk()`
* #7711 License error when using hypercore handler
* #7712 Respect other extensions' ExecutorStart hooks

**Thanks**
* @davidmehren and @jflambert for reporting an issue with extension hooks
* @jflambert for reporting a bug with license errors shown in autovacuum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported-2.18.x force-auto-backport Automatically backport this PR or fix of this issue, even if it's not marked as "bug"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/timescale/timescaledb/pull/7695

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy