Part 12 / Topic 1 of 9
ACID, concretely
Four guarantees, each the answer to a specific disaster:
- Atomicity — a transaction's statements land together or not at all. Transfer money, crash halfway: no half-transfer exists. (Part 11's ROLLBACK drills were atomicity in your hands.)
- Consistency — every committed state satisfies the rules: constraints, foreign keys, checks. A transaction that would break one doesn't commit.
- Isolation — concurrent transactions don't see each other's half-done work. How invisible is a dial — sections 4–5.
- Durability — once COMMIT returns, the change survives a crash. Postgres earns this with the write-ahead log you'll open up in Stage 4.
Everyday translation: the database lets you pretend you're alone on a machine that never crashes — and the rest of this part is about where that pretence has edges.
🧪 Quick quiz — answer from memory, then check.
- Which letter promises "no half-finished transfers"?
- What does COMMIT returning actually promise?
Show the answers
- Atomicity.
- Durability — the change is on crash-safe storage (the WAL), not merely in memory.
Done here? The practice set for Part 12 — 6 exercises with solutions — is on the part page.