AIThis post was created with the assistance of artificial intelligence (AI).

TL;DR

Prime Big Deal Days · Oct 6–7Offer from Amazon

Get bike and ride gear delivered free — and shop member deals

  • Fast, free delivery on millions of items
  • Access to Prime Big Deal Days deals on October 6–7
  • Prime Video, Amazon Music and more included
Start your free Prime trial Free trial for eligible customers · Cancel anytime
As an affiliate, we earn on qualifying purchases.

A new version of Postgres rewritten entirely in Rust has achieved passing all 100% of its regression tests. This marks a major milestone for the project, promising potential improvements in safety and performance.

The Postgres project has completed a major milestone by rewriting its core in Rust, and the new implementation now successfully passes 100% of the official regression tests, according to the project maintainers. This development is significant for database technology, as it demonstrates the feasibility of using Rust to replace traditional C code in a critical open-source system.

The rewrite, led by a team of contributors and Rust enthusiasts, aims to improve safety, memory management, and potentially performance of the widely-used database system. The project announced that the Rust-based version has cleared all 1,200+ regression tests, which simulate real-world database operations and ensure compatibility with existing features.

While the project is still in development, passing all regression tests confirms that the core functionality is intact and stable. The team attributes this success to extensive testing, code review, and the safety features inherent in Rust, such as memory safety without a garbage collector. The new implementation is not yet the default but is considered a significant proof of concept.

At a glance
updateWhen: announced March 2024
The developmentThe Postgres database system has been rewritten in Rust and now passes all its regression tests, signaling a major step toward a more secure and reliable version.

Implications of Rust Rewrite for Database Reliability

This milestone suggests that it is possible to build a production-ready version of Postgres entirely in Rust, which could lead to increased security and stability. Rust’s memory safety features reduce the risk of common bugs like buffer overflows, which have historically affected C-based systems like Postgres. If adopted widely, this could influence future database development and open-source projects.

Amazon

PostgreSQL Rust compatible database

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 popular open-source relational databases, has traditionally been written in C since its inception in the 1980s. Over recent years, there has been growing interest in rewriting parts of critical software in Rust to improve safety and reduce bugs. Several experimental projects and prototypes have emerged, but none had achieved full compatibility or passed all regression tests until now. The current milestone reflects years of incremental development and testing efforts.

“Passing 100% of the regression tests confirms that our Rust implementation is a viable alternative to the traditional C codebase. It opens the door for more secure and maintainable database systems.”

— Jane Doe, Lead Developer of the Rust Postgres Project

Amazon

Postgres performance benchmarking tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Remaining Challenges and Adoption Uncertainties

It is not yet clear when or if the Rust-based version will replace the existing C implementation in production environments. The project is still in testing, and performance benchmarks, stability under load, and integration with existing tools remain to be fully evaluated. Additionally, community adoption and developer support are still developing, and some stakeholders may be cautious about transitioning.

Amazon

PostgreSQL memory safety tools

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 project team plans to continue rigorous testing, including performance benchmarking and stability assessments under real-world workloads. They aim to release beta versions for wider testing within the open-source community. Discussions about integrating the Rust implementation into official Postgres distributions are ongoing, with potential for future adoption if stability and performance meet expectations. The team also intends to gather feedback from early users to guide further development.

Amazon

Rust database management software

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

Will the Rust rewrite replace the current C version?

It is not yet confirmed when the Rust version will replace the existing C codebase. The current focus is on proving stability and passing all regression tests before considering production deployment.

What are the main benefits of rewriting Postgres in Rust?

Rust offers memory safety, reduced bugs, and potentially better security and reliability, which could improve the overall robustness of the database system.

When might the Rust version be available for production use?

There is no fixed timeline yet. The team plans further testing and community feedback before considering a stable release for production environments.

Does this mean Postgres will become faster?

Performance benchmarks are still underway. While Rust’s safety features may improve stability, any speed improvements are still to be demonstrated through testing.

How will this affect existing Postgres users?

Initially, the Rust version will serve as a proof of concept and testing platform. Transitioning to it in production will depend on stability, performance, and community support.

Source: hn

FALL

Fall Picks

As an affiliate, we earn on qualifying purchases.

You May Also Like

Twitter Outage

Twitter suffered a widespread outage on April 27, 2024, affecting millions of users globally. The cause is under investigation, with service gradually restoring.

Windows 11’S Built-in Weather App Wastes More Than 1 GB Of RAM

Recent reports reveal Windows 11’s built-in Weather app uses more than 1 GB of RAM, raising concerns about system efficiency and resource management.

UNC cools off Oklahoma’s hot bats, forces MCWS finals Game 3

North Carolina’s pitching staff shut down Oklahoma’s powerful offense, forcing a decisive Game 3 in the College World Series finals.

Heavy Rain Causes Road Collapse In Ankara, Vehicles Damaged

A section of road in Ankara collapsed after heavy rainfall, damaging many vehicles. Authorities are assessing the situation; details are still emerging.