Skip to content

Extensions

Use PostgreSQL extensions with Pigsty

Pigsty provides 600 packaged extensions that are ready to use. The extensions cover 16 major categories, including time-series, geospatial, vector, full-text search, analytics, and feature enhancements.

To use extensions in Pigsty, complete four steps: Download, Install, Config/Load, and Create.

pg-meta:
  hosts: { 10.10.10.10: { pg_seq: 1, pg_role: primary } }
  vars:
    pg_cluster: pg-meta
    pg_databases:
      - name: meta
        extensions: [ postgis, timescaledb, vector ]   # Create: Create extensions in database
    pg_libs: 'timescaledb, pg_stat_statements, auto_explain' # Config: Preload extension libraries
    pg_extensions: [ postgis, timescaledb, pgvector ]  # Install: Install extension packages
Pigsty PostgreSQL extension ecosystem

Four-step process overview for using extensions

Core concepts of PostgreSQL extensions and the Pigsty extension ecosystem

Extension package aliases and category naming conventions

Download extension packages to the local software repository

Install extension packages on cluster nodes

Preload extension libraries and configure extension parameters

Create and enable extensions in databases

Upgrade PostgreSQL extension versions

Uninstall PostgreSQL extensions

Pigsty extension software repository configuration

Was this page helpful?