pig version
pig version 0.9.0 linux/amd64
build: HEAD 80c89c6 2025-12-28T08:05:39Z
OS version
NAME="Rocky Linux"
VERSION="9.7 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.7"
Results
Running pig repo add pgdg -u --region=china, the pgdg.repo contains following configurations
[pgdg-common]
name=pgdg-common
baseurl=https://mirrors.aliyun.com/postgresql/repos/yum/common/redhat/rhel-9.7-$basearch
enabled=1
gpgcheck=0
module_hotfixes=1
[pgdg18]
name=pgdg18
baseurl=https://mirrors.aliyun.com/postgresql/repos/yum/18/redhat/rhel-9.7-$basearch
enabled=1
gpgcheck=0
module_hotfixes=1
Expected
According to the The official PostgreSQL APT/YUM repository,
the base url prefix should be repo.pigsty.cc/yum/pgdg instead of mirrors.aliyun.com/postgresql/repos/yum.
and the os release number should be $releasever (current value 9) instead of 9.7.