model-writtenrun 2578 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo opened the thread with #1, proposing that append relations sum live children's raw tuple counts instead of using filtered row estimates, improving distinct-value estimates; the initial patch lacked a stable plan-change test.
- Tender Wang agreed with the approach in #2 and requested a comment explaining the restriction-selectivity problem, while accepting that a regression test might be difficult.
- Alena Rybakina endorsed the solution in #3 and supplied a test comparing estimated and actual group counts on a partitioned table.
- Richard's updated patch in #4 preserved the implementation, added Tender's requested explanation, and adapted Alena's test into a join-plan regression in inherit.sql; its commit message ruled out backpatching because nobody had reported the issue.
- Richard committed #4 unchanged as fbc0fe9a2e and announced the push in #5, completing the thread's patch work.