# Gnomon：为 Postgres 数据引入 Git 分支

Original title: Gnomon: Git for Postgres Data

> Hacker News story 50611613 · language: zh · submitted 2026-11-23
> Web version: https://zeli.app/zh/story/50611613
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 38 · by [lucasluitjes](<https://news.ycombinator.com/user?id=lucasluitjes>) · 💬 6
[original](<https://gnomon.bitsinfra.com/>) · [HN discussion](<https://news.ycombinator.com/item?id=50611613>)

## Summary

Gnomon 是一个 Postgres 扩展，让数据库拥有了像 Git 一样的分支、历史、合并和撤销功能。你只需提供一个连接字符串，就能为 AI 代理分配独立的数据库分支。代理在分支上自由读写，所有变更一目了然，确认无误后合并到主库，出错则一键回滚。它直接运行在现有的 Postgres 中，无需复制数据或搭建第二套数据库。无论是 TypeScript 还是 Python，SDK 都能为每个任务自动创建带权限限制的分支，确保代理在安全规则内运行。

## Key quote

> Gnomon 是一个 Postgres 扩展，让你的数据库拥有分支、历史、合并和撤销功能。

## HN discussion (6 comments)

### [flowerlad](<https://news.ycombinator.com/item?id=50631739>)

> Neon 是另一个为 Postgres 提供分支功能的项目：https://github.com/neondatabase/neon

### [stephbook](<https://news.ycombinator.com/item?id=50631818>)

> 这是个挺有意思的想法。
>
> 但这个项目才启动两周，是由一个每 1.5 年就换一家公司的 solo 开发者靠“感觉”写出来的。

### [drdexebtjl](<https://news.ycombinator.com/item?id=50632336>)

> 挺烦的是，这玩意儿明明跟 AI 毫无关系，除了一个不必要的 MCP 服务器，却偏偏打着“为智能体（agents）打造”的旗号。
>
> Postgres 的分支功能确实挺有意思。我本来想深入了解，包括看看这“香肠”是怎么灌的，但这听起来完全像是垃圾堆出来的东西，我甚至怀疑作者自己都不知道它是怎么运作的。

---

## Cite

- Page: https://zeli.app/zh/story/50611613
- Date: 2026-11-23
- Source: gnomon.bitsinfra.com (https://gnomon.bitsinfra.com/)
- Hacker News: https://news.ycombinator.com/item?id=50611613

## Other languages

- en: https://zeli.app/story/50611613 · markdown: https://zeli.app/story/50611613.md
- ja: https://zeli.app/ja/story/50611613 · markdown: https://zeli.app/ja/story/50611613.md
- ko: https://zeli.app/ko/story/50611613 · markdown: https://zeli.app/ko/story/50611613.md
- de: https://zeli.app/de/story/50611613 · markdown: https://zeli.app/de/story/50611613.md
- es: https://zeli.app/es/story/50611613 · markdown: https://zeli.app/es/story/50611613.md
- ru: https://zeli.app/ru/story/50611613 · markdown: https://zeli.app/ru/story/50611613.md
