Skip to content

Feature Request: PGXN-ready Artifact Generation in cargo pgrx package #2251

Description

@Nirajkashyap

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:

  1. Creating a meta.json
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions