model-writtenrun 9266 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- David Rowley proposed four string-function cleanup and optimization patches in #1: avoid unnecessary formatting, inline appendStringInfoString to eliminate constant-string length calculations, and add a helper that appends one StringInfo using its stored length.
- Tom Lane supported the straightforward cleanup but questioned the helper's complexity and the code-size cost of inlining in #2; David explained the helper's motivation and reported measurable binary growth in #3.
- Alvaro Herrera examined JSON construction as a possible beneficiary but observed that its calls generally lacked constant strings in #4; David subsequently declined to pursue a compiler-specific macro without stronger justification and proposed direct appendBinaryStringInfo calls in #5.
- David committed the first two cleanup patches from #1 as 8abc13a889, including additional sepgsql conversions, and announced the landing in #6.
- The remaining patch in #6 replaced the proposed wrapper with direct appendBinaryStringInfo calls using known lengths, with xmlconcat identified as a potentially worthwhile performance beneficiary.
- David committed that revision as 1e6a759838, adding two executor call sites, and announced completion in #7.
- After the landing, Dagfinn Ilmari Mannsåker independently suggested a helper to remove repeated data-and-length arguments in #8 and supplied an out-of-line implementation with caller conversions in #9.
- Alvaro pointed back to the earlier rejected proposal in #10, and Dagfinn withdrew his patch in #11; the thread ended with the cleanup and direct known-length optimizations committed, while inlining and the helper remained uncommitted.