Stored procedures in databases help developers build code that can perform calculations on data and reduce latency to the application, apply follow-up actions on data modifications, and simplify data visualization. For more information on how PL/Rust works, see the PL/Rust Guide. You can also use PL/Rust to build Trusted Language Extensions for PostgreSQL with performance benefits that are comparable to writing code in C without the risk of unsafe memory access.
PL/Rust is an open-source project that lets you write Rust code that runs directly inside a PostgreSQL database, and provides support for PostgreSQL features such as running queries, writing trigger functions, and logging output.
Amazon Relational Database Service (Amazon RDS) for PostgreSQL now supports trusted PL/Rust, allowing developers to safely build high-performance database functions in the Rust programming language.