pgpm-partman
pgpm-partman · Connect PGPM metaschema partition records to pg_partman maintenance.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102168 | pgpm-partman | pgpm-partman | 0.47.0 | TIME | MIT | PLpgSQL |
| Relationships | |
|---|---|
| Requires | plpgsql pg_partman metaschema-schema |
Usage
Sources:
- packages/partman/README.md
- packages/partman/sql/pgpm-partman–0.47.0.sql
- packages/partman/Makefile
- packages/partman/pgpm-partman.control
pgpm-partman adds partition helpers and metaschema triggers around an existing pg_partman installation. partman.create_parent_with_retention configures a parent and retention; ID-based helpers resolve a table through the application catalog.
Core Workflow
Operational Boundaries
Install pg_partman in the partman schema first; the pinned wrapper SQL does not create it. partman.verify_parent_by_id checks registration and partman.run_maintenance_by_id runs maintenance. Installation attaches INSERT and DELETE triggers to metaschema_public.partition. Deleting a partition record removes its configuration and can drop its recorded template table. Several maintenance helpers use SECURITY DEFINER; restrict execution and catalog writes. Compatibility follows the installed pg_partman API and matching metaschema layout. Dependencies are plpgsql, pg_partman, metaschema-schema. The installation SQL grants privileges to the pre-existing roles authenticated. This SQL-only module needs no library preload or restart; no PostgreSQL-major support matrix is published for this revision. Its fixed schema layout is not relocatable. Install the matching dependency closure before enabling it.