model-writtenrun 251 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Fujii Masao opened the thread with four concerns: unexpected privileges during statistics import, unsupported COLLATE on old servers, ignored local n_distinct settings, and differing block sizes for relpages; Osama Abdul Qader repeated those concerns in #1 and #2.
- Etsuro Fujita favored falling back to sampling on old servers, documenting rather than overriding remote n_distinct statistics, and retaining remote relpages because it costs remote operations; Corey Huinker supported those choices in #3 and #5.
- Etsuro corrected the assumption that remote syntax errors already triggered sampling and supplied an explicit pre-9.1 fallback plus n_distinct documentation in #6; Corey tested and endorsed it in #7, and it landed with a comment typo corrected as 3ca4abd60c.
- After confirming the push and backpatch, Etsuro explained that loopback regression tests could not exercise older remote versions and deferred a broader cross-version testing framework in #8.
- Fujii then demonstrated a PostgreSQL 11 failure because name was not collatable in #9; Etsuro supplied conditional text casts and corrected a separate version-number typo in #11, Corey endorsed both in #12, and the fix landed with comment edits as bea01b825c.
- Etsuro identified privileges and the relpages explanation as the remaining work in #15, then forwarded Noah Misch's off-list patch and a reproducer showing that privileged ANALYZE could expose otherwise inaccessible remote values in #17.
- Noah's patch in #17 switched to the foreign table owner before importing statistics, restricted operations and search_path, and restored the original execution context afterward; Etsuro separately proposed documenting the existing remote relpages behavior in #18.
- Matheus Alcantara tested Noah's fix against both reported privilege failures and submitted an expanded version with regression tests and FDW callback documentation in #22, leaving Noah's executable changes unchanged.
- Etsuro committed Noah's original privilege patch with a comment wording change as 7d47e41238 and the relpages comment with editorial changes as f25c50fd8f, confirming completion and deferring Matheus's additions in #23 and #24.
- Etsuro recommended extending Matheus's tests and documentation to cover both sampling and import, possibly for PostgreSQL 20, in #25; by #27 he had marked the original open item resolved, with the additional tests and documentation remaining separate improvement work.