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.83k stars 852 forks source link

Fix segfault in UNION queries with top-level ordering #6957

Closed svenklemm closed 1 month ago

svenklemm commented 1 month ago

We can't just filter the equivalence member based on em_is_child as our hypertable might not be top-level equivalence member.

Fixes #6925

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 81.75%. Comparing base (59f50f2) to head (68d3f9d). Report is 179 commits behind head on main.

Files Patch % Lines
tsl/src/nodes/decompress_chunk/decompress_chunk.c 0.00% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6957 +/- ## ========================================== + Coverage 80.06% 81.75% +1.68% ========================================== Files 190 198 +8 Lines 37181 36847 -334 Branches 9450 9630 +180 ========================================== + Hits 29770 30123 +353 + Misses 2997 2851 -146 + Partials 4414 3873 -541 ```

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

svenklemm commented 1 month ago

Even though this was reported as happening only after upgrade to 2.15.0 earlier versions of timescaledb are affected by this as well.

svenklemm commented 1 month ago

Looks like the codechange leading to this was introduced in 2.14.0