Skip to content

PigstyA batteries-included PostgreSQL distribution

Local-first · Open-source · Production-grade alternative to managed RDS

Pigsty

Why Pigsty

Pigsty (Postgres In Great STYle) is an open-source, free, production-ready PostgreSQL distribution. It bundles the database, monitoring, high availability, backup, connection pooling and extension ecosystem into an infrastructure stack that runs entirely on your own machines — delivering an RDS-grade experience locally, without vendor lock-in.

A single command bootstraps the whole stack on a 1C/2G Linux box:

bash
curl -fsSL https://repo.pigsty.cc/get | bash -s v4.2.2

Learning Path

  • Introduction — what Pigsty is, what it does, who it's for
  • Getting Started — install, configure, connect, back up, monitor
  • Advanced — multi-node deployment, HA, security, templates
  • Modules — deep dives into PGSQL, INFRA, REDIS, MINIO, …
  • Reference — parameters, metrics, extensions, FAQ

Common Scenarios

Pigsty is widely used in — see the scenario index →

Released under the AGPL 3.0 License