model-writtenrun 1766 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- David Rowley proposed documenting that partitioned tables require n_distinct_inherited after a bug report exposed confusion about using n_distinct for them #1.
- David G. Johnston challenged the initial wording #2, prompting Rowley to explain that inheritance parents have separate parent-only and children-inclusive statistics, whereas partitioned tables have only the latter, and to expand the patch accordingly #3; Johnston acknowledged the distinction and suggested a shorter explanation #4.
- After a five-month gap, Rowley resumed the work with a shorter explanation and corrections identifying the query planner as the consumer of the override and estimated row count as the basis for fractional estimates #5.
- Johnston proposed further wording and organizational changes #6, while Chao Li supported the revision and requested clearer fractional-value bounds #7; Rowley retained the examples, deferred discussion of null handling, and incorporated clearer bounds while removing redundant planning-time and zero-reset explanations #8 #9.
- Both reviewers noticed unrelated code accidentally included in the attachment #10 #11, and Rowley's final patch removed it while restoring wording close to the original statistics distinction and explicitly adding partitioned tables #12.
- Johnston accepted the final version while retaining a reservation about removing the zero-value explanation #13; Rowley committed that attachment unchanged as 615a0fc2f1, with backports through PostgreSQL 13, and closed the thread by confirming it was pushed #14.