Apr 2024

5 commits
Revert indexed and enlargable binary heap implementation.
11 Apr 2024Masahiko Sawadamaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1reverts 4 commits here
LLM analysis, 100% surewritten from the discussion, no matching patch2 of 4 reviewers saw the final version

No attached patch implements this revert; Heikki Linnakangas explicitly requested reverting the binaryheap prerequisites after the pairingheap replacement in #85, and Masahiko Sawada confirmed completion in #91. The diff restores the original binaryheap implementation and caller API.

  • Jeff Davissaw an earlier versionLLM analysis, 98% sureIdentified the indexed heap's API and duplicate-hash-table problems in #70, reviewed the alternatives in #75, and supported reverting its prerequisites in #80 before the final pairingheap patch.
  • Heikki Linnakangassaw the final versionLLM analysis, 97% sureProposed replacing the indexed heap in #77 and explicitly requested the prerequisite reverts alongside his tested replacement in #85.
  • Michael Paquiersaw the final versionLLM analysis, 95% sureRequested reconsideration after feature freeze in #79, agreed that the binaryheap prerequisites were implicated in #81, and reviewed the final replacement in #86.
  • Amit Kapilasaw an earlier versionLLM analysis, 73% sureExpressed agreement during the revert discussion in #83, before the final pairingheap implementation in #85.
Replace binaryheap + index with pairingheap in reorderbuffer.c
11 Apr 2024Masahiko Sawadamaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #853 of 3 reviewers saw the final version

Applying #85 to the commit's parent reproduces the implementation, differing only in the ReorderBufferLargestTXN() comment and removal of the unused binaryheap.h include. The latter cleanup was identified in #87.

  • Michael Paquiersaw the final versiontrailerReviewed the pairingheap patch and raised its header dependencies in #86, prompting the unused-include cleanup.
  • Hayato Kurodasaw the final versiontrailerReviewed allocation context and node lifecycle in #89; the committer explained why those additional changes were omitted in #93.
  • Masahiko Sawadasaw the final versiontrailerQuestioned unconditional heap maintenance in #88, reported benchmark results in #90, and committed the final version.
Improve eviction algorithm in ReorderBuffer using max-heap for many subtransactions.
3 Apr 2024Masahiko Sawadamaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #643 of 4 reviewers saw the final version

Applying the eviction component of #64 to the commit's parent matches the committed files except for an added Assert(largest) after the linear search in ReorderBufferLargestTXN().

  • Amit Kapilasaw the final versiontrailerReviewed overhead and memory usage in #40 and requested final threshold and reset-comment clarifications in #60, after which only light changes followed.
  • Hayato Kurodasaw the final versiontrailerTested earlier versions and declared the rebased series committable in #61, requesting the assertion added before landing.
  • Vignesh Csaw the final versiontrailerSuggested hysteresis in #21, reported regressions in #43, and reviewed transaction-level accounting in the near-final version in #58.
  • Ajin Cheriansaw an earlier versiontrailerReviewed and tested the earlier heap implementation in #29 and #32, before later changes to threshold selection, linear-search fallback, and state tracking.
Add functions to binaryheap for efficient key removal and update.
3 Apr 2024Masahiko Sawadamaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #641 of 4 reviewers saw the final version

Applying the indexed-binaryheap component of #64 to the commit's parent reproduces the committed files except for correcting binaryheaph.h to binaryheap.h in a src/common/binaryheap.c comment.

  • Vignesh Csaw an earlier versiontrailerReviewed typedef registration in #21 and checked existing pg_dump users in #33 and #39, before subsequent index-management and helper refactoring.
  • Peter Smithsaw an earlier versiontrailerReviewed hash caching, index state, replacement logic, and update helpers in #44, #48, and #53, followed by local helper and deletion-logic reworking.
  • Hayato Kurodasaw the final versiontrailerReviewed the indexing API and tested the series in #20 and #28, then declared the near-final series committable in #61.
  • Ajin Cheriansaw an earlier versiontrailerReported review and successful performance testing in #29 and #32, before later changes to hash caching, index-state representation, and update helpers.
Make binaryheap enlargeable.
3 Apr 2024Masahiko Sawadamaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surelanded as postedfrom patchset #641 of 4 reviewers saw the final version

Applying the growable-binaryheap component of #64 to the commit's parent produces byte-identical src/common/binaryheap.c and src/include/lib/binaryheap.h files.

  • Vignesh Csaw an earlier versiontrailerReviewed the allocation change and reported pg_dump performance testing in #33 and #39, before the subsequent node-array deallocation fix.
  • Peter Smithsaw an earlier versiontrailerFound the missing bh_nodes deallocation and requested clearer enlargement documentation in #42, after which the memory-lifetime fix was added.
  • Hayato Kurodasaw the final versiontrailerExamined repalloc and pointer-lifetime concerns in #20 and declared the near-final series committable in #61, leaving only naming and documentation changes.
  • Ajin Cheriansaw an earlier versiontrailerSuggested checking capacity before calling the enlargement helper in #29 and reported further testing in #32, before the later deallocation fix.

Credits across 5 commits

Author
Masahiko SawadaLLM3
Heikki Linnakangas1
Reviewer
Hayato Kuroda (Fujitsu)4
Ajin Cherian3
vignesh C3
Peter Smith2
Amit Kapila1
Masahiko Sawada1
Michael Paquier1
Reported by
Jeff Davis2
Committer
Masahiko Sawada5

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