PostgreSQL · Concept
BRIN index
A BRIN index stores small summaries for consecutive physical page ranges. It works best when column values follow the table's physical order, helping PostgreSQL skip ranges that cannot match a query.
Last updated
Syntax
CREATE INDEX name ON table USING BRIN ( column ) [ WITH ( pages_per_range = number ) ];In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Block Range Indexblock rangepages_per_rangebitmap index scanoperator classCREATE INDEX