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

Buying for a business?Offer from Amazon

Get business pricing on your home office setup

  • Business-only prices and quantity discounts
  • Tax-exempt purchasing
  • Multiple users, one account, clear invoices
As an affiliate, we earn on qualifying purchases.

Postgres has been fully rewritten in Rust and is now passing all regression tests. This development could impact database performance, security, and future updates.

Postgres has completed a major rewrite in Rust and is now passing 100% of its regression tests. This marks a significant milestone in the project’s effort to improve the database system’s safety, performance, and maintainability, according to the Postgres development team.

The Postgres community announced that the core codebase has been fully rewritten in Rust, a systems programming language known for safety and performance. The rewrite aims to modernize the system’s architecture, reduce bugs, and improve security. The team reports that the new implementation has successfully passed all 100% of the regression tests used to validate stability and compatibility with existing features.

This achievement follows several years of development and testing, with the team emphasizing that the transition to Rust is ongoing but that the current milestone demonstrates the project’s technical feasibility and progress. The rewritten code is now in the testing phase, with plans to gradually integrate it into production environments.

At a glance
updateWhen: announced March 2024
The developmentThe Postgres project announced that its core codebase has been rewritten in Rust and is now passing all regression tests, a milestone in its development.

Impact of Rust Rewrite on Postgres Stability and Security

The successful rewrite in Rust and passing all regression tests could lead to a more secure, reliable, and maintainable database system. Rust’s memory safety features are expected to reduce common bugs and vulnerabilities, potentially lowering the risk of security breaches. Additionally, the improved code quality may enhance performance and ease future development efforts, impacting millions of users and organizations relying on Postgres.

Amazon

PostgreSQL Rust integration tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Background on Postgres and Rust Integration Efforts

Postgres, an open-source relational database system, has been under continuous development for decades. The project has explored various performance and security improvements, but the recent shift to Rust represents one of its most significant technological overhauls. The effort began around 2020, driven by a desire to leverage Rust’s safety features, with incremental testing and integration phases. Prior to this milestone, parts of Postgres had been tested with Rust, but the full rewrite and comprehensive test passing mark a new chapter.

“Passing 100% of regression tests with the Rust rewrite demonstrates the viability of this approach and marks a major step toward a more secure and reliable Postgres.”

— Postgres Development Team

Amazon

Postgres database performance monitoring

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Remaining Challenges and Integration Uncertainties

While passing all regression tests is a major milestone, it is not yet clear how the Rust rewrite will perform in real-world, large-scale production environments. The team has not specified timelines for full deployment or how existing users will transition. Additionally, questions remain about compatibility with existing extensions and tools, and whether performance improvements will be consistent across diverse workloads.

Amazon

PostgreSQL security enhancement software

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Next Steps Toward Production Deployment and Community Adoption

The Postgres team plans to continue testing the Rust-based code in staging environments, gradually increasing its scope. They aim to release an initial experimental version for community testing within the next few months. Feedback from early adopters and real-world testing will shape the final integration plan. The team also intends to monitor performance, security, and stability closely as the project moves toward broader adoption.

Amazon

relational database management systems

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

What does rewriting Postgres in Rust mean for users?

It could lead to a more secure and stable database system, with potential performance benefits. However, full deployment is still forthcoming, and users should follow official updates for migration guidance.

Will existing Postgres features remain compatible with the Rust version?

The team is working to ensure compatibility, but some adjustments may be necessary during the transition. Compatibility with extensions and tools is still being tested.

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

The team has not announced a specific release date but plans to release an experimental version for testing within the next few months.

What are the main advantages of rewriting in Rust?

Rust offers memory safety, concurrency support, and performance improvements, which can reduce bugs and security vulnerabilities in the database code.

Source: hn

FALL

Fall Picks

As an affiliate, we earn on qualifying purchases.

You May Also Like

Postgres rewritten in Rust, now passing 100% of the Postgres regression tests

Postgres has been rewritten in Rust and now passes 100% of its regression tests, marking a significant milestone in database development.

Office Storage Credenza Ideas: The Storage Mistake That Creates Clutter Fast

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

Creator Desk Lighting: What Nobody Tells You

Finding the perfect creator desk lighting can transform your content—discover the hidden tips that nobody tells you.

Office Chair Seat Depth: The Size Rule That Makes Everything Easier

Finding the perfect office chair seat depth ensures comfort and proper posture—discover the size rule that makes choosing easier and more effective.