~/talk

Developing a Postgres Extension in Rust

TalkinFrenchat PG Day France 2024 · 2024-06-11..06-12· [rust, databases]
speakerdeck:daamien
slides:none on file

A ~1000-line PostgreSQL C extension was rewritten in Rust using the pgrx framework and cargo-pgrx tooling; builds and runs use cargo pgrx run and unit tests use cargo pgrx test across PostgreSQL versions. The project implements a validated SIREN custom data type (I/O, comparison operators, index support) and a checksum via the lune3 crate; compilation is slower (hello build 3–4 minutes, full anonizer ~15 minutes) but runtime performance matches the C version and isolation reduces server crashes to about 1%.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09PostgreSQL extensions why
  3. 4:27What is an extension
  4. 6:57C extension limits
  5. 8:24Why Rust
  6. 10:12pgrx overview
  7. 16:36Hello World demo
  8. 19:25Custom type creation
  9. 24:49Anonymizer experience
  10. 28:42Rust challenges
  11. 30:49Rust extensions future
  12. 32:54Q&A
~/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.