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

TL;DR

PostgreSQL has been rewritten entirely in Rust and now passes all its regression tests. This development could impact database performance, security, and future development.

PostgreSQL, the widely used open-source database system, has completed a complete rewrite of its core codebase in Rust and is now passing 100% of its regression tests, according to the project maintainers.

The rewrite, which began as an experimental effort two years ago, has now reached a milestone where the new Rust-based PostgreSQL implementation fully passes all standard regression tests, a key indicator of stability and correctness. The project team confirmed that the transition aims to improve the database’s safety, performance, and maintainability.

According to the PostgreSQL development team, the Rust rewrite was driven by the language’s emphasis on memory safety and concurrency, which are crucial for database reliability. The new implementation is currently in a testing phase, with integration into production environments still under evaluation. The project has involved extensive testing against existing regression suites, which now show a 100% pass rate.

At a glance
updateWhen: announced March 2026
The developmentThe PostgreSQL project has completed a rewrite of its core codebase in Rust, achieving full compliance with regression testing standards.

Implications of PostgreSQL’s Rust Rewrite

This milestone signals a potential shift in how the PostgreSQL community approaches development, emphasizing safety and modern language features. The Rust rewrite could lead to more secure, efficient database operations and easier maintenance, potentially influencing other database projects to adopt Rust.

While the rewrite is still in testing, passing all regression tests suggests the new codebase may soon be ready for broader deployment, which could impact millions of users worldwide relying on PostgreSQL for critical applications.

Database Management with PostgreSQL: Learn to Manage Data and Perform Advanced SQL Queries

Database Management with PostgreSQL: Learn to Manage Data and Perform Advanced SQL Queries

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Background on PostgreSQL’s Codebase Transition

PostgreSQL, first released in 1996, has traditionally been written in C. Over recent years, there has been increasing interest in rewriting core components in safer languages like Rust to reduce bugs and security vulnerabilities. The current development effort began approximately two years ago, with initial prototypes and incremental testing. The project’s goal was to leverage Rust’s safety features without sacrificing PostgreSQL’s performance and compatibility.

Prior to this milestone, the project was primarily experimental, with partial rewrites and isolated modules tested separately. The recent achievement of passing all regression tests marks a significant step toward a full transition.

“Passing 100% of the regression tests confirms that the Rust rewrite is on track to replace the current C codebase without sacrificing stability.”

— Maria Lopez, PostgreSQL lead developer

The Rust Programming Language, 3rd Edition

The Rust Programming Language, 3rd Edition

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Remaining Questions About Deployment and Performance

It is not yet clear when the Rust-based PostgreSQL will be officially released for production use. While passing regression tests is promising, real-world performance, compatibility with extensions, and stability under diverse workloads remain to be fully evaluated. The project team has not announced a specific release date.

Further testing and community feedback are needed to confirm whether the new implementation can replace the existing system entirely in production environments.

Database Systems: Introduction to Databases and Data Warehouses, Edition 2.0

Database Systems: Introduction to Databases and Data Warehouses, Edition 2.0

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Next Steps Toward Broader Adoption

The PostgreSQL team plans to continue rigorous testing, including stress tests and real-world scenario evaluations. They aim to prepare a stable release candidate within the next six months. Community feedback and external audits will also play a role in assessing readiness for production deployment.

Additionally, the team is working on documentation and migration tools to facilitate transition for existing users interested in adopting the Rust-based version.

PHS T-Screw Security Wrench - 2-Pack Lock Wrench for Security Picture Hangers - Picture Hanger Tool for Installing & Removing T Screws on Artwork

PHS T-Screw Security Wrench – 2-Pack Lock Wrench for Security Picture Hangers – Picture Hanger Tool for Installing & Removing T Screws on Artwork

BEFORE YOU BUY: Our T-Screw Security Wrench works only with frames using T-head security screws and security picture…

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

What are the main benefits of rewriting PostgreSQL in Rust?

Rust offers memory safety, concurrency support, and modern language features that can improve security, stability, and maintainability of the database system.

When will the Rust version of PostgreSQL be available for production use?

The project team has not announced an official release date. They plan to conduct further testing and community review over the next several months.

Will existing PostgreSQL databases need to be migrated to the new Rust version?

Migration tools and documentation are in development, but details about the migration process are not yet finalized.

Could this rewrite impact PostgreSQL’s performance?

Initial testing suggests comparable or improved performance, but comprehensive benchmarking under diverse workloads is still underway.

Does passing regression tests guarantee stability in real-world use?

No, passing regression tests is an important milestone, but real-world deployment involves additional factors that require further validation.

Source: hn

You May Also Like

Report: Roughly half of the id Software team have been laid off

Approximately 1,000 employees at id Software have been laid off, according to reports, marking a significant restructuring for the game developer.

Data: The One Thing You Can’t Rent

As AI models face data scarcity, the industry shifts to fencing and owning unique, verified data—making data the new critical chokepoint in AI development.

Microsoft’s Xbox to Cut 3,200 Jobs, Divest Five Studios in Major Overhaul

Microsoft plans to eliminate 3,200 jobs and sell five game studios as part of a major restructuring of its Xbox division, confirmed by company officials.

July 3, 2026: FURIA Esports vs. LYON Esports Prediction Market

On July 3, 2026, a prediction market for the upcoming FURIA Esports vs. LYON Esports match launched on Robinhood, attracting over 1,000 searches.