Skip to content
masterclass Buddy

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.

Subscribe
  • Block Range Index
  • block range
  • pages_per_range
  • bitmap index scan
  • operator class
  • CREATE INDEX

Source: PostgreSQL: Documentation: 18: 65.5. BRIN Indexes. Checked 2026-11-03.