5 Times Faster Aggregates | Scaling Postgres 394

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

A roundup of PostgreSQL performance news covering several topics: PostgreSQL 19 will introduce aggregate-before-join optimization yielding up to 5x faster aggregate queries; PostgreSQL 19 also improves COUNT(*) vs COUNT(1) vs COUNT(column) performance with up to 64% gains for NOT NULL columns. Additional topics include using TABLESAMPLE for statistical sampling on large tables (including geospatial data), understanding the new index search count lines in EXPLAIN output introduced in PostgreSQL 18, skip scan behavior and multi-column index ordering strategies, an open-sourced MCP server for generating better PostgreSQL schemas via LLMs, and AI-powered index suggestions from PlanetScale.

16m watch time