Cluster / Instance
Choose the appropriate instance and cluster types based on your requirements to configure PostgreSQL database clusters that meet your needs.
Choose the appropriate instance and cluster types based on your requirements to configure PostgreSQL database clusters that meet your needs.
Pigsty’s value propositions and highlight features.
Learn the parameter optimization strategies Pigsty uses for the 4 different PostgreSQL workload scenarios.
The origin and motivation of the Pigsty project, its development history, and future goals and vision.
How to choose the appropriate PostgreSQL kernel and major version.
PostgreSQL config template optimized for online transaction processing workloads
News and events related to Pigsty and PostgreSQL, including latest announcements!
PostgreSQL config template optimized for online analytical processing workloads
Pigsty provides a package alias translation mechanism that shields the differences in binary package details across operating systems, making installation easier.
PostgreSQL config template optimized for critical/financial workloads with data safety and audit compliance
pig — PostgreSQL Package Manager Release Notes
How to define and customize PostgreSQL users and roles through configuration?
How to define and customize PostgreSQL databases through configuration?
PostgreSQL config template optimized for micro instances and resource-constrained environments
Detailed explanation of PostgreSQL and Pgbouncer Host-Based Authentication (HBA) rules configuration in Pigsty.
Default role system and privilege model provided by Pigsty
Configure PostgreSQL parameters at cluster, instance, database, and user levels
pig CLI command reference overview
Manage software repositories with pig repo subcommand
Manage PostgreSQL extensions with pig ext subcommand
Future feature planning, new feature release schedule, and todo list.
Pigsty is a Build in Public project. We are very active on GitHub, and Chinese users are mainly active in WeChat groups.
Build PostgreSQL extensions from source with pig build subcommand
What user data does Pigsty software and website collect, and how will we process your data and protect your privacy?
Pigsty’s open-source licenses — Apache-2.0 and CC BY 4.0
Pigsty sponsors and investors list - thank you for your support of this project!
Pigsty customer and application cases across various domains and industries
Manage Pigsty installation with pig sty subcommand
Pigsty Professional/Enterprise subscription service - When you encounter difficulties related to PostgreSQL and Pigsty, our subscription service provides you with comprehensive support.
Answers to frequently asked questions about the Pigsty project itself.
Manage local PostgreSQL server with pig postgres subcommand
Pigsty historical version release notes
This article compares Pigsty with similar products and projects, highlighting feature differences.
Manage Patroni service and cluster with pig patroni subcommand
This article provides cost data to help you evaluate self-hosted Pigsty, cloud RDS costs, and typical DBA salaries.
Manage pgBackRest backup and PITR with pig pgbackrest subcommand
Perform orchestrated Point-In-Time Recovery (PITR) with pig pitr command
Detailed reference information and lists, including supported OS distros, available modules, monitor metrics, extensions, cost comparison and analysis, glossary
Pigsty compatible Linux OS distribution major versions and CPU architectures
This article lists available Pigsty modules and the current module planning.
This page lists PostgreSQL extensions supported by Pigsty and their availability overview.
How Pigsty’s file system structure is designed and organized, and directory structures used by each module.
Pigsty v4.x configuration overview and module parameter navigation
Pigsty v4.x preset Ansible playbook navigation and execution notes
Default ports used by Pigsty components, with related parameters and status.
Pigsty v4.1 application templates and data applets: run stateless apps with Docker Compose and host state in external PostgreSQL and MinIO.
Self-host enterprise-grade Supabase with Pigsty, featuring monitoring, high availability, PITR, IaC, and 451 PostgreSQL extensions.
How to spin up an out-of-the-box enterprise application suite Odoo and use Pigsty to manage its backend PostgreSQL database.
How to self-host the AI Workflow LLMOps platform — Dify, using external PostgreSQL, PGVector, and Redis for storage with Pigsty?
Self-host Teable on Pigsty v4.1 with external PostgreSQL and MinIO.
Deploy Gitea with Pigsty’s Compose template and connect it to external PostgreSQL.
Use NocoDB to transform PostgreSQL databases into smart spreadsheets, a no-code database application platform.
Deploy Mattermost on Pigsty v4.1 and store state in external PostgreSQL.
How to self-hosting your own wikipedia with Wiki.js and use Pigsty managed PostgreSQL as the backend database
Self-host Maybe on Pigsty v4.1 with external PostgreSQL storage.
Deploy Kong with Pigsty Compose templates and PostgreSQL backend storage.
Use Metabase for rapid business intelligence analysis with a user-friendly interface for team self-service data exploration.
Deploy Docker Registry pull-through cache and optional web UI with Pigsty v4.1.
Deploy PostgREST with Pigsty Compose templates and auto-generate REST APIs from PostgreSQL schema.
Launch pgweb to access PostgreSQL via web browser
Self-host Electric on Pigsty v4.1 to sync PostgreSQL data to frontend apps with partial replication and real-time delivery.
Run Jupyter Lab in container, and access PostgreSQL database
A sample Applet included with Pigsty for analyzing PostgreSQL CSV log samples
Demonstrate how to import data into a database using the ISD dataset as an example
A sample Applet included with Pigsty for visualizing World Health Organization official pandemic data
Analyze database-related data from StackOverflow’s global developer survey over the past seven years
Analyze database management systems on DB-Engines and browse their popularity evolution
Analyze compute and storage pricing on Aliyun / AWS (ECS/ESSD)
Batteries-included configuration templates for specific scenarios, with detailed explanations.
Default single-node installation template with extensive configuration parameter descriptions
Feature-rich single-node configuration with local software repository, all extensions, MinIO backup, and complete examples
Minimal installation template without monitoring infrastructure, installs PostgreSQL directly from internet
Feature-All-Test template, single-node installation of all extensions, builds local repo with PG 13-18 all versions
Only installs observability infrastructure, dedicated template without PostgreSQL and etcd
Native PostgreSQL kernel, supports deployment of PostgreSQL versions 13 to 18
VIBE AI coding sandbox config template, integrating Code-Server, JupyterLab, Claude Code and JuiceFS web development environment
WiltonDB / Babelfish kernel, provides Microsoft SQL Server protocol and syntax compatibility
PolarDB for PostgreSQL kernel, provides Aurora-style storage-compute separation capability
IvorySQL kernel, provides Oracle syntax and PL/SQL compatibility
OpenHalo kernel, provides MySQL protocol and syntax compatibility
Percona PostgreSQL kernel, provides Transparent Data Encryption (pg_tde) capability
OrioleDB kernel, provides bloat-free OLTP enhanced storage engine
Self-host Supabase using Pigsty-managed PostgreSQL, an open-source Firebase alternative
13-node Citus distributed PostgreSQL cluster, 1 coordinator + 5 worker groups with HA
20-node production environment simulation for large-scale deployment testing
Four-node complete feature demonstration environment with two PostgreSQL clusters, MinIO, Redis, etc.
Security-hardened HA configuration template with high-standard security best practices
Three-node standard HA configuration, tolerates any single server failure
Two-node configuration, limited HA deployment tolerating specific server failure
Deploy Odoo open-source ERP system using Pigsty-managed PostgreSQL
Deploy Dify AI application development platform using Pigsty-managed PostgreSQL
Deploy Electric real-time sync service using Pigsty-managed PostgreSQL
Deploy Maybe personal finance management system using Pigsty-managed PostgreSQL
Deploy Teable open-source Airtable alternative using Pigsty-managed PostgreSQL
Mattermost template for one-click team collaboration deployment with Pigsty PostgreSQL and Docker.
Deploy Docker Registry image proxy and private registry using Pigsty
Configuration template optimized for Enterprise Linux (RHEL/Rocky/Alma)
Configuration template optimized for Debian/Ubuntu
Pigsty public demo site configuration, showcasing SSL certificates, domain exposure, and full extension installation
Four-node x four-drive high-availability multi-node multi-disk MinIO cluster demo
Pigsty open-source edition offline package build environment configuration
Pigsty professional edition offline package build environment configuration (multi-version)
Pigsty Docker single-node template for quickly bootstrapping Pigsty in containers.
DocumentDB + FerretDB template providing Mongo wire compatibility on PostgreSQL.
Deploy and manage world’s most advanced open-source relational database — PostgreSQL, customizable and production-ready!
Choose the appropriate instance and cluster types based on your requirements to configure PostgreSQL database clusters that meet your needs.
Split read and write operations, route traffic correctly, and reliably deliver PostgreSQL cluster capabilities.
Default role system and privilege model provided by Pigsty
Separate read and write operations, route traffic correctly, and deliver PostgreSQL cluster capabilities reliably.
Point-in-Time Recovery (PITR) Backup and Restore
Users/roles refer to logical objects within a database cluster created using the SQL commands CREATE USER/ROLE.
Database refers to the logical object created using the SQL command CREATE DATABASE within a database cluster.
Detailed explanation of Host-Based Authentication (HBA) in Pigsty.
Default role system and privilege model provided by Pigsty
How to migrate an existing PostgreSQL cluster to a new Pigsty-managed PostgreSQL cluster with minimal downtime?
Overview of Pigsty’s monitoring system architecture and how to monitor existing PostgreSQL instances
Pigsty provides numerous out-of-the-box Grafana monitoring dashboards for PostgreSQL
Pigsty provides many out-of-the-box Grafana monitoring dashboards for PostgreSQL
Complete monitoring metrics reference for the Pigsty PGSQL module
Complete list and explanation of monitoring metrics provided by the Pigsty PGSQL module
Customize PostgreSQL clusters with 120 parameters in the PGSQL module
Harness the synergistic power of PostgreSQL extensions
Use Pigsty’s built-in Patroni config templates or customize your own
How to use other PostgreSQL kernel forks in Pigsty? Such as Citus, Babelfish, IvorySQL, PolarDB, etc.
Core concepts of PostgreSQL extensions and the Pigsty extension ecosystem
Extension package aliases and category naming conventions
Download extension packages from software repositories to local
Preload extension libraries and configure extension parameters
Create and enable extensions in databases
Upgrade PostgreSQL extension versions
Uninstall PostgreSQL extensions
PostgreSQL extensions installed by default in Pigsty
Frequently asked questions about PostgreSQL
Pigsty extension software repository configuration
Miscellaneous Topics
Optional standalone infrastructure that provides NTP, DNS, observability and other foundational services for PostgreSQL.
How to configure INFRA nodes? Customize Nginx, local repo, DNS, NTP, monitoring components.
INFRA module provides 10 sections with 70+ configurable parameters
How to perform self-monitoring of infrastructure in Pigsty?
Complete list of monitoring metrics provided by the Pigsty INFRA module
Frequently asked questions about the Pigsty INFRA infrastructure module
Infrastructure components and INFRA cluster administration SOP: create, destroy, scale out, scale in, certificates, repositories…
Tune nodes into the desired state and monitor it, manage node, VIP, HAProxy, and exporters.
Configure node identity, cluster, and identity borrowing from PostgreSQL
NODE module provides 11 sections with 85 parameters
Monitor NODE in Pigsty with dashboards and alerting rules
Complete list of monitoring metrics provided by Pigsty NODE module
Frequently asked questions about Pigsty NODE module
Pigsty deploys etcd as DCS for reliable distributed config storage, supporting PostgreSQL HA.
Choose etcd cluster size based on requirements, provide reliable access.
ETCD module provides 13 configuration parameters for fine-grained control over cluster behavior.
etcd monitoring dashboards, metrics, and alert rules.
Complete monitoring metrics list provided by Pigsty ETCD module
Frequently asked questions about Pigsty etcd module
Pigsty has built-in MinIO support, an open-source S3-compatible object storage that can be used for PGSQL cold backup storage.
Getting started: how to use MinIO? How to reliably access MinIO? How to use mc / rclone client tools?
Choose the appropriate MinIO deployment type based on your requirements and provide reliable access.
MinIO module provides 21 configuration parameters for customizing your MinIO cluster.
How to monitor MinIO in Pigsty? How to use MinIO’s built-in console? What alerting rules are worth noting?
Complete list of monitoring metrics provided by the Pigsty MINIO module with explanations
Frequently asked questions about the Pigsty MINIO object storage module
Pigsty has built-in Redis support, a high-performance in-memory data structure server. Deploy Redis in standalone, cluster, or sentinel mode as a companion to PostgreSQL.
Choose the appropriate Redis mode for your use case and express your requirements through the inventory
REDIS module provides 18 deployment parameters + 3 removal parameters
How to monitor Redis? What alert rules are worth paying attention to?
Complete list of monitoring metrics provided by the Pigsty REDIS module with explanations
Frequently asked questions about the Pigsty REDIS module
Add MongoDB-compatible protocol support to PostgreSQL using FerretDB
Install client tools, connect to and use FerretDB
Configure the FerretDB module and define cluster topology
Customize FerretDB with 9 parameters
Monitoring dashboards and alerting rules for the FerretDB module
Complete list of monitoring metrics provided by the FerretDB module
Frequently asked questions about FerretDB and DocumentDB modules
Docker daemon service that enables one-click deployment of containerized stateless software templates and additional functionality.
Docker module quick start guide - installation, removal, download, repository, mirrors, proxy, and image pulling.
DOCKER module provides 8 configuration parameters
Complete list of monitoring metrics provided by the Pigsty Docker module
Frequently asked questions about the Pigsty Docker module
Use JuiceFS distributed filesystem with PostgreSQL metadata to provide shared POSIX storage.
JUICE module configuration, instance definition, storage backends, and mount options.
JUICE module parameters (2 total).
JUICE module monitoring and metrics.
JUICE module frequently asked questions.
Deploy an AI coding sandbox with Pigsty: Code-Server, JupyterLab, Node.js, and Claude Code.
Extra modules in pilot development.
Deploy Code-Server with Pigsty, run VS Code in browser for cloud development.
Deploy a MySQL 8.0 cluster with Pigsty for demonstration or benchmarking purposes.
Deploy Kafka KRaft cluster with Pigsty: open-source distributed event streaming platform
Install DuckDB, a high-performance embedded analytical database component.
Deploy TigerBeetle, the Financial Transactions Database that is 1000x faster.
Deploy Kubernetes, the Production-Grade Container Orchestration Platform.
Deploy Consul, the alternative to Etcd, with Pigsty.
pigsty-infra repository changelog and observability package release notes
PostgreSQL and Extension RPM package changelog and release notes
PostgreSQL and Extension DEB package changelog and release notes