Nov 2022

1 commit
Add repalloc0 and repalloc0_array
12 Nov 2022Peter Eisentrautmaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #211 of 1 reviewer saw the final version

Matches #21 except that src/backend/utils/mmgr/mcxt.c replaces the assertion with an unlikely(oldsize > size) runtime ERROR check, exactly as Tom Lane proposed in #22.

  • Tom Lanesaw the final versiontrailerReviewed argument ordering and size validation in #17 and #18, then reviewed #21 and supplied the exact runtime check adopted in the commit in #22.

Sep 2022

2 commits
Assorted examples of expanded type-safer palloc/pg_malloc API
12 Sep 2022Peter Eisentrautmaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 99% suremodified before commitlight changesfrom patchset #91 of 1 reviewer saw the final version

Preserves the example-conversion patch from #9 and adds seven equivalent allocation-macro conversions: three in src/backend/commands/prepare.c and four in src/backend/tcop/postgres.c.

  • Tom Lanesaw the final versiontrailerReviewed the original proposal in #5 and approved the complete revised series in #11, after which only additional mechanical example conversions were added.
Expand palloc/pg_malloc API for more type safety
12 Sep 2022Peter Eisentrautmaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1REL_15_STABLE15rc1REL_14_STABLE14.6REL_13_STABLE13.9+3 more
LLM analysis, 100% surelanded as postedfrom patchset #91 of 1 reviewer saw the final version

The complete API-definition patch in #9 matches the committed changes in src/include/common/fe_memutils.h and src/include/utils/palloc.h after normalizing whitespace and diff metadata.

  • Tom Lanesaw the final versiontrailerReviewed the original macros and naming in #5, then explicitly approved the revised series and recommended backpatching its API portion in #11.

Credits across 3 commits

Author
Peter EisentrautLLM3
Reviewer
Tom Lane3
Committer
Peter Eisentraut3

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