Sep 2023

4 commits
Remove open-coded binary heap in pg_dump_sort.c.
20 Sep 2023Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #300 of 1 reviewer saw the final version

The complete pg_dump_sort.c replacement patch in #30 supplies this commit. The committed version corrects comment wording and replaces int_cmp's subtraction with explicit less-than and greater-than comparisons returning -1, 1, or 0.

  • Tom Lanesaw an earlier versiontrailerIn #26, Tom endorsed the heap replacement in #16 and requested an explicit integer cast, but the subsequent int_cmp logic rewrite is not shown as reviewed by him.
Convert pg_restore's ready_list to a priority queue.
19 Sep 2023Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #300 of 1 reviewer saw the final version

Matches the complete pg_backup_archiver.c conversion in #30, including the corrected pointer indirection and max-heap comparator. The only diff change is wording in the comment describing sequential scanning of the heap.

  • Tom Lanesaw an earlier versiontrailerTom endorsed #16 in #26 and recommended scheduling-order tests after #28 in #29, but the comparator-direction logic was subsequently corrected in #30.
Add function for removing arbitrary nodes in binaryheap.
18 Sep 2023Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surelanded as postedfrom patchset #301 of 1 reviewer saw the final version

The complete node-removal patch in #30 matches the commit after ignoring hunk locations and index metadata. Both add binaryheap_remove_node in src/common/binaryheap.c and the removal, size, and node-access interfaces in src/include/lib/binaryheap.h.

  • Tom Lanesaw the final versiontrailerTom acknowledged examining the initial prototype in #18 and corrected the node-count documentation while endorsing #16 in #26, after which this component received only light changes.
Make binaryheap available to frontend code.
18 Sep 2023Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surelanded as postedfrom patchset #301 of 2 reviewers saw the final version

The complete frontend-support patch in #30 matches the commit after ignoring hunk locations and index metadata. It moves binaryheap.c into src/common, updates both build systems, introduces the conditional bh_node_type typedef, and updates typedefs.list.

  • Tom Lanesaw the final versiontrailerTom proposed separate frontend/backend interfaces in #12, rejected the generic alternative and endorsed #16 with typedef and brace adjustments in #26, and the committed branch subsequently changed only lightly.
  • Alvaro Herrerasaw an earlier versiontrailerAlvaro identified the existing frontend palloc support in #7 and questioned constness and output parameters in #23, but did not review the final conditional-type implementation after the intervening API redesigns.

Credits across 4 commits

Author
Nathan BossartLLM4
Reviewer
Tom Lane4
Alvaro Herrera1
Tested by
Pierre Ducroquet1
Committer
Nathan Bossart4

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