Pigsty packages PostgreSQL high availability, monitoring, connection pooling, backups, and hundreds of extensions into an Ansible-driven platform. It targets bare-metal or VM Linux hosts from laptops to datacenter fleets.
Overview
Pigsty assembles Patroni HA clusters, PgBouncer pooling, HAProxy routing, pgBackrest backups, and Victoria Metrics plus Grafana observability into modular playbooks you enable as needed. Optional modules add Redis, MinIO, etcd, Docker, Supabase, DuckDB, and related infrastructure pieces.
The distribution ships multiple PostgreSQL kernel variants—vanilla PGDG builds, Citus, Babelfish, IvorySQL, OpenHalo, and others—as drop-in replacements behind the same operations tooling. Inventory YAML describes clusters, users, databases, and services for repeatable provisioning.
Installation flows include a curl-based get script, the pig CLI, or cloning tagged source and running deploy.yml with passwordless sudo. A single-node deploy exposes HTTPS admin UI and PostgreSQL on default ports, while multi-node inventories scale out etcd-backed HA.
Compatibility targets mainstream x86_64 and aarch64 Linux LTS releases with versioned offline package archives per distro minor release.
Key features
- Ansible playbooks for full stack deploy
- Patroni HA with PITR backups
- PgBouncer and HAProxy service routing
- Grafana and Victoria metrics stack
- 626 bundled Postgres extensions
- Optional Redis, MinIO, and Supabase modules
- Docker-based dev sandbox
Use cases
- Self-host production-grade Postgres clusters
- Run Supabase or Odoo on managed RDS-style Postgres
- Stand up observability for database fleets
- Test HA topologies on a laptop via Docker
Does the same job as
Pigsty doesn't name these products itself, but its own description shows it does the same job.