Skip to content

Repository

The infrastructure to deliver PostgreSQL Extensions

Pigsty provides a PostgreSQL extension repository across 16 Linux platform targets (8 distribution releases on both x86_64 and aarch64). It is designed to work together with the official PostgreSQL Global Development Group (PGDG) repo. Together, they can provide up to 627 packaged PostgreSQL extensions out-of-the-box.

Current active targets are PG15–19 across 16 Linux platforms (EL8 covers PG15–18).

Get Started

You can enable the pigsty infra & pgsql repo with the pig CLI tool:

curl https://repo.pigsty.io/pig | bash      # download and install the pig CLI tool
pig repo add all -u                         # add linux, pgdg, pigsty repo and update cache
curl https://repo.pigsty.cc/pig | bash      # download from mirror site
pig repo add -u                             # add linux, pgdg, pigsty repo and update cache

Manual Install

You can also add these repo to your system manually with default apt, dnf, yum approach.

# Add Pigsty's GPG public key to your system keychain to verify package signatures
curl -fsSL https://repo.pigsty.io/key | sudo gpg --dearmor -o /etc/apt/keyrings/pigsty.gpg

# Get the Debian/Ubuntu codename (bookworm, trixie, jammy, noble, resolute), and write the matching repository address to the APT list file
distro_codename=$(lsb_release -cs)
sudo tee /etc/apt/sources.list.d/pigsty-io.list > /dev/null <<EOF
deb [signed-by=/etc/apt/keyrings/pigsty.gpg] https://repo.pigsty.io/apt/infra generic main
deb [signed-by=/etc/apt/keyrings/pigsty.gpg] https://repo.pigsty.io/apt/pgsql/${distro_codename} ${distro_codename} main
EOF

# Refresh APT repository cache
sudo apt update
# Add Pigsty's GPG public key to your system keychain to verify package signatures
curl -fsSL https://repo.pigsty.io/key | sudo tee /etc/pki/rpm-gpg/RPM-GPG-KEY-pigsty >/dev/null

# Add Pigsty Repo definition files to /etc/yum.repos.d/ directory, including two repositories
sudo tee /etc/yum.repos.d/pigsty-io.repo > /dev/null <<-'EOF'
[pigsty-infra]
name=Pigsty Infra for $basearch
baseurl=https://repo.pigsty.io/yum/infra/$basearch
skip_if_unavailable = 1
enabled = 1
priority = 1
gpgcheck = 1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-pigsty
module_hotfixes=1

[pigsty-pgsql]
name=Pigsty PGSQL For el$releasever.$basearch
baseurl=https://repo.pigsty.io/yum/pgsql/el$releasever.$basearch
skip_if_unavailable = 1
enabled = 1
priority = 1
gpgcheck = 1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-pigsty
module_hotfixes=1
EOF

# Refresh YUM/DNF repository cache
sudo yum makecache;

All the RPM / DEB packages are signed with GPG Key fingerprint (B9BD8B20) in Pigsty repository.

Compatibility

Pigsty has two major repos: INFRA and PGSQL, provide DEB / RPM for x86_64 and aarch64 architecture.

The infra repo contains packages that are generic to any PostgreSQL version and Linux major version, including prometheus & grafana stack, admin tools for postgres, and many utils written in go.

Linux Package x86_64 aarch64
EL rpm ✓ ✓
Debian deb ✓ ✓

The pgsql repo contains packages that are ad hoc to specific PostgreSQL Major Versions. (Often ad hoc to a specific Linux distro major version, too) Including extensions, and some kernel forks.

Build platform Distribution PG build targets
el8.x86_64 RockyLinux 8 x86 18 · 17 · 16 · 15
el8.aarch64 RockyLinux 8 ARM 18 · 17 · 16 · 15
el9.x86_64 RockyLinux 9 x86 19 · 18 · 17 · 16 · 15
el9.aarch64 RockyLinux 9 ARM 19 · 18 · 17 · 16 · 15
el10.x86_64 RockyLinux 10 x86 19 · 18 · 17 · 16 · 15
el10.aarch64 RockyLinux 10 ARM 19 · 18 · 17 · 16 · 15
d12.x86_64 Debian 12 x86 19 · 18 · 17 · 16 · 15
d12.aarch64 Debian 12 ARM 19 · 18 · 17 · 16 · 15
d13.x86_64 Debian 13 x86 19 · 18 · 17 · 16 · 15
d13.aarch64 Debian 13 ARM 19 · 18 · 17 · 16 · 15
u22.x86_64 Ubuntu 22.04 x86 19 · 18 · 17 · 16 · 15
u22.aarch64 Ubuntu 22.04 ARM 19 · 18 · 17 · 16 · 15
u24.x86_64 Ubuntu 24.04 x86 19 · 18 · 17 · 16 · 15
u24.aarch64 Ubuntu 24.04 ARM 19 · 18 · 17 · 16 · 15
u26.x86_64 Ubuntu 26.04 x86 19 · 18 · 17 · 16 · 15
u26.aarch64 Ubuntu 26.04 ARM 19 · 18 · 17 · 16 · 15


Source

Building specs of these repos and packages are open-sourced on GitHub:

The repo for PostgreSQL Extensions & Kernel Forks

Packages that are generic to any PostgreSQL version and Linux major version.

The official PostgreSQL APT/YUM repository

Import the GPG key for Pigsty repository