model-writtenrun 675 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Chao Li demonstrated that importing foreign-table statistics left cumulative ANALYZE counters unchanged and proposed returning the live-row estimate through an extended FDW callback so core ANALYZE could report it, using zero for unknown dead tuples #1.
- Etsuro Fujita confirmed the bug #2, then supplied a replacement patch that reported statistics inside postgres_fdw to avoid future callback API changes, explaining that the callback should replace all responsibilities of do_analyze_rel(); he also expanded tests to cover empty tables and dead-tuple counts #7.
- Chao Li accepted and integrated Fujita’s approach despite initially preferring core-level reporting #8; Fujita then identified a leftover analyze.c change #9, which Chao removed in the final submission #10.
- Etsuro Fujita committed the final submission #10 as 0021794f4c, with only rebase and blank-line cleanup differences, crediting both contributors and backpatching through PostgreSQL 19 #11.
- The thread ended with Chao Li thanking Fujita for the push, with the fix committed and backpatched and no outstanding work identified #12.