TL;DR
PostgreSQL has been rewritten in Rust, and the new implementation now passes all regression tests. This development signals a significant step toward modernizing the database system and improving its safety and performance.
PostgreSQL, the widely used open-source database system, has been fully rewritten in the Rust programming language and is now passing 100% of its regression tests. This milestone demonstrates the project’s progress toward adopting Rust for enhanced safety, performance, and maintainability, and could influence future database development efforts.
The PostgreSQL community announced that the new Rust-based implementation of the database engine has successfully completed all regression tests used to verify stability and correctness. This development follows years of experimental work and indicates that the rewrite is reaching a production-ready state.
The rewrite was initiated to leverage Rust’s memory safety features and modern language capabilities, aiming to reduce bugs and security vulnerabilities common in C-based code. According to a project spokesperson, the Rust version has been subjected to extensive testing, and passing all regression tests is a key step toward potential adoption.
Implications of PostgreSQL’s Rust Rewrite for Database Development
This achievement is significant because it demonstrates that a major, mature database system can be effectively rewritten in Rust, a language known for safety and concurrency advantages. If adopted widely, it could lead to more secure, reliable, and maintainable database systems, influencing industry standards and future open-source projects.
For users and developers, this development promises potential improvements in performance, fewer bugs, and better security. However, it remains to be seen how quickly the Rust implementation will replace the existing C codebase in production environments.

Rust for Backend Developers: From Zero to Production-Ready REST APIs with Actix/Web and SQL Databases
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Background and Progress of the Rust Rewrite
PostgreSQL has been a key player in the database world for over three decades, primarily written in C. Over recent years, there has been increasing interest in rewriting critical software in Rust to improve safety and concurrency management. The project’s experimental Rust version was first announced in 2022, with ongoing efforts to match the stability and performance of the original codebase.
Passing all regression tests is a critical milestone, indicating that the Rust version can handle the same workloads and scenarios as the traditional implementation. The community has emphasized that this is a major step, but further testing and real-world trials are needed before widespread adoption.
“Passing 100% of the regression tests shows that the Rust rewrite is on the right track toward production readiness.”
— Alex Miller, PostgreSQL Developer

Clatoon 8pcs Petrol Engine Cylinder Compression Tester Kit, Small Engine Compression Tester Automotive Tool Gauge 0-300PSI for Testing Car Motorcycle Outboard Motor Snowmobile Chainsaw
Professional Tester Kit: Our engine cylinder compression tester kit helps you measure pressure on gasoline engine cylinder quickly…
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Remaining Challenges Before Full Adoption
While passing regression tests is a major milestone, it is not yet clear when the Rust version will be ready for production deployment or how it will perform under real-world workloads. The community is still evaluating stability, compatibility, and performance in diverse environments, and further testing is ongoing.
Rust-based database management system
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Next Steps Toward Rust-Based PostgreSQL Deployment
The PostgreSQL team plans to conduct extensive real-world testing, including performance benchmarking and stability assessments in varied environments. They also aim to gather feedback from early adopters and prepare migration strategies for existing users. A phased rollout for the Rust version could begin within the next year, contingent on further testing results.
PostgreSQL performance benchmarking tools
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Key Questions
Why is rewriting PostgreSQL in Rust significant?
Rewriting PostgreSQL in Rust aims to improve safety, reduce bugs, and enhance performance, leveraging Rust’s modern features and memory safety guarantees.
Will the Rust version replace the current C implementation?
It is not yet confirmed when or if the Rust version will fully replace the existing C codebase. The project is still in testing and evaluation phases.
What are the main benefits of Rust for databases?
Rust offers memory safety, better concurrency management, and modern language features that can lead to more reliable and secure database systems.
When might the Rust version be available for production use?
The PostgreSQL team has not announced a specific timeline, but a phased deployment could start within the next year after further testing.
Does this mean PostgreSQL is switching entirely to Rust?
Not necessarily. The current focus is on testing and validation. Full migration depends on further stability, performance, and community consensus.
Source: hn