model-writtenrun 5792 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- James Inform reported that concatenating two array_agg results containing anonymous records worked in PostgreSQL 13 but failed with an ambiguous-operator error in PostgreSQL 14.1 #1; Pavel Stehule connected the regression to array operators adopting anycompatible polymorphic types and explained the increased possibility of ambiguous matches #2 #3.
- Tom Lane considered restricting the operator signatures to anycompatiblenonarray but thought that should be unnecessary #4, then established that ordinary arrays and arrays of named composite types still worked, narrowing the failure to record[] #5.
- Tom Lane found that callers incorrectly assumed select_common_type_from_oids() guaranteed coercibility and posted explicit checks for the anycompatible argument paths #6; record and record[] sharing a type category had allowed incompatible operator candidates to survive.
- Tom Lane's expanded patch added the same validation to IN-expression transformation, allowing fallback to separate comparisons when no common array element type works, and added regression tests #7; this final thread message proposed backpatching the older IN bug alongside the regression fix.
- Tom Lane subsequently committed #7 as 8e2e0f7586, adding only a record-prepending regression test; the complete revised patch landed, with backports through PostgreSQL 13 and no older backpatch of the IN fix because its practical impact was uncertain.