PGDG Repo
The Pigsty PGSQL Repo is designed to work together with the official PostgreSQL Global Development Group (PGDG) repo. Together, they can provide up to 575 packaged PostgreSQL extensions out-of-the-box.
Repository availability is derived from the current package indexes and reflected in the platform table below.
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) + infraMirror
The China-region PGDG route uses Tencent Cloud’s PostgreSQL mirror at
https://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.
| OS Code | Vendor | Major | PG Major | Comment | |
|---|---|---|---|---|---|
el7.x86_64
|
EL | 7 | 18
17
16
15
14
|
EOL
|
|
el8.x86_64
|
EL | 8 | 18
17
16
15
14
|
Near EOL
|
|
el8.aarch64
|
EL | 8 | 18
17
16
15
14
|
Near EOL
|
|
el9.x86_64
|
EL | 9 | 18
17
16
15
14
|
OK
|
|
el9.aarch64
|
EL | 9 | 18
17
16
15
14
|
OK
|
|
el10.x86_64
|
EL | 10 | 18
17
16
15
14
|
OK
|
|
el10.aarch64
|
EL | 10 | 18
17
16
15
14
|
OK
|
|
d11.x86_64
|
Debian | 11 | 18
17
16
15
14
|
EOL
|
|
d11.aarch64
|
Debian | 11 | 18
17
16
15
14
|
EOL
|
|
d12.x86_64
|
Debian | 12 | 18
17
16
15
14
|
OK
|
|
d12.aarch64
|
Debian | 12 | 18
17
16
15
14
|
OK
|
|
d13.x86_64
|
Debian | 13 | 18
17
16
15
14
|
OK
|
|
d13.aarch64
|
Debian | 13 | 18
17
16
15
14
|
OK
|
|
u20.x86_64
|
Ubuntu | 20 | 18
17
16
15
14
|
EOL
|
|
u20.aarch64
|
Ubuntu | 20 | 18
17
16
15
14
|
EOL
|
|
u22.x86_64
|
Ubuntu | 22 | 18
17
16
15
14
|
OK
|
|
u22.aarch64
|
Ubuntu | 22 | 18
17
16
15
14
|
OK
|
|
u24.x86_64
|
Ubuntu | 24 | 18
17
16
15
14
|
OK
|
|
u24.aarch64
|
Ubuntu | 24 | 18
17
16
15
14
|
OK
|
|
u26.x86_64
|
Ubuntu | 26 | 18
17
16
15
14
|
OK
|
|
u26.aarch64
|
Ubuntu | 26 | 18
17
16
15
14
|
OK
|
EL YUM/DNF Repo info:
- { name: pgdg14 ,description: 'PostgreSQL 14' ,module: pgsql ,releases: [7,8,9,10] ,arch: [x86_64, aarch64] ,baseurl: { default: 'https://download.postgresql.org/pub/repos/yum/14/redhat/rhel-$releasever-$basearch' ,china: 'https://mirrors.cloud.tencent.com/postgresql/repos/yum/14/redhat/rhel-$releasever-$basearch https://repo.pigsty.cc/yum/pgdg/14/redhat/rhel-$releasever-$basearch' ,europe: 'https://mirrors.xtom.de/postgresql/repos/yum/14/redhat/rhel-$releasever-$basearch' }}
- { name: pgdg15 ,description: 'PostgreSQL 15' ,module: pgsql ,releases: [7,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-beta ,description: 'PostgreSQL 19 Beta' ,module: beta ,releases: [ 8,9,10] ,arch: [x86_64, aarch64] ,baseurl: { default: 'https://download.postgresql.org/pub/repos/yum/testing/19/redhat/rhel-$releasever-$basearch' ,china: 'https://mirrors.cloud.tencent.com/postgresql/repos/yum/testing/19/redhat/rhel-$releasever-$basearch https://repo.pigsty.cc/yum/pgdg/testing/19/redhat/rhel-$releasever-$basearch' ,europe: 'https://mirrors.xtom.de/postgresql/repos/yum/testing/19/redhat/rhel-$releasever-$basearch' }}Debian / Ubuntu APT Repo info:
- { name: pgdg ,description: 'PGDG' ,module: pgsql ,releases: [11,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' }}
- { name: pgdg-beta ,description: 'PGDG Beta' ,module: beta ,releases: [11,12,13,22,24,26] ,arch: [x86_64, aarch64] ,baseurl: { default: 'http://apt.postgresql.org/pub/repos/apt/ ${distro_codename}-pgdg-testing main 19' ,china: 'https://mirrors.cloud.tencent.com/postgresql/repos/apt/ ${distro_codename}-pgdg-testing main 19' }}