timescale / timescaledb

An open-source time-series SQL database optimized for fast ingest and complex queries. Packaged as a PostgreSQL extension.
https://www.timescale.com/
Other
16.8k stars 852 forks source link

Fix column filtering for DML decompression #7065

Closed antekresic closed 6 days ago

antekresic commented 1 week ago

With index scans during INSERT decompression caused by unique constraints, we need to make sure we are using key columns from constraints while building scan keys. This makes the code more flexible for any kind of index found on the chunk by not relying on compression settings.

Disable-check: force-changelog-file

codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 50.00000% with 5 lines in your changes missing coverage. Please review.

Project coverage is 81.79%. Comparing base (59f50f2) to head (8b2180e). Report is 226 commits behind head on main.

Files Patch % Lines
tsl/src/compression/compression.c 50.00% 2 Missing and 3 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #7065 +/- ## ========================================== + Coverage 80.06% 81.79% +1.72% ========================================== Files 190 200 +10 Lines 37181 37292 +111 Branches 9450 9722 +272 ========================================== + Hits 29770 30504 +734 + Misses 2997 2885 -112 + Partials 4414 3903 -511 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.