PostgreSQL
带有 451 扩展的原版 PostgreSQL 内核
在 Pigsty 中,您可以使用不同 “风味” 的 PostgreSQL 分支替换 “原生PG内核”,实现特殊的功能与效果。
Pigsty 支持各种 PostgreSQL 内核和兼容分支,使您能够模拟不同的数据库系统,同时利用 PostgreSQL 的生态系统。每个内核都能提供独特的功能和兼容性层。
| 内核 | 关键特性 | 描述 |
|---|---|---|
| PostgreSQL | 原生内核,扩展齐备 | 原版 PostgreSQL,配备 464 扩展 |
| Supabase | 后端即服务 | 基于 PostgreSQL 的 BaaS,Firebase 替代方案 |
| Citus | 水平分布式扩展,多租户 | 通过原生扩展实现分布式 PostgreSQL |
| Babelfish | SQL Server 兼容 | SQL Server 线协议兼容(PG17) |
| IvorySQL | Oracle 兼容 | Oracle 语法和 PL/SQL 兼容 |
| OpenHalo | MySQL 兼容 | MySQL 线协议兼容 |
| Percona | 透明数据加密 | 带有 pg_tde 的 Percona 发行版 |
| FerretDB | MongoDB 迁移 | MongoDB 线协议兼容 |
| OrioleDB | OLTP 优化 | Zheap,无膨胀,S3 存储 |
| PolarDB | Aurora 风格 RAC | RAC,中国国产合规 |
| Cloudberry | MPP数仓与数据分析 | 大规模并行处理数据仓库 |
| AgensGraph | 图数据库内核 | 基于 PostgreSQL 的图数据库分支 |
| pgEdge | 多主复制,地理分布 | 面向边缘场景的分布式 PostgreSQL 发行版 |

各个 PG 分支内核的版本号字符串(以 el9 为例),其中 citus, ferret, supabase 与原生 PostgreSQL 一致。
| 内核 | 描述 |
|---|---|
| PostgreSQL | PostgreSQL 18.2 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5), 64-bit |
| Babelfish | Babelfish 17.7 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-11), 64-bit |
| IvorySQL | PostgreSQL 18.1 (IvorySQL 5.1) on x86_64-pc-linux-gnu, compiled by gcc (GCC) 9.5.0, 64-bit |
| OpenHalo | openHalo 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 |
| Percona | PostgreSQL 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 |
| OrioleDB | PostgreSQL 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 |
| PolarDB | PostgreSQL 15.16 (PolarDB 15.16.5.0 build 710ce891) on x86_64-linux-gnu |
| AgensGraph | PostgreSQL 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 |
| pgEdge | PostgreSQL 17.7 (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 |
| Cloudberry | PostgreSQL 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 |
带有 451 扩展的原版 PostgreSQL 内核
如何使用Pigsty自建Supabase,一键拉起开源Firebase替代,后端全栈全家桶。
使用 Pigsty 部署原生高可用的 Citus 水平分片集群,将 PostgreSQL 无缝伸缩到多套分片并加速 OLTP/OLAP 查询。
在 Pigsty 中使用 Babelfish(PG17)提供 SQL Server 协议/T-SQL 兼容能力
使用瀚高开源的 IvorySQL 内核,基于 PostgreSQL 集群实现 Oracle 语法/PLSQL 兼容性。
使用阿里云开源的 PolarDB for PostgreSQL 内核提供国产信创资质支持,与类似 Oracle RAC 的使用体验。
使用阿里云商业版本的 PolarDB for Oracle 内核(闭源,PG14,仅在特殊企业版定制中可用)
支持 TDE 透明加密的 Percona Postgres 发行版
如何使用 Pigsty 部署 PostgresML,在数据库内进行机器学习、模型训练、推理、Embedding 与 RAG。
MySQL 兼容的 Postgres 14 分支
使用 Pigsty 部署/监控 Greenplum 集群,构建大规模并行处理(MPP)的 PostgreSQL 数据仓库集群!
PostgreSQL 的下一代 OLTP 引擎
在 Pigsty 中启用 Cloudberry MPP 数仓内核(gpsql 模式),统一接入部署与监控体系。
使用 Neon 开源的 Serverless 版本 PostgreSQL 内核,自建灵活伸缩,Scale To Zero,灵活分叉的PG服务。
在 Pigsty 中使用 AgensGraph(PG16)图数据库内核,支持属性图与 Cypher/SQL 混合查询。
在 Pigsty 中使用 pgEdge(PG17)内核,提供面向边缘场景的多主分布式 PostgreSQL 能力。