model-writtenrun 8698 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Pavel Stehule proposed commontype and commontypearray in #1 so polymorphic functions could accept mixed but compatible argument types, while preserving existing anyelement behavior and providing an independent second family of type variables.
- Tom Lane supported the independent-family design in #2, requested range support and names following the existing any-prefix convention, and questioned why many IsPolymorphicType checks excluded the new types.
- Pavel explored alternative names and parameter-level controls in #3 and #4, then expanded the patch with nonarray and range types and SQL-function support in #6; an enum counterpart was not included.
- The work moved toward PostgreSQL 13 while naming remained unresolved, as discussed in #9 and #11, and Pavel supplied a rebased patch in #13.
- Greg Stark suggested compatible-based names in #14, Tom shortened the proposal to anycompatible and anycompatiblearray in #15, and Pavel adopted the names in #17.
- Dmitry Dolgov reviewed and performance-tested the patch in #18, finding stale comments and inconsistent handling of unknown inputs; Pavel corrected these in #19 and explained why casting to a polymorphic pseudotype would not disambiguate competing overloads.
- After another gap, Tom took over detailed preparation in #20, splitting out pseudotype-I/O cleanup and shared function/aggregate signature validation while revising the feature implementation.
- Pavel objected in #21 and #23 that generalized signature errors obscured the special requirement for an anyrange input when returning anyrange.
- Tom landed the pseudotypes.c portion of #20 as 87c9c2571c, preserving the macro refactoring and rewriting comments to explain each type's I/O requirements.
- Tom supplied revised signature checks with detailed error text in #24, rebased over the landed preparatory work, and Pavel acknowledged the corrected diagnostics in #25.
- Tom accepted the more explicit diagnostics and committed the signature-validation portion of #24 as e6c178b5b7, announcing the landing in #27 and posting the remaining feature patch in #28.
- Tom raised the remaining semantic question in #29: all-unknown anycompatible arguments still failed even though the common-type selection rules otherwise defaulted to text.
- Pavel initially favored consistency with existing polymorphic types and suggested a text overload in #30; their experiments and discussion in #32 and #33 exposed the subtleties of overload selection and the burden of requiring duplicate functions.
- Tom posted the nearly final implementation, expanded documentation and tests, and a separate unknown-to-text delta in #35, recommending that the delta be included.
- Tom committed both attachments from #35 as 24e2885ee3, adding final documentation and regression-test polishing; #36 confirms that unknown inputs resolve to text.
- The thread ends with all three candidate commits landed and Pavel thanking Tom in #37, with no remaining patch or unresolved decision identified.