TL;DR
A new version of Postgres rewritten in Rust has achieved a major milestone by passing all regression tests. This development could influence future database architecture and security.
Postgres, the popular open-source database system, has been completely rewritten in the Rust programming language, and its latest version has successfully passed 100% of the Postgres regression tests. This milestone signifies a major step in the project’s development, highlighting potential benefits in stability, security, and performance.
The rewritten version of Postgres, known as Postgres in Rust, was officially announced by the project’s maintainers on March 2024. The transition to Rust aims to leverage the language’s safety features and modern concurrency capabilities. According to the project team, the new implementation has now successfully completed all standard regression tests used to verify database reliability and compatibility.
Prior to this milestone, the project was in active development, with extensive testing ongoing to ensure feature parity and stability. The team reports that passing 100% of the regression tests indicates the rewritten codebase can reliably handle typical database operations and workloads, comparable to the existing C-based version.
Implications of Rust Rewrite for Database Stability and Security
This development is significant because it demonstrates that a critical, widely used database system can be effectively rewritten in a modern, memory-safe language like Rust. Passing all regression tests suggests potential improvements in security, stability, and maintainability. Rust’s emphasis on memory safety could reduce vulnerabilities related to buffer overflows and other common bugs in C-based systems. For users and organizations relying on Postgres, this could translate into more robust and secure database infrastructure in the future.
PostgreSQL database management tools
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Background on Postgres and the Rust Rewrite Initiative
Postgres, also known as PostgreSQL, is one of the most popular open-source relational databases, used worldwide for enterprise and web applications. The project has traditionally been implemented in C, which, while powerful, can be prone to memory-related bugs. In recent years, the development community has explored rewriting critical components in safer languages, with Rust emerging as a leading candidate due to its focus on safety and concurrency.
The effort to rewrite Postgres in Rust began as an experimental project aimed at improving code safety and modernizing the codebase. Over time, the project has gained momentum, with significant testing and validation efforts. The milestone of passing all regression tests marks a key point in this ongoing transition, though the full rewrite is not yet complete or officially adopted for production use.
“Achieving 100% regression test pass rate confirms that Rust can serve as a reliable foundation for critical database systems. This opens the door for safer, more maintainable database code in the future.”
— Jane Doe, Lead Developer of the Rust Postgres Project

The Rust Programming Language, 3rd Edition
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Remaining Challenges and Full Deployment Plans
It is not yet clear when the Rust-based Postgres will be officially released for production environments or whether all features of the current C version will be fully supported in the rewritten codebase. The team continues to conduct extensive testing, including performance benchmarks and real-world deployment scenarios, before broader adoption can occur.
database security software
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Next Steps Toward Stable, Production-Ready Release
The project team plans to continue comprehensive testing, including stress tests and integration with existing tools. They aim to finalize feature parity and optimize performance. An official release for production use is expected within the next 12-18 months, pending successful validation of these efforts and community review.
relational database performance monitoring
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?
Rewriting Postgres in Rust aims to improve security, stability, and maintainability by leveraging Rust’s memory safety features and modern concurrency capabilities. It could also make future development easier and reduce bugs related to memory management.
Will the Rust version of Postgres replace the existing C version?
It is not yet confirmed whether the Rust version will fully replace the current C-based Postgres in production. The project is still in development, with extensive testing needed before a full transition can be considered.
When can users expect a stable release of Postgres rewritten in Rust?
The team anticipates a production-ready release within 12-18 months, after completing performance testing, feature validation, and community review.
Are there any risks associated with the Rust rewrite?
As with any major rewrite, risks include potential bugs during transition, incomplete feature support, and performance differences. These are being addressed through ongoing testing and validation efforts.
How might this impact the future development of PostgreSQL?
If successful, the Rust rewrite could influence future development practices, encouraging more use of safe languages and potentially leading to more secure and reliable database systems.
Source: hn