Jun 2019

2 commits
Avoid spurious deadlocks when upgrading a tuple lock
18 Jun 2019Alvaro Herreramaster12beta3REL_19_STABLE12beta3REL_18_STABLE12beta3REL_17_STABLE12beta3REL_16_STABLE12beta3REL_15_STABLE12beta3REL_14_STABLE12beta3REL_13_STABLE12beta3+4 moreAlso in: pgsql: Avoid spurious deadlocks when upgrading a tuple lock
LLM analysis, 99% suremodified before commitmoderate changesfrom patchset #51 of 1 reviewer saw the final version

Restores the implementation and tests from #5 through the reverted de87a084c0, with skip_tuple_lock moved to function scope and initialized once, plus a four-session savepoint/retry test. The commit also cites follow-up discussion in thread #40773, whose supplied table contains no competing attached patchset.

  • Alvaro Herrerasaw the final versioncommittercommitted the patch
Avoid spurious deadlocks when upgrading a tuple lock
13 Jun 2019Alvaro Herreramaster12beta2REL_19_STABLE12beta2REL_18_STABLE12beta2REL_17_STABLE12beta2REL_16_STABLE12beta2REL_15_STABLE12beta2REL_14_STABLE12beta2REL_13_STABLE12beta2+4 more
LLM analysis, 100% suremodified before commitlight changesfrom patchset #51 of 1 reviewer saw the final version

Retains the heapam.c logic from #5, renames has_current_xid to current_is_member, and edits comments and README.tuplock prose. It renames the isolation test to tuplelock-upgrade-no-deadlock and adds commit-ending permutations without changing the locking approach.

  • Alvaro Herrerasaw the final versioncommittercommitted the patch

Credits across 2 commits

Author
Oleksii Kliukin2
Reviewer
Alvaro Herreracommitter2
Committer
Alvaro Herrera2