档案库 · 开发与企业工具 · 技术决策 · 2025–2026
PgDog押注Postgres代理无需改应用即可分片;获550万美元种子轮,每秒200万查询
前Instacart工程师构建了开源Postgres代理,无需改应用即可完成连接池、负载均衡和分片;种子轮550万美元,生产环境每秒超200万查询。
PgDog
做的是什么生意
PgDog is an open-source Rust proxy for PostgreSQL that combines connection pooling, read/write load balancing and sharding in one executable; apps point at it via DATABASE_URL and shard Postgres without code changes or database migrations.
启动资金:$5.5M seed round from Basis Set, Y Combinator and Pioneer Fund, announced 2026-06-10.
起因
Lev Kokotov ran Postgres at Instacart, scaling it through the April 2020 demand spike by sharding on RDS, Aurora and EC2. After writing PgCat, a Rust Postgres pooler, he and co-founder Justin started PgDog as a fresh, fully asynchronous codebase with sharding as a first-class feature rather than an afterthought. An early Show HN ran in 2025.
经过
The 2026-02-23 Show HN ('Scale Postgres without changing the app') drew 326 points and 63 comments, reporting the proxy in production with cross-shard aggregates, atomic two-phase-commit writes, built-in resharding over parallel logical replication, and failover-aware load balancing. On 2026-06-10 the team announced a $5.5M seed from Basis Set, YC and Pioneer Fund — that post drew 548 points and 261 comments — and disclosed 2M+ queries/s in production, 20+ TB sharded and 1.4M+ Docker pulls, with weekly releases and a growing Discord community.
还没有结局,它还在跑。
背景
PgDog是一个开源Rust代理,使PostgreSQL水平扩展。它将三个工具合并在一个可执行文件中:将少数Postgres连接共享给100,000+客户端的连接池器,将读取路由到副本并检测故障切换的负载均衡器,以及从每个查询中提取分区键并将其发送到正确数据库的分片层——所有这一切都无需更改应用代码或进行数据库迁移。
该赌注是,如果Postgres的扩展问题得到解决,它就是团队唯一需要的数据库;Mongo和Dynamo存在的原因恰是单主Postgres没有简单的水平扩展路径。在Instacart负责Postgres的Lev Kokotov和联合创始人Justin经历了2020年4月的需求激增,将PgDog构建为线协议级别的代理,而非扩展:分片、聚合、写入和重新分片都在传输中处理,因此ORM、预处理语句和会话状态仍然有效。
关注度通过Hacker News获得:2026年2月23日的Show HN获得326分和63条评论;2026年6月10日的资金公告——来自Basis Set、Y Combinator和Pioneer Fund的550万美元种子轮——获得548分和261条评论。截至2026年9月,PgDog声称生产环境每秒2-3百万次查询,超过20TB数据分片和140万+次Docker下载,客户包括Modal、Ramp和Earth Genome。
这件事要成立,得有什么
- 它针对NoSQL迁移的根本原因——单主Postgres无法扩展——而不是症状,因此产品承诺是“保留你的数据库和代码”。
- 在线协议级别工作使其能够声称即插即用兼容性,这消除了基础设施中最高的转换成本:重写应用程序。
- 它从第一天起就开源,并让社区部署它,将Docker下载和生产查询变成公司还未融资前的证明。
- 创始人的Instacart经验给了团队一个亲身的失败故事(手动分片),使产品在质疑的数据库工程师面前显得可信。
可借鉴之处
扩展数据库最昂贵的部分往往是迁移到“更好”的数据库;一个让现有数据库扩展的代理——无需应用更改,无需重写——会吸引那些已经信任Postgres的团队。
后续进展
截至2026年9月2日,PgDog是一家三人创业公司,拥有种子轮资金,每周四发布开源代理,并在其主页上量化了生产足迹:每秒超过300万次查询、数十次部署以及来自Modal、Ramp和Earth Genome的推荐。它正在为AWS构建企业版,并提供SLA支持。这个赌注仍在规模化验证中——跨分片查询覆盖明确仍在进行中——但核心声明,即无需应用更改即可分片Postgres,已经在生产环境运行。
资料来源
发现哪里写错了?告诉我们。
轮到你了
你刚读完一家。说说你在做什么,看看谁在赌同一件事。
免费账号 · 3 次免费提问 · 不用绑卡