PostgreSQL · Concept
B-tree index
A PostgreSQL B-tree is a sorted, balanced index for data with a defined order. It supports equality, ranges, null checks, some prefix matches, and ordered scans.
Last updated
Syntax
CREATE INDEX [ IF NOT EXISTS ] name ON table [ USING btree ] ( column [ ... ] );In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
CREATE INDEXHash indexesGiST indexesGIN indexesB-tree operator classesB-tree deduplicationBottom-up index deletion