Skip to content

Change version format, add PGXN release workflow#33

Open
theory wants to merge 1 commit intomainfrom
pgxn
Open

Change version format, add PGXN release workflow#33
theory wants to merge 1 commit intomainfrom
pgxn

Conversation

@theory
Copy link

@theory theory commented Feb 13, 2026

Change the extension version from 0.1.0 to 0.1, but keep the release version at 0.1.7. This allows binary-compatible minor releases without the need for version-specific SQL migration files.

Add a workflow to release on PGXN. Details:

  • Add a simple Makefile so that typical PGXS-style tooling works. It doesn't actually use PGXS except to determine the shared library suffix. The installcheck is a to-do for now.
  • Add .gitattributes to prevent files we don't want distributed from being included in the release.
  • Include submodules in the release, so that builds will work.
  • Add META.json to describe the extension to PGXN.

Copilot AI review requested due to automatic review settings February 13, 2026 00:24
@theory
Copy link
Author

theory commented Feb 13, 2026

I've added PGXN_USERNAME and PGXN_PASSWORD secrets to settings to release as the ClickHouse user.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prepares the pg_stat_ch extension for distribution on PGXN (PostgreSQL Extension Network) by changing the extension schema version format from 0.1.0 to 0.1 while maintaining the release version at 0.1.7. The simplified version format allows binary-compatible minor releases without requiring version-specific SQL migration files for each patch release.

Changes:

  • Renamed SQL installation file from pg_stat_ch--0.1.0.sql to pg_stat_ch--0.1.sql to match new version format
  • Added PGXN release infrastructure including META.json metadata, Makefile for PGXS compatibility, and automated release workflow
  • Configured git export rules to exclude development files from distribution packages

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 13 comments.

Show a summary per file
File Description
sql/pg_stat_ch--0.1.sql New SQL installation file with simplified version number (0.1 instead of 0.1.0)
cmake/GitVersion.cmake Updated fallback version from "0.1.0" to "0.1"
benchmark/Dockerfile Updated to reference new SQL filename pg_stat_ch--0.1.sql
Makefile New PGXS-compatible Makefile for standard PostgreSQL extension builds and PGXN distribution
META.json New PGXN metadata file describing extension, maintainers, dependencies, and resources
CLAUDE.md Updated documentation to reflect new SQL filename
.gitignore Added pattern to ignore release artifact zip files
.github/workflows/pgxn.yml New workflow to automate PGXN releases on tagged commits
.gitattributes New export rules to exclude development files from distribution archives

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 9 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Change the extension version from `0.1.0` to `0.1`, but keep the release
version at `0.1.7`. This allows binary-compatible minor releases without
the need for version-specific SQL migration files.

Add a workflow to release on PGXN. Details:

*   Add a simple `Makefile` so that typical PGXS-style tooling works. It
    doesn't actually use PGXS except to determine the shared library
    suffix. The `installcheck` is a to-do for now.
*   Add `.gitattributes` to prevent files we don't want distributed from
    being included in the release.
*   Include submodules in the release, so that builds will work.
*   Add `META.json` to describe the extension to PGXN.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant