Query Planner and Statistics Improvements in PostgreSQL 18
PostgreSQL 18 ships several query planner improvements: better statistics for extended statistics objects, improved cost estimation for parallel queries, and enhanced EXPLAIN output. These changes reduce the gap between estimated and actual row counts.