J
jeremy
Video
How pg_stats Column Statistics Drive Planner Cost Estimates in PostgreSQL
PostgreSQL's cost-based query planner does not consult table data when choosing a plan; it consults column-level statistics stored in `pg_statistic` (exposed human-readably through the `pg_stats` vie…