11# PIGSTY - Self-Hosting PostgreSQL like a Pro
22
33[ ![ Website: pigsty.io] ( https://img.shields.io/badge/website-pigsty.io-slategray?style=flat&logo=cilium&logoColor=white )] ( https://pigsty.io )
4- [ ![ 网站 : pigsty.cc] ( https://img.shields.io/badge/网站 -pigsty.cc-slategray?style=flat&logo=cilium&logoColor=white )] ( https://pigsty.cc )
5- [ ![ Version: v4.1 .0] ( https://img.shields.io/badge/version-v4.1 .0-slategray?style=flat&logo=cilium&logoColor=white )] ( https://github.com/pgsty/pigsty/releases/tag/v4.1.0 )
4+ [ ![ CN : pigsty.cc] ( https://img.shields.io/badge/CN -pigsty.cc-slategray?style=flat&logo=cilium&logoColor=white )] ( https://pigsty.cc )
5+ [ ![ Version: v4.2 .0] ( https://img.shields.io/badge/version-v4.2 .0-slategray?style=flat&logo=cilium&logoColor=white )] ( https://github.com/pgsty/pigsty/releases )
66[ ![ License: Apache-2.0] ( https://img.shields.io/github/license/pgsty/pigsty?logo=opensourceinitiative&logoColor=green&color=slategray )] ( https://pigsty.io/docs/about/license/ )
77[ ![ GitHub Stars] ( https://img.shields.io/github/stars/pgsty/pigsty?style=flat&logo=github&logoColor=black&color=slategray )] ( https://star-history.com/#pgsty/pigsty&Date )
8- [ ![ Extensions: 451 ] ( https://img.shields.io/badge/extensions-451 -%233E668F?style=flat&logo=postgresql&logoColor=white&labelColor=3E668F )] ( https://pgext.cloud/list )
8+ [ ![ Extensions: 461 ] ( https://img.shields.io/badge/extensions-461 -%233E668F?style=flat&logo=postgresql&logoColor=white&labelColor=3E668F )] ( https://pgext.cloud/list )
99[ ![ Ask DeepWiki] ( https://deepwiki.com/badge.svg )] ( https://deepwiki.com/pgsty/pigsty )
1010
1111Battery-Included, Local-First ** PostgreSQL** Distribution as a Free & Better ** RDS** !
@@ -16,21 +16,16 @@ Battery-Included, Local-First **PostgreSQL** Distribution as a Free & Better **R
1616
1717[ ![ banner] ( https://pigsty.io/img/pigsty/banner.png )] ( https://pigsty.io )
1818
19- Pigsty scales from [ ** laptop** ] ( https://pigsty.io/docs/setup ) to [ ** datacenter** ] ( https://pigsty.io/docs/deploy ) . Enterprise-grade. Developer-friendly. [ ** Get Started** ] ( https://pigsty.io/docs/setup/install ) with the latest [ ** v4.1.0** ] ( https://github.com/pgsty/pigsty/releases/tag/v4.2.0 ) :
20-
21- > [ !IMPORTANT]
22- > ## PostgreSQL 18.2, 17.8,... Breaks, Do not deploy until 2026-02-26
23- > Check [ Out-of-cycle release scheduled for February 26, 2026] ( https://www.postgresql.org/about/news/out-of-cycle-release-scheduled-for-february-26-2026-3241/ ) for details.
24- > We strongly recommend holding off on any new deployment until the patched PostgreSQL packages (18.3,...) is released, use [ v4.0.0 offline package] ( https://github.com/pgsty/pigsty/releases/tag/v4.0.0 ) (PG 18.1) for urgent needs.
19+ Pigsty scales from [ ** laptop** ] ( https://pigsty.io/docs/setup ) to [ ** datacenter** ] ( https://pigsty.io/docs/deploy ) . Enterprise-grade. Developer-friendly. [ ** Get Started** ] ( https://pigsty.io/docs/setup/install ) with the latest [ ** v4.2.0** ] ( https://github.com/pgsty/pigsty/releases ) :
2520
2621``` bash
27- curl -fsSL https://repo.pigsty.io/get | bash -s v4.1 .0
22+ curl -fsSL https://repo.pigsty.io/get | bash -s v4.2 .0
2823```
2924
3025
3126## Features
3227
33- - ** Extensible** : ** 451 ** [ ** PG Extensions** ] ( https://pgext.cloud/list ) & ** 10 ** [ ** PG Kernel** ] ( https://pigsty.io/docs/pgsql/kernel ) available, with [ ** MsSQL** ] ( https://pigsty.io/docs/pgsql/kernel/babelfish ) , [ ** Oracle** ] ( https://pigsty.io/docs/pgsql/kernel/ivorysql ) , [ ** MySQL** ] ( https://pigsty.io/docs/pgsql/kernel/openhalo ) , [ ** Mongo** ] ( https://pigsty.io/docs/ferret ) compatibility.
28+ - ** Extensible** : ** 460+ ** [ ** PG Extensions** ] ( https://pgext.cloud/list ) & ** 12 ** [ ** PG Kernel** ] ( https://pigsty.io/docs/pgsql/kernel ) available, with [ ** MsSQL** ] ( https://pigsty.io/docs/pgsql/kernel/babelfish ) , [ ** Oracle** ] ( https://pigsty.io/docs/pgsql/kernel/ivorysql ) , [ ** MySQL** ] ( https://pigsty.io/docs/pgsql/kernel/openhalo ) , [ ** Mongo** ] ( https://pigsty.io/docs/ferret ) compatibility.
3429- ** Reliable** : Self-healing [ ** HA** ] ( https://pigsty.io/docs/concept/ha ) clusters with pre-configured [ ** PITR** ] ( https://pigsty.io/docs/pgsql/backup ) and built-in [ ** ACL** ] ( https://pigsty.io/docs/pgsql/config/acl ) , [ ** CA & SSL** ] ( https://pigsty.io/docs/infra/admin/cert ) secure best practice.
3530- ** Observable** : SOTA monitoring for [ ** PG** ] ( https://demo.pigsty.io/ui/d/pgrds-instance/pgrds-instance ) / [ ** Infra** ] ( https://pigsty.io/docs/infra ) / [ ** Node** ] ( https://pigsty.io/docs/node ) based on ** Victoria** & ** Grafana** stack: [ ** Demo** ] ( https://demo.pigsty.io ) & [ ** Gallery** ] ( https://github.com/pgsty/pigsty/wiki/Gallery ) .
3631- ** Scalable** : Auto-routed & pooled customizable database [ ** Services** ] ( https://pigsty.io/docs/pgsql/service ) [ ** Access** ] ( https://pigsty.io/docs/pgsql/service#access-service ) with ** haproxy** , ** pgbouncer** , and ** VIP** .
@@ -41,27 +36,46 @@ curl -fsSL https://repo.pigsty.io/get | bash -s v4.1.0
4136
4237You can even use exotic [ ** PG kernel forks** ] ( https://pigsty.io/docs/pgsql/kernel ) as an in-place replacement and wrap it as a full RDS service:
4338
44- | Kernel | Key Feature | Description |
45- | ------------------------------------------------------------| :--------------------------------| ------------------------------------------------|
46- | [ PostgreSQL] ( https://pigsty.io/docs/pgsql/kernel/postgres ) | ** Extension Overwhelming** | Vanilla PostgreSQL with 451 extensions |
47- | [ Citus] ( https://pigsty.io/docs/pgsql/kernel/citus ) | ** Horizontal Scaling** | Distributive PostgreSQL via native extension |
48- | [ Babelfish] ( https://pigsty.io/docs/pgsql/kernel/babelfish ) | ** SQL Server Migration** | Microsoft SQL Server wire-compatibility |
49- | [ IvorySQL] ( https://pigsty.io/docs/pgsql/kernel/ivorysql ) | ** Oracle Migration** | Oracle Grammar and PL/SQL compatible |
50- | [ OpenHalo] ( https://pigsty.io/docs/pgsql/kernel/openhalo ) | ** MySQL Migration** | MySQL wire-protocol compatibility |
51- | [ Percona] ( https://pigsty.io/docs/pgsql/kernel/percona ) | ** Transparent Data Encryption** | Percona Distribution with pg_tde |
52- | [ FerretDB] ( https://pigsty.io/docs/ferret ) | ** MongoDB Migration** | MongoDB wire-protocol compatibility |
53- | [ OrioleDB] ( https://pigsty.io/docs/pgsql/kernel/orioledbdb ) | ** OLTP Optimization** | No bloat, No XID Wraparound, S3 Storage |
54- | [ PolarDB] ( https://pigsty.io/docs/pgsql/kernel/polardb ) | ** Aurora flavor RAC** | RAC, China domestic compliance |
55- | [ Supabase] ( https://pigsty.io/docs/app/supabase ) | ** Backend as Service** | BaaS based on PostgreSQL, Firebase alternative |
56-
57- And gather the synergistic superpowers of all [ ** 451+ PostgreSQL Extensions** ] ( https://pgext.cloud/list ) all together:
39+ | Kernel | Key Feature | Description |
40+ | --------------------------------------------------------------| :--------------------------------| --------------------------------------------------|
41+ | [ PostgreSQL] ( https://pigsty.io/docs/pgsql/kernel/postgres ) | ** Battery-Included** | Original PGDG PostgreSQL with 460+ extensions |
42+ | [ Citus] ( https://pigsty.io/docs/pgsql/kernel/citus ) | ** Horizontal Scaling** | Distributive PostgreSQL via native extension |
43+ | [ Babelfish] ( https://pigsty.io/docs/pgsql/kernel/babelfish ) | ** SQL Server Simulation** | Microsoft SQL Server wire-compatibility |
44+ | [ IvorySQL] ( https://pigsty.io/docs/pgsql/kernel/ivorysql ) | ** Oracle Simulation** | Oracle Grammar and PL/SQL compatible |
45+ | [ OpenHalo] ( https://pigsty.io/docs/pgsql/kernel/openhalo ) | ** MySQL Simulation** | MySQL wire-protocol compatibility |
46+ | [ FerretDB] ( https://pigsty.io/docs/ferret ) | ** MongoDB Simulation** | MongoDB wire-protocol compatibility |
47+ | [ Percona] ( https://pigsty.io/docs/pgsql/kernel/percona ) | ** Transparent Data Encryption** | Percona Distribution with pg_tde |
48+ | [ OrioleDB] ( https://pigsty.io/docs/pgsql/kernel/orioledb ) | ** OLTP Optimization Engine** | No bloat, No XID Wraparound, S3 Storage |
49+ | [ PolarDB] ( https://pigsty.io/docs/pgsql/kernel/polardb ) | ** Aurora flavor RAC** | RAC, China domestic compliance |
50+ | [ AgensGraph] ( https://pigsty.cc/docs/pgsql/kernel/agensgraph ) | ** Graph-Native Database** | Transactional graph database based on PostgreSQL |
51+ | [ pgEdge] ( https://pigsty.cc/docs/pgsql/kernel/pgedge ) | ** Multi-Master Distributive** | Geo-Distributive multi-writer Postgres |
52+ | [ Cloudberry] ( https://pigsty.io/docs/pgsql/kernel/cloudberry ) | ** MPP Data Warehouse** | Greenplum 7 Apache OSS Fork |
53+ | [ Supabase] ( https://pigsty.io/docs/app/supabase ) | ** Backend as Service** | BaaS over PostgreSQL, Firebase alternative |
54+
55+ [ ![ POSTGRESQL] ( https://img.shields.io/badge/POSTGRESQL-3E668F?style=flat&logo=postgresql&labelColor=3E668F&logoColor=white )] ( https://pigsty.io/docs/pgsql/kernel/postgres )
56+ [ ![ CITUS] ( https://img.shields.io/badge/CITUS-21A368?style=flat&logo=postgresql&labelColor=21A368&logoColor=white )] ( https://pigsty.io/docs/pgsql/kernel/citus )
57+ [ ![ BABELFISH] ( https://img.shields.io/badge/BABELFISH-88A3CA?style=flat&logo=postgresql&labelColor=88A3CA&logoColor=black )] ( https://pigsty.io/docs/pgsql/kernel/babelfish )
58+ [ ![ IVORYSQL] ( https://img.shields.io/badge/IVORYSQL-E8AC52?style=flat&logo=postgresql&labelColor=E8AC52&logoColor=black )] ( https://pigsty.io/docs/pgsql/kernel/ivorysql )
59+ [ ![ OPENHALO] ( https://img.shields.io/badge/OPENHALO-66D9C6?style=flat&logo=mysql&labelColor=66D9C6&logoColor=black )] ( https://pigsty.io/docs/pgsql/kernel/openhalo )
60+ [ ![ FERRETDB] ( https://img.shields.io/badge/FERRETDB/DOCUMENTDB-042133?style=flat&logo=ferretdb&labelColor=042133&logoColor=white )] ( https://pigsty.io/docs/ferret )
61+ [ ![ PERCONA] ( https://img.shields.io/badge/PERCONA_TDE-1A73E8?style=flat&logo=postgresql&labelColor=1A73E8&logoColor=white )] ( https://pigsty.io/docs/pgsql/kernel/percona )
62+ [ ![ ORIOLEDB] ( https://img.shields.io/badge/ORIOLEDB-2F6FED?style=flat&logo=postgresql&labelColor=2F6FED&logoColor=white )] ( https://pigsty.io/docs/pgsql/kernel/orioledb )
63+ [ ![ AGENSGRAPH] ( https://img.shields.io/badge/AGENSGRAPH-8A6DE9?style=flat&logo=postgresql&labelColor=8A6DE9&logoColor=white )] ( https://pigsty.cc/docs/pgsql/kernel/agensgraph )
64+ [ ![ PGEDGE] ( https://img.shields.io/badge/PGEDGE-0E7C86?style=flat&logo=postgresql&labelColor=0E7C86&logoColor=white )] ( https://pigsty.cc/docs/pgsql/kernel/pgedge )
65+ [ ![ POLARDB] ( https://img.shields.io/badge/POLARDB-DF6F2E?style=flat&logo=postgresql&labelColor=DF6F2E&logoColor=black )] ( https://pigsty.io/docs/pgsql/kernel/polardb )
66+ [ ![ POLAR Oracle] ( https://img.shields.io/badge/POLARDB_ORACLE-DF6F2E?style=flat&logo=postgresql&labelColor=DF6F2E&logoColor=black )] ( https://pigsty.io/docs/pgsql/kernel/polardb-o )
67+ [ ![ CLOUDBERRY] ( https://img.shields.io/badge/CLOUDBERRY-FF8C00?style=flat&logo=postgresql&labelColor=FF8C00&logoColor=black )] ( https://pigsty.io/docs/pgsql/kernel/cloudberry )
68+ [ ![ SUPABASE] ( https://img.shields.io/badge/SUPABASE-3FCF8E?style=flat&logo=supabase&labelColor=3FCF8E&logoColor=white )] ( https://pigsty.io/docs/app/supabase )
69+
70+
71+ And gather the synergistic superpowers of all [ ** 460+ PostgreSQL Extensions** ] ( https://pgext.cloud/list ) all together:
5872
5973[ ![ ecosystem] ( https://github.com/user-attachments/assets/c952441e-5ff7-4acb-aace-dd3021d28622 )] ( https://pgext.cloud )
6074
6175
6276## Get Started
6377
64- [ ![ Postgres: 18.2 ] ( https://img.shields.io/badge/PostgreSQL-18.2 -%233E668F?style=flat&logo=postgresql&labelColor=3E668F&logoColor=white )] ( https://pigsty.io/docs/pgsql )
78+ [ ![ Postgres: 18.3 ] ( https://img.shields.io/badge/PostgreSQL-18.3 -%233E668F?style=flat&logo=postgresql&labelColor=3E668F&logoColor=white )] ( https://pigsty.io/docs/pgsql )
6579[ ![ Linux] ( https://img.shields.io/badge/Linux-AMD64-%23FCC624?style=flat&logo=linux&labelColor=FCC624&logoColor=black )] ( https://pigsty.io/docs/node )
6680[ ![ Linux] ( https://img.shields.io/badge/Linux-ARM64-%23FCC624?style=flat&logo=linux&labelColor=FCC624&logoColor=black )] ( https://pigsty.io/docs/node )
6781[ ![ EL Support: 8/9/10] ( https://img.shields.io/badge/EL-8/9/10-red?style=flat&logo=redhat&logoColor=red )] ( https://pigsty.io/docs/ref/linux#el )
@@ -520,7 +534,7 @@ pg-citus: # citus group
520534
521535
522536You can deploy different kinds of PostgreSQL instance such as [`primary`](https://pigsty.io/docs/pgsql/config/cluster#primary), [`replica`](https://pigsty.io/docs/pgsql/config/cluster#replica), [`offline`](https://pigsty.io/docs/pgsql/config/cluster#offline), [`delayed`](https://pigsty.io/docs/pgsql/config/cluster#delayed), [`sync standby`](https://pigsty.io/docs/pgsql/config/cluster#sync-standby), etc.,
523- and customize with scene-optimize [**config templates**](https://pigsty.io/docs/concept/iac/template) and all **451 ** [**extensions**](https://pgext.cloud/list) out-of-the-box.
537+ and customize with scene-optimize [**config templates**](https://pigsty.io/docs/concept/iac/template) and all **460+ ** [**extensions**](https://pgext.cloud/list) out-of-the-box.
524538
525539You can define [**Users**](https://pigsty.io/docs/pgsql/config/user), [**Databases**](https://pigsty.io/docs/pgsql/config/db), [**Service**](https://pigsty.io/docs/pgsql/service), [**HBAs**](https://pigsty.io/docs/pgsql/config/hba) and other entities with code and provision them in one pass.
526540
@@ -599,23 +613,15 @@ pg-meta:
599613
600614There are other pro, beta, or pilot modules, and there will be more coming in the future :
601615
602- [](https://pigsty.io/docs/pgsql/kernel/babelfish)
603- [](https://pigsty.io/docs/pgsql/kernel/polardb)
604- [](https://pigsty.io/docs/pgsql/kernel/polardb-o)
605- [](https://pigsty.io/docs/pgsql/kernel/ivorysql)
606- [](https://pigsty.io/docs/pgsql/kernel/greenplum)
607- [](https://pigsty.io/docs/pgsql/kernel/cloudberry)
608- [](https://pigsty.io/docs/pgsql/kernel/openhalo)
609616[](https://pigsty.io/docs/pgsql/kernel/supabase)
610617[](https://pigsty.io/docs/pilot/kafka)
611618[](https://pigsty.io/docs/pilot/mysql)
612619[](https://pigsty.io/docs/pilot/duckdb)
613620[](https://pigsty.io/docs/pilot/tigerbeetle)
614- [](https://pigsty.io/docs/pilot/victoria )
621+ [](https://pigsty.io/docs/infra/ )
615622[](https://pigsty.io/docs/pilot/kube)
616623[](https://pigsty.io/docs/pilot/consul)
617624[](https://pigsty.io/docs/vibe/)
618- [](https://pigsty.io/docs/pilot)
619625
620626
621627----------------
0 commit comments