Skip to content

Add lesson 38: Locking#98

Open
exekias wants to merge 1 commit into
mainfrom
lesson/38-locking
Open

Add lesson 38: Locking#98
exekias wants to merge 1 commit into
mainfrom
lesson/38-locking

Conversation

@exekias

@exekias exekias commented Jul 2, 2026

Copy link
Copy Markdown
Member

Adds Locking (roadmap item 02-locking) — the new Module 9: Concurrency.

Summary

Explicit locks in Postgres — SELECT … FOR UPDATE, the read-modify-write pattern, NOWAIT and SKIP LOCKED for job queues, and reading pg_locks.

Check

One query-returns check (transfer-locked) — the learner performs a SELECT FOR UPDATE read-modify-write, verified by the resulting balances.

Verified end-to-end against a non-superuser Postgres 16. npm run lessons:validate (34/34) and next build both pass.

Part of #6

🤖 Generated with Claude Code

Part of #6

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
learn-postgres Ready Ready Preview Jul 2, 2026 3:06pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant