model-writtenrun 720 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jian He reported that statatt_build_stavalues() allocated space for eight arguments while using only three, attached a patch replacing the manual setup with InputFunctionCallSafe(), and proposed extending that cleanup to array_in_safe() #1.
- Michael Paquier confirmed that the over-allocation was harmless and also existed in PostgreSQL 18, and agreed to clean up both functions immediately to keep the development branch and PostgreSQL 19 consistent #2.
- Jian He additionally identified stale elemtypid references in both functions' comments and suggested trailing commas for three enums #3.
- Michael Paquier committed the attached patch with restored string cleanup, the additional array_in_safe() conversion, and corrected comments, with a backport to PostgreSQL 19 #1 efa59a5004.
- Michael Paquier confirmed that he included the comment corrections but declined the enum changes; Corey Huinker subsequently explained that the final enum members were counts that must remain last #4 #5.
- After the cleanup landed, Jian He questioned whether a comment's phrase 'fail the function' meant raising an error or returning false; Corey Huinker confirmed that returning false was intended and suggested rewording the comment, leaving that clarification without a patch or commit in this thread #6 #7.