~/talk

PostgreSQL Internals Deep Dive: From Startup to Crash Recovery, Physical Replication and Beyond

Talkat PGConf India 2026 · 2026-03-11..03-13· [databases]
links:none on file
slides:none on file

Server startup runs pg_ctl -> DoStart -> StartPostmaster which forks and checks pg_control and the data directory, loads shared_preload_libraries via pg_init and registers background workers; child processes include checkpointer, bgwriter, WAL writer, autovacuum and new IO workers. Shared buffers use a clock-sweep eviction, max_usage_count=5 with ring buffers for bulk IO. WAL uses 16MB WAL segments and 8KB records, bgwriter flushes every 200ms bgwriter flush interval while checkpoints (default 5m) force full flush; crash recovery replays WAL from last checkpoint and replicas use base backup + libpq replication with a wal_sender/wal_receiver handshake.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 0:51The engine starts
  3. 15:17Data and memory management
  4. 24:27Source of truth WAL
  5. 30:27Death and rebirth crash recovery
  6. 36:13Messy death and reaper
  7. 40:51Sharing is caring physical replication
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.