Feb 2019

3 commits
Make release of 2PC identifier and locks consistent in COMMIT PREPARED
25 Feb 2019Michael Paquiermaster12beta1REL_19_STABLE12beta1REL_18_STABLE12beta1REL_17_STABLE12beta1REL_16_STABLE12beta1REL_15_STABLE12beta1REL_14_STABLE12beta1REL_13_STABLE12beta1+1 more
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #141 of 2 reviewers saw the final version

Commits the four production-code files from #14, with only comment wording changes in FinishPreparedTransaction(). The recovery tests were split into b108676708, as announced in #16.

  • Masahiko Sawadasaw an earlier versiontrailerIn #11 he identified the overly strict assertion and missing multixact lock handling in #2, after which local locking logic changed.
  • Oleksii Kliukinsaw the final versiontrailerHe stress-tested the initial patch in #9, identified the recovery lock-flag error in #13, and confirmed passing tests for the final patch in #15.
Fix incorrect function reference in comment of twophase.c
22 Feb 2019Michael Paquiermaster12beta1REL_19_STABLE12beta1REL_18_STABLE12beta1REL_17_STABLE12beta1REL_16_STABLE12beta1REL_15_STABLE12beta1REL_14_STABLE12beta1REL_13_STABLE12beta1+1 more
LLM analysis, 100% surewritten from the discussion, no matching patch

The one-line correction to the TwoPhaseGetDummyBackendId comment in src/backend/access/transam/twophase.c is absent from all attached patchsets. Oleksii Kliukin reported it in #13 and supplied the exact inline correction in #15; Michael Paquier confirmed its separate commit in #16.

Add TAP tests for 2PC post-commit callbacks of multixacts at recovery
22 Feb 2019Michael Paquiermaster12beta1REL_19_STABLE12beta1REL_18_STABLE12beta1REL_17_STABLE12beta1REL_16_STABLE12beta1REL_15_STABLE12beta1REL_14_STABLE12beta1REL_13_STABLE12beta1+1 more
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #141 of 1 reviewer saw the final version

Exactly extracts the src/test/recovery/t/009_twophase.pl changes from #14, adding four checks for prepared transactions after hard and soft restarts. In #16, Michael Paquier explicitly said he committed the independently useful test portion first.

  • Oleksii Kliukinsaw the final versiontrailerIn #15 he confirmed that the tests added in #14 passed on his system and that further testing found no issues.

Credits across 3 commits

Author
Michael Paquier2
Reviewer
Oleksii Kliukin2
Masahiko Sawada1
Reported by
Oleksii Kliukin2
Ildar Musin1
Committer
Michael Paquier3