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 ERROR when acquiring a tuple lock on OSM chunks on replica #7035

Closed zilder closed 1 week ago

zilder commented 2 weeks ago

Planner attempts acquiring a LockTupleKeyShare tuple lock on an OSM chunk's dimension slice which results in an error on replica. This patch fixes the issue by avoiding tuple locking when in recovery mode.

Fix for timescale/Support-Dev-Collab#1847

Disable-check: force-changelog-file

codecov[bot] commented 2 weeks ago

Codecov Report

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

Project coverage is 81.74%. Comparing base (59f50f2) to head (673b7d4). Report is 212 commits behind head on main.

Files Patch % Lines
src/hypertable.c 0.00% 0 Missing and 2 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #7035 +/- ## ========================================== + Coverage 80.06% 81.74% +1.67% ========================================== Files 190 199 +9 Lines 37181 37011 -170 Branches 9450 9676 +226 ========================================== + Hits 29770 30253 +483 + Misses 2997 2859 -138 + Partials 4414 3899 -515 ```

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