model-writtenrun 9716 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jean-Marc Voillequin reported that PostgreSQL 11 procedure calls using LEAST or GREATEST on text failed with a collation error, while equivalent function calls succeeded #1.
- Tom Lane reproduced the failure and identified missing assign_expr_collations() processing for CALL arguments #2.
- Peter Eisentraut supplied a patch adding collation assignment in transformCallStmt() and a regression test calling a procedure with a LEAST expression #3.
- Tom Lane accepted the targeted fix and argued that broader cleanup of collation-assignment placement should remain outside this bug fix, especially with PostgreSQL 11.2 approaching #4.
- Peter Eisentraut committed the patch unchanged as cd5afd8175 and confirmed completion in the final message; the broader architectural cleanup remained deferred #5.