pgrx
« Back to VersTracker
Description:
Build Postgres Extensions with Rust
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Databases
Tags: rust postgresql database extensions development
Install: brew install pgrx
About:
Pgrx is a Rust framework designed for building Postgres extensions entirely in Rust, eliminating the need for C code. It provides a safe and ergonomic API for interacting with Postgres internals, managing SQL generation, and running tests. This tool significantly lowers the barrier to entry for creating high-performance, memory-safe database extensions.
Key Features:
  • Write Postgres extensions in safe Rust
  • Automatic SQL generation from Rust code
  • Integrated testing framework for extensions
  • Supports Postgres 10 through 16
Use Cases:
  • Developing custom data types and operators for PostgreSQL
  • Creating high-performance functions and aggregations
  • Building secure extensions with Rust's memory safety guarantees
Alternatives:
  • C extensions – Pgrx offers memory safety and easier build processes compared to traditional C development.
  • PL/Rust – Pgrx compiles to native loadable extensions, whereas PL/Rust runs stored procedures within the database engine.
Version History
Detected Version Rev Change Commit