In PostgreSQL, what does a BRIN index store and when is it most effective?

Advanced SQL Developer Hard

Advanced SQL Developer — Hard

In PostgreSQL, what does a BRIN index store and when is it most effective?

Key points

  • BRIN indexes store min and max values per block range
  • Ideal for naturally ordered large tables like time-series data
  • Enables efficient range scans and filtering
  • Not suitable for high-cardinality equality searches or random-access patterns

Ready to go further?

Related questions