PostgreSQL Topic Archive

Indexes PostgreSQL Articles

Index design, index debt, reindexing, constraint indexes, and evidence-driven DDL.

PostgreSQL Index-Only Scans and the Visibility Map
10 min read

An index-only scan is only index-only when the visibility map says the heap page is all-visible. How to read Heap Fetches in EXPLAIN, build covering indexes with INCLUDE, and keep vacuum honest.

MySQL Index Merge vs PostgreSQL Bitmap Scans
9 min read

Both engines can combine multiple single-column indexes to answer one query, but MySQL's index_merge and PostgreSQL's bitmap scans differ in reliability and reach. That difference changes how you design composite indexes after a migration.