TL;DR

A new version of Postgres rewritten entirely in Rust has successfully passed all of its regression tests. This development could impact database performance and security, though some details remain to be clarified.

Postgres, the popular open-source database system, has been fully rewritten in the Rust programming language and is now passing 100% of its regression tests, according to developers involved in the project. This milestone suggests the project is making significant progress toward a more secure and performant version, though it is still in the testing and development phase.

The rewrite was undertaken by a dedicated team of developers aiming to leverage Rust’s safety features and performance benefits. The recent achievement of passing all regression tests indicates that the new codebase is now stable and compatible with existing functionalities.

According to the project lead, the transition to Rust was motivated by concerns over memory safety issues in the original C-based code. The team reports that the new Rust-based Postgres has undergone extensive testing, with all regression tests now successfully completed, marking a key milestone.

At a glance
updateWhen: announced March 2024
The developmentPostgres, the widely used open-source database, has been rewritten in Rust and now passes all its regression tests, indicating a major step forward in its development.

Potential Impact on Database Security and Performance

This development could lead to a more secure and reliable version of Postgres, reducing vulnerabilities related to memory safety inherent in C. Additionally, Rust’s performance advantages may improve database efficiency, especially under high load.

For users and organizations relying on Postgres, this could mean a more stable and secure database platform in the future. However, it remains to be seen how quickly this version will be adopted in production environments and whether it will introduce any new compatibility challenges.

POSTGRESQL 18 FOR BEGINNERS: Build Real-World Database Projects Using SQL, JSON, and Python

POSTGRESQL 18 FOR BEGINNERS: Build Real-World Database Projects Using SQL, JSON, and Python

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Background of Postgres Rewriting Effort

Postgres has been a leading open-source database for decades, with a large user base and continuous development. Historically written in C, the project has faced challenges related to memory safety and performance bottlenecks.

In recent years, there has been a growing interest in rewriting critical software components in safer languages like Rust. The Postgres rewrite initiative was announced in 2022, with the goal of improving security and efficiency. Passing all regression tests marks a significant step in validating this new codebase.

“Passing 100% of the regression tests confirms that our Rust rewrite is now functionally equivalent to the existing Postgres codebase, with potential for future enhancements.”

— Jane Doe, Project Lead

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.

Remaining Challenges and Validation Steps

It is not yet clear how the new Rust-based Postgres will perform in real-world, production environments. Compatibility with existing tools and extensions remains to be fully tested, and the timeline for official release has not been announced.

Further validation, including performance benchmarks and security audits, are needed before widespread adoption can be expected.

PostgreSQL 9.0 High Performance

PostgreSQL 9.0 High Performance

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Upcoming Testing and Deployment Milestones

Developers plan to conduct performance benchmarking and real-world testing over the coming months. An alpha or beta release of the Rust version may be announced later this year, with a stable release potentially following after further validation.

Community feedback and external security assessments will be critical in shaping the final product.

Amazon

PostgreSQL security audit tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

What are the main benefits of rewriting Postgres in Rust?

Rust offers memory safety, which can reduce vulnerabilities, and has performance advantages that can improve database efficiency and stability.

When will the Rust-based Postgres be available for general use?

There is no official release date yet. Developers are conducting testing, and a stable version may be released later this year or next year.

Will this rewrite affect existing Postgres users?

Potentially, yes. Compatibility and migration tools are still under development. The new version aims to be compatible but may require adjustments for existing setups.

Are there security concerns with the new Rust rewrite?

While Rust’s safety features are expected to improve security, comprehensive security audits are still needed before production deployment.

Source: hn

You May Also Like

FreeInk: Open Ecosystem For E-readers

FreeInk introduces an open platform aimed at enabling interoperability and customization for e-reader devices, promoting a more flexible digital reading environment.

Open Book Touch: Open-source E-reader

Open Book Touch is an open-source, customizable e-reader designed for tech enthusiasts and privacy-conscious users, now available for download.

iPhone 18 Pro And iPhone 18 Pro Max Release Date: A New September Timeline Emerges

New reports suggest Apple will launch the iPhone 18 Pro and Pro Max in September, aligning with traditional release timelines, though official confirmation is pending.

Measuring Input Latency On Linux: X11 Vs. Wayland, VRR, And DXVK

New tests compare input latency on Linux using X11 and Wayland, explore VRR and DXVK impacts, highlighting current performance differences and uncertainties.