Categories: Reference
Parameter Optimization Policy
Learn the parameter optimization strategies Pigsty uses for the 4 different PostgreSQL workload scenarios.
OLTP Template
PostgreSQL config template optimized for online transaction processing workloads
OLAP Template
PostgreSQL config template optimized for online analytical processing workloads
CRIT Template
PostgreSQL config template optimized for critical/financial workloads with data safety and audit compliance
Release
pig — PostgreSQL Package Manager Release Notes
TINY Template
PostgreSQL config template optimized for micro instances and resource-constrained environments
pig
pig CLI command reference overview
Features
Pigsty’s value propositions and highlight features.
pig repo
Manage software repositories with pig repo subcommand
Roadmap
Future feature planning, new feature release schedule, and todo list.
History
The origin and motivation of the Pigsty project, its development history, and future goals and vision.
News & Events
News and events related to Pigsty and PostgreSQL, including latest announcements!
pig ext
Manage PostgreSQL extensions with pig ext subcommand
Join the Community
Pigsty is a Build in Public project. We are very active on GitHub, and Chinese users are mainly active in WeChat groups.
pig build
Build PostgreSQL extensions from source with pig build subcommand
Privacy Policy
What user data does Pigsty software and website collect, and how will we process your data and protect your privacy?
License
Pigsty’s open-source licenses — Apache-2.0, AGPLv3, and CC BY 4.0
Sponsor Us
Pigsty sponsors and investors list - thank you for your support of this project!
User Cases
Pigsty customer and application cases across various domains and industries
pig sty
Manage Pigsty installation with pig sty subcommand
Subscription
Pigsty Professional/Enterprise subscription service - When you encounter difficulties related to PostgreSQL and Pigsty, our subscription service provides you with comprehensive support.
FAQ
Answers to frequently asked questions about the Pigsty project itself.
pig postgres
Manage local PostgreSQL server with pig postgres subcommand
Release Note
Pigsty historical version release notes
Comparison
This article compares Pigsty with similar products and projects, highlighting feature differences.
pig patroni
Manage Patroni service and cluster with pig patroni subcommand
Cost Reference
This article provides cost data to help you evaluate self-hosted Pigsty, cloud RDS costs, and typical DBA salaries.
pig pgbackrest
Manage pgBackRest backup and PITR with pig pgbackrest subcommand
pig pitr
Perform orchestrated Point-In-Time Recovery (PITR) with pig pitr command
References
Detailed reference information and lists, including supported OS distros, available modules, monitor metrics, extensions, cost comparison and analysis, glossary
Supported Linux
Pigsty compatible Linux OS distribution major versions and CPU architectures
Pigsty Modules
This article lists all available modules in Pigsty and the module roadmap.
Extensions
This article lists PostgreSQL extensions supported by Pigsty and their compatibility across different systems.
File Hierarchy
How Pigsty’s file system structure is designed and organized, and directory structures used by each module.
Parameters
Pigsty configuration parameter overview and navigation
Playbooks
Overview and navigation of Pigsty preset playbooks
Port List
Default ports used by Pigsty components, with related parameters and status.
Applications
Software and tools that use PostgreSQL can be managed by the docker daemon
Enterprise Self-Hosted Supabase
Self-host enterprise-grade Supabase with Pigsty, featuring monitoring, high availability, PITR, IaC, and 440+ PostgreSQL extensions.
Odoo: Self-Hosted Open Source ERP
How to spin up an out-of-the-box enterprise application suite Odoo and use Pigsty to manage its backend PostgreSQL database.
Dify: AI Workflow Platform
How to self-host the AI Workflow LLMOps platform — Dify, using external PostgreSQL, PGVector, and Redis for storage with Pigsty?
NocoDB: Open-Source Airtable
Use NocoDB to transform PostgreSQL databases into smart spreadsheets, a no-code database application platform.
Teable: AI No-Code Database
Build AI-powered no-code database applications with Teable to boost team productivity.
Gitea: Simple Self-Hosting Git Service
Launch the self-hosting Git service with Gitea and Pigsty managed PostgreSQL
Wiki.js: OSS Wiki Software
How to self-hosting your own wikipedia with Wiki.js and use Pigsty managed PostgreSQL as the backend database
Mattermost: Open-Source IM
Build a private team collaboration platform with Mattermost, the open-source Slack alternative.
Maybe: Personal Finance
Manage personal finances with Maybe, the open-source Mint/Personal Capital alternative.
Metabase: BI Analytics Tool
Use Metabase for rapid business intelligence analysis with a user-friendly interface for team self-service data exploration.
Kong: the Nginx API Gateway
Learn how to deploy Kong, the API gateway, with Docker Compose and use external PostgreSQL as the backend database
Registry: Container Image Mirror
Deploy Docker Registry mirror service to accelerate Docker image pulls, especially useful for users in China.
PGWeb: Browser-based PG Client
Launch pgweb to access PostgreSQL via web browser
PostgREST: Generate REST API from Schema
Launch postgREST to generate REST API from PostgreSQL schema automatically
Electric: PGLite Sync Engine
Use Electric to solve PostgreSQL data synchronization challenges with partial replication and real-time data transfer.
Jupyter: AI Notebook & IDE
Run Jupyter Lab in container, and access PostgreSQL database
PGLOG: PostgreSQL Log Analysis Application
A sample Applet included with Pigsty for analyzing PostgreSQL CSV log samples
NOAA ISD Global Weather Station Historical Data Query
Demonstrate how to import data into a database using the ISD dataset as an example
WHO COVID-19 Pandemic Dashboard
A sample Applet included with Pigsty for visualizing World Health Organization official pandemic data
StackOverflow Global Developer Survey
Analyze database-related data from StackOverflow’s global developer survey over the past seven years
DB-Engines Database Popularity Trend Analysis
Analyze database management systems on DB-Engines and browse their popularity evolution
AWS & Aliyun Server Pricing
Analyze compute and storage pricing on Aliyun / AWS (ECS/ESSD)
Conf Templates
Batteries-included configuration templates for specific scenarios, with detailed explanations.
meta
Default single-node installation template with extensive configuration parameter descriptions
rich
Feature-rich single-node configuration with local software repository, all extensions, MinIO backup, and complete examples
slim
Minimal installation template without monitoring infrastructure, installs PostgreSQL directly from internet
fat
Feature-All-Test template, single-node installation of all extensions, builds local repo with PG 13-18 all versions
infra
Only installs observability infrastructure, dedicated template without PostgreSQL and etcd
pgsql
Native PostgreSQL kernel, supports deployment of PostgreSQL versions 13 to 18
code
AI coding sandbox with Code-Server, Jupyter, JuiceFS and PostgreSQL
vibe
VIBE AI coding sandbox config template, integrating Code-Server, JupyterLab, Claude Code and JuiceFS web development environment
mssql
WiltonDB / Babelfish kernel, provides Microsoft SQL Server protocol and syntax compatibility
polar
PolarDB for PostgreSQL kernel, provides Aurora-style storage-compute separation capability
ivory
IvorySQL kernel, provides Oracle syntax and PL/SQL compatibility
mysql
OpenHalo kernel, provides MySQL protocol and syntax compatibility
pgtde
Percona PostgreSQL kernel, provides Transparent Data Encryption (pg_tde) capability
oriole
OrioleDB kernel, provides bloat-free OLTP enhanced storage engine
supabase
Self-host Supabase using Pigsty-managed PostgreSQL, an open-source Firebase alternative
ha/citus
13-node Citus distributed PostgreSQL cluster, 1 coordinator + 5 worker groups with HA
ha/simu
20-node production environment simulation for large-scale deployment testing
ha/full
Four-node complete feature demonstration environment with two PostgreSQL clusters, MinIO, Redis, etc.
ha/safe
Security-hardened HA configuration template with high-standard security best practices
ha/trio
Three-node standard HA configuration, tolerates any single server failure
ha/dual
Two-node configuration, limited HA deployment tolerating specific server failure
app/odoo
Deploy Odoo open-source ERP system using Pigsty-managed PostgreSQL
app/dify
Deploy Dify AI application development platform using Pigsty-managed PostgreSQL
app/electric
Deploy Electric real-time sync service using Pigsty-managed PostgreSQL
app/maybe
Deploy Maybe personal finance management system using Pigsty-managed PostgreSQL
app/teable
Deploy Teable open-source Airtable alternative using Pigsty-managed PostgreSQL
app/registry
Deploy Docker Registry image proxy and private registry using Pigsty
demo/el
Configuration template optimized for Enterprise Linux (RHEL/Rocky/Alma)
demo/debian
Configuration template optimized for Debian/Ubuntu
demo/demo
Pigsty public demo site configuration, showcasing SSL certificates, domain exposure, and full extension installation
demo/minio
Four-node x four-drive high-availability multi-node multi-disk MinIO cluster demo
build/oss
Pigsty open-source edition offline package build environment configuration
build/pro
Pigsty professional edition offline package build environment configuration (multi-version)
Module: PGSQL
Deploy and manage world’s most advanced open-source relational database — PostgreSQL, customizable and production-ready!
Core Concepts
Configuration
Choose the appropriate instance and cluster types based on your requirements to configure PostgreSQL database clusters that meet your needs.
Cluster / Instance
Choose the appropriate instance and cluster types based on your requirements to configure PostgreSQL database clusters that meet your needs.
Kernel Version
How to choose the appropriate PostgreSQL kernel and major version.
Package Alias
Pigsty provides a package alias translation mechanism that shields the differences in binary package details across operating systems, making installation easier.
User/Role
How to define and customize PostgreSQL users and roles through configuration?
Database
How to define and customize PostgreSQL databases through configuration?
HBA Rules
Detailed explanation of PostgreSQL and Pgbouncer Host-Based Authentication (HBA) rules configuration in Pigsty.
Access Control
Default role system and privilege model provided by Pigsty
Service/Access
Split read and write operations, route traffic correctly, and reliably deliver PostgreSQL cluster capabilities.
Access Control
Default role system and privilege model provided by Pigsty
Service / Access
Separate read and write operations, route traffic correctly, and deliver PostgreSQL cluster capabilities reliably.
Administration
Backup & Restore
Point-in-Time Recovery (PITR) Backup and Restore
User / Role
Users/roles refer to logical objects within a database cluster created using the SQL commands CREATE USER/ROLE.
Database
Database refers to the logical object created using the SQL command CREATE DATABASE within a database cluster.
Authentication / HBA
Detailed explanation of Host-Based Authentication (HBA) in Pigsty.
Access Control
Default role system and privilege model provided by Pigsty
Data Migration
How to migrate an existing PostgreSQL cluster to a new Pigsty-managed PostgreSQL cluster with minimal downtime?
Reference
Monitoring
Overview of Pigsty’s monitoring system architecture and how to monitor existing PostgreSQL instances
Dashboard
Pigsty provides numerous out-of-the-box Grafana monitoring dashboards for PostgreSQL
Dashboards
Pigsty provides many out-of-the-box Grafana monitoring dashboards for PostgreSQL
Metrics
Complete monitoring metrics reference for the Pigsty PGSQL module
Metrics List
Complete list and explanation of monitoring metrics provided by the Pigsty PGSQL module
Parameters
Customize PostgreSQL clusters with 120 parameters in the PGSQL module
Extensions
Harness the synergistic power of PostgreSQL extensions
Bind a L2 VIP to PostgreSQL Primary with VIP-Manager
Param Templates
Use Pigsty’s built-in Patroni config templates or customize your own
PG Kernels
How to use other PostgreSQL kernel forks in Pigsty? Such as Citus, Babelfish, IvorySQL, PolarDB, etc.
Introduction
Core concepts of PostgreSQL extensions and the Pigsty extension ecosystem
Packages
Extension package aliases and category naming conventions
Download
Download extension packages from software repositories to local
Config
Preload extension libraries and configure extension parameters
Create
Create and enable extensions in databases
Update
Upgrade PostgreSQL extension versions
Remove
Uninstall PostgreSQL extensions
Default Extensions
PostgreSQL extensions installed by default in Pigsty
FAQ
Frequently asked questions about PostgreSQL
Repository
Pigsty extension software repository configuration
Misc
Miscellaneous Topics
Module: INFRA
Optional standalone infrastructure that provides NTP, DNS, observability and other foundational services for PostgreSQL.
Configuration
How to configure INFRA nodes? Customize Nginx, local repo, DNS, NTP, monitoring components.
Parameters
INFRA module provides 10 sections with 70+ configurable parameters
Monitoring
How to perform self-monitoring of infrastructure in Pigsty?
Metrics
Complete list of monitoring metrics provided by the Pigsty INFRA module
FAQ
Frequently asked questions about the Pigsty INFRA infrastructure module
Administration
Infrastructure components and INFRA cluster administration SOP: create, destroy, scale out, scale in, certificates, repositories…
Module: NODE
Tune nodes into the desired state and monitor it, manage node, VIP, HAProxy, and exporters.
Configuration
Configure node identity, cluster, and identity borrowing from PostgreSQL
Parameters
NODE module provides 11 sections with 85 parameters
Monitoring
Monitor NODE in Pigsty with dashboards and alerting rules
Metrics
Complete list of monitoring metrics provided by Pigsty NODE module
FAQ
Frequently asked questions about Pigsty NODE module
Module: ETCD
Pigsty deploys etcd as DCS for reliable distributed config storage, supporting PostgreSQL HA.
Configuration
Choose etcd cluster size based on requirements, provide reliable access.
Parameters
ETCD module provides 13 configuration parameters for fine-grained control over cluster behavior.
Monitoring
etcd monitoring dashboards, metrics, and alert rules.
Metrics
Complete monitoring metrics list provided by Pigsty ETCD module
FAQ
Frequently asked questions about Pigsty etcd module
Module: MINIO
Pigsty has built-in MinIO support, an open-source S3-compatible object storage that can be used for PGSQL cold backup storage.
Usage
Getting started: how to use MinIO? How to reliably access MinIO? How to use mc / rclone client tools?
Configuration
Choose the appropriate MinIO deployment type based on your requirements and provide reliable access.
Parameters
MinIO module provides 21 configuration parameters for customizing your MinIO cluster.
Monitoring
How to monitor MinIO in Pigsty? How to use MinIO’s built-in console? What alerting rules are worth noting?
Metrics
Complete list of monitoring metrics provided by the Pigsty MINIO module with explanations
FAQ
Frequently asked questions about the Pigsty MINIO object storage module
Module: REDIS
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.
Configuration
Choose the appropriate Redis mode for your use case and express your requirements through the inventory
Parameters
REDIS module provides 18 deployment parameters + 3 removal parameters
Monitoring
How to monitor Redis? What alert rules are worth paying attention to?
Metrics
Complete list of monitoring metrics provided by the Pigsty REDIS module with explanations
FAQ
Frequently asked questions about the Pigsty REDIS module
Module: FERRET
Add MongoDB-compatible protocol support to PostgreSQL using FerretDB
Usage
Install client tools, connect to and use FerretDB
Configuration
Configure the FerretDB module and define cluster topology
Parameters
Customize FerretDB with 9 parameters
Monitoring
Monitoring dashboards and alerting rules for the FerretDB module
Metrics
Complete list of monitoring metrics provided by the FerretDB module
FAQ
Frequently asked questions about FerretDB and DocumentDB modules
Module: DOCKER
Docker daemon service that enables one-click deployment of containerized stateless software templates and additional functionality.
Usage
Docker module quick start guide - installation, removal, download, repository, mirrors, proxy, and image pulling.
Parameters
DOCKER module provides 8 configuration parameters
Metrics
Complete list of monitoring metrics provided by the Pigsty Docker module
FAQ
Frequently asked questions about the Pigsty Docker module
Module: JUICE
JuiceFS distributed filesystem using PostgreSQL as metadata engine, with PITR-capable shared storage.
Configuration
Choose appropriate storage backends and configure JuiceFS filesystem instances
Parameters
JUICE module provides 2 global parameters for JuiceFS deployment and configuration
Monitoring
JuiceFS filesystem monitoring metrics and Grafana dashboards
FAQ
Frequently asked questions about the JUICE module
Module: VIBE
Deploy AI coding sandbox with Pigsty, including Code-Server, JupyterLab, and Claude Code.
Module: PILOT
Extra modules in pilot development.
Module: Code
Deploy Code-Server with Pigsty, run VS Code in browser for cloud development.
Module: Jupyter
Deploy JupyterLab with Pigsty, a ready-to-use interactive computing and data analysis environment.
Module: MySQL
Deploy a MySQL 8.0 cluster with Pigsty for demonstration or benchmarking purposes.
Module: Kafka
Deploy Kafka KRaft cluster with Pigsty: open-source distributed event streaming platform
Module: DuckDB
Install DuckDB, a high-performance embedded analytical database component.
Module: TigerBeetle
Deploy TigerBeetle, the Financial Transactions Database that is 1000x faster.
Module: Kubernetes
Deploy Kubernetes, the Production-Grade Container Orchestration Platform.
Module: Consul
Deploy Consul, the alternative to Etcd, with Pigsty.
Module: Victoria
Deploy VictoriaMetrics & VictoriaLogs, the in-place replacement for Prometheus & Loki.