pg_fkpart
Table partitioning by foreign key utility
pg_fkpart : Table partitioning by foreign key utility
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 2500 | pg_fkpart | pg_fkpart | 1.7.0 |
OLAP | GPL-2.0 | SQL |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| ----d-- | No | No | No | Yes | no | no |
| Relationships | |
|---|---|
| Schemas | pgfkpart |
| See Also | timescaledb pg_partman pg_ttl_index citus timeseries pg_cron |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | MIXED | 1.7.0 |
18 17 16 15 14 | pg_fkpart |
- |
| RPM | PIGSTY | 1.7.0 |
18 17 16 15 14 | pg_fkpart_$v |
- |
| DEB | PIGSTY | 1.7.0 |
18 17 16 15 14 | postgresql-$v-pg-fkpart |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PGDG 1.7.0 | PGDG 1.7.0 | PGDG 1.7.0 | PGDG 1.7.0 | PGDG 1.7.0 |
| el8.aarch64 | PGDG 1.7.0 | PGDG 1.7.0 | PGDG 1.7.0 | PGDG 1.7.0 | PGDG 1.7.0 |
| el9.x86_64 | PGDG 1.7.0 | PGDG 1.7.0 | PGDG 1.7.0 | PGDG 1.7.0 | PGDG 1.7.0 |
| el9.aarch64 | PGDG 1.7.0 | PGDG 1.7.0 | PGDG 1.7.0 | PGDG 1.7.0 | PGDG 1.7.0 |
| el10.x86_64 | PGDG 1.7.0 | PGDG 1.7.0 | PGDG 1.7.0 | PGDG 1.7.0 | PGDG 1.7.0 |
| el10.aarch64 | PGDG 1.7.0 | PGDG 1.7.0 | PGDG 1.7.0 | PGDG 1.7.0 | PGDG 1.7.0 |
| d12.x86_64 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 |
| d12.aarch64 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 |
| d13.x86_64 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 |
| d13.aarch64 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 |
| u22.x86_64 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 |
| u22.aarch64 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 |
| u24.x86_64 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 |
| u24.aarch64 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 |
| u26.x86_64 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 |
| u26.aarch64 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 | PIGSTY 1.7.0 |
Source
github.com/lemoineat/pg_fkpart
pg_fkpart-1.7.0.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
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.