model-writtenrun 5444 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Petr Vejsada reported a PostgreSQL 12-to-14 upgrade failure caused by an aggregate using array_append with the old polymorphic types, and described dropping and recreating it as a workaround #1; David G. Johnston explained that this incompatibility was documented and required user intervention #2.
- Justin Pryzby argued that pg_upgrade should detect the incompatibility before starting the upgrade and supplied an initial aggregate check #3.
- Tom Lane supported early detection, proposed regprocedure signatures and OID-based identification of user objects, and requested coverage of aggregate final functions while raising operators and plain functions as additional risks #4; Justin added final-function and operator checks and repaired connection cleanup, but could not reproduce a failing plain-function case #5.
- Robert Haas explained that extensions can install objects in pg_catalog #6, Pavel Stehule confirmed that Orafce did so #7, and Tom Lane reinforced the OID-based approach #8; Justin then adopted the existing hardcoded OID cutoff convention and corrected SQL and naming issues #9.
- Andrey Borodin reviewed diagnostics and unnecessary comments #10, while Justin demonstrated that regprocedure and regoperator already supplied useful object signatures and introduced a version-dependent function list #11.
- Andrey tested the displayed signatures and suggested clearer naming and cleanup #12; Justin renamed the check, removed redundant namespace conditions, verified that similarly named user functions remained allowed, and corrected the old-version guards #13.
- Andrey considered the final patch ready apart from a question about supporting old source versions #14; Justin explained the documented support for upgrades from PostgreSQL 9.2 onward #15, which Andrey accepted #16.
- Tom Lane committed the final attachment #13 as 09878cdd48 with light cosmetic adjustments, credited Justin and Andrey, and backpatched the change to PostgreSQL 14, announcing completion in #17.
- Buildfarm failures prompted Tom Lane's separate correction 08385ed261, which restricted rejection to aggregates with polymorphic transition types and operators with polymorphic left operands; this correction had no attached patchset and was already committed when Michael Paquier reported the failures #18.
- Tom Lane identified the follow-up commit as the expected fix #19, and Michael Paquier confirmed that the buildfarm results were healthy #20, leaving both changes landed with no further patch work pending in the thread.