|
1 | | -# PIGSTY - Self-Hosting PostgreSQL like a Pro |
| 1 | +# PIGSTY - Self-Host Postgres like a Pro |
2 | 2 |
|
3 | 3 | [](https://pigsty.io) |
4 | | -[](https://pigsty.cc) |
5 | | -[](https://github.com/pgsty/pigsty/releases/tag/v4.1.0) |
| 4 | +[](https://pigsty.cc) |
| 5 | +[](https://github.com/pgsty/pigsty/releases) |
6 | 6 | [](https://pigsty.io/docs/about/license/) |
7 | 7 | [](https://star-history.com/#pgsty/pigsty&Date) |
8 | | -[](https://pgext.cloud/list) |
| 8 | +[](https://pgext.cloud/list) |
9 | 9 | [](https://deepwiki.com/pgsty/pigsty) |
10 | 10 |
|
11 | | -Battery-Included, Local-First **PostgreSQL** Distribution as a Free & Better **RDS**! |
| 11 | +Enterprise-Grade Open-Source **PostgreSQL** Distribution with HA, PITR, IaC, Monitor, and 460 PG extensions. |
12 | 12 |
|
13 | 13 | > "**P**ostgreSQL **I**n **G**reat **STY**le": **P**ostgres, **I**nfras, **G**raphics, **S**ervice, **T**oolbox, it's all **Y**ours. |
14 | 14 |
|
15 | 15 | [Website](https://pigsty.io) | [ORG](https://github.com/pgsty) | [PGEXT.CLOUD](https://pgext.cloud) | [AI INFRA](https://pigsty.io/docs/piglet) | [Public Demo](https://demo.pigsty.io) | [Blog](https://pigsty.io/blog/) | [Discuss](https://github.com/orgs/pgsty/discussions) | [Support](https://pigsty.io/price) | [中文站](https://pigsty.cc/) | [博客](https://vonng.com) |
16 | 16 |
|
17 | 17 | [](https://pigsty.io) |
18 | 18 |
|
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): |
25 | 20 |
|
26 | 21 | ```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 |
28 | 23 | ``` |
29 | 24 |
|
30 | 25 |
|
31 | 26 | ## Features |
32 | 27 |
|
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**: **461+** [**PG Extensions**](https://pgext.cloud/list) & **12** [**PG Kernels**](https://pigsty.io/docs/pgsql/kernel) available, Packed for [**14 Linux Platforms**](https://pigsty.io/docs/ref/linux), Battery-Included! |
34 | 29 | - **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. |
35 | 30 | - **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). |
36 | 31 | - **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**. |
37 | 32 | - **Maintainable**: [**One-Cmd Deploy**](https://pigsty.io/docs/setup/install), [**Admin SOP**](https://pigsty.io/docs/pgsql/admin), **Auto-Tune**, **Local Repo**, [**IaC**](https://pigsty.io/docs/pgsql/config) and [**Vagrant**](https://pigsty.io/docs/deploy/vagrant) / [**Terraform**](https://pigsty.io/docs/deploy/terraform) support. |
38 | 33 | - **Composable**: Bonus [**Modules**](https://pigsty.io/docs/ref/module) such as [**Redis**](https://pigsty.io/docs/redis), [**MinIO**](https://pigsty.io/docs/minio), [**Etcd**](https://pigsty.io/docs/etcd), [**Docker**](https://pigsty.io/docs/app), [**DuckDB**](https://pigsty.io/docs/pilot/duckdb), [**FerretDB**](https://pigsty.io/docs/ferret), [**Supabase**](https://pigsty.io/docs/app/supabase), [**& More**](https://pigsty.io/docs/ref/module)! |
39 | 34 | - **Controllable**: Self-sufficient [**Infra Closure**](https://pigsty.io/docs/infra), Cloud Neutral FOSS. Run on [**bare Linux**](https://pigsty.io/docs/ref/linux) without [**Docker & K8S**](https://vonng.com/en/db/db-in-k8s/)! |
40 | | -- **Affordable**: Self-Hosting like a [**Pro**](https://pigsty.io/price/), without the cost of [**RDS**](https://vonng.com/en/cloud/rds/). Empowering Cloud-Exit to [**save lot more!**](https://pigsty.io/docs/about/compare/) |
| 35 | +- **Affordable**: Self-Hosting like a [**Pro**](https://pigsty.io/price/), without the cost of [**RDS**](https://vonng.com/en/cloud/rds/). Empowering Cloud-Exit for Ultra [**Cost Saving!**](https://pigsty.io/docs/about/compare/) |
41 | 36 |
|
42 | 37 | You 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: |
43 | 38 |
|
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 | +[](https://pigsty.io/docs/pgsql/kernel/postgres) |
| 40 | +[](https://pigsty.io/docs/app/supabase) |
| 41 | +[](https://pigsty.io/docs/pgsql/kernel/citus) |
| 42 | +[](https://pigsty.io/docs/pgsql/kernel/babelfish) |
| 43 | +[](https://pigsty.io/docs/pgsql/kernel/ivorysql) |
| 44 | +[](https://pigsty.io/docs/pgsql/kernel/openhalo) |
| 45 | +[](https://pigsty.io/docs/ferret) |
| 46 | +[](https://pigsty.io/docs/pgsql/kernel/percona) |
| 47 | +[](https://pigsty.io/docs/pgsql/kernel/orioledb) |
| 48 | +[](https://pigsty.cc/docs/pgsql/kernel/agensgraph) |
| 49 | +[](https://pigsty.cc/docs/pgsql/kernel/pgedge) |
| 50 | +[](https://pigsty.io/docs/pgsql/kernel/polardb) |
| 51 | +[](https://pigsty.io/docs/pgsql/kernel/polardb-o) |
| 52 | +[](https://pigsty.io/docs/pgsql/kernel/cloudberry) |
| 53 | + |
| 54 | + |
| 55 | +| Kernel | Key Feature | Description | |
| 56 | +|:--------------------------------------------------------------:|:--------------------------------:|:--------------------------------------------------| |
| 57 | +| [PostgreSQL](https://pigsty.io/docs/pgsql/kernel/postgres) | **Battery-Included** | Original PGDG PostgreSQL with 460+ extensions | |
| 58 | +| [Supabase](https://pigsty.io/docs/app/supabase) | **Backend as Service** | BaaS over PostgreSQL, Firebase alternative | |
| 59 | +| [Citus](https://pigsty.io/docs/pgsql/kernel/citus) | **Horizontal Scaling** | Distributive PostgreSQL via native extension | |
| 60 | +| [Babelfish](https://pigsty.io/docs/pgsql/kernel/babelfish) | **SQL Server Simulation** | Microsoft SQL Server wire-compatibility | |
| 61 | +| [IvorySQL](https://pigsty.io/docs/pgsql/kernel/ivorysql) | **Oracle Simulation** | Oracle Grammar and PL/SQL compatible | |
| 62 | +| [OpenHalo](https://pigsty.io/docs/pgsql/kernel/openhalo) | **MySQL Simulation** | MySQL wire-protocol compatibility | |
| 63 | +| [FerretDB](https://pigsty.io/docs/ferret) | **MongoDB Simulation** | MongoDB wire-protocol compatibility | |
| 64 | +| [Percona](https://pigsty.io/docs/pgsql/kernel/percona) | **Transparent Data Encryption** | Percona Distribution with pg_tde | |
| 65 | +| [OrioleDB](https://pigsty.io/docs/pgsql/kernel/orioledb) | **OLTP Optimization Engine** | No bloat, No XID Wraparound, S3 Storage | |
| 66 | +| [PolarDB](https://pigsty.io/docs/pgsql/kernel/polardb) | **Aurora flavor RAC** | RAC, China domestic compliance | |
| 67 | +| [AgensGraph](https://pigsty.cc/docs/pgsql/kernel/agensgraph) | **Graph-Native Database** | Transactional graph database based on PostgreSQL | |
| 68 | +| [pgEdge](https://pigsty.cc/docs/pgsql/kernel/pgedge) | **Multi-Master Distributive** | Geo-Distributive multi-writer Postgres | |
| 69 | +| [Cloudberry](https://pigsty.io/docs/pgsql/kernel/cloudberry) | **MPP Data Warehouse** | Greenplum 7 Apache OSS Fork | |
| 70 | + |
| 71 | +And gather the synergistic superpowers of all [**460+ PostgreSQL Extensions**](https://pgext.cloud/list) all together: |
58 | 72 |
|
59 | 73 | [](https://pgext.cloud) |
60 | 74 |
|
61 | 75 |
|
62 | 76 | ## Get Started |
63 | 77 |
|
64 | | -[](https://pigsty.io/docs/pgsql) |
| 78 | +[](https://pigsty.io/docs/pgsql) |
65 | 79 | [](https://pigsty.io/docs/node) |
66 | 80 | [](https://pigsty.io/docs/node) |
67 | 81 | [](https://pigsty.io/docs/ref/linux#el) |
@@ -182,7 +196,7 @@ git clone https://github.com/pgsty/pigsty; cd pigsty; git checkout v4.2.0 |
182 | 196 |
|
183 | 197 | ## Architecture |
184 | 198 |
|
185 | | -Pigsty uses a [**modular**](https://pigsty.io/docs/concept/arch) design: you can [**use one or all**](https://pigsty.io/docs/deploy/planning) components, with best-of-breed products integrated as a platform. |
| 199 | +Pigsty uses a [**modular**](https://pigsty.io/docs/concept/arch) design: you can [**use one or all**](https://pigsty.io/docs/deploy/planning), with best-of-breed products integrated as a platform. |
186 | 200 |
|
187 | 201 | [](https://pigsty.io/docs/concept/arch) |
188 | 202 |
|
@@ -355,9 +369,9 @@ auto-routed, pooled [**Services & Access**](https://pigsty.io/docs/pgsql/service |
355 | 369 |
|
356 | 370 | [](https://pigsty.io/docs/concept/ha) |
357 | 371 |
|
358 | | -The cluster keeps serving as long as **ANY** instance survives, with excellent [fault-tolerance](https://pigsty.io/docs/concept/ha/failure) performance: |
| 372 | +The cluster keeps serving as long as **ANY** instance survives, with excellent [**Fault-Tolerance**](https://pigsty.io/docs/concept/ha/failure) performance: |
359 | 373 |
|
360 | | -> [**RPO = 0**](https://pigsty.io/docs/concept/ha/rpo) on sync mode, **RPO < 1MB** on async mode; **RTO < 2s** on switchover, [**RTO < 30s**](https://pigsty.io/docs/concept/ha/rto) on failover. |
| 374 | +> [**RPO = 0**](https://pigsty.io/docs/concept/ha/rpo) on sync mode, **RPO < 1MB** on async mode; **RTO ~ 2s** on switchover, [**RTO < 30s**](https://pigsty.io/docs/concept/ha/rto) on failover. |
361 | 375 |
|
362 | 376 |
|
363 | 377 |
|
@@ -520,7 +534,7 @@ pg-citus: # citus group |
520 | 534 |
|
521 | 535 |
|
522 | 536 | You 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. |
524 | 538 |
|
525 | 539 | You 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. |
526 | 540 |
|
@@ -599,23 +613,15 @@ pg-meta: |
599 | 613 |
|
600 | 614 | There are other pro, beta, or pilot modules, and there will be more coming in the future: |
601 | 615 |
|
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) |
609 | 616 | [](https://pigsty.io/docs/pgsql/kernel/supabase) |
610 | 617 | [](https://pigsty.io/docs/pilot/kafka) |
611 | 618 | [](https://pigsty.io/docs/pilot/mysql) |
612 | 619 | [](https://pigsty.io/docs/pilot/duckdb) |
613 | 620 | [](https://pigsty.io/docs/pilot/tigerbeetle) |
614 | | -[](https://pigsty.io/docs/pilot/victoria) |
| 621 | +[](https://pigsty.io/docs/infra/) |
615 | 622 | [](https://pigsty.io/docs/pilot/kube) |
616 | 623 | [](https://pigsty.io/docs/pilot/consul) |
617 | 624 | [](https://pigsty.io/docs/vibe/) |
618 | | -[](https://pigsty.io/docs/pilot) |
619 | 625 |
|
620 | 626 |
|
621 | 627 | ---------------- |
|
0 commit comments