Skip to content
Opensource internals
  • Posts

Btree

How PostgreSQL Deduplicates B-Tree Entries

Sep 1, 2026 46 min read Jay Hubbert

Every index is a lie about multiplicity. A CREATE INDEX on a boolean column produces a structure in which, logically, there are only two distinct keys — but the index has to be …

PostgresPerformanceBtreeIndexInternals

Read more →

How PostgreSQL Skip Scans B-Tree Indexes

Jul 22, 2026 33 min read Jay Hubbert

A B-tree index on (a, b) is a sorted list of pairs. Sorting by a first means all the rows with a = 1 are contiguous, all the rows with a = 2 are contiguous, and so on — and within …

PostgresPerformanceBtreeIndexInternals

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·