Posted On: May 23, 2023

Amazon Relational Database Service (RDS) for PostgreSQL now supports the Rust programming language as a new trusted procedural language. This allows you to build high performance user defined functions to extend PostgreSQL for compute-intensive data processing.

Rust combines the performance and resource efficiency of compiled languages like C with mechanisms that limit the risks from unsafe memory use. As a PostgreSQL trusted procedural language, PL/Rust provides memory safety so that an unprivileged user can run code in the database without the risk of crashing the database due to a software defect that corrupts memory. Developers can also package PL/Rust code as a Trusted Language Extension for PostgreSQL to run on Amazon RDS.

PL/Rust is available on all database instances in Amazon RDS running PostgreSQL 15.2 and higher in Amazon Web Services China (Beijing) Region, operated by Sinnet and Amazon Web Services China (Ningxia) Region, operated by NWCD.

You can get started by launching a new Amazon RDS DB instance directly from the Amazon RDS Management Console. See Amazon RDS for PostgreSQL Pricing for pricing details and regional availability. To learn more about PL/Rust, see Build high performance functions in Rust on Amazon RDS for PostgreSQL in the Amazon Web Services Database Blog and the Amazon RDS User Guide.