Skip to content

PGDG Repo

The official PostgreSQL APT/YUM repository

The Pigsty PGSQL Repo is designed to work together with the official PostgreSQL Global Development Group (PGDG) repo. Browse the packaged PostgreSQL extensions available from these repositories.

Repository availability is derived from the current package indexes and reflected in the platform table below.

The catalog covers PostgreSQL 15–19, with PostgreSQL 18 remaining the configuration default. PG14 was retired from active build targets on 2026-11-21; EL8 remains supported for PostgreSQL 15–18 (PG19 is N/A on EL8), while EL9/EL10, Debian, and Ubuntu cover PostgreSQL 15–19. See the package matrix for per-target availability.

Quick Start

You can install pig - the cli tool, and add pgdg repo with it (recommended):

pig repo add pgdg                           # add pgdg repo file
pig repo add pgdg -u                        # add pgdg repo and update cache
pig repo add pgdg -u --region=default       # add pgdg repo, enforce using the default repo (postgresql.org)
pig repo add pgdg -u --region=china         # add PGDG repo, always use Tencent Cloud's China mirror
pig repo add pgsql -u                       # pgsql = pgdg + pigsty-pgsql (add pigsty + official PGDG)
pig repo add -u                             # all = node + pgsql (pgdg + pigsty) + infra

Mirror

The China-region PGDG route uses Tencent Cloud’s PostgreSQL mirror athttps://mirrors.cloud.tencent.com/postgresql/repos/. Pig and Pigsty select it first for PGDG YUM/DNF and APT repositories when --region=china or --mirror is used; YUM definitions retain the Pigsty mirror as a compatibility fallback. The global default route remains the official PostgreSQL repository.

Build platformDistributionPG build targets
el8.x86_64RockyLinux 8 x8618 · 17 · 16 · 15
el8.aarch64RockyLinux 8 ARM18 · 17 · 16 · 15
el9.x86_64RockyLinux 9 x8619 · 18 · 17 · 16 · 15
el9.aarch64RockyLinux 9 ARM19 · 18 · 17 · 16 · 15
el10.x86_64RockyLinux 10 x8619 · 18 · 17 · 16 · 15
el10.aarch64RockyLinux 10 ARM19 · 18 · 17 · 16 · 15
d12.x86_64Debian 12 x8619 · 18 · 17 · 16 · 15
d12.aarch64Debian 12 ARM19 · 18 · 17 · 16 · 15
d13.x86_64Debian 13 x8619 · 18 · 17 · 16 · 15
d13.aarch64Debian 13 ARM19 · 18 · 17 · 16 · 15
u22.x86_64Ubuntu 22.04 x8619 · 18 · 17 · 16 · 15
u22.aarch64Ubuntu 22.04 ARM19 · 18 · 17 · 16 · 15
u24.x86_64Ubuntu 24.04 x8619 · 18 · 17 · 16 · 15
u24.aarch64Ubuntu 24.04 ARM19 · 18 · 17 · 16 · 15
u26.x86_64Ubuntu 26.04 x8619 · 18 · 17 · 16 · 15
u26.aarch64Ubuntu 26.04 ARM19 · 18 · 17 · 16 · 15

EL YUM/DNF Repo info:

- { name: pgdg15         ,description: 'PostgreSQL 15'      ,module: pgsql   ,releases: [8,9,10]     ,arch: [x86_64, aarch64] ,baseurl: { default: 'https://download.postgresql.org/pub/repos/yum/15/redhat/rhel-$releasever-$basearch' ,china: 'https://mirrors.cloud.tencent.com/postgresql/repos/yum/15/redhat/rhel-$releasever-$basearch https://repo.pigsty.cc/yum/pgdg/15/redhat/rhel-$releasever-$basearch' ,europe: 'https://mirrors.xtom.de/postgresql/repos/yum/15/redhat/rhel-$releasever-$basearch' }}
- { name: pgdg16         ,description: 'PostgreSQL 16'      ,module: pgsql   ,releases: [8,9,10]     ,arch: [x86_64, aarch64] ,baseurl: { default: 'https://download.postgresql.org/pub/repos/yum/16/redhat/rhel-$releasever-$basearch' ,china: 'https://mirrors.cloud.tencent.com/postgresql/repos/yum/16/redhat/rhel-$releasever-$basearch https://repo.pigsty.cc/yum/pgdg/16/redhat/rhel-$releasever-$basearch' ,europe: 'https://mirrors.xtom.de/postgresql/repos/yum/16/redhat/rhel-$releasever-$basearch' }}
- { name: pgdg17         ,description: 'PostgreSQL 17'      ,module: pgsql   ,releases: [8,9,10]     ,arch: [x86_64, aarch64] ,baseurl: { default: 'https://download.postgresql.org/pub/repos/yum/17/redhat/rhel-$releasever-$basearch' ,china: 'https://mirrors.cloud.tencent.com/postgresql/repos/yum/17/redhat/rhel-$releasever-$basearch https://repo.pigsty.cc/yum/pgdg/17/redhat/rhel-$releasever-$basearch' ,europe: 'https://mirrors.xtom.de/postgresql/repos/yum/17/redhat/rhel-$releasever-$basearch' }}
- { name: pgdg18         ,description: 'PostgreSQL 18'      ,module: pgsql   ,releases: [8,9,10]     ,arch: [x86_64, aarch64] ,baseurl: { default: 'https://download.postgresql.org/pub/repos/yum/18/redhat/rhel-$releasever-$basearch' ,china: 'https://mirrors.cloud.tencent.com/postgresql/repos/yum/18/redhat/rhel-$releasever-$basearch https://repo.pigsty.cc/yum/pgdg/18/redhat/rhel-$releasever-$basearch' ,europe: 'https://mirrors.xtom.de/postgresql/repos/yum/18/redhat/rhel-$releasever-$basearch' }}
- { name: pgdg19         ,description: 'PostgreSQL 19'      ,module: pgsql   ,releases: [  9,10]     ,arch: [x86_64, aarch64] ,baseurl: { default: 'https://download.postgresql.org/pub/repos/yum/19/redhat/rhel-$releasever-$basearch' ,china: 'https://mirrors.cloud.tencent.com/postgresql/repos/yum/19/redhat/rhel-$releasever-$basearch https://repo.pigsty.cc/yum/pgdg/19/redhat/rhel-$releasever-$basearch' ,europe: 'https://mirrors.xtom.de/postgresql/repos/yum/19/redhat/rhel-$releasever-$basearch' }}

Debian / Ubuntu APT Repo info:

- { name: pgdg           ,description: 'PGDG'               ,module: pgsql   ,releases: [12,13,22,24,26] ,arch: [x86_64, aarch64] ,baseurl: { default: 'http://apt.postgresql.org/pub/repos/apt/ ${distro_codename}-pgdg main'            ,china: 'https://mirrors.cloud.tencent.com/postgresql/repos/apt/ ${distro_codename}-pgdg main' }}

Table reader