Skip to content

PIG 1.10.4 Documentation

The Missing Package Manager for PostgreSQL Extensions

Documentation version: v1.11.0. Read the release notes.

This release adds seven catalog entries, removes one retired record, and fixes target-version category aliases, bringing the embedded catalog to 627 entries.

PIG provides commands to find, install, and build PostgreSQL extension packages. It also manages PostgreSQL, Patroni, pgBackRest, and Pigsty workflows. Package installation uses the system’s apt, dnf, or yum.

Start here

Your taskPage
Install PostgreSQL and enable your first extensionGetting started
Learn what PIG does and which platforms it supportsIntroduction
Download, install, update, or remove PIGInstallation
Look up commands, options, and automation featuresCommand reference

Install PostgreSQL and extensions

On a Linux host with root or sudo access, run:

curl -fsSL https://repo.pigsty.io/pig | bash
sudo pig repo add pgsql --update
sudo pig install -v 18 pg18 vector

In mainland China, use https://repo.pigsty.cc/pig for the installer. These commands install PostgreSQL 18 and pgvector packages. Continue with Getting started to start a test instance and enable the extension with CREATE EXTENSION vector.

Command reference

TaskCommand
Configure APT/DNF repositoriespig repo
Query the catalog, install, or update extension packagespig ext, pig install
Build extension packages from sourcepig build
Manage local PostgreSQL instances and databasespig pg
Manage Patroni clusters through patronictlpig pt
Inspect or reload pg_exporterpig pe
Back up and restore with pgBackRestpig pb
Run point-in-time recoverypig pitr
Install and configure Pigsty, manage Grafanapig sty
Read, edit, and validate Pigsty inventorypig inventory
Run Pigsty administration playbookspig do
Collect host, database, and backup statuspig context

Run pig help <command> for command help. For automation, use pig -o json --help to inspect command capabilities, then select the relevant output and plan options.

Find more information

Press Ctrl with K (⌘ with K on macOS) to search the site. Press / for page actions. An AI assistant action sends the public page URL and a reading prompt to the selected service.

PIG is developed by Vonng and released under Apache 2.0. Pigsty provides PostgreSQL deployment, monitoring, backups, and high availability.

Why would we need yet another package manager? especially for Postgres extensions?

Quick start guide for PIG, the PostgreSQL package manager

How to download and install the pig Package Manager

Overview of the pig CLI command reference

Table reader