Jul 2024

1 commit
Use atomics to avoid locking in InjectionPointRun()
15 Jul 2024Heikki Linnakangasmaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1REL_17_STABLE17beta3
LLM analysis, 100% surelanded as postedfrom patchset #131 of 1 reviewer saw the final version

The commit diff exactly matches #13 after excluding index metadata, covering src/backend/utils/misc/injection_point.c and src/tools/pgindent/typedefs.list. Heikki announced the commit in #15.

  • Michael Paquiersaw the final versiontrailerMichael reviewed return values, generation validation, memory barriers and concurrency semantics in #12, then accepted the revised explanation and comments in #14.

Jun 2024

1 commit
Improve locking around InjectionPointRun()
28 Jun 2024Michael Paquiermaster17beta3REL_19_STABLE17beta3REL_18_STABLE17beta3REL_17_STABLE17beta3
LLM analysis, 100% surewritten from the discussion, no matching patch0 of 2 reviewers saw the final version

The commit delays InjectionPointLock release until the callback is cached and removes an unnecessary release before ERROR in src/backend/utils/misc/injection_point.c; no attachment proposes this retained-lock fix. It implements the race discussion in #1, #6 and #7, with the push confirmed in #8.

  • Heikki Linnakangassaw an earlier versionLLM analysis, 97% sureHeikki identified the unsafe access after lock release in #1, prompting this discussion-derived fix before the later atomic redesign in #13.
  • Noah Mischsaw an earlier versionLLM analysis, 97% sureNoah explained that the race could cache another injection point's function and endorsed delaying lock release in #6, before the later atomic redesign in #13.

Credits across 2 commits

Author
Heikki LinnakangasLLM1
Reviewer
Michael Paquier1
Committer
Heikki Linnakangas1
Michael Paquier1

N LLM means N of the credits come from LLM analysis, not from commit trailers.