pkg.soopen package index

brew / rank 7195

Install pgrx with Homebrew, pacman

Build Postgres Extensions with Rust. Version 0.19.2 via Homebrew; verified 2026-09-13. Also installable with pacman: sudo pacman -S cargo-pgrx.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install pgrx

local Homebrew formula metadata

overview

Package summary

Build Postgres Extensions with Rust

Commands and aliases

  • cargo-pgrx

history

Project history and usage

pgrx is a Rust framework and Cargo-based toolchain for building, running, testing, and packaging PostgreSQL extensions.

Project history

The project was originally known as pgx and later adopted the pgrx name, with its Cargo command becoming cargo-pgrx and its default home moving from ~/.pgx to ~/.pgrx. It is now maintained under the PostgreSQL Central Foundation organization.

The project grew into a workspace of Rust crates covering PostgreSQL bindings, extension APIs, SQL generation, testing, packaging, and the cargo-pgrx development command.

Adoption history

pgrx is distributed as Rust crates, while cargo-pgrx is installed as a Cargo subcommand; system packages including Homebrew and Arch's cargo-pgrx package provide additional installation paths. The framework supports extension development and testing across multiple PostgreSQL major versions.

How it is used

Developers install cargo-pgrx, run cargo pgrx init to configure or build supported PostgreSQL installations, create an extension with cargo pgrx new, and use run, test, schema, install, and package commands throughout development.

Why package nerds care

pgrx gives Rust developers a package-native route into PostgreSQL's C-oriented extension ABI. Its combination of procedural macros, generated SQL schemas, PostgreSQL version management, packaging, and integrated testing makes it both a framework and a specialized build toolchain.

Timeline

  • 2022: The project announced its rename from pgx to pgrx and renamed its Cargo command and home directory.
  • Present: pgrx supports a multi-crate Rust extension framework and managed development environments for multiple PostgreSQL releases.

Related projects

  • pgrx builds on Rust and Cargo while targeting PostgreSQL's extension APIs. cargo-pgrx integrates with PostgreSQL tools such as pg_config, initdb, psql, and pg_regress.

Sources

  • Official cargo-pgrx documentation: https://github.com/pgcentralfoundation/pgrx/blob/develop/cargo-pgrx/README.md
  • Official rename record: https://github.com/pgcentralfoundation/pgrx/issues/1106
  • Official repository: https://github.com/pgcentralfoundation/pgrx

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 2 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.pgrx/config.toml

executables

Installed executables

CommandKindExposureNote
cargo-pgrxcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-09-19
manager version0.19.2
manager updated2026-09-13
local dataok
upstreamcurrent
latest detectedv0.19.2

https://github.com/pgcentralfoundation/pgrx

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:pgrx
Version0.19.2
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/pgrx
Homepagehttps://github.com/pgcentralfoundation/pgrx
Repositoryhttps://github.com/pgcentralfoundation/pgrx
LicenseMIT
Source archivehttps://github.com/pgcentralfoundation/pgrx/archive/refs/tags/v0.19.2.tar.gz
Last updated2026-09-13T11:30:25Z
Pulseupdated
Build dependenciespkgconf, rust
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namepgrx
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

pacman92%

cargo-pgrx 0.19.2-1

Build PostgreSQL extensions with Rust

https://github.com/pgcentralfoundation/pgrx

sudo pacman -S cargo-pgrx
  • License: MIT
  • Architecture: x86_64
  • 7 dependencies
  • 1 optional deps
  • installed executable or alias match
  • Matched by: Cargo Pgrx
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: cargo-pgrx from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation