Posted On: Aug 30, 2023

Amazon Relational Database Service (RDS) for PostgreSQL now supports the Rust programming language as a trusted procedural language in PostgreSQL major versions 13 and 14, expanding support for Rust from major version 15. This helps 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 with minimal 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 database instances in Amazon RDS running PostgreSQL 13.12 and higher, PostgreSQL 14.9 and higher, and 15.2-R2 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 in the Amazon RDS User Guide.