model-writtenrun 9325 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tomas Vondra opened the thread with an address dataset where frequent, nearly independent combinations crowded correlated city/street combinations out of multivariate MCV lists, and proposed choosing entries by estimation error in #1.
- Dean Rasheed argued for retaining the minimum-count reliability filter and considering frequency-weighted errors in #2; Tomas emphasized the danger of errors spanning orders of magnitude in #3, prompting Dean to favor investigating frequency ratios in #4.
- Tomas submitted two patches in #5: one precomputed per-column frequencies to accelerate MCV construction, while the other ranked eligible combinations by Max(freq/base_freq, base_freq/freq), improving his address example but needing more testing.
- An apparent zero-frequency problem led Dean to identify lossy %f formatting in the inspection function in #6, and Tomas proposed constructing result tuples directly from datums in #7.
- Tomas separately found that relative-error selection could discard previously retained combinations when the statistics target increased, making some estimates worse, and reported this unresolved drawback in #9.
- The inspection-function patch attached in #10 also changed its values output to text[]; despite Tomas's catalog-version concerns in #8, Dean argued that the existing unescaped array-like text was broken and warranted the signature change in #11.
- Tomas retained the signature change and simplified array construction with ArrayBuildState in #13; Dean reviewed it and requested eliminating temporary output-function metadata arrays in #14.
- At the final thread message, Tomas agreed to that cleanup in #15, with the fixes still awaiting commitment and no resolution recorded for the experimental selection algorithm.
- The subsequent commit e365a581c2 landed the performance portion of #5 with allocation and local logic refinements, leaving relative-error selection out.
- The subsequent commit 4d66285adc landed the text[] fix from #13 with Dean's requested lookup cleanup and a catalog-version bump; both committed fixes were backpatched to PostgreSQL 12.