Skip to content

Conversation

@Poroma-Banerjee
Copy link
Member

When columns with default values are added to already compressed hypertable, chunks have missing attributes (atthasmissing). VACUUM FULL rewrites tables and materializes these attributes. Detect affected compressed chunks during VACUUM FULL and automatically recompress them to ensure compressed data reflects the new attribute.

Fixes #8091

@github-actions
Copy link

github-actions bot commented Dec 6, 2025

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

Powered by pull-review

@Poroma-Banerjee Poroma-Banerjee force-pushed the tsrecompress branch 2 times, most recently from 91f9a3e to 57bf524 Compare December 6, 2025 05:08
When columns with default values are added to already compressed
hypertable, chunks have missing attributes (atthasmissing).
VACUUM FULL rewrites tables and materializes these attributes. Detect
affected compressed chunks during VACUUM FULL and automatically
recompress them to ensure compressed data reflects the new attribute.

Fixes timescale#8091
@codecov
Copy link

codecov bot commented Dec 6, 2025

Codecov Report

❌ Patch coverage is 97.22222% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 82.58%. Comparing base (399a82d) to head (8d5c33f).

Files with missing lines Patch % Lines
src/process_utility.c 97.22% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9024      +/-   ##
==========================================
+ Coverage   82.50%   82.58%   +0.08%     
==========================================
  Files         246      246              
  Lines       48113    48116       +3     
  Branches    12253    12257       +4     
==========================================
+ Hits        39694    39736      +42     
- Misses       3499     3516      +17     
+ Partials     4920     4864      -56     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

default value of compressed column lost after vacuum full

1 participant