A `fork(2)` in the road

A fork(2) in the road: Regimented stability versus relentless progress

A fork(2) in the road: Regimented stability versus relentless progress (分岔路口:严苛的稳定性与不懈的进步)

After the wave of reverts in Postgres 19, I was thinking about what the future holds for databases. Is inertia enough to carry the existing databases that we know so well into the future? How important is stability and pervasiveness of use compared to dynamicism and agility?

在 Postgres 19 经历了一波回滚之后,我开始思考数据库的未来。惯性是否足以支撑我们所熟知的现有数据库走向未来?与动态性和敏捷性相比,稳定性和普及度究竟有多重要?

As unassailable as it is in history, pedigree, and performance, Postgres has major structural problems that’ll act against it as it transitions the LLM age: Once per year release cycle. Reverted features don’t have another chance until September 2027 at the earliest. Decision by consensus. New features cannot happen quickly. Large changes are fundamentally difficult to make and nearly impossible to land from anyone except known major contributors.

尽管 Postgres 在历史、血统和性能方面无可撼动,但它在向大模型(LLM)时代过渡时,存在一些阻碍其发展的重大结构性问题:一年一次的发布周期;被回滚的功能最早要到 2027 年 9 月才有机会再次提交;决策依赖共识;新功能无法快速实现;重大变更在根本上难以实施,除了知名的主要贡献者外,其他人几乎不可能成功提交。

Postgres’ weaknesses here should leave SQLite standing golden: it’s always had a tiny development team and doesn’t accept outside contributions. The project owners could be making unilateral decisions on what new features to do, and have swarms implement them quickly and meticulously, complying to the project’s famous ultra-thorough test suite with little trouble. But there’s nothing to suggest that this is happening. The SQLite team has made a couple small, solid improvements over the last year (e.g. ALTER TABLE can add/drop NOT NULL constraints), but development isn’t observably faster compared to the year before. New features and improvements are decidedly not a relentless torrent.

Postgres 的这些弱点本应让 SQLite 处于黄金地位:它一直拥有一个精简的开发团队,且不接受外部贡献。项目所有者本可以单方面决定开发哪些新功能,并让团队迅速而细致地实现它们,同时轻松符合该项目著名的超详尽测试套件要求。但目前没有任何迹象表明这种情况正在发生。SQLite 团队在过去一年中确实做出了一些小而扎实的改进(例如 ALTER TABLE 可以添加/删除 NOT NULL 约束),但开发速度相比前一年并没有明显的提升。新功能和改进绝非如潮水般涌现。

MySQL continues its zombie existence. Technically alive under Oracle’s stewardship, but spiritually dead. Oracle, by far the most popular database on planet Earth according to extremely trustworthy and transparent db-engines dot com, continues to be perplexingly difficult in finding a single firsthand user of post-2010 or thereabouts. (Many people “know a guy”.)

MySQL 继续着它的僵尸状态。在甲骨文(Oracle)的管理下,它在技术上还活着,但在精神上已经死了。根据极其可信且透明的 db-engines 网站显示,甲骨文是地球上最受欢迎的数据库,但令人困惑的是,很难找到一个 2010 年以后还在使用它的第一手用户。(很多人只是“认识某个人”而已。)

It sounds like heresy to say out loud, but there’s room for a new database. It’s still possible that Postgres and SQLite were already far enough past the post of “good enough” that they’ll be the winners even if they never change again, but imagine for a moment a new age DB with these properties: Core team of 1–2 people capable of taking fast, decisive action. Only supports archs people actually use: arm64, amd64. Rolling releases. Features appear in weeks not years. LLMs and LLM-generated testing is used to vet changes instead of manual QA testing + time.

大声说出来可能显得离经叛道,但确实存在新数据库的空间。Postgres 和 SQLite 可能已经远远超越了“足够好”的门槛,即使它们不再有任何改变,也依然会是赢家。但试想一下,如果有一个具备以下特性的新时代数据库会怎样:核心团队仅由 1-2 人组成,能够采取快速、果断的行动;仅支持人们实际使用的架构:arm64 和 amd64;采用滚动发布;功能在几周内而非几年内出现;使用大模型及大模型生成的测试来审查变更,而非依赖人工 QA 测试和时间积累。

Thoroughly tested and regression protected. (SQLite does well in this area but Postgres doesn’t.) Longstanding bugbears slain: ~unlimited idle connections. Thread-based concurrency model. For SQLite, more than one writer. Built-in HA and/or multi-master. Real, earnest work towards resolving major flaws like bloat, even if it requires significant internal rearchitecture. “Daemonless” mode making it operate like an embedded database like SQLite. It’s an unexamined assumption that the Postgres postmaster model and the SQLite file model have to be separate databases — they could be alternate modes on the same project! Built-ins for reasonable OLAP performance without reaching for an external product. Continuous performance and stability improvements driven by LLM refinement.

经过彻底测试并具备回归保护(SQLite 在这方面做得很好,但 Postgres 不行)。解决长期存在的痛点:近乎无限的空闲连接;基于线程的并发模型;对于 SQLite 而言,支持多写者;内置高可用(HA)和/或多主架构;真正致力于解决臃肿等重大缺陷,即使这需要进行重大的内部重构;支持“无守护进程”模式,使其像 SQLite 一样作为嵌入式数据库运行。认为 Postgres 的 postmaster 模型和 SQLite 的文件模型必须是两个独立的数据库是一个未经审视的假设——它们完全可以是同一个项目的不同模式!内置合理的 OLAP 性能,无需借助外部产品。通过大模型优化驱动持续的性能和稳定性提升。

Trust me, I know: intuitively, the idea of displacing Postgres feels crazy. But then I think back on how much change we’ve seen in just the last year and it makes me think: imagine another 10 years at a similar rate. The idea that Postgres would not be displaced is crazy. But nothing’s certain — another likely possibility is that the two widespread institutional options, Postgres and SQLite, become even more widespread and more cemented as LLMs cargo cult them and LLM steerers don’t revisit the decision.

相信我,我明白:直觉上,取代 Postgres 的想法听起来很疯狂。但回想一下过去一年我们所见证的巨大变化,我不禁思考:如果未来十年保持同样的速度会怎样?认为 Postgres 不会被取代的想法才是疯狂的。但世事无绝对——另一种可能性是,Postgres 和 SQLite 这两个广泛使用的机构化选项会变得更加普及和稳固,因为大模型会盲目崇拜它们,而大模型的引导者们也不会重新审视这一决策。

Postgres and SQLite passed the baseline of “good enough” a long time ago, and there’s an argument to be made that no new feature added to a database is sufficiently worth it to be messing around with experimental systems. I don’t know what will happen, but I go forward with an open mind and open eyes.

Postgres 和 SQLite 早已跨过了“足够好”的基准线,有一种观点认为,数据库中添加的任何新功能都不值得让人去折腾实验性系统。我不知道未来会发生什么,但我会保持开放的心态和清醒的头脑继续前行。