Skip to content

feat: support sql version in metadata files#149

Open
GabriFedi97 wants to merge 7 commits intocloudnative-pg:mainfrom
GabriFedi97:dev/145
Open

feat: support sql version in metadata files#149
GabriFedi97 wants to merge 7 commits intocloudnative-pg:mainfrom
GabriFedi97:dev/145

Conversation

@GabriFedi97
Copy link
Contributor

@GabriFedi97 GabriFedi97 commented Mar 18, 2026

Summary

Adds support for tracking PostgreSQL extension SQL versions separately from Debian package versions, enabling accurate version verification in E2E tests.

Changes

  • Metadata structure: Extensions now define both package (Debian version) and sql (PostgreSQL catalog version) in metadata.hcl
  • Image annotations: New io.cloudnativepg.image.sql.version label added to container images
  • E2E testing: Chainsaw tests verify extension version against the new sql value
  • Renovate support: Updated patterns to track both package and SQL versions automatically
  • Documentation: Updated templates and contributing guide to explain version semantics

Example

versions = {
  bookworm = {
    "18" = {
      package = "0.8.2-1.pgdg12+1"  // Full Debian package version
      sql     = "0.8.2"              // Version in PostgreSQL catalog
    }
  }
}

The SQL version is optional and only required for extensions using CREATE EXTENSION (create_extension = true).

closes #145

@GabriFedi97 GabriFedi97 changed the title Dev/145 feat: support sql version in metadata files Mar 18, 2026
@GabriFedi97 GabriFedi97 force-pushed the dev/145 branch 3 times, most recently from 22367b8 to 7c0ec84 Compare March 18, 2026 14:22
Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
@GabriFedi97 GabriFedi97 marked this pull request as ready for review March 18, 2026 16:46
@GabriFedi97 GabriFedi97 requested review from a team and NiccoloFei as code owners March 18, 2026 16:46
@GabriFedi97 GabriFedi97 mentioned this pull request Mar 19, 2026
4 tasks
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.

Enable override of version at SQL level

1 participant