Install
Pigsty uses the operating system’s package manager (yum/apt) to install extension packages.
Related Parameters
Two parameters are used to specify extensions to install:
| Parameter | Purpose | Default Behavior |
|---|---|---|
pg_packages |
Global common packages | Ensure present (no upgrade) |
pg_extensions |
Cluster-specific extensions | Install latest version |
pg_packages is typically used to specify base components needed by all clusters (PostgreSQL kernel, Patroni, pgBouncer, etc.) and essential extensions.
pg_extensions is used to specify extensions needed by specific clusters.
Install During Cluster Initialization
Declare extensions in cluster configuration, and they will be automatically installed during initialization:
When executing ./pgsql.yml to initialize the cluster, extensions will be automatically installed.
Install Extensions on Existing Cluster
For initialized clusters, there are multiple ways to install extensions:
Using Pigsty Playbook
Using pig Package Manager
Using Package Manager Directly
Using Package Aliases
Pigsty supports using standardized package aliases, automatically translating to package names for the corresponding PG 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, verify in the database: