Jul 2021

1 commit
Reduce the number of pallocs when building partition bounds
6 Jul 2021David Rowleymaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #160 of 2 reviewers saw the final version

Applying all four patches from #16 to the commit parent confirms that the commit additionally bulk-allocates RANGE kind arrays in create_range_bounds and partition_bounds_copy, restores pfree(all_bounds), and adds comments and explicit initialization in src/backend/partitioning/partbounds.c. The commit credits Nitin Jadhav, Justin Pryzby, and sender David Rowley as co-authors; David confirms squashing and pushing the series in #19.

  • Justin Pryzbysaw an earlier versiontrailerJustin proposed allocation improvements in #2, examined testing of #7 in #11, and identified missing cleanup in #16 through #17, but the committed version subsequently added bulk kind-array allocation.
  • Zhihong Yusaw an earlier versiontrailerZhihong reviewed the LIST patch in #3, proposing the accepted helper rename and questioning zero-length allocation before withdrawing that concern in #5, with further implementation changes following.

Credits across 1 commit

Author
David Rowley1
Justin Pryzby1
Nitin Jadhav1
Reviewer
Justin Pryzby1
Zhihong Yu1
Committer
David Rowley1