TL;DR
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.
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.

Building Web Services in Rust: Create APIs with Actix and Rocket
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

PostgreSQL 9.6 High Performance: Optimize your database with configuration tuning, routine maintenance, monitoring tools, query optimization and more
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.

Tips for advanced security testing and penetration inspection in Python – A practical approach to vulnerability assessment and security enhancement using Python scripts – (Japanese Edition)
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.

Relational Database Management System
Book – relational database management system
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