PostgreSQL without permanent local data storage
summary
Neon runs PostgreSQL without local permanent files by making WAL the canonical source, pushing WAL to 3 safekeepers (Paxos-confirmed) and a page server that indexes pages into S3 so compute nodes can be stateless. The fork adds a redo manager that preserves command IDs and visibility hints, intercepts visibility/free-space writes, and loads pages on demand to cut cold-starts; extension loading via a sidecar reduces image churn versus a 1.2 GB image. Enables scale to zero, instant clones, and works in production though WAL volume, stats persistence and replication‑slot state remain engineering challenges.
AI-written summary · about
chapters (14)
- 0:00Introduction and background
- 1:26Neon’s PostgreSQL service features
- 3:14Local storage dependency challenges
- 7:54PostgreSQL’s persistence model
- 9:23Neon’s redo manager modifications
- 11:08Safekeepers and data persistence
- 12:10Streaming replication issues
- 14:58Replication slot and state problems
- 16:45Future persistent storage solutions
- 18:10Statistics files and vacuum issues
- 21:02Cold start latency and base backups
- 23:12Extension management challenges
- 25:42On-demand extension loading
- 27:30Q&A session
