Skip to content

在 Pigsty 中,您可以使用不同 "风味" 的 PostgreSQL 分支替换 "原生 PG 内核",实现特殊的功能与效果。

Pigsty 支持多种 PostgreSQL 内核和兼容分支,让您能够在同一套运维体系中获得兼容性、多主复制、图查询、MPP 数仓、透明加密等不同能力。

需要注意的是,不同内核在 Pigsty 中的交付深度并不完全一致: 像 PostgreSQL、Citus、Babelfish、IvorySQL、PolarDB、AgensGraph、pgEdge 已经有较明确的模板与配置方式; 像 Cloudberry / Greenplum 则更多通过 gpsql 模式统一纳管,MPP 初始化与扩缩容仍建议使用上游工具链。

内核关键特性描述
PostgreSQL原生内核,扩展齐备原版 PostgreSQL,配备 507 扩展
Supabase后端即服务基于 PostgreSQL 的 BaaS,Firebase 替代方案
Citus水平分布式扩展,多租户通过原生扩展实现分布式 PostgreSQL
BabelfishSQL Server 兼容SQL Server 线协议兼容(PG17)
IvorySQLOracle 兼容Oracle 语法和 PL/SQL 兼容
OpenHaloMySQL 兼容MySQL 线协议兼容
Percona透明数据加密带有 pg_tde 的 Percona 发行版
FerretDBMongoDB 迁移MongoDB 线协议兼容
OrioleDBOLTP 优化Zheap,无膨胀,S3 存储
PolarDBAurora 风格 RACRAC,中国国产合规
Cloudberry开源 MPP 数仓gpsql 模式接入的 Cloudberry 分支
AgensGraph属性图 + Cypher在 PostgreSQL 体系内提供图查询能力
pgEdgeSpock 多主复制面向边缘场景的分布式 PostgreSQL 发行版

版本

各个 PG 分支内核的版本号字符串(以 el9 为例),其中 citus, ferret, supabase 与原生 PostgreSQL 一致。

以下版本字符串大多来自当前 Pigsty 仓库对应的软件包。需要特别注意:Cloudberry 2.0.0 目前仅 RPM 构建,pgEdge 当前默认交付 PG17 系列;PolarDB 当前展示上游稳定分支 POLARDB_17_STABLE 与最新发布版本口径。

内核描述
PostgreSQLPostgreSQL 18.2 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5), 64-bit
BabelfishBabelfish 17.7 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-11), 64-bit
IvorySQLPostgreSQL 18.1 (IvorySQL 5.1) on x86_64-pc-linux-gnu, compiled by gcc (GCC) 9.5.0, 64-bit
OpenHaloopenHalo 1.0.14.18 (260226) on x86_64-pc-linux-gnu, compiled by gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-11), 64-bit
PerconaPostgreSQL 18.1 - Percona Server for PostgreSQL 18.1.1 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-11.0.1), 64-bit
OrioleDBPostgreSQL 17.6 (OrioleDB 1.6-beta14) on aarch64-unknown-linux-gnu, compiled by gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-11), 64-bit
PolarDBPOLARDB_17_STABLE (based on PostgreSQL 17, latest upstream release v17.9.1.0)
AgensGraphPostgreSQL 16.9 (AgensGraph 2.16) on x86_64-pc-linux-gnu, compiled by gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-11), 64-bit
pgEdgePostgreSQL 17.9 (pgEdge 5.0.5) on x86_64-pc-linux-gnu, compiled by gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-11), 64-bit
CloudberryPostgreSQL 14.4 (Apache Cloudberry 2.0.0-incubating build 1) on aarch64-unknown-linux-gnu, compiled by gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-11), 64-bit

基于 AGPL 3.0 协议发布