按年被提到
20162022 · 7 次2026
开源书›数据库·No.79

The Internals of PostgreSQL

PostgreSQL 内部机制
Hironobu Suzuki

图文并茂讲解 PostgreSQL 的存储、MVCC 与查询处理

免费阅读 ↗
被推荐 · 26 人首次 2016-07-22 · 最近 2026-11-03官方免费在线(版权保留,作者或出版社免费放出)
26不同的人
21活跃月份
8有推荐的月份
26讨论串

Hironobu Suzuki 写的 PostgreSQL 内部原理指南,面向数据库管理员和开发者,讲解数据库集群、存储结构、查询处理、并发控制(MVCC)等内容。配有大量示意图,能帮读者建立对 Postgres 运行方式的整体认识。比官方文档更偏概念和机制,读起来也更易上手。

HN 为什么推荐它

HN 上的人推荐它来建立对 Postgres 内部的心智模型,称赞内容详细、讲堆存储和 MVCC 的章节好懂;有评论说它适合配合官方文档读。

难度 3 / 5约 20 小时
适合谁

用 PostgreSQL 的开发者与 DBA

读之前最好知道
1SQL
2关系数据库基本概念
3事务(transaction)

怎么读

由 Claude 根据这本书和 HN 上的说法整理,可能有错
  1. 1先读存储结构和堆表的部分,建立基本图景
  2. 2再读 MVCC 和并发控制相关章节
  3. 3遇到细节对照官方文档和源码
  4. 4想更深入,可接着读更高级的 Postgres 内部系列文章

HN 书评

推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算
强烈推荐rtpg · 2022-02

“For people interested in more details about Postgres internals I cannot recommend The Internals of PostgreSQL enough, an excellent text with lots of details”

强烈推荐,称细节丰富,是想了解 Postgres 内部的绝佳文本
How PostgreSQL stores rows原评论 ↗
推荐afarrell · 2017-02

“If you're looking to learn a mental model of the internals, a coworker has pointed me at The Internals of PostgreSQL and it's pretty good.”

同事推荐的,用来建立 Postgres 内部原理的心智模型
RethinkDB versus PostgreSQL: my personal experience原评论 ↗
推荐ignoramous · 2018-01

“The Internals of PostgreSQL is a good read about Postgres.”

称是了解 Postgres 工作原理的好读物
Ask HN: Which book would you recommend for learning database internals?原评论 ↗
推荐evil-olive · 2019-04

“There's some fantastic documentation on Postgres and its internals:”

称是关于 Postgres 内部原理的极好文档
Foundations of Databases (1995)原评论 ↗
推荐grantjpowell · 2020-09

“If you work with Postgres, an awesome follow up is this article series (much more advanced) The Internals of PostgreSQL”

推荐作更进阶的后续阅读,用来深入 Postgres
Use the index, Luke A guide to database performance for developers原评论 ↗
推荐luhn · 2022-01

“The heap is described in 1.3 [1] and MVCC is described in Chapter 5 [2]. I'd also recommend the Postgres docs [3], they aren't quite as accessible as this”

指出 heap 和 MVCC 分别在 1.3 节和第 5 章,比官方文档易读
The Internals of PostgreSQL原评论 ↗
看全部 11 条 →
推荐rrampage · 2022-07

“Postgrespro's blog ( (链接) ) and The Internals of PostgreSQL are incredible resources to learn about Postgres internals in depth.”

与 Postgrespro 博客并列,称是深入学 Postgres 内部原理的好资源
PostgreSQL 14 Internals Book原评论 ↗
推荐surprisetalk · 2024-03

“• Study Postgres internals: The Internals of PostgreSQL”

建议学习 Postgres 内部原理以成长为更好的工程师
Ask HN: How to go from a good engineer to a great one?原评论 ↗
推荐surprisetalk · 2024-03

“> • Study Postgres internals: The Internals of PostgreSQL”

引用并认同学习 Postgres 内部原理的建议
Ask HN: What took you from being a good programmer to a great one?原评论 ↗
批评jodrellblank · 2025-03

“that quote seems misleading and unclear to me. Transactions (not transaction logs) are about maintaining [relational] database consistency, not directly about ensuring no data loss.”

批评所引的话含糊误导,事务讲的是数据库一致性而非防止数据丢失
The Internals of PostgreSQL原评论 ↗
引用mulander · 2020-04

“[2] - The Internals of PostgreSQL”

在参考资料里给出这本书的地址
PostgreSQL's Imperfections原评论 ↗
被提交为 story · 17 次