Cookbook recipe

Isolation levels in plain terms

Applies to PostgreSQL 13–17 Last reviewed May 2026 Grounded in source
Estimated investigation4 min

Scenario

Read Committed, Repeatable Read, Serializable — they sound abstract until a concurrency bug bites. Here is what each actually guarantees. Diagnose it Set the level for a transaction: BEGIN ISOLATION LEVEL REPEATABLE READ; -- ... statements…

Investigation Path

Read Committed, Repeatable Read, Serializable — they sound abstract until a concurrency bug bites. Here is what each actually guarantees.

Diagnose it

Set the level for a transaction:

BEGIN ISOLATION LEVEL REPEATABLE READ;
-- ... statements see one consistent snapshot ...
COMMIT;

Why it happens

Read Committed (default) takes a fresh snapshot per statement, so two reads can differ. Repeatable Read freezes one snapshot for the whole transaction. Serializable adds detection so concurrent transactions behave as if run one at a time.

This is a Pro lesson

Get every Learning Pathway and cookbook recipe — grounded in PostgreSQL source code, with diagnostics, fixes, and prevention for each topic.

Continue this lesson to learn:

  • How to fix it
  • Prevent it next time
  • Related & next steps
  • All 36 Learning Pathway lessons
  • 170+ cookbook recipes
  • Source-grounded diagnostics & fixes

Secure checkout Cancel anytime Source-grounded

Career Impact

This scenario builds production judgment and operational confidence under pressure.

Open Career Dashboard →

Keep going

Related & next steps

Was this helpful?

← All cookbook recipes