pg_partman

用于按时间或 ID 管理分区表的扩展

概览

扩展包名版本分类许可证语言
pg_partman5.4.2OLAPPostgreSQLC
ID扩展名BinLibLoadCreateTrustReloc模式
2510pg_partman-
相关扩展citus pg_fkpart timescaledb periods emaj pg_cron plproxy temporal_tables
下游依赖timeseries

版本

类型仓库版本PG 大版本包名依赖
EXTPGDG5.4.21817161514pg_partman-
RPMPGDG5.4.21817161514pg_partman_$v-
DEBPGDG5.4.21817161514postgresql-$v-partman-
OS / PGPG18PG17PG16PG15PG14
el8.x86_64
PGDG 5.4.2
el8.x86_64.pg14 : pg_partman_14
pg_partman_14-5.4.2-1PGDG.rhel8.10.x86_64.rpm PGDG · 5.4.2 · 279.0KiB pg_partman_14-5.4.1-1PGDG.rhel8.10.x86_64.rpm PGDG · 5.4.1 · 278.6KiB pg_partman_14-5.4.0-1PGDG.rhel8.10.x86_64.rpm PGDG · 5.4.0 · 275.3KiB pg_partman_14-5.3.1-1PGDG.rhel8.x86_64.rpm PGDG · 5.3.1 · 271.3KiB pg_partman_14-5.3.0-1PGDG.rhel8.x86_64.rpm PGDG · 5.3.0 · 270.4KiB pg_partman_14-5.2.4-1PGDG.rhel8.x86_64.rpm PGDG · 5.2.4 · 261.4KiB pg_partman_14-5.2.3-1PGDG.rhel8.x86_64.rpm PGDG · 5.2.3 · 260.9KiB pg_partman_14-5.2.2-1PGDG.rhel8.x86_64.rpm PGDG · 5.2.2 · 260.1KiB pg_partman_14-5.2.1-1PGDG.rhel8.x86_64.rpm PGDG · 5.2.1 · 259.6KiB pg_partman_14-5.2.0-1PGDG.rhel8.x86_64.rpm PGDG · 5.2.0 · 259.3KiB pg_partman_14-5.1.0-1PGDG.rhel8.x86_64.rpm PGDG · 5.1.0 · 254.7KiB pg_partman_14-5.0.1-1PGDG.rhel8.x86_64.rpm PGDG · 5.0.1 · 249.4KiB pg_partman_14-5.0.0-1PGDG.rhel8.x86_64.rpm PGDG · 5.0.0 · 248.4KiB pg_partman_14-4.7.4-1PGDG.rhel8.x86_64.rpm PGDG · 4.7.4 · 246.9KiB pg_partman_14-4.7.3-3.rhel8.x86_64.rpm PGDG · 4.7.3 · 246.5KiB pg_partman_14-4.7.3-1.rhel8.x86_64.rpm PGDG · 4.7.3 · 246.2KiB pg_partman_14-4.7.2-1.rhel8.x86_64.rpm PGDG · 4.7.2 · 245.7KiB pg_partman_14-4.7.1-1.rhel8.x86_64.rpm PGDG · 4.7.1 · 260.6KiB pg_partman_14-4.7.0-1.rhel8.x86_64.rpm PGDG · 4.7.0 · 259.9KiB pg_partman_14-4.6.2-1.rhel8.x86_64.rpm PGDG · 4.6.2 · 256.2KiB pg_partman_14-4.6.1-1.rhel8.x86_64.rpm PGDG · 4.6.1 · 255.7KiB pg_partman_14-4.6.0-1.rhel8.x86_64.rpm PGDG · 4.6.0 · 252.2KiB pg_partman_14-4.5.1-2.rhel8.x86_64.rpm PGDG · 4.5.1 · 246.5KiB
el8.aarch64
el9.x86_64
el9.aarch64
el10.x86_64
el10.aarch64
d12.x86_64
PGDG 5.4.2
PGDG 5.4.2
PGDG 5.4.2
PGDG 5.4.2
PGDG 5.4.2
d12.aarch64
PGDG 5.4.2
PGDG 5.4.2
PGDG 5.4.2
PGDG 5.4.2
PGDG 5.4.2
d13.x86_64
PGDG 5.4.2
PGDG 5.4.2
PGDG 5.4.2
PGDG 5.4.2
PGDG 5.4.2
d13.aarch64
PGDG 5.4.2
PGDG 5.4.2
PGDG 5.4.2
PGDG 5.4.2
PGDG 5.4.2
u22.x86_64
u22.aarch64
u24.x86_64
u24.aarch64

构建

您可以使用 pig build 命令构建 pg_partman 扩展的 RPM / DEB 包:

pig build pkg pg_partman         # 构建 RPM / DEB 包

安装

您可以直接安装 pg_partman 扩展包的预置二进制包,首先确保 PGDG 仓库已经添加并启用:

pig repo add pgdg -u          # 添加 PGDG 仓库并更新缓存

使用 pig 或者是 apt/yum/dnf 安装扩展:

pig install pg_partman;          # 当前活跃 PG 版本安装
pig ext install -y pg_partman -v 18  # PG 18
pig ext install -y pg_partman -v 17  # PG 17
pig ext install -y pg_partman -v 16  # PG 16
pig ext install -y pg_partman -v 15  # PG 15
pig ext install -y pg_partman -v 14  # PG 14
dnf install -y pg_partman_18       # PG 18
dnf install -y pg_partman_17       # PG 17
dnf install -y pg_partman_16       # PG 16
dnf install -y pg_partman_15       # PG 15
dnf install -y pg_partman_14       # PG 14
apt install -y postgresql-18-partman   # PG 18
apt install -y postgresql-17-partman   # PG 17
apt install -y postgresql-16-partman   # PG 16
apt install -y postgresql-15-partman   # PG 15
apt install -y postgresql-14-partman   # PG 14

创建扩展

CREATE EXTENSION pg_partman;

最后修改 2026-03-08: add extension catalog (baacba6)