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

TL;DR

Before you orderOffer from Amazon

Get bike and ride gear delivered free with Prime

  • Fast, free delivery on millions of items
  • Prime Video, Amazon Music and more included
  • Member-only deals all year
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.

De'Longhi Rivelia Automatic Espresso Machine with Grinder and Milk Frother, Beige

De'Longhi Rivelia Automatic Espresso Machine with Grinder and Milk Frother, Beige

Bose QuietComfort True Wireless Earbuds with Active Noise Cancellation, Bluetooth 5.3, USB-C Charging, IPX4, Black

Bose QuietComfort True Wireless Earbuds with Active Noise Cancellation, Bluetooth 5.3, USB-C Charging, IPX4, Black

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

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.

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.

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

You May Also Like

Buz – A Fork Of Bun Using Modern Zig, With Sub-1s Incremental Builds

Buz, a new fork of Bun built with Zig, delivers incremental build times under one second, promising faster development workflows.

‘Fans Are Asking To See The Whole Race’ – Cycling Union Calls For More Live Coverage Of Women’s Races

The Cyclists’ Alliance urges full broadcasts of major women’s races, citing a survey in which 49% of respondents sought greater visibility.

World Cup Round of 16 bracket, schedule, live updates: France vs. Paraguay kicks off second round

France and Paraguay face off in the World Cup Round of 16, marking the start of the knockout stage. Live updates and schedule details included.

Testing 12 Different Zigbee Temperature/humidity Sensors

SmartHomeScene compared 12 battery-powered Zigbee temperature and humidity sensors against a calibrated reference, with fridge benchmarks added.