<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>重写 on Text Matrix</title><link>https://txtmix.com/tags/%E9%87%8D%E5%86%99/</link><description>Recent content in 重写 on Text Matrix</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Tue, 21 Jul 2026 20:06:14 +0800</lastBuildDate><atom:link href="https://txtmix.com/tags/%E9%87%8D%E5%86%99/index.xml" rel="self" type="application/rss+xml"/><item><title>pgrust 架构拆解：用 Rust + AI 重写 PostgreSQL 是怎么做到的</title><link>https://txtmix.com/posts/tech/malisper-pgrust-postgres-rust-rewrite/</link><pubDate>Mon, 13 Jul 2026 03:03:14 +0800</pubDate><guid>https://txtmix.com/posts/tech/malisper-pgrust-postgres-rust-rewrite/</guid><description>&lt;h1 id="pgrust-架构拆解用-rust--ai-重写-postgresql-是怎么做到的">pgrust 架构拆解：用 Rust + AI 重写 PostgreSQL 是怎么做到的&lt;/h1>
&lt;h2 id="核心判断">核心判断&lt;/h2>
&lt;p>pgrust 解决的不是&amp;quot;做一个 Rust 版的 Postgres 客户端&amp;quot;或&amp;quot;做一个协议绑定&amp;quot;，而是&lt;strong>把 PostgreSQL 整个 server 重写成 Rust，并保持磁盘兼容（可直接 boot 现有 pg 18.3 data dir），同时通过 Postgres 自带 4.6 万多条回归查询做 orcale 验证&lt;/strong>。这是它的硬性约束：行为贴 Postgres、不重写 SQL 协议、不发明新存储格式。这一约束决定了它的取舍——能改的是内部实现，不能改的是对外兼容面。本文从这个约束倒推它的架构边界。&lt;/p></description></item></channel></rss>