Brussels / 1 & 2 February 2025

schedule

Writing safe PostgreSQL extensions in Rust: a practical guide


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.

Speakers

Photo of Damien Clochard Damien Clochard

Links