Tagged articles
1 articles
Page 1 of 1
ITPUB
ITPUB
Aug 30, 2023 · Databases

Boost PostgreSQL Query Performance with CREATE STATISTICS: Real‑World Examples

PostgreSQL 11+ lets you define custom statistics with CREATE STATISTICS, dramatically improving query plans for large tables and complex predicates, as shown by step‑by‑step examples that cut execution time by up to 300× and illustrate different statistic kinds such as ndistinct and dependencies.

CREATE STATISTICSPostgreSQLextended statistics
0 likes · 8 min read
Boost PostgreSQL Query Performance with CREATE STATISTICS: Real‑World Examples