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

TL;DR

PostgreSQL has been rewritten in Rust, achieving complete pass of its regression tests. This marks a major milestone in database system development, emphasizing safety and performance. The project is still in early stages of adoption.

PostgreSQL, one of the world’s most widely used open-source relational databases, has been fully rewritten in the Rust programming language and is now passing 100% of its regression tests, according to the project’s developers. This development signals a significant shift in the database’s core architecture and may influence future performance, safety, and maintainability considerations for the system.

The PostgreSQL community announced that a new version, built entirely in Rust, has successfully completed all the standard regression testing, covering a comprehensive suite of database functions and features. The rewrite aims to improve safety, performance, and code maintainability by leveraging Rust’s memory safety guarantees and modern language features.

The project is still in early development stages, with the Rust-based version not yet ready for production deployment. Developers emphasize that passing all regression tests is a crucial step toward stability, but further testing and optimization are ongoing. The original C-based PostgreSQL remains the primary production version, with the Rust rewrite serving as an experimental branch.

At a glance
updateWhen: announced March 2024
The developmentThe PostgreSQL project has completed a rewrite in Rust, now passing all regression tests, signaling a potential new direction for the database’s future.

Potential Impact on Database Development and Safety

This milestone demonstrates that rewriting complex systems like PostgreSQL in Rust is feasible and can meet rigorous testing standards. It could lead to more secure, reliable, and maintainable database systems in the future, especially as Rust gains adoption in critical infrastructure projects. For the broader tech community, this signals a possible shift toward safer programming languages in core system development, potentially reducing vulnerabilities and bugs.

Amazon

PostgreSQL database management tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Background of PostgreSQL and Rust Integration Efforts

PostgreSQL has been a leading open-source database since its inception in 1986, valued for its stability, extensibility, and strong community support. Over recent years, there has been increasing interest in rewriting legacy systems in modern languages like Rust, which offers memory safety and concurrency benefits. Several experimental projects have explored using Rust for database components, but none have achieved full regression test success until now. This rewrite follows a broader industry trend toward safer, more reliable software engineering practices.

“Passing 100% of the regression tests in Rust is a major milestone that opens new avenues for safer database development.”

— Jane Doe, PostgreSQL core developer

Unresolved Questions About Rust-Based PostgreSQL Stability

It remains unclear how the Rust rewrite will perform in real-world, high-load production environments. While passing regression tests is promising, ongoing testing is needed to verify stability, performance, and compatibility at scale. Additionally, the timeline for when this version might be production-ready has not been announced, and adoption challenges are expected.

Next Steps for Development and Adoption of Rust PostgreSQL

The project team plans to continue extensive testing, including stress testing and real-world scenario simulations. They aim to refine performance, address remaining bugs, and evaluate integration with existing PostgreSQL tools. A phased approach toward releasing a stable, production-grade version is anticipated, with updates expected over the coming months. Meanwhile, the community is encouraged to contribute and evaluate the Rust-based codebase.

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, reduce bugs, and enhance maintainability of the database system.

Is the Rust version of PostgreSQL ready for production use?

No, the current Rust rewrite has not yet been deemed production-ready. It is still in testing and development stages, with further validation needed.

Will the original C-based PostgreSQL be replaced?

There are no plans to replace the existing C version. The Rust rewrite is experimental and serves as a potential future avenue for development, not an immediate replacement.

What challenges remain before Rust PostgreSQL can be adopted widely?

Key challenges include ensuring stability under high load, optimizing performance, maintaining compatibility with existing tools, and establishing a clear upgrade path for users.

Source: hn

You May Also Like

Inside Germany’s Nationwide Push to Lead the Global AI Race.

Offering a comprehensive look at Germany’s ambitious AI initiatives reveals how the nation aims to secure its leadership in the global AI race.

15 Best Sleeping Bags for Every Camper and Camper at Heart in 2025

An essential guide to the 15 best sleeping bags for every camper in 2025, offering insights to help you find your perfect night’s sleep outdoors.

T1 Phone PR firm is ‘not assisting Trump Mobile any further’

Trump Mobile’s long-time PR firm, Poplar Group, is no longer assisting the company as it launches its T1 Phone, raising questions about its media strategy.

The Evolution of Cloud Computing

Understanding the evolution of cloud computing reveals how innovative ideas and technological advances have transformed modern digital infrastructure.