PGSQL 仓库

PGSQL 仓库

pigsty-pgsql 仓库包含特定于 PostgreSQL 主版本的软件包。 (通常也特定于特定的 Linux 发行版主版本)包括扩展和一些内核分支。

快速上手

PIG

您可以安装 pig - CLI 工具,并使用它添加 pgdg / pigsty 仓库(推荐):

curl https://repo.pigsty.io/pig | bash      # 下载并安装 pig CLI 工具
pig repo add pigsty                         # 添加 pigsty-pgsql 仓库
pig repo add pgdg                           # 添加 pgdg 仓库
pig repo add pgsql -u                       # 添加 pgdg + pigsty-pgsql 仓库并更新缓存(推荐)

APT

您也可以直接在 Debian / Ubuntu 上使用 apt 启用此仓库:

# 将 Pigsty 的 GPG 公钥添加到您的系统密钥链以验证包签名
curl -fsSL https://repo.pigsty.io/key | sudo gpg --dearmor -o /etc/apt/keyrings/pigsty.gpg

# 获取 Debian 发行版代号(distro_codename=jammy, focal, bullseye, bookworm),并将相应的上游仓库地址写入 APT List 文件
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/pgsql/${distro_codename} ${distro_codename} main
EOF

# 刷新 APT 仓库缓存
sudo apt update

DNF

您也可以直接在兼容 EL 的系统上使用 dnf/yum 启用此仓库:

# 将 Pigsty 的 GPG 公钥添加到您的系统密钥链以验证包签名
curl -fsSL https://repo.pigsty.io/key | sudo tee /etc/pki/rpm-gpg/RPM-GPG-KEY-pigsty >/dev/null

# 将 Pigsty 仓库定义文件添加到 /etc/yum.repos.d/ 目录,包括两个仓库
sudo tee /etc/yum.repos.d/pigsty-pgsql.repo > /dev/null <<-'EOF'
[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

# 刷新 YUM/DNF 仓库缓存
sudo yum makecache;

兼容性

Linux 发行版版本架构系统代码PostgreSQL 版本
RHEL9 / Rocky9 / Alma9EL9x86_64el9.x86_6417, 16, 15, 14, 13
RHEL9 / Rocky9 / Alma9EL9aarch64el9.aarch6417, 16, 15, 14, 13
RHEL8 / Rocky8 / Alma8EL8x86_64el8.x86_6417, 16, 15, 14, 13
RHEL8 / Rocky8 / Alma8EL8aarch64el8.aarch6417, 16, 15, 14, 13
Ubuntu 24.04 (noble)U24x86_64u24.x86_6417, 16, 15, 14, 13
Ubuntu 24.04 (noble)U24aarch64u24.aarch6417, 16, 15, 14, 13
Ubuntu 22.04 (jammy)U22x86_64u22.x86_6417, 16, 15, 14, 13
Ubuntu 22.04 (jammy)U22aarch64u22.aarch6417, 16, 15, 14, 13
Debian 12 (bookworm)D12x86_64d12.x86_6417, 16, 15, 14, 13
Debian 12 (bookworm)D12aarch64d12.aarch6417, 16, 15, 14, 13

源代码

此仓库的构建规格在 GitHub 上开源:

如果平台不受支持,您也可以自行从源代码构建软件包。


变更日志

日期名称旧版本新版本RPMDEB
2025-05-26pgdd-0.6.0
convert-0.0.4
pg_idkit-0.3.0
pg_tokenizer.rs-0.1.0
pg_render-0.1.2
pgx_ulid-0.2.0
pg_ivm-1.11.0
orioledb-1.4.0b11
2025-05-22openhalodb-14.10
spat-0.1.0a4
pgsentinel-1.1.0
timescaledb-2.20.0
sqlite_fdw-2.5.0
documentdb-0.103.0
tzf-0.2.2
pg_vectorize-0.22.2
wrappers-0.5.0
2025-05-07omnigres-20250507
citus-12.0.3
timescaledb-2.19.3
supautils-2.9.1
pg_envvar-1.0.1
pgcollection-1.0.0
aggs_for_vecs-1.4.0
pg_tracing-0.1.3
pgmq-1.5.1
tzf-pg-0.2.0
pg_search-0.15.18
anon-2.1.1
pg_parquet-0.4.0
pg_cardano-1.0.5
pglite_fusion-0.0.5
vchord_bm25-0.2.1
vchord-0.3.0
timescaledb-toolkit-1.21.0
pgvectorscale-0.7.1
pg_session_jwt-0.3.1
2025-03-20timescaledb-2.19.0
citus-13.0.2
documentdb-1.102
pg_analytics-0.3.7
pg_search-0.15.8
pg_ivm-1.10
emaj-4.6.0
pgsql_tweaks-0.11.0
pgvectorscale-0.6.0
pg_session_jwt-0.2.0
wrappers-0.4.5
pg_parquet-0.3.1
vchord-0.2.2
pg_tle1.2.01.5.0
supautils2.5.02.6.0
sslutils1.31.4
pg_profile4.74.8
pg_jsonschema0.3.20.3.3
pg_incremental1.1.11.2.0
ddl_historization0.70.0.7
pg_sqlog3.1.71.6
pg_random--
pg_stat_monitor2.1.02.1.1
2025-02-12pg_profile4.74.8
2024-10-16pg_ivm-1.9
pg_timeseries-0.1.6
pgmq-1.4.4
pg_protobuf-16 17
pg_uuidv7-1.6
pg_readonly-最新版
pgddl-0.28
pg_safeupdate-最新版
pg_stat_monitor-2.1
pg_profile-4.7
system_stats-3.2
pg_auth_mon-3.0
login_hook-1.6
logerrors-2.1.3
pg-orphaned-最新版
pgnodemx-1.7
sslutils-1.4 (+16,17)
Last updated on