model-writtenrun 2831 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nicolas Maus reported that enlarging a varchar column with a pg_trgm GiST index specifying siglen crashed PostgreSQL in #1, and Tom Lane traced the failure to CompareOpclassOptions() calling array_eq without FmgrInfo in #2.
- Tender Wang supplied a proof-of-concept fix initializing FmgrInfo in #4, while explicitly questioning whether DEFAULT_COLLATION_OID was appropriate.
- Alexander Korotkov argued that default collation could equate text values with different opclass meanings and proposed whole-array binary comparison with datumIsEqual, adding pg_trgm regression tests in #5.
- Tom Lane rejected whole-array binary comparison because toasted values and differing datum headers could prevent valid matches, recommending C_COLLATION_OID in #6; Alexander adopted that approach in #7, and Tender expressed no objection in #8.
- Tom endorsed the revised approach but requested a failing-comparison test in #9; Alexander explained that existing callers only serialize and reconstruct the same options in #10, so Tom accepted success-path coverage in #11.
- Tom suggested postponing the fix because of the release freeze in #11, and Alexander agreed in #12; Alexander subsequently committed #7 unchanged as db22b90024, with backpatches through PostgreSQL 13.
- The thread ended with the fix landed, but Michael Paquier pointed out in #13 that it had been applied before the release tag and explained that stable branches should remain quiet between the version stamp and release tag.