Writing safe PostgreSQL extensions in Rust: a practical guide

Day 1 | 16:35 | 00:40 | UB2.252A (Lameere) | Damien Clochard


Note: I'm reworking this at the moment, some things won't work.

The stream isn't available yet! Check back at 16:35.

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.