They include distinct counts, most common values, histograms and correlation, visible in pg_stats. Stale or missing statistics lead to bad row estimates and bad plans.
Planner statistics
Per-column summaries that `ANALYZE` stores for the planner.
They include distinct counts, most common values, histograms and correlation, visible in pg_stats. Stale or missing statistics lead to bad row estimates and bad plans.