Skip to content

Added pg_partman extension#159

Open
egkristi wants to merge 1 commit into
cloudnative-pg:mainfrom
egkristi:dev/pg-partman
Open

Added pg_partman extension#159
egkristi wants to merge 1 commit into
cloudnative-pg:mainfrom
egkristi:dev/pg-partman

Conversation

@egkristi
Copy link
Copy Markdown

@egkristi egkristi commented Mar 24, 2026

Following the template and Contribution instructions.
This is the pg_partman extension.
Closes #205

@egkristi egkristi requested review from a team and NiccoloFei as code owners March 24, 2026 10:14
@gbartolini
Copy link
Copy Markdown
Contributor

Thanks @egkristi for the contribution. However, as the contribution guide says, we need an issue to be created before the PR. Could you please do it and then link the PR to the issue? Thanks.

@tix79a
Copy link
Copy Markdown

tix79a commented May 18, 2026

Hello, any news about this extension ?

@egkristi egkristi mentioned this pull request May 18, 2026
4 tasks
@egkristi egkristi force-pushed the dev/pg-partman branch 2 times, most recently from 6bec61a to 7878f87 Compare May 19, 2026 05:57
pg_partman is a PostgreSQL extension for automated table partition management.
It supports both time-based and ID-based partitioning with automatic creation
and maintenance of child tables. The background worker (pg_partman_bgw) can
automatically run partition maintenance at configured intervals, removing the
need for external cron jobs.

Closes cloudnative-pg#205

Signed-off-by: Kristiansen, Erling Gustav Moland <Erling.Kristiansen@skatteetaten.no>
Comment thread pg-partman/Dockerfile
Comment on lines +29 to +32
# Binaries (maintenance scripts)
COPY --from=builder /usr/lib/postgresql/${PG_MAJOR}/bin/check_unique_constraint.py /bin/
COPY --from=builder /usr/lib/postgresql/${PG_MAJOR}/bin/dump_partition.py /bin/
COPY --from=builder /usr/lib/postgresql/${PG_MAJOR}/bin/vacuum_maintenance.py /bin/
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes!

Comment thread pg-partman/metadata.hcl
extension_control_path = []
dynamic_library_path = []
ld_library_path = []
bin_path = ["bin"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for following this standard

@gbartolini
Copy link
Copy Markdown
Contributor

Do you think you can resolve the conflict?

Is it feasible to add a specific smoke test for the extension?

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_partman

3 participants