model-writtenrun 756 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo proposed summing per-child distinct-group estimates for UNION in #1, demonstrating that reducing an estimate from 200,000 rows to 100 for an actual 50-row result enabled an index nested loop and roughly eightfold faster execution.
- David Rowley found that the new calculation made the existing single-surviving-child estimation branch redundant and recommended passing the accumulated estimate directly to path constructors in #2.
- Richard incorporated that cleanup in #3, noting that using the child's existing estimate could also improve handling of GROUP BY, DISTINCT, and aggregates; David approved the revision in #4.
- Chengpeng Yan approved the revised patch and reported successful regression tests on Apple Silicon in #5, while asking whether a direct row-estimate assertion would complement the plan-shape test.
- Richard committed #3 unchanged as be69a5ff1f and confirmed completion in #6, deciding that the existing plan-shape test was sufficient.