model-writtenrun 2663 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tatsuo Ishii proposed caller-sized StringInfo buffers in #1 because allocating roughly 100,000 objects with the fixed 1024-byte default could consume about 98 MB when each buffer needed only about ten bytes.
- Michael Paquier suggested extended APIs with allocation constants and macro wrappers in #2, while David Rowley supported configurable sizes, identified existing callers, and proposed the parameter name initsize in #4; Tatsuo incorporated these ideas and Gurjeet Singh's macro correction from #8 into #9.
- Tatsuo supplied an additional example in #10 converting logical replication's send_feedback to allocate its calculated message size using the new API; this caller conversion was not included in the eventual API commit.
- Gurjeet reported attachment line-ending problems and suggested shorter Ext names, clearer comments, and revised commit wording in #11; Tatsuo retained initsize to distinguish initial allocation from later growth in #12 and posted the revised API patch in #13.
- David questioned the unused small-size constant and macro wrappers and requested documented size bounds in #14, leading Tatsuo to remove the constant and restore ordinary function wrappers in #15.
- Nathan Bossart identified incomplete inlining and proposed shared static inline helpers in #16; after Tatsuo measured about a 1.38% slowdown in #17 and Nathan argued for avoiding extra work on hot paths in #18, Tatsuo adopted the helpers and confirmed elimination of calls other than palloc in #19.
- Nathan found the helper-based version generally reasonable but requested an upper-bound assertion in #20, which Tatsuo added in #21; Nathan then expressed no objections in #22.
- Tatsuo committed #21 unchanged as a9dcbb4d5c and announced completion in #23, leaving the API work landed and the illustrative caller conversion without a recorded landing in this thread.