The Internals of PostgreSQL interdb.jp · 60 points · 2 comments · HN thread TL;D...
HN Best 200 @best
The Internals of PostgreSQL interdb.jp · 60 points · 2 comments · HN thread
TL;DR This is the index page for Hironobu Suzuki's free online documentation 'The Internals of PostgreSQL', which explains how PostgreSQL's subsystems work across 12 chapters, from process architecture and query processing to WAL and logical replication. The most recent additions are Section 8.5 on asynchronous I/O (28 Jun 2026) and a beta Chapter 12 on logical replication (1 May 2026). The page also carries the author's note that he is looking for PostgreSQL work abroad or remote roles.
- The documentation covers PostgreSQL versions up to 19-beta, excluding the new buffer page lock mechanism.
- It has 12 chapters: database cluster and tables, process and memory architecture, query processing, foreign data wrappers, concurrency control, VACUUM, HOT and index-only scans, buffer manager, WAL, online backup and PITR, streaming replication, and logical replication (beta).
- Section 8.5 on asynchronous I/O was published on 28 June 2026, and Chapter 12 on logical replication was published as a beta on 1 May 2026.
- The material was first published on 26 September 2015, and a Chinese edition appeared in June 2019.
- Some academic papers cite it, and the author says he is a former director of the Japan PostgreSQL Users Group.
- The page ends with the author seeking challenging PostgreSQL work with visa sponsorship or remote work, with contact details given.
Discussion The thread is small, with only two comments, and it stays focused on the technical content. One commenter recommends reading the HOT (Heap Only Tuple) section first to build a mental model of PostgreSQL, then the zHeap notes on TOAST, to see what Postgres does and does not do. The other reply links a 2020 Jepsen report that found a long-standing bug in the serializable snapshot isolation (SSI) implementation, and mentions a recent Jepsen report on ParticleDB that renewed interest in SSI. The mood is appreciative and practical, with no debate.
- Read the HOT section first for a mental model (a few): One commenter suggests skimmers jump to the Heap Only Tuple section, then read zHeap notes on TOAST, to understand what PostgreSQL does and does not do.
- SSI implementation has had long-standing bugs (a few): Another commenter points to the 2020 Jepsen report on PostgreSQL, which found a long-standing bug in SSI, and notes renewed interest after a recent Jepsen report on ParticleDB.
Links from the comments
#PostgreSQL #databaseInternals #MVCC #replication #documentation