← All handbooks
PG Complete
SQL & PostgreSQL Developer Handbook
A production-focused SQL and PostgreSQL handbook from relational fundamentals and query design through MVCC, indexing, execution plans, WAL, recovery, replication, operations, internals, and staff-level database architecture.
Start handbookSearch any topic with ⌘K / Ctrl K or /
WHAT YOU'LL MASTER
From concepts to production reasoning
The handbook is structured as a learning system, not a collection of disconnected notes.
SQL & modelling
Querying, constraints & schema design
Build strong relational models, write expressive SQL, enforce invariants, and choose data types and constraints deliberately.
Open chapter →Performance
Indexes, EXPLAIN, MVCC & storage
Reason about index design, planner choices, transaction visibility, vacuum, buffers, locks, and production query performance.
Open chapter →Production
WAL, recovery, HA & architecture
Operate PostgreSQL through backups, recovery, replication, security, observability, failure handling, scaling, and architecture trade-offs.
Open chapter →LEARNING PATHOpen the full learning path
Build depth in the right order
01SQL foundations
→02Data modelling
→03Indexes & performance
→04Transactions & MVCC
→05Operations & reliability
→06Internals & architecture
→07Projects & interviews