Glossary / BRIN Index

BRIN Index

Practical PostgreSQL glossary entry with a clear definition, example, and benchmarking context.

What Is BRIN Index?

Block Range Index summarizes data blocks and is highly space-efficient. Best suited for large, naturally ordered datasets like logs or timestamps.

Why It Matters for PostgreSQL Performance

In PostgreSQL performance work, BRIN Index affects throughput, latency, or operational reliability depending on workload and configuration.

Practical Benchmarking Context

When benchmarking with pgbench, track how BRIN Index changes behavior across scale factor, client concurrency, and storage conditions.

Use this term together with workload shape, concurrency level, and scale factor when interpreting pgbench outputs. Isolated values can be misleading without full run context.

Example

Use Case: Efficient on time-series data or event logs. Command: CREATE INDEX ON logs USING brin(timestamp);

Related Resources