Guided track

PostgreSQL Deep Internals

6-8 weeks10 modules84 steps

Engineers preparing for engine-level PostgreSQL interviews and self-driven source study, storage, planner, WAL, replication, and how to reason from the official manual plus postgres/postgres source.

Start hereLessons: the engine course (mechanism end-to-end)

Module 9

Replication engine

Physical vs logical paths, slots, conflicts, and rewind, engine view. Failover fencing is HA orchestration (separate lesson), not backend source.

What you will be able to do afterwards

  • Explain MVCC, vacuum/freeze, buffers, and WAL from first principles with source anchors.
  • Walk the query path ANALYZE → statistics → cost-based planner → EXPLAIN, and debug wrong plans from row estimates.
  • Reason about locks, indexes, and streaming/logical replication internals under interview pressure.
  • Study with a fixed loop: manual → cited source → lab/proof → answer the concept out loud before reveal.