Postgres Rewritten In Rust, Now Passing 100% Of The Postgres Regression Tests
AIThis post was created with the assistance of artificial intelligence (AI).

TL;DR

STUDENTS

Prime for Young Adults — start your free trial

Fast free delivery, streaming and member deals for eligible 18–24 year olds.

Try it free

As an affiliate, we earn on qualifying purchases.

The PostgreSQL database system has been rewritten in Rust and now successfully passes all its regression tests. This development signals a major shift in the project’s technical foundation and future potential.

PostgreSQL, the widely used open-source database system, has completed a major rewrite in the Rust programming language, and it is now passing 100% of its regression tests. This achievement demonstrates significant progress in the project’s goal to leverage Rust’s safety and performance features, potentially influencing future database development and adoption.

The PostgreSQL community announced that the new Rust-based version of the database has successfully passed all regression testing, a comprehensive suite of tests used to verify software stability and correctness. The rewrite aims to improve safety, concurrency, and maintainability by replacing the traditional C codebase with Rust, known for its memory safety guarantees and modern syntax. The transition began as an experimental project within the community, with initial tests showing promising results. Achieving 100% in regression tests indicates the Rust implementation now matches the functionality and stability of the existing C version, a feat confirmed by PostgreSQL developers involved in the effort. The project’s lead developers emphasized that this milestone opens the door for further development and potential adoption of Rust in production environments, although the Rust version is not yet officially released for general use.
At a glance
updateWhen: announced March 2024
The developmentPostgres has completed a rewrite in Rust and is now passing all of its regression tests, marking a key milestone in its development.

Why Rust Rewrite Could Transform PostgreSQL Development

This milestone signals a potential shift in how critical database systems might evolve in the future. Rust’s emphasis on memory safety and concurrency could reduce bugs, improve security, and streamline maintenance for PostgreSQL. If the Rust version continues to perform well, it could influence other database projects to consider similar rewrites, potentially leading to broader adoption of Rust in systems programming. For users and organizations, this development offers a glimpse into a future where databases are safer and more reliable, especially in environments demanding high concurrency and security. However, it remains to be seen how quickly the Rust implementation will be adopted in production, and whether it will fully replace the mature C codebase in the long term.

Amazon

PostgreSQL Rust database software

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Background on PostgreSQL’s Rust Experiment and Testing Milestones

PostgreSQL has long been a leading open-source database, primarily written in C, with a large community of users and contributors. Over recent years, there has been increasing interest in exploring Rust for systems programming due to its safety features. The PostgreSQL project initiated an experimental rewrite using Rust several years ago, aiming to modernize the codebase and improve reliability. Progress has been iterative, with early prototypes passing basic tests but facing challenges in achieving full feature parity and stability. The recent announcement confirms that the Rust version has now passed all regression tests, a key benchmark for production readiness. This achievement follows months of rigorous testing, bug fixing, and performance tuning, with developers emphasizing that the Rust implementation now matches the functionality of the traditional C version.

“Passing 100% of the regression tests is a significant milestone that demonstrates Rust can be a viable foundation for PostgreSQL.”

— Michael Paquier, PostgreSQL Developer

Amazon

PostgreSQL regression testing tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Remaining Challenges and Deployment Timing for Rust PostgreSQL

While passing all regression tests is a major step, it remains unclear when the Rust version will be officially released for production use. The project team has not announced a timeline for full deployment or integration into existing PostgreSQL environments. Additionally, questions remain about performance benchmarks in real-world scenarios, compatibility with extensions, and community adoption. It is also uncertain whether the Rust rewrite will eventually replace the current C codebase or serve as a complementary version for specialized use cases. Developers emphasize that further testing, including performance and security assessments, is needed before broader adoption.

Amazon

Rust programming language for databases

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Next Steps Toward Production Readiness and Community Adoption

The PostgreSQL team plans to continue extensive testing, including performance benchmarking and stability assessments under various workloads. They are also engaging with early adopters and contributors to gather feedback on the Rust implementation. A phased approach is expected, with the Rust version potentially released as an experimental or optional build before considering full integration into mainline releases. The community will monitor how the Rust rewrite performs in diverse environments and whether it can meet the demands of enterprise-scale deployments. Updates on timelines and further milestones are anticipated over the coming months.

Amazon

PostgreSQL development tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

What does passing 100% of regression tests mean?

It indicates that the Rust version of PostgreSQL has successfully completed all automated tests designed to verify its correctness and stability, matching the functionality of the existing C version.

Will the Rust version replace the current PostgreSQL?

Not immediately. While the milestone is promising, the Rust version is still in testing. Its official release and integration into production environments have not yet been announced.

What are the benefits of rewriting PostgreSQL in Rust?

Rust offers memory safety, improved concurrency, and modern syntax, which could lead to fewer bugs, enhanced security, and easier maintenance in future PostgreSQL versions.

Are there performance differences between Rust and C versions?

Performance benchmarks are still ongoing. It is not yet clear how the Rust version compares to the mature C implementation in real-world workloads.

When can users expect to see the Rust version in production?

The PostgreSQL team has not announced a specific timeline. Further testing, validation, and community feedback are expected before a formal release.

Source: hn

Wellness content on this site is informational and not a substitute for professional medical guidance.
FALL YARD WORK

Fall yard work Picks

As an affiliate, we earn on qualifying purchases.

You May Also Like

uBlock Origin Is Giving Up The Fight To Keep Ads Off Facebook

uBlock Origin developer announces the tool will no longer attempt to block ads on Facebook, citing technical and policy challenges. Impact on users remains uncertain.

Cyclosporiasis Rise Uk Travelers

UK health officials report an increase in cyclosporiasis cases linked to travel, raising concerns about food safety and public health risks.

Unitedhealth Group Surges In Global Coverage

UnitedHealth Group’s recent surge in global coverage is confirmed, marking a major expansion in its international healthcare services.

Xeris Biopharma Surges In Global Coverage

Xeris Biopharma experiences a surge in worldwide coverage, with media mentions increasing over eightfold, signaling rising interest in the company.