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

Backport to 2.15.x: #7035: Fix ERROR when acquiring a tuple lock on OSM chunks on replica #7082

Closed timescale-automation closed 6 days ago

timescale-automation commented 6 days ago

This is an automated backport of #7035: Fix ERROR when acquiring a tuple lock on OSM chunks on replica. This PR will be merged automatically after all the relevant CI checks pass. If this fix should not be backported, or will be backported manually, just close this PR. You can use the backport branch to add your changes, it won't be modified automatically anymore.

For more details, please see the documentation

Original description

Fix ERROR when acquiring a tuple lock on OSM chunks on replica

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