model-writtenrun 9272 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andreas Seltenreich reported a sqlsmith-generated crash in mcv_get_match_bitmap with a scalar-subquery comparison in #1, and Tom Lane identified the invalid assumption that a pseudoconstant must be a Const, plus a possible NULL-constant failure, in #2.
- Tom proposed explicit Var/Const checks in #5, and Tomas Vondra agreed that clause eligibility and evaluation needed consistent checks in #6; Tom also advocated btree opclasses for identifying operator semantics in #7, while Tomas raised concerns about excluding hash-only types in #10.
- Tomas submitted btree interpretation and shared expression-extraction patches in #11, explained that unary operators were already excluded, and raised unresolved NULL and collation questions.
- After inspecting the patches, Tom withdrew the btree requirement for selectivity estimation, found incomplete validation beneath RelabelType, requested a narrower helper name, recommended treating NULL constants as nonmatches, and specified column collations in #12; Tomas accepted those changes and deferred reconsidering operator semantics to PostgreSQL 13 in #13.
- The revised series in #14 replaced the btree experiment with four pieces: column-collation handling, validated Var/Const extraction, safe handling of NULL constants and MCV values, and shared bitmap-update logic.
- The first landing split unused lookup removal out of the collation patch as a4303a078c and committed the expression-extraction patch with comment refinements as e8b6ae2130, both originating in #14.
- The same landing committed the NULL fix with an added OR-clause regression test as e4deae7396 and the bitmap cleanup with macros replacing the submitted helper functions as 7d24f6a490, both from #14.
- Tomas confirmed the initial fixes were committed and resubmitted the remaining collation patch in #15, explaining that collation changes reset MCV statistics and therefore no additional catalog storage was needed; he deferred broader AND/OR regression coverage to the PostgreSQL 13 cycle.
- Reviewing the remainder in #16, Tom supported using varcollid with explanatory comments and discovered that equality evaluation could reverse operands of cross-type operators, recommending one evaluation path and the conventional varonleft name.
- Tomas incorporated those changes into two patches in #17, and Tom approved them in #18; they landed unchanged as e38a55ba46 for operand ordering and a63378a03e for collations.
- Tomas confirmed the final push in #19, leaving all submitted fixes committed, with operator-semantics reconsideration and broader regression coverage deferred.