model-writtenrun 3734 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Rian McGuire reported that pg_dump emitted CREATE STATISTICS for excluded tables, causing restore errors, and supplied a patch plus a regression test in #1.
- Tom Lane agreed with the bug report but explained that skipping statistics-object creation could prevent dependency tracking, so selection should happen in a separate policy routine #2.
- Tom Lane's replacement retained every statistics object, linked it to its table, and selected it according to schema and table inclusion while preserving extension-membership precedence; it reused Rian McGuire's test verbatim #2.
- The supplied discussion ends with Tom Lane's replacement proposal #2, without a subsequent review or commit announcement.
- On December 29, the replacement landed unchanged as 7418767f11, with both contributors credited and backpatching to supported branches; the other supplied candidate, 69d7edb06f, is its PostgreSQL 12 backport.