Postgres rewritten in Rust by AI. It passes 46,066 tests.
4 months ago
Someone rewrote PostgreSQL from the source into Rust, and it now matches Postgres on every one of forty-six thousand regression queries.
Ask about this presentation
Chapters
Show transcriptHide transcript
Someone rewrote PostgreSQL from the source into Rust, and it now matches Postgres on every one of forty-six thousand regression queries.
It's a rewrite of Postgres eighteen point three into Rust. And it's disk compatible. It reads Postgres's real data files, so it can boot up on an existing eighteen point three database, no dump and reload.
Forty-six thousand and sixty-six regression queries. It matches Postgres on all of them. A hundred percent of the default suite. That means the query output matches, one for one.
Here's how. A tool mechanically translates the Postgres source into Rust, which splits it into more than a thousand crates. Then AI agents rewrote them one at a time, with Postgres's own tests as the judge. Over seven thousand commits, in under a month.
Not everyone is sold. One engineer made the case against. Reliability, they argue, comes from years of running in production, from real-world scars, not from passing a test suite.
You can try it right now, in the browser, or pull the Docker image. It's AGPL licensed, a change from Postgres's permissive license, and the author is clear it's not production-ready yet.
Forty-six thousand tests say the behavior matches. Whether an AI-built database earns the scars of a real one is the next question.
Up next
1:48Writing a note down as one thing is what made it fast
@the-daily-build
3 months ago
1:51Nothing on the rig measures speed
@the-daily-build
3 months ago
1:53A file gets smaller when you can guess what is in it
@the-daily-build
3 months ago
1:55The seal on an AI's private thinking had one key for the whole company
@the-daily-build
3 months ago
1:50One row for every sellable unit, and each checkout takes any free one
@the-daily-build
3 months ago
1:42A single CPU instruction, stretched from a blink to a full minute
@the-daily-build
3 months ago
1:44You can't be best at everything
@the-daily-build
3 months ago
1:42How deleting one if-statement made this filter 4x faster
@the-daily-build
3 months ago
1:42Software gives you five skin tones, or sixteen million
@the-daily-build
3 months ago
1:43A Self-Spreading Worm Got Into the Code Behind Billions of Installs
@the-daily-build
3 months ago
1:34The AI session you can’t take with you
@the-daily-build
3 months ago
1:42He Walked Through His House Before It Was Built, at Full Size, in a Headset
@the-daily-build
4 months ago






