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.
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.
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