~/talk

Beginner's guide to PostgreSQL Hacking

Talkat PGConf India 2025 · 2025-03-05..03-07· [databases]
links:none on file
slides:none on file

Shows how to get and build PostgreSQL from source: use git and git worktree to manage versions, configure with debugging flags (enable-debug, enable-depend, --enable-cassert, and -O2 per the slides), then make, make install and run regression/isolation/pg T tests. Recommends starting in SRC and contrib (extensions) to prototype changes, use pg_ctl and attaching gdb to the backend PID to trace execution, and demonstrates where planner, buffer manager, WAL, locking and IPC code actually live.

AI-written summary · about

  1. 0:00Introduction to PostgreSQL hacking
  2. 1:12Why hack PostgreSQL
  3. 8:38Getting PostgreSQL source code
  4. 13:16Source code layout overview
  5. 18:00Building PostgreSQL from source
  6. 22:16Starting PostgreSQL server
  7. 23:40Postmaster lifecycle
  8. 24:21Backend process lifecycle
  9. 25:27Query execution flow
  10. 26:52Data access and storage
  11. 27:58Transaction management
  12. 29:01Buffer and memory management
  13. 31:34Memory context system
  14. 35:03Locking mechanisms in PostgreSQL
  15. 37:29System caches and IPC
  16. 39:15Error handling and debugging
  17. 40:18Tools for PostgreSQL development
  18. 43:31Exploring PostgreSQL source code
  19. 45:00Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.