Reason about transactions
Connect BEGIN, COMMIT, and ROLLBACK to visibility, atomicity, and the boundaries in your application.
Concurrency · Practical field guide
Understand transactions, isolation, and locking through practical examples, so concurrent activity stops feeling mysterious and starts becoming debuggable.
Secure checkout via Digistore24 · Digital delivery
01 / What you'll learn
Build a mental model you can use at the keyboard, during a review, and when production asks a difficult question.
Connect BEGIN, COMMIT, and ROLLBACK to visibility, atomicity, and the boundaries in your application.
Compare read committed, repeatable read, and serializable using the anomalies each level prevents.
Inspect lock activity and waiting sessions, then trace a blocked statement back to its transaction.
Recognize lock-ordering problems and design transactions that are shorter, clearer, and easier to retry.
PostgreSQL in context
Learn to inspect activity without jumping straight to termination. Identify waiting statements, blocking sessions, and the transactions involved.
SELECT blocked.pid,
blocker.pid AS blocking_pid,
blocked.query AS waiting_query
FROM pg_stat_activity blocked
JOIN pg_stat_activity blocker
ON blocker.pid = ANY(pg_blocking_pids(blocked.pid))
WHERE cardinality(pg_blocking_pids(blocked.pid)) > 0;
02 / Inside the manual
Move from core mechanics to practical decisions, with examples that connect the SQL to the reason behind it.
Explore atomic changes, savepoints, visibility, and why transaction scope belongs in application design.
Follow concurrent sessions through row locks, table locks, snapshots, and common isolation anomalies.
Work through blocking and deadlock examples, then apply patterns that reduce lock duration and conflict.
03 / Who it's for
Useful when you know the basics and want to understand what happens next.
A manual to keep within reach
Use the guide as a learning path now and a practical reference later.
The complete collection
Seven focused guides. One goal: help you work with PostgreSQL more deliberately.
04 / Questions, answered
A few useful details about this guide and the purchase process.
It gives you a systematic way to inspect blocking and understand lock behavior. The examples focus on diagnosis and safer transaction design rather than one-off fixes.
This is a digital learning resource. After checkout, Digistore24 provides the access instructions associated with your purchase.
Complete your order through the secure Digistore24 checkout. Delivery and access details are shown during checkout and sent using the email address you provide.
Volume 03 · Concurrency
Get Transactions, Locks & Concurrency and put the examples to work in your next database session.
Get this volumeSecure checkout via Digistore24 · Digital delivery
Checkout is temporarily unavailable. Please try again later.