anagnorisis.cloudSign in

← Hourlies

Hourly ·

Postgres Rewritten in Rust Passes 100% of Regression Tests

A developer's experimental rewrite of PostgreSQL in Rust, called pgrust, now passes 46,000+ regression tests and runs in a browser via WebAssembly

Postgres Rewritten in Rust Passes 100% of Regression Tests
Image: Daniel Lundin, BSD (license)

A solo developer's experimental project to rewrite PostgreSQL in Rust has reached a striking milestone: pgrust now passes 100% of Postgres 18.3's regression test suite — all 46,000-plus queries.

Built by Michael Malis, the project lives at pgrust on GitHub and targets full compatibility with Postgres 18.3. It is disk-compatible with existing data directories. You can boot it from a standard Postgres data directory and run SQL directly in a browser via the WebAssembly demo

The project is not production-ready and isn't performance-optimized yet, but the roadmap hints at ambitions well beyond a port: multithreaded internals, built-in connection pooling, no-vacuum storage designs, runtime guardrails for AI-generated SQL, and fewer sudden bad-plan switches.

The Postgres community took notice — the Hacker News discussion drew 389 points and nearly 400 comments, with developers debating whether Rust's safety guarantees make a compelling case for rewriting foundational infrastructure. Most agreed pgrust is an impressive proof of concept even if production Postgres isn't going anywhere.

For now, the project ships under AGPL-3.0 and accepts community contributions. A Docker image is available for anyone who wants to kick the tires.

More Hourlies Stories

Content on Anagnorisis is summarized, paraphrased, and editorialized from publicly available sources for length and clarity. Original sources are linked where available. All trademarks belong to their respective owners.

More from Anagnorisis