Install
Pigsty uses the operating system’s package manager (yum/apt) to install extension packages.
Related Parameters
Use these two parameters to specify which extensions to install:
| Parameter | Purpose | Default Behavior |
|---|---|---|
pg_packages | Global common packages | Ensure present (no upgrade) |
pg_extensions | Cluster-specific extensions | Install latest version |
Use pg_packages for essential extensions and base components that all clusters need.
Typical components include the PostgreSQL kernel, Patroni, and pgBouncer.
Use pg_extensions for extensions that specific clusters need.
Install During Cluster Initialization
Declare extensions in the cluster configuration. Pigsty installs them automatically during initialization:
When you run ./pgsql.yml to initialize the cluster, Pigsty installs the extensions automatically.
Install Extensions on Existing Cluster
For an initialized cluster, use one of these methods to install extensions:
Using Pigsty Playbook
Using pig Package Manager
Using Package Manager Directly
Using Package Aliases
Pigsty supports standard package aliases. It converts each alias to the package name for the applicable PostgreSQL version:
You can also use raw package names directly:
For package alias definitions, see:
- EL8 Extension List
- EL9 Extension List
- D12 Extension List
- U22 Extension List
- U24 Extension List
- U26 Extension List
Verify Installation
After installation, run these checks in the database:
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)