model-writtenrun 9946 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Zhijie Hou reported an assertion failure when an index expression returns a composite type different from its storage key type, and supplied return-type dependency checks, corrected relation OIDs, and hash and GIN regression tests in #1.
- Chao Li reviewed the patch in #2, explained why the incorrect relation OID currently has no effect, questioned the NULL guard, and suggested removing the now-redundant partition-expression return-type check.
- Zhijie Hou retained the NULL guard for consistency with sibling functions and posted #3, simplifying partition checking to pass the entire expression list to the enhanced helper.
- Heikki Linnakangas committed #3 as 3b60740cc2, with comment and commit-message revisions, equivalent conditional cleanup, and a backpatch target of PostgreSQL 15.
- Heikki Linnakangas confirmed completion in #4; the fix was fully committed, while Chao Li's possible dependency-collection optimization remained a separate proposal mentioned in #2.