# 内核分支

> 如何在 Pigsty 中使用其他 PostgreSQL 内核分支？例如 Citus，Babelfish，IvorySQL，PolarDB 等

---

LLMS index: [llms.txt](/llms.txt)

---

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

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

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

|                       内核                        |       关键特性        | 描述                                            |
|:-----------------------------------------------:|:-----------------:|:----------------------------------------------|
|  [**PostgreSQL**](/docs/pgsql/kernel/postgres)  |   **原生内核，扩展齐备**   | 原版 PostgreSQL，配备 575 扩展 |
|   [**Supabase**](/docs/pgsql/kernel/supabase)   |     **后端即服务**     | 基于 PostgreSQL 的 BaaS，Firebase 替代方案            |
|      [**Citus**](/docs/pgsql/kernel/citus)      |  **水平分布式扩展，多租户**  | 通过原生扩展实现分布式 PostgreSQL                        |
 |  [**Babelfish**](/docs/pgsql/kernel/babelfish)  | **SQL Server 兼容** | SQL Server 线协议兼容（PG17/18）                     |
|   [**IvorySQL**](/docs/pgsql/kernel/ivorysql)   |   **Oracle 兼容**   | Oracle 语法和 PL/SQL 兼容                          |
|   [**OpenHalo**](/docs/pgsql/kernel/openhalo)   |   **MySQL 兼容**    | MySQL 线协议兼容                                   |
|    [**Percona**](/docs/pgsql/kernel/percona)    |    **透明数据加密**     | 带有 pg_tde 的 Percona 发行版                       |
| [**DocumentDB**](/docs/pgsql/kernel/documentdb) |  **MongoDB 迁移**   | DocumentDB + FerretDB，兼容 MongoDB 线协议          |
|   [**OrioleDB**](/docs/pgsql/kernel/orioledb)   |    **OLTP 优化**    | Zheap，无膨胀，S3 存储                               |
|    [**PolarDB**](/docs/pgsql/kernel/polardb)    | **Aurora 风格 RAC** | RAC，中国国产合规                                    |
| [**Cloudberry**](/docs/pgsql/kernel/cloudberry) |   **开源 MPP 数仓**   | 以 `gpsql` 模式接入的 Cloudberry 分支                 |
| [**AgensGraph**](/docs/pgsql/kernel/agensgraph) | **属性图 + Cypher**  | 在 PostgreSQL 体系内提供图查询能力                       |
|     [**pgEdge**](/docs/pgsql/kernel/pgedge)     |  **Spock 多主复制**   | 面向边缘场景的分布式 PostgreSQL 发行版                     |
{.full-width}

![PostgreSQL 分支与兼容内核](/img/pigsty/pg-forks.webp)



## 版本

