# BRIN is 1/4570th the size of a B-tree, until 5% of rows are updated

> Hacker News story 49467402 · language: en · submitted 2026-08-27
> Web version: https://zeli.app/story/49467402
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 14 · by [venkat971](<https://news.ycombinator.com/user?id=venkat971>) · 💬 3
[original](<https://deepsql.ai/blog/the-zonemap-shaped-hole-in-postgres>) · [HN discussion](<https://news.ycombinator.com/item?id=49467402>)

## Summary

A deep dive into PostgreSQL's BRIN index reveals a hidden cliff: updating just 5% of rows in a range-queried table causes a 28x collapse in pruning efficiency, even though pg_stats.correlation still reads a healthy 0.921. The author, a former Oracle Zonemaps co-owner, explains why BRIN degrades so sharply and offers a costly fix via CLUSTER. Includes a reproducible benchmark script.

## Key quote

> One row from January landing in a range full of March rows makes the entire 128-page range match every January predicate forever.

---

## Cite

- Page: https://zeli.app/story/49467402
- Date: 2026-08-27
- Source: deepsql.ai (https://deepsql.ai/blog/the-zonemap-shaped-hole-in-postgres)
- Hacker News: https://news.ycombinator.com/item?id=49467402

## Other languages

- zh: https://zeli.app/zh/story/49467402 · markdown: https://zeli.app/zh/story/49467402.md
