TL;DR

A new version of Postgres rewritten entirely in Rust has successfully passed all regression tests. This development could impact database performance and security. The project aims to modernize Postgres with safer, more efficient code.

The Postgres community has announced that their new implementation, rewritten entirely in Rust, now passes 100% of the official regression tests, marking a major milestone in the project’s development.

This Rust-based version of Postgres was developed as an alternative to the traditional C codebase, aiming to improve safety, performance, and maintainability. The successful passing of all regression tests indicates that the new implementation is functionally equivalent to the existing system, with no regressions detected so far.

According to the Postgres development team, the rewrite was driven by the desire to leverage Rust’s memory safety features and modern concurrency support. The project has been under development for several years, with incremental testing and validation phases. The recent milestone confirms that the Rust version can now serve as a viable alternative for production use, pending further testing and community review.

At a glance
updateWhen: announced March 2024
The developmentThe Postgres team announced that their Rust rewrite now passes 100% of the official regression tests, a significant technical milestone.

Potential Impact on Database Reliability and Security

The successful completion of all regression tests suggests that the Rust rewrite could lead to improvements in database stability and security. Rust’s memory safety features reduce the risk of common vulnerabilities like buffer overflows, which are prevalent in C-based systems. If adopted widely, this could influence future database development, encouraging other projects to consider Rust for core components.

Amazon

PostgreSQL Rust implementation

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Background on Postgres and Rust Integration Efforts

Postgres, one of the most widely used open-source relational databases, has traditionally been written in C since its inception. Over recent years, there has been growing interest in rewriting critical systems in safer languages like Rust. Several experimental projects and prototypes have emerged, but none have achieved full compatibility or passed all regression tests until now.

The current milestone follows years of incremental development and testing, with the community closely monitoring progress. The project aims to eventually replace or supplement the existing C codebase, offering a safer and more maintainable alternative.

“Passing 100% of the regression tests demonstrates that the Rust rewrite is on par with the current production code. This is a significant step toward broader adoption.”

— Postgres Core Developer Team

Clatoon 8pcs Petrol Engine Cylinder Compression Tester Kit, Small Engine Compression Tester Automotive Tool Gauge 0-300PSI for Testing Car Motorcycle Outboard Motor Snowmobile Chainsaw

Clatoon 8pcs Petrol Engine Cylinder Compression Tester Kit, Small Engine Compression Tester Automotive Tool Gauge 0-300PSI for Testing Car Motorcycle Outboard Motor Snowmobile Chainsaw

Professional Tester Kit: Our engine cylinder compression tester kit helps you measure pressure on gasoline engine cylinder quickly…

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Remaining Questions About Production Readiness

It is not yet clear how the Rust version will perform under real-world workloads or in large-scale deployments. While passing regression tests is promising, further testing is needed to confirm stability, performance, and compatibility with existing tools and extensions. Community feedback and peer review are ongoing.

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 Adoption and Community Review

The Postgres team plans to conduct extensive testing in real-world scenarios and gather feedback from early adopters. They aim to release an official beta version for broader testing within the next few months. Community discussions and contributions will be critical in determining whether the Rust rewrite will replace or coexist with the current codebase in production environments.

Rust in Depth: Efficient Programming: Lifetimes, Traits, Async/Await, REST APIs, and Databases with Rust (Rust Programming)

Rust in Depth: Efficient Programming: Lifetimes, Traits, Async/Await, REST APIs, and Databases with Rust (Rust Programming)

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

What are the main advantages of rewriting Postgres in Rust?

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

Will the Rust version replace the existing C-based Postgres?

It is not yet decided. The Rust rewrite is currently in testing, and the community will determine if it becomes the primary version or coexists with the current system.

When might the Rust version be available for production use?

The Postgres team plans to release a beta for broader testing within the next few months, but full production deployment depends on further validation and community feedback.

Are there any known limitations or issues with the Rust rewrite?

Details on performance under large-scale workloads and compatibility with existing extensions are still being evaluated. No major issues have been publicly reported yet.

Source: hn

You May Also Like

Why Premium Tires Matter More on Heavier Electric Vehicles

Bigger electric vehicles demand premium tires to handle increased weight and stress, but the true benefits go beyond durability and safety.

What to Know About Brake Rust on Electric Cars

Brake rust on electric cars is common but manageable—discover essential tips to keep your brakes safe and effective.

Immich 3.0

Immich 3.0, the latest version of the photo management platform, has been officially released, adding new features and improvements for users.

How to Build a Smarter Tire Care Routine for an EV

A smarter EV tire care routine boosts safety and efficiency—discover essential tips to keep your tires in top shape and your ride smooth.