Skip to content
Noteshch-log
AboutSupport
< Back to notes

Browse 2 notes tagged query planner.

#query planner

Do not add an index first: use EXPLAIN, statistics, and ANALYZE to see what PostgreSQL is guessing

PostgreSQL chooses query plans from estimated costs. Compare EXPLAIN estimates with real execution before deciding whether statistics, query design, or an index needs to change.

#PostgreSQL#database#query performance+2
2026-08-31

PostgreSQL 18 Skip Scan: The Leftmost Rule, Revisited

PostgreSQL 18 can reuse a multicolumn B-tree when the leftmost column is not filtered. The win is real, but cardinality and query plans still decide.

#PostgreSQL#database#B-tree+2
2026-08-11
Copyright ©2025-2026 hch-log.com. All rights reserved.
Written by Hung-Chih Hsueh ↗ · g3n-data ↗ · All links ↗
Support on Ko-fiAboutPrivacy Policy

Google services settings

Analytics and advertising stay off until you choose.

En中文