
from pgrx4,672
Guidance and commands for building, testing, and running pgrx-based Postgres extensions in Rust; clarifies #[test] vs #[pg_test] and appropriate cargo pgrx subc
Clear, practical guidance for developing Postgres extensions with pgrx and Rust. Explains the runtime boundary between code that runs inside Postgres (cdylib) and pure Rust test binaries, describes when to use #[test] vs #[pg_test], and provides command routing for common workflows (build, test, run, regress, package).
Use this skill when you are authoring or testing pgrx extensions, deciding whether tests need a Postgres backend, selecting the minimal cargo command for a task, or preparing SQL regression tests and packaging. Helpful during CI setup, local development, and debugging linker errors related to pg_sys.
Best used by developer-focused agents with shell and repo access (Copilot/Codex/CLI-oriented agents) that can recommend commands and edit CI configs.
This skill has not been reviewed by our automated audit pipeline yet.