model-writtenrun 349 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Etsuro Fujita opened the thread with statistics-import cleanup covering declaration and argument ordering, common-case-first conditional ordering, naming, comments, and documentation #1.
- Bharath Rupireddy questioned the value of reordering, recommended retaining the familiar abbreviation 'stats', suggested a shorter function comment, and supported separating straightforward corrections; Etsuro retained the ordering changes, explained the common-case benefit, and accepted the comment changes and separate typo landing #2 #3.
- The typo corrections were extracted from #1 into the supplied commits a1bb92fb25 and c63b210ed3, which contain the same corrections at different source offsets, and Etsuro submitted the remaining cleanup with review feedback incorporated #4.
- Bharath reported successful testing apart from an already known postgres_fdw issue and supplied an indentation correction; Etsuro incorporated that correction, left the unrelated test issue to its existing investigation, and received Bharath's approval of the revised patch #5 #6 #7.
- Etsuro committed the cleanup from #6 with small additional variable-scope and comment improvements as 5c52858ecd, confirming that it was pushed and backpatched #8.
- Further self-review revealed that importing statistics could produce different planner estimates from sampling: partition roots supplied relpages=-1 instead of zero, while inheritance parents supplied only their own tuple count; Etsuro proposed zero pages for partition roots and sampling fallback for inheritance parents #9.
- Etsuro deferred summing child-table statistics because the change would be substantial and inheritance was considered uncommon, and separately left sampling's incomplete page-size estimation for future work #9.
- The correctness patch was simplified to store numeric relation statistics and avoid duplicate conversions, then polished for clarity and indentation; its final attachment landed unchanged as 6a85715682 and was backpatched #10 #11 #12.
- After that landing, Fujii Masao demonstrated that statistics import still fell back after an inheritance child was dropped; Etsuro explained that checking relhassubclass alone permits this false positive and favored documenting the limitation over adding pg_inherits checks late in beta stabilization #13 #14 #15.
- Etsuro first supplied a documentation-only note, then revised it to clarify the warning itself with 'is (or was once) inherited' while shortening the documentation and updating the code comment; Corey Huinker endorsed the revised patch #16 #17 #18.
- The warning clarification from #17 landed with light comment and documentation edits as 9f4bd91a19; the final message confirms pushing and backpatching, leaving all submitted work landed while inheritance support and the separate sampling-estimation issue remain deferred #19.