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
17.94k stars 883 forks source link

Don't detoast compressed data on Bump memory context #7462

Closed erimatnor closed 5 days ago

erimatnor commented 6 days ago

PG17 introduced a new Bump allocator for per-tuple memory contexts. Bump doesn't support pfree(), which caused an error when detoasting compressed data on the per-tuple memory context since the detoasting needs to scan some catalog tables.

Make sure Hypercore TAM always detoasts on a temporary memory to fix this issue and add a test for it.

Disable-check: force-changelog-file

codecov[bot] commented 6 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 82.12%. Comparing base (59f50f2) to head (aa6a4df). Report is 609 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #7462 +/- ## ========================================== + Coverage 80.06% 82.12% +2.05% ========================================== Files 190 230 +40 Lines 37181 43095 +5914 Branches 9450 10830 +1380 ========================================== + Hits 29770 35391 +5621 - Misses 2997 3385 +388 + Partials 4414 4319 -95 ```

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


🚨 Try these New Features: