model-writtenrun 8637 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported that a text literal with COLLATE used as an integer partition bound caused an assertion failure on PostgreSQL 12 and development builds in #1.
- Dmitry Dolgov supplied checks requiring collation presence to agree with whether the partition column type supports collations, together with a regression test, in #2.
- Michael Paquier argued that expression transformation already guaranteed a valid collation OID in #3 and proposed an assertion in #5; Dmitry implemented these simplifications in #4 and #6.
- Michael posted a revised patch in #7, refining comments, moving the test beside other invalid partition expressions, and adding an arithmetic-expression case that reports an error during expression transformation.
- Michael reconsidered the simplification because future relaxation of partition-bound restrictions could permit unresolved collations, explaining in #8 that he restored Dmitry's original checks; c0187869a0 combines that logic with the tests from #7, revised wording, and a new explanatory comment, with a backport to PostgreSQL 12.
- Dmitry acknowledged the completed fix in #9, and the thread ended with no outstanding patch work.