~/talk

Can We Use Rust to Develop Extensions for PostgreSQL?

Talkat POSETTE: An Event for Postgres 2025 · 2025-06-10..06-12· [rust, databases]
slides:none on file

Claim: Rust can build real PostgreSQL extensions using the pgrx framework, and the demo extension compiles, installs, and its unit test passes across supported versions. pgrx provides automated SQL generation for functions and operators, a managed dev environment (cargo pgrx init), and integrated testing (cargo pgrx test), but it only supports Postgres 13–17, auto-generates SQL for B-tree/Hash only (no GIN/GiST/SP-GiST), lacks pg_regress integration, and requires learning pgrx memory rules including PgBox to bridge Rust ownership and Postgres MemoryContexts.

AI-written summary · about

  1. 0:00Introduction
  2. 1:15Can we use Rust for Postgres extensions?
  3. 2:06Why Rust? - Memory safety and security
  4. 3:41What is pgrx?
  5. 5:45DEMO: pgrx
  6. 10:27pgrx: Pros & Cons
  7. 12:48Requirements for C-Based Extensions
  8. 16:40Memory management in C/PostgreSQL
  9. 24:17PostgreSQL & Rust: Core vs. Extensions
  10. 25:18Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.