pg_fkpart
Overview
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 2500 | pg_fkpart | No | No | No | Yes | No | No | pgfkpart |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | MIXED | 1.7.0 | 1817161514 | pg_fkpart | - |
| RPM | PIGSTY | 1.7.0 | 1817161514 | pg_fkpart_$v | - |
| DEB | PIGSTY | 1.7.0 | 1817161514 | postgresql-$v-pg-fkpart | - |
Build
You can build the DEB packages for pg_fkpart using pig build:
Install
You can install pg_fkpart directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Create Extension:
Usage
pg_fkpart enables partitioning PostgreSQL tables based on a foreign key relationship.
All functions reside in the pgfkpart schema.
Create the Extension
Partition a Table by Foreign Key
Unpartition a Table
Index Management
Propagate indexes and constraints from parent to all child tables:
Drop an index across all child tables:
Drop a unique constraint across all child tables:
Partition Tracking
The extension maintains a pgfkpart.partition table that records all partitioned tables,
including schema, table name, foreign key column, and foreign table information.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)