Skip to content

Conversation

@shusaan
Copy link
Contributor

@shusaan shusaan commented Dec 9, 2025

Add pg_ivm Extension Support

Closes #59

Description

This PR adds support for the pg_ivm (Incremental View Maintenance) extension to the CloudNativePG postgres-extensions-containers repository.

Dependencies

⚠️ This PR depends on the resolution of cloudnative-pg/cloudnative-pg#9383

The upstream CloudNativePG operator currently has a bug where PostgreSQL extension names containing underscores like pg_ivm fail to create clusters. This PR can be merged once that issue is resolved.

Task #42

Changes

New Files

  • pg_ivm/Dockerfile - Multi-stage build that compiles pg_ivm from source
  • pg_ivm/metadata.hcl - Extension metadata and version configuration
  • pg_ivm/README.md - Usage documentation and examples

Modified Files

  • .github/workflows/bake.yml - Added pg_ivm to CI/CD workflow

Implementation Details

Since pg_ivm is not available as a PGDG package, this implementation:

  • Builds the extension from source using the official GitHub repository
  • Compiles using PostgreSQL's PGXS build system
  • Supports PostgreSQL 18 on both Debian bookworm and trixie distributions

- Add pg_ivm Dockerfile with multi-stage build
- Create pg_ivm README with usage instructions for CloudNativePG clusters
- Add pg_ivm metadata.hcl with version configuration for PostgreSQL 18
- Update main README.md to include pg_ivm in the extensions table

Signed-off-by: Husn E Rabbi <shussan@gmail.com>
- Enable pg_ivm in automated build pipeline

Signed-off-by: Husn E Rabbi <shussan@gmail.com>
Signed-off-by: Husn E Rabbi <shussan@gmail.com>
Signed-off-by: Husn E Rabbi <shussan@gmail.com>
@shusaan shusaan requested review from a team and NiccoloFei as code owners December 9, 2025 09:57
@shusaan shusaan mentioned this pull request Dec 11, 2025
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.

[New Extension]: pg_ivm

2 participants