Back to browse
GitHub Repository

Postgres rewritten in Rust, now passing 100% of the Postgres regression tests

131 starsRust

Pgrust, Postgres in Rust (passing 100% of Postgres regression tests)

by malisper·Jun 25, 2026·3 points·0 comments

AI Analysis

●●●BangerWizardryBold BetBig Brain

Postgres in Rust passing all 46k regression tests with a browser WASM demo.

Strengths
  • 100% regression test pass across 46k queries proves functional compatibility.
  • Disk-compatible with existing PostgreSQL 18.3 data directories for real migration paths.
  • WASM demo running Postgres in browser is genuinely wild engineering.
Weaknesses
  • Not production-ready yet with no performance optimization completed.
  • Existing Postgres extensions and PL languages not compatible yet.
Target Audience

Database engineers, backend developers, Postgres users

Similar To

Neon · CockroachDB · Other Postgres forks

Post Description

pgrust is a PostgreSQL rewrite in Rust I've been working on with my friend Jason. It now passes 100% of PostgreSQL's regression tests and we were even able to boot pgrust off an existing PostgreSQL 18.3 data directory. You can hack on its code or try it out quickly with the WASM build on pgrust.com.

It's not production ready yet. I haven't focused on performance optimized yet and it's not compatible with existing PostgreSQL extensions.

I want to improve upon Postgres in many ways in the future. I wrote about some here [0], and Jason and I saw a great talk in person at PGConf.dev a month ago from Bruce Momjian with some more [1]. I wanted to rewrite Postgres in Rust to make it easier to make these changes with AI in the future and I think AI-assisted programming is going to get more and more ambitious over time.

Would love for people to try it out and get feedback on what you'd like to see improved about Postgres the most and what the most exciting things we can do are.

[0] https://malisper.me/the-four-horsemen-behind-thousands-of-po...

[1] https://www.youtube.com/watch?v=ppGO7r2sEkE

Similar Projects