PGXN Packaging Support for pgrx
Overview
This proposal adds support in pgrx to generate a PGXN-ready distributable artifact directly from the packaging command.
With a dedicated flag, cargo pgrx package will:
- Generate a valid
META.json (PGXN metadata) from Cargo.toml file OR use existing META.json file present in root folder in PGRX extension.
- Bundle the extension into a
.zip or .tar.gz archive
- Produce an artifact ready for upload to PGXN
Motivation
Publishing a pgrx extension to PGXN currently requires several manual steps:
- Creating a
meta.json
- Packaging files into the correct archive layout
Automating this workflow will:
- Reduce friction for extension authors
- Ensure consistent packaging
- Simplify release automation (CI/CD)
- Encourage more PGXN adoption
Proposed Usage
cargo pgrx package --pgxn --format zip
PGXN Packaging Support for pgrx
Overview
This proposal adds support in pgrx to generate a PGXN-ready distributable artifact directly from the packaging command.
With a dedicated flag,
cargo pgrx packagewill:META.json(PGXN metadata) from Cargo.toml file OR use existing META.json file present in root folder in PGRX extension..zipor.tar.gzarchiveMotivation
Publishing a pgrx extension to PGXN currently requires several manual steps:
meta.jsonAutomating this workflow will:
Proposed Usage