---
title: "Build, test, and package PostgreSQL extensions in Rust with pgrx"
description: "Use pgrx when an agent needs the Rust-native extension lifecycle for PostgreSQL, including local builds, test runs, and packaging across PostgreSQL versions."
verification: "listed"
source: "https://github.com/pgcentralfoundation/pgrx"
author: "PgCentral Foundation"
publisher_type: "open_source_project"
category:
  - "Developer Tools"
framework:
  - "Multi-Framework"
tool_ecosystem:
  github_repo: "pgcentralfoundation/pgrx"
  github_stars: 4458
---

# Build, test, and package PostgreSQL extensions in Rust with pgrx

Use pgrx when an agent needs the Rust-native extension lifecycle for PostgreSQL, including local builds, test runs, and packaging across PostgreSQL versions.

## Prerequisites

Rust toolchain, PostgreSQL development dependencies, and pgrx

## Installation

Choose whichever fits your setup:

1. Copy this skill folder into your local skills directory.
2. Clone the repo and symlink or copy the skill into your agent workspace.
3. Add the repo as a git submodule if you manage shared skills centrally.
4. Install it through your internal provisioning or packaging workflow.
5. Download the folder directly from GitHub and place it in your skills collection.

Install command or upstream instructions:

```
Install Rust and PostgreSQL development prerequisites, then follow the pgrx setup flow to install the CLI and initialize local PostgreSQL versions before building or testing extensions.
```

## Documentation

- https://github.com/pgcentralfoundation/pgrx

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/build-test-and-package-postgresql-extensions-in-rust-with-pgrx/)
