# How a Postgres Lock Convoy Crashed Our AWS RDS Database

Original title: Postgres locks do not scale

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

▲ 5 · by [timetoogo](<https://news.ycombinator.com/user?id=timetoogo>) · 💬 0
[original](<https://www.recall.ai/blog/postgres-locks-do-not-scale>) · [HN discussion](<https://news.ycombinator.com/item?id=48849079>)

## Summary

Our AWS RDS Postgres database suddenly hit 100% system CPU, causing a total outage that a simple reboot couldn't fix. We discovered a massive lock convoy where 15,000 processes waited on a single GIN index extension, triggering a deadlock check storm. By cutting network access and slowly ramping connections, we recovered, revealing how concurrent writes can overwhelm Postgres locks.

## Key quote

> The database spent enormous CPU time repeatedly waking thousands of backends, acquiring global lock-manager partition locks, and proving that no deadlock was possible.

---

## Cite

- Page: https://zeli.app/story/48849079
- Date: 2026-07-09
- Source: recall.ai (https://www.recall.ai/blog/postgres-locks-do-not-scale)
- Hacker News: https://news.ycombinator.com/item?id=48849079

## Other languages

- zh: https://zeli.app/zh/story/48849079 · markdown: https://zeli.app/zh/story/48849079.md
- ja: https://zeli.app/ja/story/48849079 · markdown: https://zeli.app/ja/story/48849079.md
- ko: https://zeli.app/ko/story/48849079 · markdown: https://zeli.app/ko/story/48849079.md
- de: https://zeli.app/de/story/48849079 · markdown: https://zeli.app/de/story/48849079.md
- es: https://zeli.app/es/story/48849079 · markdown: https://zeli.app/es/story/48849079.md
