Skip to main content

Writing safe PostgreSQL extensions in Rust: a practical guide

UB2.252A (Lameere) | Day 1 | 16:35 - 17:15 | Speakers: Damien Clochard

Writing safe PostgreSQL extensions in Rust: a practical guide
A picture of a devroom at FOSDEM 2024
Open in browser

Notes

Abstract

PostgreSQL's extensibility is legendary, and a revolution is brewing: Rust is emerging as the new gold standard for writing robust, performant database extensions, with the promise to make them safer, faster, and more maintainable than ever before.

In this hands-on session, we'll discover the PGRX framework through 4 practical examples showcasing:

  • Memory safety guarantees
  • A fully managed development environment
  • Access to Rust's vast ecosystem of libraries
  • Seamless PostgreSQL integration

Based on my experience rewriting the PostgreSQL Anonymizer extension from C to Rust, I'll share the lessons learned along the way.

Whether you're a seasoned C developer, a rustacean, or a new to PostgreSQL extension writing, this talk will equip you with the knowledge to leverage Rust's powerful features in your next database projects.

Attachments

Speakers

Damien Clochard

Notice: The placeholder video image is licensed under CC BY-SA 4.0. The original image can be found hereChanges made to the image are: Cropped the image to a new ratio, part of the image was cut off.