model-writtenrun 8947 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tomas Vondra proposed repeatedly selecting applicable multivariate MCV statistics in #1, keeping all MCV processing ahead of functional dependencies because MCV lists carry information about individual values.
- Tomas extracted attribute collection into a helper in #3 and explained in #2 that combining overlapping statistics through conditional probabilities would require a future extension.
- Kyotaro Horiguchi tested and reviewed the helper-based version in #4, requesting regression coverage and questioning naming, repeated computation, and possible double estimation; Tomas accepted several improvements while keeping EXPLAIN support separate in #5.
- Mark Dilger supplied tests in #6 that showed no improvement, then replaced them with constant-comparison tests that demonstrated the patch working in #7; Tomas explained the unsupported column-to-column comparisons in #8 and agreed to incorporate tests in #9.
- Tomas posted a two-patch series in #10, refining the MCV implementation and tests while adding functional-dependency support that selects across all relevant statistics objects, avoiding the weaker-first choices that could result from processing objects individually.
- Mark supplied review annotations as an incremental patch in #11, questioning dependency tie handling and comments and proposing const-qualified parameters; Tomas and Mark clarified those concerns in #12, #13, and #14, although the final patches did not adopt the const qualifiers or the proposed greater-than-or-equal comparison.
- Tom Lane explained existing redundant- and contradictory-clause handling in #15; after further discussion, Tomas kept broader predicate reasoning outside this patch's scope in #17 and #18.
- A change to choose_best_statistics() required rebasing, as Tomas reported in #20; the updated series in #22 retained greedy MCV selection and collective dependency selection, while additional enhancements were deferred to separate patches in #21.
- Mark reviewed the updated series and reported additional partitioned-table and join tests in #23, later clarifying in #25 that those extra tests exercised functional dependencies; Tomas delayed committing until the next commitfest to allow further review in #24.
- The functional-dependency component of #22 landed as aaa6761876 with expanded comments and per-object memory cleanup, and the MCV component landed as eae056c19e with comment improvements.
- Tomas confirmed both changes were committed in #26 and said he omitted Mark's extra tests because their additional runtime did not seem justified, leaving both submitted improvements complete.