OPEN-SOURCE POSTGRESQL DISTRIBUTION Open-Source · Local-First · Battery-Included
PostgreSQL In Great STYle
Enterprise-Grade Open-Source PG Distribution HA, PITR, IaC, Monitor, and 530+ PG extensions
curl -fsSL https://repo.pigsty.io/get | bash
531 ExtensionsPlug & Play
Grafana Observability3000+ metrics
Victoria TelemetryMetrics & Logs TSDB
MinIO StorageSafe backup repository
Ansible ControlIdempotent IaC playbooks
pgBackRest BackupPoint-in-time recovery
Patroni HAAutomatic failover
PgBouncer PoolingHigh-performance pooler
PostgreSQL Kernel12+ swappable forks
Nginx PortalUnified web entrance
HAProxy AccessService load balancing
Etcd ConsensusCornerstone of HAFEATURES
Self-host Postgres like a PRO
Everything you need for enterprise-grade PostgreSQL. Open source and Free
01 · HIGH AVAILABILITY
Reliable Architecture
Self-healing. Sleep tight
- Auto-failover with Patroni + etcd. Traffic routed via HAProxy + PgBouncer
- Point-in-time recovery with pgBackRest. Undo any mistake in minutes
- Secure by default: local CA, TLS, ACL, SELinux/Firewall — all auto-configured
No more 3 AM pages. Wake up rested, fix things over coffee
02 · INFRA AS CODE
Infrastructure as Code
Declare. Deploy. Done
- Define your desired state. Pigsty makes it real — no fuss
- Idempotent playbooks. Linux-native, no K8s or Docker required
- One architecture fits all: Prod, UAT, Devbox — just swap the config
Provision in one pass. Scale without sweat
03 · OBSERVABILITY
Stunning Observability
Full visibility. No blind spots
- Best-of-breed observability stack: Grafana + Victoria
- 3000+ metrics, 40+ curated dashboards. Ready out of the box
- Works standalone — monitor your existing RDS or Postgres as-is
Instant diagnosis. No more guesswork
04 · EXTENSIONS
Batteries Included
Fully packed. Plug and play
- 531 PG extensions across 16 Linux distros, ready to install
- 12 PG kernel forks, one meta-distribution to rule them all
- Modules: MinIO, Redis, Docker, JuiceFS, Supabase and more
Install what you want. Full freedom, full control
ECOSYSTEM
Ultimate Extensibility
Unlock the full potential of PostgreSQL
USE CASES
Trusted by Companies Across Industries
"We run 100+ PostgreSQL clusters at 2.5M QPS with just 2 DBAs,
our TCO is 5% of public cloud."
COMMUNITY
Join the Community
See what people are saying
"Pigsty is a software written to solve our own problems. And it does it well. So we open-sourced it and hope it can help you too."
"This is cool and long overdue: The official PostgreSQL extension manager (called pig) has been released and it seems supported by the official PostgreSQL org. So, no more tedious digging through outdated readmes, cryptic configure scripts, or random GitHub forks & patches just to install some required extension. We are all pigs now."
"Pigsty is a better local open source RDS for PostgreSQL alternative. I wonder if there anything similar for Redis and MySQL."
"If you ever have to set up a postgres instance for production outside of RDS/Managed, Pigsty is a brilliant implementation"
"Great toolbox: Pigsty - 'PostgreSQL In Great STYle': Postgres, Infras, Graphics, Service, Toolbox, it's all Yours."
"This is neat, self hosted PostgreSQL as a service"
"Looking for a self-hosted PostgreSQL RDS alternative? You won't believe what this project does"
"Pigsty is a software written to solve our own problems. And it does it well. So we open-sourced it and hope it can help you too."
"This is cool and long overdue: The official PostgreSQL extension manager (called pig) has been released and it seems supported by the official PostgreSQL org. So, no more tedious digging through outdated readmes, cryptic configure scripts, or random GitHub forks & patches just to install some required extension. We are all pigs now."
"Pigsty is a better local open source RDS for PostgreSQL alternative. I wonder if there anything similar for Redis and MySQL."
"If you ever have to set up a postgres instance for production outside of RDS/Managed, Pigsty is a brilliant implementation"
"Great toolbox: Pigsty - 'PostgreSQL In Great STYle': Postgres, Infras, Graphics, Service, Toolbox, it's all Yours."
"This is neat, self hosted PostgreSQL as a service"
"Looking for a self-hosted PostgreSQL RDS alternative? You won't believe what this project does"
"Pigsty aims to harness the collective power of PostgreSQL ecosystem extensions and democratize access to production-grade database services and with GCP a great start ahead!"
"You can easily now use FerretDB with Pigsty: the a battery-included, local-first, open-source RDS PG alternative."
"Pigsty: PostgreSQL in Great STYle, Battery-Included Free RDS Alternative!"
"Proud for @ParadeDB to be included in Pigsty! Pigsty is truly one of the best ways to run Postgres and its whole ecosystem. Probably the more comprehensive list of extensions in Postgres"
"man... this is so fun, the open source community always have the gold, is the postgres the best!! awesome work from the last released! a bunch of extensions to help community"
"I want to take a moment to express my immense gratitude to the dedicated developers, maintainers, and contributors of the Pigsty project - a remarkable repository."
"Pigsty Is Postgres All Batteries Included. Did I say All? No, it's a little bit more than that."
"Pigsty aims to harness the collective power of PostgreSQL ecosystem extensions and democratize access to production-grade database services and with GCP a great start ahead!"
"You can easily now use FerretDB with Pigsty: the a battery-included, local-first, open-source RDS PG alternative."
"Pigsty: PostgreSQL in Great STYle, Battery-Included Free RDS Alternative!"
"Proud for @ParadeDB to be included in Pigsty! Pigsty is truly one of the best ways to run Postgres and its whole ecosystem. Probably the more comprehensive list of extensions in Postgres"
"man... this is so fun, the open source community always have the gold, is the postgres the best!! awesome work from the last released! a bunch of extensions to help community"
"I want to take a moment to express my immense gratitude to the dedicated developers, maintainers, and contributors of the Pigsty project - a remarkable repository."
"Pigsty Is Postgres All Batteries Included. Did I say All? No, it's a little bit more than that."
"Pigsty, which adopts the currently popular 'fair-code' model for IaaS / PaaS / BaaS / Serverless DB. Unlike M3O (an 'AWS alternative' project) that's geared more toward developers, pigsty is squarely aimed at dba / ops teams."
"If you haven't heard about Pigsty extension repository yet, take a look at this. A lot of extremely useful work has been done! Thanks Vonng for this contribution."
"You can use Pigsty to serve IvorySQL - Oracle compatible PostgreSQL fork as a local-first RDS"
"Pigsty is ideal for managing multiple PG or PolarDB databases, especially if you have extensive extension requirements. Highly recommended!"
"Thanks for including the duckdb_fdw in Pigsty. Hope to see more extensions in the future!"
"IMHO, Pigsty is underrated. It deserves more visibility. Production grade @PostgreSQL but with full control !"
"Pigsty boosts our PostgreSQL expertise and ensures critical use cases for FeatBit's PostgreSQL solution are rock-solid."
"Pigsty, which adopts the currently popular 'fair-code' model for IaaS / PaaS / BaaS / Serverless DB. Unlike M3O (an 'AWS alternative' project) that's geared more toward developers, pigsty is squarely aimed at dba / ops teams."
"If you haven't heard about Pigsty extension repository yet, take a look at this. A lot of extremely useful work has been done! Thanks Vonng for this contribution."
"You can use Pigsty to serve IvorySQL - Oracle compatible PostgreSQL fork as a local-first RDS"
"Pigsty is ideal for managing multiple PG or PolarDB databases, especially if you have extensive extension requirements. Highly recommended!"
"Thanks for including the duckdb_fdw in Pigsty. Hope to see more extensions in the future!"
"IMHO, Pigsty is underrated. It deserves more visibility. Production grade @PostgreSQL but with full control !"
"Pigsty boosts our PostgreSQL expertise and ensures critical use cases for FeatBit's PostgreSQL solution are rock-solid."
GET STARTED
Up and Running in Minutes
Three commands to deliver an enterprise-grade PostgreSQL cluster
Supported Platforms: Linux x86_64 / Arm64 · EL 8 / 9 / 10 · Ubuntu 22 / 24 / 26 · Debian 12 / 13














