model-writtenrun 8969 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Manuel Rigger reported an assertion failure when an OR expression referenced three columns but extended statistics covered only two; Dmitry Dolgov reproduced the empty clause-list failure in #1 and #2.
- Daniel Gustafsson proposed an inline early return for an empty clause list in #3, but Tomas Vondra identified the underlying problem in #5: statistics selection counted matching attributes without requiring an entire clause to be covered.
- Dean Rasheed explained that the filtered clauses must still reference at least two attributes and distinguished broader OR support from a backpatchable bugfix in #6; Tomas acknowledged the scope concern in #7.
- Tomas posted two patches in #8: a compact fix selecting statistics from fully covered clauses, and an explicitly unready enhancement estimating OR components with extended statistics; he raised ABI concerns about backpatching the changed function signature.
- Dean considered the signature change acceptable for backpatching and requested removal of redundant parameters and checks, clearer naming, and documentation in #9; Tomas incorporated those changes into the standalone bugfix in #11, leaving multiple-statistics support for separate work.
- Dean reviewed the revised patch in #12, identifying a comment typo and the now-unnecessary clauses_attnums computation, while suggesting that future multiple-statistics support could mark estimated array entries NULL.
- Tomas committed #11 as c676e659b2 with additional OR-clause regression tests and a PostgreSQL 12 backport, announcing the landing in #13.
- At the thread's last message, Tomas acknowledged that he had missed Dean's unused-variable cleanup and promised to fix it in #13; 6d61c3f1cb subsequently removed that computation and was also backported to PostgreSQL 12.
- The broader OR-estimation enhancement from #8 remained uncommitted in this thread, with Tomas deferring more extensive OR tests to that future enhancement in #13.