| 内核                                                 | Debian / Ubuntu                                                                                                                                                        | EL                                                                                                                                                             |
|:---------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [**PostgreSQL / Citus**](/docs/pgsql/kernel/citus) | `PostgreSQL 18.6 (Ubuntu 18.6-1.pgdg26.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0, 64-bit` | `PostgreSQL 18.6 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 14.3.1 20251022 (Red Hat 14.3.1-4), 64-bit`                                 |
| [**IvorySQL**](/docs/pgsql/kernel/ivorysql)        | `PostgreSQL 18.4 (IvorySQL 5.4) on x86_64-pc-linux-gnu, compiled by gcc (GCC) 9.5.0, 64-bit`                                                                           | `PostgreSQL 18.4 (IvorySQL 5.4) on x86_64-pc-linux-gnu, compiled by gcc (GCC) 9.5.0, 64-bit`                                                                   |
| [**Babelfish**](/docs/pgsql/kernel/babelfish)      | `Babelfish 17.7 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0, 64-bit`                                                                      | `Babelfish 17.7 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 14.3.1 20251022 (Red Hat 14.3.1-4), 64-bit`                                                      |
| [**PolarDB**](/docs/pgsql/kernel/polardb)          | `PostgreSQL 17.10 (PolarDB 17.10.1.0 build accf02e2) on x86_64-linux-gnu`                                                                                              | `PostgreSQL 17.10 (PolarDB 17.10.1.0 build accf02e2) on x86_64-linux-gnu`                                                                                      |
| [**Percona**](/docs/pgsql/kernel/percona)          | `PostgreSQL 18.4 - Percona Server for PostgreSQL 18.4.1 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0, 64-bit`                              | `PostgreSQL 18.4 - Percona Server for PostgreSQL 18.4.1 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 14.3.1 20250617 (Red Hat 14.3.1-2), 64-bit`              |
| [**OrioleDB**](/docs/pgsql/kernel/orioledb)        | `OrioleDB 18.4 (OrioleDB 1.8-beta16) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0, 64-bit`                                                 | `OrioleDB 18.4 (OrioleDB 1.8-beta16) on x86_64-pc-linux-gnu, compiled by gcc (GCC) 14.3.1 20251022 (Red Hat 14.3.1-4), 64-bit`                                 |
| [**OpenHalo**](/docs/pgsql/kernel/openhalo)        | `openHalo 14.18 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0, 64-bit`                                                                      | `openHalo 14.18 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 14.3.1 20251022 (Red Hat 14.3.1-4), 64-bit`                                                      |
| [**DocumentDB**](/docs/pgsql/kernel/documentdb)    | `PostgreSQL 18.6 (Ubuntu 18.6-1.pgdg26.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0, 64-bit` | `PostgreSQL 18.6 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 14.3.1 20251022 (Red Hat 14.3.1-4), 64-bit`                                 |
| [**AgensGraph**](/docs/pgsql/kernel/agensgraph)    | `PostgreSQL 17.10 (AgensGraph 2.17.0) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0, 64-bit`                                                | `PostgreSQL 17.10 (AgensGraph 2.17.0) on x86_64-pc-linux-gnu, compiled by gcc (GCC) 14.3.1 20251022 (Red Hat 14.3.1-4), 64-bit`                                |
| [**pgEdge**](/docs/pgsql/kernel/pgedge)            | `PostgreSQL 18.4 (pgEdge 5.0.10) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0, 64-bit`                                                     | `PostgreSQL 18.4 (pgEdge 5.0.10) on x86_64-pc-linux-gnu, compiled by gcc (GCC) 14.3.1 20251022 (Red Hat 14.3.1-4), 64-bit`                                     |
| [**Cloudberry**](/docs/pgsql/kernel/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` |
{.full-width}

---

Section pages:

- [PostgreSQL](/docs/pgsql/kernel/postgres/): 带有 575 个扩展的原版 PostgreSQL 内核
- [Supabase](/docs/pgsql/kernel/supabase/): 如何使用 Pigsty 自建 Supabase，一键拉起开源 Firebase 替代，后端全栈全家桶。
- [Citus](/docs/pgsql/kernel/citus/): 使用 Pigsty 部署原生高可用的 Citus 水平分片集群，将 PostgreSQL 无缝伸缩到多套分片并加速 OLTP/OLAP 查询。
- [Babelfish](/docs/pgsql/kernel/babelfish/): 在 Pigsty 中使用 Babelfish（PG17/18）提供 SQL Server 协议/T-SQL 兼容能力
- [IvorySQL](/docs/pgsql/kernel/ivorysql/): 使用瀚高开源的 IvorySQL 内核，基于 PostgreSQL 集群实现 Oracle 语法/PLSQL 兼容性。
- [PolarDB PG](/docs/pgsql/kernel/polardb/): 使用阿里云开源的 PolarDB for PostgreSQL 内核提供国产信创资质支持，与类似 Oracle RAC 的使用体验。
- [PolarDB Oracle](/docs/pgsql/kernel/polardb-o/): 使用阿里云商业版本的 PolarDB for Oracle 内核（闭源，PG14，仅在特殊企业版定制中可用）
- [Percona](/docs/pgsql/kernel/percona/): 支持 TDE 透明加密的 Percona Postgres 发行版
- [PostgresML](/docs/pgsql/kernel/pgml/): 如何使用 Pigsty 部署 PostgresML，在数据库内进行机器学习、模型训练、推理、Embedding 与 RAG。
- [openHalo](/docs/pgsql/kernel/openhalo/): MySQL 兼容的 Postgres 14 分支
- [Greenplum](/docs/pgsql/kernel/greenplum/): 使用 Pigsty 部署/监控 Greenplum 集群，构建大规模并行处理（MPP）的 PostgreSQL 数据仓库集群！
- [OrioleDB](/docs/pgsql/kernel/orioledb/): PostgreSQL 的下一代 OLTP 引擎
- [Cloudberry](/docs/pgsql/kernel/cloudberry/): 在 Pigsty 中使用 Cloudberry 开源 MPP 数仓内核，通过 `gpsql` 模式统一纳管节点、监控与配置。
- [Neon](/docs/pgsql/kernel/neon/): 使用 Neon 开源的 Serverless 版本 PostgreSQL 内核，自建灵活伸缩，Scale To Zero，灵活分叉的 PG 服务。
- [AgensGraph](/docs/pgsql/kernel/agensgraph/): 在 Pigsty 中使用 AgensGraph（PG17）图数据库内核，在 PostgreSQL 体系内获得属性图与 Cypher/SQL 混合查询能力。
- [pgEdge](/docs/pgsql/kernel/pgedge/): 在 Pigsty 中使用 pgEdge（PG15~18）内核，借助 Spock 多主逻辑复制构建面向边缘场景的分布式 PostgreSQL。
- [DocumentDB](/docs/pgsql/kernel/documentdb/): DocumentDB + FerretDB 组合提供 MongoDB 线协议兼容能力
