“PostgreSQL 正在吞噬数据库世界” (通过扩展!)
让我们一起使用 pig 包管理器与 pigsty 仓库 & 发行版,获取 400+ PostgreSQL 扩展凝为一体的复合超能力!
pig 是一个开源的 PostgreSQL(与扩展)包管理器,在 主流Linux (amd64
/ arm64
) 发行版上可用。
pig
可以屏蔽 PG 安装的复杂度,利用OS原生包管理器一键安装 PostgreSQL 13-17 以及 405 个 PG生态扩展插件。
curl -fsSL https://repo.pigsty.io/pig | bash
安装完成后即可使用。假设你想安装 pg_duckdb
扩展:
$ pig repo add pigsty pgdg -u # 添加 pgdg 和 pigsty 仓库,然后更新仓库缓存
$ pig ext install pg17 # 使用原生 PGDG 包安装 PostgreSQL 17 内核
$ pig ext install pg_duckdb # 为当前的 pg17 安装 pg_duckdb 扩展
默认的 pig repo add pigsty pgdg
会将 PGDG
仓库和 PIGSTY
仓库添加到你的系统中。
而以下命令会备份并清除你现有的仓库,然后添加所有需要的仓库到你的系统:
pig repo add all --ru # 这将用 node、pgdg、pigsty 仓库覆盖所有现有仓库
还有一个更激进的仓库添加版本:repo set
,它默认会覆盖你现有的仓库(-r
)。
你可以在 /etc/apt/backup
或 /etc/yum.repos.d/backup
找到你的旧仓库备份。
你可以用以下命令安装 PostgreSQL 内核包:
pig ext install pg17 # 安装 PostgreSQL 17 内核(除开发包外的所有包)
pig ext install pg16-simple # 安装 PostgreSQL 16 内核的最小包集
pig ext install pg15 -y # 安装 PostgreSQL 15 内核并自动确认
pig ext install pg14=14.3 # 安装特定小版本的 PostgreSQL 14 内核
pig ext install pg13=13.10 # 安装 PostgreSQL 13 内核
你可以将已安装的 PostgreSQL 链接到系统路径:
pig ext link pg17 # 创建 /usr/pgsql 软链接,并写入 /etc/profile.d/pgsql.sh
. /etc/profile.d/pgsql.sh # 重新加载路径并立即生效
你也可以使用其他包别名,它们会转换为你的操作系统发行版上对应的包名
其中的 $v
会被替换为当前活动或指定的 pg 版本号,如 17
、16
等:
pg17: "postgresql$v postgresql$v-server postgresql$v-libs postgresql$v-contrib postgresql$v-plperl postgresql$v-plpython3 postgresql$v-pltcl postgresql$v-llvmjit",
pg16-core: "postgresql$v postgresql$v-server postgresql$v-libs postgresql$v-contrib postgresql$v-plperl postgresql$v-plpython3 postgresql$v-pltcl postgresql$v-test postgresql$v-devel postgresql$v-llvmjit",
pg15-simple: "postgresql$v postgresql$v-server postgresql$v-libs postgresql$v-contrib postgresql$v-plperl postgresql$v-plpython3 postgresql$v-pltcl",
pg14-client: "postgresql$v",
pg13-server: "postgresql$v-server postgresql$v-libs postgresql$v-contrib",
pg17-devel: "postgresql$v-devel",
pgsql: "postgresql$v postgresql$v-server postgresql$v-libs postgresql$v-contrib postgresql$v-plperl postgresql$v-plpython3 postgresql$v-pltcl postgresql$v-llvmjit",
pgsql-core: "postgresql$v postgresql$v-server postgresql$v-libs postgresql$v-contrib postgresql$v-plperl postgresql$v-plpython3 postgresql$v-pltcl postgresql$v-test postgresql$v-devel postgresql$v-llvmjit",
pgsql-simple: "postgresql$v postgresql$v-server postgresql$v-libs postgresql$v-contrib postgresql$v-plperl postgresql$v-plpython3 postgresql$v-pltcl",
pgsql-client: "postgresql$v",
pgsql-server: "postgresql$v-server postgresql$v-libs postgresql$v-contrib",
pgsql-devel: "postgresql$v-devel",
pgsql-basic: "pg_repack_$v* wal2json_$v* pgvector_$v*",
postgresql: "postgresql$v*",
pgsql-common: "patroni patroni-etcd pgbouncer pgbackrest pg_exporter pgbadger vip-manager",
patroni: "patroni patroni-etcd",
pgbouncer: "pgbouncer",
pgbackrest: "pgbackrest",
pg_exporter: "pg_exporter",
vip-manager: "vip-manager",
pgbadger: "pgbadger",
pg_activity: "pg_activity",
pg_filedump: "pg_filedump",
pgxnclient: "pgxnclient",
pgformatter: "pgformatter",
pgcopydb: "pgcopydb",
pgloader: "pgloader",
pg_timetable: "pg_timetable",
wiltondb: "wiltondb",
polardb: "PolarDB",
ivorysql: "ivorysql3 ivorysql3-server ivorysql3-contrib ivorysql3-libs ivorysql3-plperl ivorysql3-plpython3 ivorysql3-pltcl ivorysql3-test",
ivorysql-all: "ivorysql3 ivorysql3-server ivorysql3-contrib ivorysql3-libs ivorysql3-plperl ivorysql3-plpython3 ivorysql3-pltcl ivorysql3-test ivorysql3-docs ivorysql3-devel ivorysql3-llvmjit",
pig
会使用你当前活动 PATH
中的默认 postgres 安装,
但你可以通过 -v
(当使用 PGDG 约定时)为特定安装版本安装扩展,
或者为自定义安装指定任意 pg_config
路径。
pig ext install pg_duckdb -v 16 # 为 pg16 安装扩展
pig ext install pg_duckdb -p /usr/lib/postgresql/17/bin/pg_config # 指定 pg17 的 pg_config
你也可以安装特定版本的 PostgreSQL 内核包:
pig ext install pgvector=0.7.0 # 安装 pgvector 0.7.0
pig ext install pg16=16.5 # 安装特定小版本的 PostgreSQL 16
注意 APT 仓库可能只提供最新的小版本软件(并且需要完整的版本字符串)
你可以对扩展名、描述和类别进行模糊搜索:
$ pig ext ls olap
INFO[14:48:13] found 13 extensions matching 'olap':
Name State Version Cate Flags License Repo PGVer Package Description
---- ----- ------- ---- ------ ------- ------ ----- ------------ ---------------------
citus avail 13.0.1 OLAP -dsl-- AGPL-3.0 PIGSTY 14-17 citus_17* 作为扩展的分布式 PostgreSQL
citus_columnar avail 11.3-1 OLAP -ds--- AGPL-3.0 PIGSTY 14-17 citus_17* Citus 列式存储引擎
columnar n/a 11.1-11 OLAP -ds--- AGPL-3.0 PIGSTY 13-16 hydra_17* Hydra 列式存储扩展
pg_analytics avail 0.3.4 OLAP -ds-t- PostgreSQL PIGSTY 14-17 pg_analytics_17 基于 DuckDB 的 Postgres 分析功能
pg_duckdb avail 0.2.0 OLAP -dsl-- MIT PIGSTY 14-17 pg_duckdb_17* 嵌入 Postgres 的 DuckDB
pg_mooncake avail 0.1.2 OLAP ------ MIT PIGSTY 14-17 pg_mooncake_17* Postgres 中的列式存储表
duckdb_fdw avail 1.0.0 OLAP -ds--r MIT PIGSTY 13-17 duckdb_fdw_17* DuckDB 外部数据包装器
pg_parquet avail 0.2.0 OLAP -dslt- PostgreSQL PIGSTY 14-17 pg_parquet_17 在 Postgres 和 Parquet 间复制数据
pg_fkpart avail 1.7 OLAP -d---- GPL-2.0 PIGSTY 13-17 pg_fkpart_17 基于外键的表分区工具
pg_partman avail 5.2.4 OLAP -ds--- PostgreSQL PGDG 13-17 pg_partman_17* 按时间或 ID 管理分区表的扩展
plproxy avail 2.11.0 OLAP -ds--- BSD 0-Clause PIGSTY 13-17 plproxy_17* 以过程语言实现的数据库分区
pg_strom avail 5.2.2 OLAP -ds--x PostgreSQL PGDG 13-17 pg_strom_17* PG-Strom - 使用 GPU 和 NVME 加速大数据处理
tablefunc added 1.0 OLAP -ds-tx PostgreSQL CONTRIB 13-17 postgresql17-contrib 操作整个表的函数,包括交叉表
(13 Rows) (状态: added=已添加|avail=可用|n/a=不可用, 标志: b=有二进制文件, d=有DDL, s=有共享库, l=需要加载, t=可信任, r=可重定位, x=未知)
你可以使用 -v 16
或 -p /path/to/pg_config
来查找其他 PostgreSQL 安装的扩展可用性。
你可以使用 pig ext info
子命令获取扩展元数据:
$ pig ext info pg_duckdb
╭────────────────────────────────────────────────────────────────────────────╮
│ pg_duckdb │
├────────────────────────────────────────────────────────────────────────────┤
│ DuckDB Embedded in Postgres │
├────────────────────────────────────────────────────────────────────────────┤
│ Extension : pg_duckdb │
│ Alias : pg_duckdb │
│ Category : OLAP │
│ Version : 0.3.1 │
│ License : MIT │
│ Website : https://github.com/duckdb/pg_duckdb │
│ Details : https://pigsty.io/ext/olap/pg_duckdb │
├────────────────────────────────────────────────────────────────────────────┤
│ Extension Properties │
├────────────────────────────────────────────────────────────────────────────┤
│ PostgreSQL Ver │ Available on: 17, 16, 15, 14 │
│ CREATE : Yes │ CREATE EXTENSION pg_duckdb; │
│ DYLOAD : Yes │ SET shared_preload_libraries = 'pg_duckdb' │
│ TRUST : No │ require database superuser to install │
│ Reloc : No │ Schemas: [] │
│ Depend : No │ │
├────────────────────────────────────────────────────────────────────────────┤
│ RPM Package │
├────────────────────────────────────────────────────────────────────────────┤
│ Repository │ PIGSTY │
│ Package │ pg_duckdb_$v* │
│ Version │ 0.3.1 │
│ Availability │ 17, 16, 15, 14 │
├────────────────────────────────────────────────────────────────────────────┤
│ DEB Package │
├────────────────────────────────────────────────────────────────────────────┤
│ Repository │ PIGSTY │
│ Package │ postgresql-$v-pg-duckdb │
│ Version │ 0.3.1 │
│ Availability │ 17, 16, 15, 14 │
├────────────────────────────────────────────────────────────────────────────┤
│ Known Issues │
├────────────────────────────────────────────────────────────────────────────┤
│ el8 │
├────────────────────────────────────────────────────────────────────────────┤
│ Additional Comments │
├────────────────────────────────────────────────────────────────────────────┤
│ broken on el8 (libstdc++ too low), conflict with duckdb_fdw │
╰────────────────────────────────────────────────────────────────────────────╯
你可以使用 pig repo list
列出所有可用的仓库/模块(仓库集合):
$ pig repo list
os_environment: {code: el8, arch: amd64, type: rpm, major: 8}
repo_upstream: # Available Repo: 32
- { name: pigsty-local ,description: 'Pigsty Local' ,module: local ,releases: [7,8,9] ,arch: [x86_64, aarch64] ,baseurl: 'file:///www/pigsty' }
- { name: pigsty-infra ,description: 'Pigsty INFRA' ,module: infra ,releases: [7,8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://repo.pigsty.io/yum/infra/$basearch' }
- { name: pigsty-pgsql ,description: 'Pigsty PGSQL' ,module: pgsql ,releases: [7,8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://repo.pigsty.io/yum/pgsql/el$releasever.$basearch' }
- { name: nginx ,description: 'Nginx Repo' ,module: infra ,releases: [7,8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://nginx.org/packages/rhel/$releasever/$basearch/' }
- { name: baseos ,description: 'EL 8+ BaseOS' ,module: node ,releases: [8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://dl.rockylinux.org/pub/rocky/$releasever/BaseOS/$basearch/os/' }
- { name: appstream ,description: 'EL 8+ AppStream' ,module: node ,releases: [8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://dl.rockylinux.org/pub/rocky/$releasever/AppStream/$basearch/os/' }
- { name: extras ,description: 'EL 8+ Extras' ,module: node ,releases: [8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://dl.rockylinux.org/pub/rocky/$releasever/extras/$basearch/os/' }
- { name: powertools ,description: 'EL 8 PowerTools' ,module: node ,releases: [8] ,arch: [x86_64, aarch64] ,baseurl: 'https://dl.rockylinux.org/pub/rocky/$releasever/PowerTools/$basearch/os/' }
- { name: epel ,description: 'EL 8+ EPEL' ,module: node ,releases: [8,9] ,arch: [x86_64, aarch64] ,baseurl: 'http://download.fedoraproject.org/pub/epel/$releasever/Everything/$basearch/' }
- { name: pgdg-common ,description: 'PostgreSQL Common' ,module: pgsql ,releases: [7,8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-$releasever-$basearch' }
- { name: pgdg-el8fix ,description: 'PostgreSQL EL8FIX' ,module: pgsql ,releases: [8] ,arch: [x86_64, aarch64] ,baseurl: 'https://download.postgresql.org/pub/repos/yum/common/pgdg-centos8-sysupdates/redhat/rhel-8-x86_64/' }
- { name: pgdg13 ,description: 'PostgreSQL 13' ,module: pgsql ,releases: [7,8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://download.postgresql.org/pub/repos/yum/13/redhat/rhel-$releasever-$basearch' }
- { name: pgdg14 ,description: 'PostgreSQL 14' ,module: pgsql ,releases: [7,8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://download.postgresql.org/pub/repos/yum/14/redhat/rhel-$releasever-$basearch' }
- { name: pgdg15 ,description: 'PostgreSQL 15' ,module: pgsql ,releases: [7,8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://download.postgresql.org/pub/repos/yum/15/redhat/rhel-$releasever-$basearch' }
- { name: pgdg16 ,description: 'PostgreSQL 16' ,module: pgsql ,releases: [7,8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://download.postgresql.org/pub/repos/yum/16/redhat/rhel-$releasever-$basearch' }
- { name: pgdg17 ,description: 'PostgreSQL 17' ,module: pgsql ,releases: [7,8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://download.postgresql.org/pub/repos/yum/17/redhat/rhel-$releasever-$basearch' }
- { name: pgdg-extras ,description: 'PostgreSQL Extra' ,module: extra ,releases: [7,8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://download.postgresql.org/pub/repos/yum/common/pgdg-rhel$releasever-extras/redhat/rhel-$releasever-$basearch' }
- { name: pgdg13-nonfree ,description: 'PostgreSQL 13+' ,module: extra ,releases: [7,8,9] ,arch: [x86_64] ,baseurl: 'https://download.postgresql.org/pub/repos/yum/non-free/13/redhat/rhel-$releasever-$basearch' }
- { name: pgdg14-nonfree ,description: 'PostgreSQL 14+' ,module: extra ,releases: [7,8,9] ,arch: [x86_64] ,baseurl: 'https://download.postgresql.org/pub/repos/yum/non-free/14/redhat/rhel-$releasever-$basearch' }
- { name: pgdg15-nonfree ,description: 'PostgreSQL 15+' ,module: extra ,releases: [7,8,9] ,arch: [x86_64] ,baseurl: 'https://download.postgresql.org/pub/repos/yum/non-free/15/redhat/rhel-$releasever-$basearch' }
- { name: pgdg16-nonfree ,description: 'PostgreSQL 16+' ,module: extra ,releases: [7,8,9] ,arch: [x86_64] ,baseurl: 'https://download.postgresql.org/pub/repos/yum/non-free/16/redhat/rhel-$releasever-$basearch' }
- { name: pgdg17-nonfree ,description: 'PostgreSQL 17+' ,module: extra ,releases: [7,8,9] ,arch: [x86_64] ,baseurl: 'https://download.postgresql.org/pub/repos/yum/non-free/17/redhat/rhel-$releasever-$basearch' }
- { name: timescaledb ,description: 'TimescaleDB' ,module: extra ,releases: [7,8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://packagecloud.io/timescale/timescaledb/el/$releasever/$basearch' }
- { name: wiltondb ,description: 'WiltonDB' ,module: mssql ,releases: [7,8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://download.copr.fedorainfracloud.org/results/wiltondb/wiltondb/epel-$releasever-$basearch/' }
- { name: ivorysql ,description: 'IvorySQL' ,module: ivory ,releases: [7,8,9] ,arch: [x86_64] ,baseurl: 'https://repo.pigsty.io/yum/ivory/el$releasever.$basearch' }
- { name: groonga ,description: 'Groonga' ,module: groonga ,releases: [8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://packages.groonga.org/almalinux/$releasever/$basearch/' }
- { name: mysql ,description: 'MySQL' ,module: mysql ,releases: [7,8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://repo.mysql.com/yum/mysql-8.0-community/el/$releasever/$basearch/' }
- { name: mongo ,description: 'MongoDB' ,module: mongo ,releases: [7,8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/8.0/$basearch/' }
- { name: redis ,description: 'Redis' ,module: redis ,releases: [8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://rpmfind.net/linux/remi/enterprise/$releasever/redis72/$basearch/' }
- { name: grafana ,description: 'Grafana' ,module: grafana ,releases: [7,8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://rpm.grafana.com' }
- { name: docker-ce ,description: 'Docker CE' ,module: docker ,releases: [7,8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://download.docker.com/linux/centos/$releasever/$basearch/stable' }
- { name: kubernetes ,description: 'Kubernetes' ,module: kube ,releases: [7,8,9] ,arch: [x86_64, aarch64] ,baseurl: 'https://pkgs.k8s.io/core:/stable:/v1.31/rpm/' }
repo_modules: # Available Modules: 19
- all : pigsty-infra, pigsty-pgsql, pgdg-common, pgdg-el8fix, pgdg-el9fix, pgdg17, pgdg16, pgdg15, pgdg14, pgdg13, baseos, appstream, extras, powertools, crb, epel, base, updates, security, backports
- pigsty : pigsty-infra, pigsty-pgsql
- pgdg : pgdg-common, pgdg-el8fix, pgdg-el9fix, pgdg17, pgdg16, pgdg15, pgdg14, pgdg13
- node : baseos, appstream, extras, powertools, crb, epel, base, updates, security, backports
- infra : pigsty-infra, nginx
- pgsql : pigsty-pgsql, pgdg-common, pgdg-el8fix, pgdg-el9fix, pgdg13, pgdg14, pgdg15, pgdg16, pgdg17, pgdg
- extra : pgdg-extras, pgdg13-nonfree, pgdg14-nonfree, pgdg15-nonfree, pgdg16-nonfree, pgdg17-nonfree, timescaledb, citus
- mssql : wiltondb
- mysql : mysql
- docker : docker-ce
- kube : kubernetes
- grafana : grafana
- pgml : pgml
- groonga : groonga
- haproxy : haproxyd, haproxyu
- ivory : ivorysql
- local : pigsty-local
- mongo : mongo
- redis : redis
有没有想过,安装或升级 PostgreSQL 扩展时,不再需要翻阅过时的 README、晦涩的 configure 脚本,或者随便找的 GitHub 分支和补丁?痛苦的现实是,Postgres 强大的扩展性往往意味着复杂的设置,尤其是在你需要兼顾多个发行版或 CPU 架构时。
这时,Pig 就应运而生了。Pig 是一个基于 Go 的包管理器,旨在一举解决 Postgres 及其超过 400 个扩展的问题。无论是 TimescaleDB、Citus、PGVector,还是 20 多个 Rust 扩展,甚至是自托管 Supabase 所需的所有工具 —— Pig 的统一命令行界面让这些都触手可及。 它去除了混乱的源代码编译和半成品的仓库,提供与 Debian、Ubuntu、RedHat 系列以及 x86 和 ARM 架构完美兼容的、版本对齐的 RPM/DEB 包。无需猜测,也无需麻烦。
Pig 并不是重新发明轮子,而是利用你系统原生的包管理器(APT、YUM、DNF),并遵循官方 PGDG 包装规范,确保无缝对接。这意味着你不必在“正确的方式”和“快速的方式”之间做选择;Pig 尊重你现有的仓库,符合操作系统的最佳实践,并且与其他你已经使用的包完美兼容。
准备好在没有繁琐操作的情况下为你的 Postgres 增加超级能力吗?查看 GitHub 了解文档、安装步骤,并一睹其庞大的扩展列表。然后,看看你的本地 Postgres 实例如何变成一个充满专业模块的强大工具 —— 无需黑魔法。如果 Postgres 的未来是不可阻挡的可扩展性,那么 Pig 就是帮助你解锁这一未来的神灯。说实话,没人抱怨自己拥有太多扩展。
安装 pig
最简单的方法是运行以下脚本:
curl -fsSL https://repo.pigsty.io/pig | bash
该脚本会直接从 pigsty 仓库下载最新版本的 pig
RPM/DEB 包,并通过 rpm
或 dpkg
进行安装。
pig
RPM 包可在 pigsty-infra
YUM 仓库中获得,适用于所有 EL 兼容平台:
sudo tee /etc/yum.repos.d/pigsty.repo > /dev/null <<-'EOF'
[pigsty-infra]
name=Pigsty Infra for $basearch
baseurl=https://repo.pigsty.io/yum/infra/$basearch
enabled = 1
gpgcheck = 0
module_hotfixes=1
EOF
sudo yum makecache;
sudo yum install -y pig
pig
DEB 包可在 pigsty-infra
APT 仓库中获得,适用于所有 Debian/Ubuntu 兼容平台:
sudo tee /etc/apt/sources.list.d/pigsty.list > /dev/null <<EOF
deb [trusted=yes] https://repo.pigsty.io/apt/infra generic main
EOF
sudo apt update;
sudo apt install -y pig
安装完成后,你可以使用以下命令将 pig
更新到最新版本:
pig update # 将 pig 自身升级到最新版本
pig - Linux包管理器(适用于PostgreSQL)和Pigsty的命令行工具
用法:
pig [命令]
示例:
# 开始使用:详情请查看 https://github.com/pgsty/pig
pig repo add -ru # 覆盖现有仓库并更新缓存
pig ext add pg17 # 安装可选的postgresql 17软件包
pig ext add pg_duckdb # 安装特定的postgresql扩展
命令:
pig repo : add rm update list info status create boot cache
pig ext : add rm update list info status import link build
pig sty : init boot conf install get list
PostgreSQL扩展管理器
ext 管理PostgreSQL扩展 (pgext)
repo 管理Linux软件仓库 (apt/dnf)
Pigsty管理命令
sty 管理Pigsty安装
附加命令:
build 构建Postgres扩展
completion 为指定的shell生成自动补全脚本
help 获取任何命令的帮助信息
status 显示环境状态
update 升级pig自身
version 显示pig版本信息
标志:
--debug 启用调试模式
-h, --help 帮助信息
-i, --inventory string 配置清单路径
--log-level string 日志级别:debug, info, warn, error, fatal, panic (默认 "info")
--log-path string 日志文件路径,默认为终端输出
-t, --toggle 切换帮助信息
使用 "pig [command] --help" 获取关于命令的更多信息。
pig status # 显示操作系统、pg和pig状态
pig repo status # 显示上游仓库状态
pig ext status # 显示pg扩展状态
pig ext list [query] # 列出并搜索扩展
pig ext info [ext...] # 获取特定扩展的信息
pig ext status [-v] # 显示已安装的扩展和pg状态
pig ext add [ext...] # 为当前pg版本安装扩展
pig ext rm [ext...] # 为当前pg版本移除扩展
pig ext update [ext...] # 更新扩展至最新版本
pig ext import [ext...] # 下载扩展到本地仓库
pig ext link [ext...] # 将postgres安装链接到路径
pig ext upgrade # 获取最新的扩展目录
pig repo list # 可用仓库列表
pig repo info [repo|module...] # 显示仓库信息
pig repo status # 显示当前仓库状态
pig repo add [repo|module...] # 添加仓库和模块
pig repo rm [repo|module...] # 移除仓库和模块
pig repo update # 更新仓库包缓存
pig repo create # 在当前系统上创建仓库
pig repo boot # 从离线包启动仓库
pig repo cache # 将仓库缓存为离线包
pig 也可以作为 Pigsty 的命令行工具 - 一个电池包含的免费 PostgreSQL RDS。 它带来了 HA, PITR, Monitoring, IaC, 以及所有扩展到你的 PostgreSQL 集群。
pig sty init # 安装 pigsty 到 ~/pigsty
pig sty boot # 安装ansible和其他预依赖
pig sty conf # 自动生成pigsty.yml配置文件
pig sty install # 运行install.yml playbook
你可以使用 pig sty
子命令在当前节点上初始化 pigsty。
pig repo
命令是一个全面的软件包仓库管理工具。
它提供了管理、添加、删除、创建和操作操作系统软件仓库的功能。
它同时支持基于 RPM(EL)和基于 Debian 的系统。
pig repo - 管理 Linux APT/YUM 仓库
pig repo list # 显示可用仓库列表 (info)
pig repo info [repo|module...] # 显示仓库详细信息 (info)
pig repo status # 显示当前仓库状态 (info)
pig repo add [repo|module...] # 添加仓库和模块 (root)
pig repo rm [repo|module...] # 删除仓库和模块 (root)
pig repo update # 更新仓库包缓存 (root)
pig repo create # 在当前系统创建仓库 (root)
pig repo boot # 从离线包启动仓库 (root)
pig repo cache # 将仓库缓存为离线包 (root)
用法:
pig repo [command]
别名:
repo, r
示例:
入门指南:https://pigsty.io/ext/pig/
pig repo add -ru # 添加所有仓库并更新缓存(简单粗暴但有效)
pig repo add pigsty -u # 温和版本,仅添加 pigsty 仓库并更新缓存
pig repo add node pgdg pigsty # 安装 postgres 包所需的基本仓库
pig repo add all # all = node + pgdg + pigsty
pig repo add all extra # extra 模块包含非免费和一些第三方扩展仓库
pig repo update # 更新仓库缓存
pig repo create # 更新本地仓库 /www/pigsty 元数据
pig repo boot # 将 /tmp/pkg.tgz 解压到 /www/pigsty
pig repo cache # 将 /www/pigsty 缓存到 /tmp/pkg.tgz
可用命令:
add 添加新仓库
boot 从离线包引导仓库
cache 从本地仓库创建离线包
create 创建本地 YUM/APT 仓库
info 获取仓库详细信息
list 打印可用仓库列表
rm 移除仓库
set 清除并覆盖仓库
status 显示当前仓库状态
update 更新仓库缓存
标志:
-h, --help 显示帮助信息
全局标志:
--debug 启用调试模式
-i, --inventory string 配置清单路径
--log-level string 日志级别:debug, info, warn, error, fatal, panic(默认 "info")
--log-path string 日志文件路径,默认输出到终端
列出可用仓库并添加 PGDG 和 Pigsty 仓库,然后更新本地仓库缓存。
# 列出可用模块
pig repo list
# 添加 PGDG 和 Pigsty 仓库
pig repo add pgdg pigsty
# yum makecache 或 apt update
pig repo update
添加新仓库后,你需要更新仓库元数据缓存,你可以使用专门的 pig repo update
命令,或在 pig repo add
命令中使用 -u|--update
标志。
pig repo add pigsty -u # 添加 pigsty 仓库并更新仓库缓存
如果你想在添加新仓库前清除所有现有仓库,你可以使用额外的 -r|--remove
标志,或使用专门的 pig repo set
子命令替代 pig repo add
。
pig repo add all --remove # 删除所有现有仓库并添加 node、pgdg、pigsty 仓库并更新仓库缓存
pig repo add -r # 同上,如果缺少仓库/模块将使用默认的 `all` 别名来添加 node、pgdg、pigsty 仓库
pig repo set # 同上,set 是 `add --remove` 的快捷方式,被删除的仓库文件会备份到 `/etc/yum.repos.d/backup` 或 `/etc/apt/sources.list.d/backup`
设置 PostgreSQL 安装所需仓库最简单粗暴但可靠的方式是清除所有现有仓库并添加所有必需的仓库:
pig repo set -u # 清除所有现有仓库并添加所有必需的仓库并更新仓库缓存
在 pigsty 中,所有仓库都被组织成模块,一个模块是仓库的集合。
模块名称可能在不同的操作系统发行版、主要版本、架构和地理区域中映射到不同的实际仓库。
Pigsty 会处理所有细节,你可以使用 pig repo list
列出所有仓库和模块。
repo_modules: # 可用模块:19
- all : pigsty-infra, pigsty-pgsql, pgdg, baseos, appstream, extras, powertools, crb, epel, base, updates, security, backports
- pigsty : pigsty-infra, pigsty-pgsql
- pgdg : pgdg
- node : baseos, appstream, extras, powertools, crb, epel, base, updates, security, backports
- infra : pigsty-infra, nginx
- pgsql : pigsty-pgsql, pgdg-common, pgdg-el8fix, pgdg-el9fix, pgdg13, pgdg14, pgdg15, pgdg16, pgdg17, pgdg
- extra : pgdg-extras, pgdg13-nonfree, pgdg14-nonfree, pgdg15-nonfree, pgdg16-nonfree, pgdg17-nonfree, timescaledb, citus
- mssql : wiltondb
- mysql : mysql
- docker : docker-ce
- kube : kubernetes
- grafana : grafana
- pgml : pgml
- groonga : groonga
- haproxy : haproxyd, haproxyu
- ivory : ivorysql
- local : pigsty-local
- mongo : mongo
- redis : redis
通常安装 PostgreSQL 和所有扩展需要以下 3 个模块:
pgdg
:官方 PostgreSQL 仓库,包含 PG 内核包、工具和 100+ 扩展。pigsty
:Pigsty 扩展仓库,包含 200+ 额外扩展和工具。node
:操作系统默认仓库,提供 PostgreSQL 所需的所有库和依赖。有一个方便的伪模块别名 all
,包含了上述 3 个基本模块。
你可以使用 pig repo add all
添加所有这些模块,或使用更简单的缩写:pig repo add
。
repo list
列出当前系统可用的仓库模块和仓库。
print available repo list
Usage:
pig repo list [flags]
Aliases:
list, l, ls
Examples:
pig repo list # 列出当前系统可用的仓库
pig repo list all # 列出所有未过滤的仓库原始数据
Flags:
-h, --help help for list
可用仓库定义在 cli/repo/assets/repo.yml
中,
如果你想修改仓库列表,可以通过在 ~/.pig/repo.yml
添加自己的 repo.yml
文件来实现。
repo add
向系统添加仓库配置文件。
添加新仓库
用法:
pig repo add [flags]
别名:
add, a, append
示例:
pig repo add # = pig repo add all
pig repo add all # 添加 node,pgsql,infra 仓库(推荐)
pig repo add all -u # 添加上述仓库并更新仓库缓存(或:--update)
pig repo add all -r # 添加所有仓库,删除旧仓库(或:--remove)
pig repo add pigsty --update # 添加 pigsty 扩展仓库并更新仓库缓存
pig repo add pgdg --update # 添加 pgdg 官方仓库并更新仓库缓存
pig repo add pgsql node --remove # 添加操作系统 + postgres 仓库,删除旧仓库
pig repo add infra # 添加可观测性、grafana & prometheus 堆栈、pg 二进制工具
(注意系统仓库管理需要 sudo / root 权限)
可用仓库模块:
- all : pgsql + node + infra(推荐)
- pigsty : PostgreSQL 扩展仓库(默认)
- pgdg : PGDG 官方 PostgreSQL 仓库(官方)
- node : 操作系统官方仓库(el/debian/ubuntu)
- pgsql : pigsty + pgdg(所有可用的 pg 扩展)
# 使用 pig repo list 查看可用仓库和模块
标志:
-h, --help 显示帮助信息
--region string 区域代码(default|china)
-r, --remove 添加新仓库前删除现有仓库
-u, --update 运行 apt update 或 dnf makecache
此命令:
-r|--remove
标志,它会将现有仓库移动到备份文件夹:/etc/yum.repos.d/backup
/etc/apt/sources.list.d/backup
/etc/yum.repos.d/<module>.repo
/etc/apt/sources.list.d/<module>.list
-u|--update
标志,它会运行 apt update
或 dnf makecache
来更新仓库缓存。如果不是以 root
身份运行,需要 sudo 权限。
repo set
与 repo add <...> --remove
相同,在添加新仓库前删除现有仓库。
清除并覆盖仓库
用法:
pig repo set [flags]
别名:
set, overwrite
示例:
pig repo set all # 将仓库设置为 node,pgsql,infra(推荐)
pig repo set all -u # 将仓库设置为上述仓库并更新仓库缓存(或 --update)
pig repo set pigsty --update # 将仓库设置为 pigsty 扩展仓库并更新仓库缓存
pig repo set pgdg --update # 将仓库设置为 pgdg 官方仓库并更新仓库缓存
pig repo set infra # 将仓库设置为可观测性、grafana & prometheus 堆栈、pg 二进制工具
(注意系统仓库管理需要 sudo/root 权限)
标志:
-h, --help 显示帮助信息
--region string 区域代码
-u, --update 运行 apt update 或 dnf makecache
如果不是以 root
身份运行,需要 sudo 权限。
repo update
更新仓库缓存,相当于 apt update
或 yum makecache
。
更新仓库缓存
用法:
pig repo update [flags]
别名:
update, u
示例:
pig repo update # yum makecache 或 apt update
标志:
-h, --help 显示帮助信息
如果不是以 root
身份运行,需要 sudo 权限。
repo rm
从系统中删除仓库文件。
删除仓库
用法:
pig repo rm [flags]
别名:
rm, remove
示例:
pig repo rm # 删除(备份)所有现有仓库到备份目录
pig repo rm all --update # 删除模块 'all' 并更新仓库缓存
pig repo rm node pigsty -u # 删除模块 'node' 和 'pigsty' 并更新仓库缓存
标志:
-h, --help 显示帮助信息
-u, --update 运行 apt update 或 dnf makecache
它会从系统中删除仓库文件,如果提供了 -u|--update
标志,它会在删除仓库文件后运行 apt update
或 dnf makecache
来更新仓库缓存。
在删除文件之前,该命令会创建现有仓库配置的备份。
如果不是以 root
身份运行,通常需要 sudo 权限。
repo status
打印系统仓库目录并列出系统包管理器可用的仓库。
显示当前仓库状态
用法:
pig repo status [flags]
别名:
status, s, st
标志:
-h, --help 显示帮助信息
repo info
提供特定仓库或模块的详细信息。
获取仓库详细信息
用法:
pig repo info [flags]
别名:
info, i
标志:
-h, --help 显示帮助信息
示例:
#-------------------------------------------------
名称 : pgdg
摘要 : PGDG
可用性 : 是(debian d12 amd64)
模块 : pgsql
系统架构 : [x86_64, aarch64]
系统发行版 : deb [11,12,20,22,24]
元数据 : trusted=yes
基础 URL : http://apt.postgresql.org/pub/repos/apt/ ${distro_codename}-pgdg main
china : https://mirrors.tuna.tsinghua.edu.cn/postgresql/repos/apt/ ${distro_codename}-pgdg main
# 默认仓库内容
# pgdg PGDG
deb [trusted=yes] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main
# 中国镜像仓库内容
# pgdg PGDG
deb [trusted=yes] https://mirrors.tuna.tsinghua.edu.cn/postgresql/repos/apt/ bookworm-pgdg main
它会打印给定仓库名称或模块名称的仓库信息。并且支持区域性镜像。
repo create
在指定目录创建本地 YUM/APT 仓库
创建本地 YUM/APT 仓库
用法:
pig repo create [path...]
别名:
create, cr
示例:
pig repo create # 默认在 /www/pigsty 创建仓库
pig repo create /www/mssql /www/b # 在多个位置创建仓库
(注意系统仓库管理需要 sudo/root 权限)
默认目录: /www/pigsty
此命令:
createrepo_c
dpkg-dev
如果不是以 root
身份运行,需要该目录的读/写权限。
repo cache
为离线使用创建仓库内容的压缩 tarball。
pig repo cache [directory_path] [package_path] [repo1,repo2,...]
参数:
directory_path
:包含仓库的源目录(默认:/www
)package_path
:输出 tarball 路径(默认:当前目录下的 pigsty-pkg-<os>-<arch>.tgz
)repos
:要包含的仓库子目录的逗号分隔列表(默认:全部)示例:
pig repo cache /www /tmp/pkg.tgz pigsty
pig repo cache /www /tmp/pkg.tgz pigsty mssql ivory
你可以在已创建的本地仓库上创建 tarball,并使用它从离线包引导新系统。
repo cache
从本地仓库创建离线包
从本地仓库创建离线包
用法:
pig repo cache [flags]
别名:
cache, c
示例:
pig repo cache # 从 /www/pigsty 创建 /tmp/pkg.tgz 离线包
pig repo cache -f # 强制覆盖现有包
pig repo cache -d /srv # 将默认内容目录 /www 覆盖为 /srv
pig repo cache pigsty mssql # 使用 pigsty 和 mssql 仓库创建 tarball
pig repo c -f # 制作离线包的最简用法
(注意系统仓库管理需要 sudo/root 权限)
标志:
-d, --dir string 源仓库路径(默认 "/www/")
-h, --help 显示帮助信息
-p, --path string 离线包路径(默认 "/tmp/pkg.tgz")
repo boot
从离线包引导本地仓库。
从离线包引导仓库
用法:
pig repo boot [flags]
别名:
boot, b, bt
示例:
pig repo boot # 从 /tmp/pkg.tgz 引导仓库到 /www
pig repo boot -p /tmp/pkg.tgz # 从给定的包路径引导仓库
pig repo boot -d /srv # 引导仓库到另一个目录 /srv
标志:
-d, --dir string 目标仓库路径(默认 "/www/")
-h, --help 显示帮助信息
-p, --path string 离线包路径(默认 "/tmp/pkg.tgz")
参数:
offline_package
:由 pig repo cache
创建的 tarball 路径target_directory
:解压仓库的目标目录(默认:/www
)示例:
pig repo boot /tmp/pkg.tgz /www
此命令:
pig ext
命令是一个用于管理 PostgreSQL 扩展的综合工具。
它允许用户搜索、安装、删除、更新和管理 PostgreSQL 扩展插件,甚至包括内核包。
pig ext - 管理 PostgreSQL 扩展
pig repo add -ru # 添加所有仓库并更新缓存(简单粗暴但有效)
pig ext add pg17 # 安装可选的 postgresql 17 包
pig ext list duck # 在目录中搜索扩展
pig ext scan -v 17 # 扫描 pg 17 已安装的扩展
pig ext add pg_duckdb # 安装指定的 postgresql 扩展
用法:
pig ext [命令]
别名:
ext, e, ex, pgext, extension
示例:
pig ext list [query] # 列出并搜索扩展
pig ext info [ext...] # 获取特定扩展的信息
pig ext status [-v] # 显示已安装的扩展和 pg 状态
pig ext add [ext...] # 为当前 pg 版本安装扩展
pig ext rm [ext...] # 为当前 pg 版本移除扩展
pig ext update [ext...] # 将扩展更新到最新版本
pig ext import [ext...] # 下载扩展到本地仓库
pig ext link [ext...] # 将 postgres 安装链接到路径
pig ext upgrade # 升级到最新的扩展目录
可用命令:
add 安装 postgres 扩展
import 导入扩展包到本地仓库
info 获取扩展信息
link 将 postgres 链接到活动 PATH
list 列出并搜索可用扩展
rm 移除 postgres 扩展
scan 扫描活动 pg 的已安装扩展
status 显示活动 pg 上已安装的扩展
update 更新当前 pg 版本的已安装扩展
upgrade 将扩展目录升级到最新版本
标志:
-h, --help 显示帮助信息
-p, --path string 通过 pg_config 路径指定 postgres
-v, --version int 通过主版本号指定 postgres
全局标志:
--debug 启用调试模式
-i, --inventory string 配置清单路径
--log-level string 日志级别:debug, info, warn, error, fatal, panic(默认 "info")
--log-path string 日志文件路径,默认为终端
使用 "pig ext [命令] --help" 获取有关命令的更多信息。
要安装 postgres 扩展,你首先需要设置 repo:
pig repo add pgdg pigsty -u # 温和的方式添加 pgdg 和 pigsty 仓库
pig repo set -u # 暴力方式移除并添加所有必需的仓库
然后你就可以搜索并安装 PostgreSQL 扩展:
pig ext install pg_duckdb
pig ext install pg_partman
pig ext install pg_cron
pig ext install pg_repack
pig ext install pg_stat_statements
pig ext install pg_stat_kcache
查看 扩展列表 获取可用扩展及其名称。
PATH
中的 pg_config
检测活动的 PostgreSQL 安装-v
)或 pg_config 路径(-p
)指定。
如果给定 -v
,pig 将使用给定版本的 PGDG 内核包的默认路径。
/usr/pgsql-$v/bin/pg_config
/usr/lib/postgresql/$v/bin/pg_config
等
如果给定 -p
,pig 将使用 pg_config
路径查找 PostgreSQL 安装。-y
标志,因为它会自动确认所有提示。Pigsty 假设你已经安装了官方的 PGDG 内核包,如果没有,你可以这样安装:
pig ext install pg17 # 安装 PostgreSQL 17 内核(除了 devel 包)
ext list
列出并搜索扩展目录中的可用扩展。
列出并搜索可用扩展
用法:
pig ext list [query] [flags]
别名:
list, l, ls, find
示例:
pig ext list # 列出所有扩展
pig ext list postgis # 通过名称/描述搜索扩展
pig ext ls olap # 列出 olap 类别的扩展
pig ext ls gis -v 16 # 列出 pg 16 的 gis 类别扩展
默认扩展目录定义在 cli/ext/assets/pigsty.csv
你可以使用 pig ext upgrade
更新到最新的扩展目录,它会将最新的扩展目录数据下载到 ~/.pig/pigsty.csv
。
ext info
显示特定扩展的详细信息。
pig ext info [ext...]
示例:
pig ext info postgis # 显示关于 PostGIS 的详细信息
pig ext info timescaledb # 显示关于 TimescaleDB 的信息
$ pig ext info postgis # 显示关于 PostGIS 的详细信息
╭────────────────────────────────────────────────────────────────────────────╮
│ postgis │
├────────────────────────────────────────────────────────────────────────────┤
│ PostGIS 几何和地理空间类型及函数 │
├────────────────────────────────────────────────────────────────────────────┤
│ 扩展名 : postgis │
│ 别名 : postgis │
│ 类别 : GIS │
│ 版本 : 3.5.2 │
│ 许可证 : GPL-2.0 │
│ 网站 : https://git.osgeo.org/gitea/postgis/postgis │
│ 详情 : https://pigsty.io/gis/postgis │
├────────────────────────────────────────────────────────────────────────────┤
│ 扩展属性 │
├────────────────────────────────────────────────────────────────────────────┤
│ PostgreSQL 版本 │ 可用于: 17, 16, 15, 14, 13 │
│ CREATE : 是 │ CREATE EXTENSION postgis; │
│ DYLOAD : 否 │ 无需加载共享库 │
│ TRUST : 否 │ 需要数据库超级用户安装 │
│ Reloc : 否 │ 模式: [] │
│ Depend : 否 │ │
├────────────────────────────────────────────────────────────────────────────┤
│ 被以下扩展依赖 │
├────────────────────────────────────────────────────────────────────────────┤
│ - postgis_topology │
│ - postgis_raster │
│ - postgis_sfcgal │
│ - postgis_tiger_geocoder │
│ - pgrouting │
│ - pointcloud_postgis │
│ - h3_postgis │
│ - mobilitydb │
│ - documentdb │
├────────────────────────────────────────────────────────────────────────────┤
│ RPM 包 │
├────────────────────────────────────────────────────────────────────────────┤
│ 仓库 │ PGDG │
│ 包名 │ postgis35_$v* │
│ 版本 │ 3.5.2 │
│ 可用性 │ 17, 16, 15, 14, 13 │
├────────────────────────────────────────────────────────────────────────────┤
│ DEB 包 │
├────────────────────────────────────────────────────────────────────────────┤
│ 仓库 │ PGDG │
│ 包名 │ postgresql-$v-postgis-3 postgresql-$v-postgis-3-scripts │
│ 版本 │ 3.5.2 │
│ 可用性 │ 17, 16, 15, 14, 13 │
╰────────────────────────────────────────────────────────────────────────────╯
status
- 显示已安装的扩展显示活动 PostgreSQL 实例上已安装扩展的状态。
pig ext status [-c]
选项:
-c, --contrib
: 包括 contrib 扩展示例:
pig ext status # 显示已安装的扩展
pig ext status -c # 显示已安装的扩展,包括 contrib 扩展
pig ext status -v 16 # 显示 PostgreSQL 16 已安装的扩展
ext scan
扫描活动 PostgreSQL 实例以查找已安装的扩展。
pig ext scan [-v version]
它将扫描 postgres 扩展文件夹以查找所有实际安装的扩展。
$ pig ext status
Installed:
* PostgreSQL 17.4 (Debian 17.4-1.pgdg120+2) 85 Extensions
Active:
PG Version : PostgreSQL 17.4 (Debian 17.4-1.pgdg120+2)
Config Path : /usr/lib/postgresql/17/bin/pg_config
Binary Path : /usr/lib/postgresql/17/bin
Library Path : /usr/lib/postgresql/17/lib
Extension Path : /usr/share/postgresql/17/extension
Extension Stat : 18 Installed (PIGSTY 8, PGDG 10) + 67 CONTRIB = 85 Total
Name Version Cate Flags License Repo Package Description
---- ------- ---- ------ ------- ------ ------------ ---------------------
timescaledb 2.18.2 TIME -dsl-- Timescale PIGSTY postgresql-17-timescaledb-tsl Enables scalable inserts and complex queries for time-series dat
postgis 3.5.2 GIS -ds--- GPL-2.0 PGDG postgresql-17-postgis-3 postgresql-$v-postgis-3-scripts PostGIS geometry and geography spatial types and functions
postgis_topology 3.5.2 GIS -ds--- GPL-2.0 PGDG postgresql-17-postgis-3 postgresql-$v-postgis-3-scripts PostGIS topology spatial types and functions
postgis_raster 3.5.2 GIS -ds--- GPL-2.0 PGDG postgresql-17-postgis-3 postgresql-$v-postgis-3-scripts PostGIS raster types and functions
postgis_sfcgal 3.5.2 GIS -ds--r GPL-2.0 PGDG postgresql-17-postgis-3 postgresql-$v-postgis-3-scripts PostGIS SFCGAL functions
postgis_tiger_geocoder 3.5.2 GIS -ds-t- GPL-2.0 PGDG postgresql-17-postgis-3 postgresql-$v-postgis-3-scripts PostGIS tiger geocoder and reverse geocoder
address_standardizer 3.5.2 GIS -ds--r GPL-2.0 PGDG postgresql-17-postgis-3 postgresql-$v-postgis-3-scripts Used to parse an address into constituent elements. Generally us
address_standardizer_data_us 3.5.2 GIS -ds--r GPL-2.0 PGDG postgresql-17-postgis-3 postgresql-$v-postgis-3-scripts Address Standardizer US dataset example
vector 0.8.0 RAG -ds--r PostgreSQL PGDG postgresql-17-pgvector vector data type and ivfflat and hnsw access methods
pg_search 0.15.2 FTS -ds-t- AGPL-3.0 PIGSTY postgresql-17-pg-search pg_search: Full text search for PostgreSQL using BM25
pgroonga 4.0.0 FTS -ds-tr PostgreSQL PIGSTY postgresql-17-pgroonga Use Groonga as index, fast full text search platform for all lan
pgroonga_database 4.0.0 FTS -ds-tr PostgreSQL PIGSTY postgresql-17-pgroonga PGroonga database management module
citus 13.0.1 OLAP -dsl-- AGPL-3.0 PIGSTY postgresql-17-citus Distributed PostgreSQL as an extension
citus_columnar 11.3-1 OLAP -ds--- AGPL-3.0 PIGSTY postgresql-17-citus Citus columnar storage engine
pg_mooncake 0.1.2 OLAP ------ MIT PIGSTY postgresql-17-pg-mooncake Columnstore Table in Postgres
plv8 3.2.3 LANG -ds--- PostgreSQL PIGSTY postgresql-17-plv8 PL/JavaScript (v8) trusted procedural language
pg_repack 1.5.2 ADMIN bds--- BSD 3-Clause PGDG postgresql-17-repack Reorganize tables in PostgreSQL databases with minimal locks
wal2json 2.5.3 ETL --s--x BSD 3-Clause PGDG postgresql-17-wal2json Changing data capture in JSON format
(18 Rows) (Flags: b = HasBin, d = HasDDL, s = HasSolib, l = NeedLoad, t = Trusted, r = Relocatable, x = Unknown)
ext add
安装一个或多个 PostgreSQL 扩展。
安装 postgres 扩展
用法:
pig ext add [flags]
别名:
add, a, install, ins
示例:
Description:
pig ext install pg_duckdb # 安装一个扩展
pig ext install postgis timescaledb # 安装多个扩展
pig ext add pgvector pgvectorscale # 其他别名:add, ins, i, a
pig ext ins pg_search -y # 自动确认安装
pig ext install pgsql # 安装最新版本的 postgresql kernel
pig ext a pg17 # 安装 postgresql 17 kernel packages
pig ext ins pg16 # 安装 postgresql 16 kernel packages
pig ext install pg15-core # 安装 postgresql 15 core packages
pig ext install pg14-main -y # 安装 pg 14 + essential extensions (vector, repack, wal2json)
pig ext install pg13-devel --yes # 安装 pg 13 devel packages (auto-confirm)
pig ext install pgsql-common # 安装 common utils such as patroni pgbouncer pgbackrest,...
Flags:
-h, --help help for add
-y, --yes 自动确认安装
ext rm
移除一个或多个 PostgreSQL 扩展。
pig ext rm [ext...] [-y]
选项:
-y, --yes
: 自动确认移除示例:
pig ext rm pg_duckdb # 移除特定扩展
pig ext rm postgis timescaledb # 移除多个扩展
pig ext rm pgvector -y # 自动确认移除
ext update
更新已安装的扩展到最新版本。
pig ext update [ext...] [-y]
选项:
-y, --yes
: 自动确认更新示例:
pig ext update # 更新所有已安装的扩展
pig ext update postgis # 更新特定扩展
pig ext update postgis timescaledb # 更新多个扩展
pig ext update -y # 自动确认更新
pig import
下载扩展包到本地仓库进行离线安装。
用法:
pig ext import [ext...] [flags]
别名:
import, get
示例:
pig ext import postgis # 导入 postgis 扩展包
pig ext import timescaledb pg_cron # 导入多个扩展
pig ext import pg16 # 导入 postgresql 16 包
pig ext import pgsql-common # 导入 common utilities
pig ext import -d /www/pigsty postgis # 导入到特定路径
Flags:
-h, --help help for import
-d, --repo string specify repo dir (default "/www/pigsty")
选项:
-d, --repo
: 指定仓库目录(默认:/www/pigsty)示例:
pig ext import postgis # 导入 PostGIS 包
pig ext import timescaledb pg_cron # 导入多个扩展包
pig ext import pg16 # 导入 PostgreSQL 16 包
pig ext import pgsql-common # 导入 common 实用程序包
ext link
将 PostgreSQL 安装链接到系统 PATH。
将 postgres 链接到活动 PATH
用法:
pig ext link <-v pgver|-p pgpath> [flags]
别名:
link, ln
示例:
pig ext link 16 # 将 pgdg postgresql 16 链接到 /usr/pgsql
pig ext link /usr/pgsql-16 # 将特定 pg 链接到 /usr/pgsql
pig ext link /u01/polardb_pg # 将 polardb pg 链接到 /usr/pgsql
pig ext link null|none|nil|nop|no # 取消链接当前 postgres 安装
Flags:
-h, --help help for link
示例:
pig ext link 17 # 将 PostgreSQL 17 链接到 /usr/pgsql
pig ext link 16 # 将 PostgreSQL 16 链接到 /usr/pgsql
pig ext link /usr/pgsql-16 # 从特定路径将 PostgreSQL 链接至 /usr/pgsql
pig ext link null # 取消链接当前 PostgreSQL 安装
upgrade
将扩展目录升级到最新版本。
pig ext upgrade
pig 也可以作为 Pigsty 的命令行工具使用 - Pigsty 是一个功能完备的免费 PostgreSQL RDS。 它为您的 PostgreSQL 集群带来了高可用、时间点恢复、监控、基础设施即代码以及所有扩展功能。
pig sty -初始化(下载)、引导、配置和安装 Pigsty
pig sty init [-pfvd] # 安装 pigsty(默认安装到 ~/pigsty)
pig sty boot [-rpk] # 安装 ansible 并准备离线包
pig sty conf [-civrsxn] # 配置 pigsty 并生成配置文件
pig sty install # 使用 pigsty 安装和配置环境(危险操作!)
pig sty get # 下载 pigsty 源代码包
pig sty list # 列出可用的 pigsty 版本
用法:
pig sty [命令]
别名:
sty, s, pigsty
示例:
入门指南:https://pigsty.io/docs/setup/install/
pig sty init # 解压并初始化 ~/pigsty
pig sty boot # 安装 ansible 和其他依赖
pig sty conf # 生成 pigsty.yml 配置文件
pig sty install # 运行 pigsty/install.yml playbook
可用命令:
boot 引导 Pigsty
conf 配置 Pigsty
get 下载可用的 pigsty 版本
init 安装 Pigsty
install 运行 pigsty install.yml playbook
list 列出可用的 pigsty 版本
参数:
-h, --help 显示帮助信息
您可以使用 pig sty
子命令在当前节点上引导 pigsty。
sty init
pig sty init
-p | --path : 安装路径,默认为 ~/pigsty
-f | --force : 强制覆盖现有的 pigsty 目录
-v | --version : pigsty 版本,默认使用内置版本
-d | --dir : 下载目录,默认为 /tmp
用法:
pig sty init [参数]
别名:
init, i
示例:
pig sty init # 使用内置版本安装到 ~/pigsty
pig sty init -f # 安装并覆盖现有的 pigsty 目录
pig sty init -p /tmp/pigsty # 安装到其他位置 /tmp/pigsty
pig sty init -v 3.3 # 获取并安装特定版本 v3.3.0
pig sty init 3 # 获取并安装 v3 的最新版本
参数:
-d, --dir string pigsty 下载目录(默认为 "/tmp")
-f, --force 覆盖现有的 pigsty(默认为 false)
-h, --help 显示帮助信息
-p, --path string 目标目录(默认为 "~/pigsty")
-v, --version string pigsty 版本字符串
sty boot
pig sty boot
[-r|--region <region] [default,china,europe]
[-p|--path <path>] 指定另一个离线包路径
[-k|--keep] 引导过程中保留现有的上游仓库
详情请查看 https://pigsty.io/docs/setup/offline/#bootstrap
用法:
pig sty boot [参数]
别名:
boot, b, bootstrap
参数:
-h, --help 显示帮助信息
-k, --keep 保留现有仓库
-p, --path string 离线包路径
-r, --region string default,china,europe,...
sty conf
使用 ./configure 配置 pigsty
pig sty conf
[-c|--conf <name> # [meta|dual|trio|full|prod]
[--ip <ip>] # 主 IP 地址(使用 -s 跳过)
[-v|--version <pgver> # [17|16|15|14|13]
[-r|--region <region> # [default|china|europe]
[-s|--skip] # 跳过 IP 地址探测
[-x|--proxy] # 从环境变量写入代理设置
[-n|--non-interactive] # 非交互模式
详情请查看 https://pigsty.io/docs/setup/install/#configure
用法:
pig sty conf [参数]
别名:
conf, c, configure
示例:
pig sty conf # 使用默认的 conf/meta.yml 配置
pig sty conf -c rich -x # 使用 rich.yml 模板,添加代理环境到配置中
pig sty conf -c supa --ip=10.9.8.7 # 使用 supa 模板,将 10.9.8.7 设为主 IP
pig sty conf -c full -v 16 # 使用 4 节点完整模板,默认使用 pg16
pig sty conf -c oss -s # 使用 oss 模板,跳过 IP 探测和替换
pig sty conf -c slim -s -r china # 使用 2 节点精简模板,指定 china 为区域
参数:
-c, --conf string 配置模板名称
-h, --help 显示帮助信息
--ip string 主 IP 地址
-n, --non-interactive 非交互式配置
-p, --proxy 配置代理环境
-r, --region string 上游仓库区域
-s, --skip 跳过 IP 探测
-v, --version string PostgreSQL 主版本
sty install
运行 pigsty install.yml playbook
用法:
pig sty install [参数]
别名:
install, ins, install
参数:
-h, --help 显示帮助信息
pig build
是一个强大的命令行工具,它简化了构建和管理 PostgreSQL 扩展的整个工作流程 - 从设置构建环境到跨不同操作系统编译扩展。
Build Postgres Extension
Usage:
pig build [command]
Aliases:
build, b
Examples:
pig build - Build Postgres Extension
pig build repo # init build repo (=repo set -ru)
pig build tool [mini|full|...] # init build toolset
pig build proxy [id@host:port ] # init build proxy (optional)
pig build rust [-v <pgrx_ver>] # init rustc & pgrx (0.12.9)
pig build spec # init build spec repo
pig build get [all|std|..] # get ext code tarball with prefixes
pig build ext [extname...] # build extension
Available Commands:
ext Build extension
get Download source code tarball
proxy Initialize build proxy
repo Initialize required repos
rust Initialize rust and pgrx environment
spec Initialize building spec repo
tool Initialize build tools
Flags:
-h, --help help for build
Global Flags:
--debug enable debug mode
-i, --inventory string config inventory path
--log-level string log level: debug, info, warn, error, fatal, panic (default "info")
--log-path string log file path, terminal by default
设置构建环境:
# 初始化仓库和工具
pig build repo
pig build tool
pig build spec
# 对于基于 Rust 的扩展
pig build rust
# 下载标准扩展
pig build get std # 下载所有压缩包
pig build get citus timescaledb # 下载特定压缩包
# 构建特定扩展
pig build ext citus
使用 pig build
构建 PostgreSQL 扩展的典型工作流程:
pig build repo
pig build tool
pig build proxy id@host:port
pig build rust
pig build spec
pig build get [prefixes]
pig build ext [extname...]
pig build
命令支持:
build repo
别名: r
通过运行带有更新和移除标志的仓库添加命令,添加构建 PostgreSQL 扩展所需的上游仓库。
pig build repo
build tool
别名: t
安装编译 PostgreSQL 扩展所需的构建工具。
pig build tool
参数:
mode
: 安装模式 (默认: “mini”)
此命令安装必要的构建依赖,包括:
对于 EL 发行版 (RHEL, Rocky, CentOS):
make, cmake, ninja-build, pkg-config, lld, git, lz4, unzip, ncdu, rsync, vray,
rpmdevtools, dnf-utils, pgdg-srpm-macros, postgresql1*-devel, postgresql1*-server, jq,
readline-devel, zlib-devel, libxml2-devel, lz4-devel, libzstd-devel, krb5-devel,
对于 DEB 发行版 (Debian, Ubuntu):
make, cmake, ninja-build, pkg-config, lld, git, lz4, unzip, ncdu, rsync, vray,
debhelper, devscripts, fakeroot, postgresql-all, postgresql-server-dev-all, jq,
libreadline-dev, zlib1g-dev, libxml2-dev, liblz4-dev, libzstd-dev, libkrb5-dev,
build rust
别名: rs
设置用于构建 PostgreSQL Rust 扩展的 Rust 环境和 PGRX。
pig build rust [-v <pgrx_ver>]
参数:
-v <pgrx_ver>
: 要安装的 PGRX 版本 (默认: “0.12.9
”)此命令:
build spec
别名: s
根据操作系统初始化构建规范仓库:
pig build spec
对于 EL 发行版 (RHEL, Rocky, CentOS):
~/rpmbuild
上设置 RPM 构建文件层次结构对于 DEB 发行版 (Debian, Ubuntu):
~/deb
上设置构建目录文件层次结构该仓库包含 PIGSTY 维护的扩展的构建规范(rpmspecs 或 debian control 文件)。
build get
别名: get
下载 PostgreSQL 扩展的源代码压缩包。
pig build get [prefixes|all|std]
参数:
std
: 下载标准包(不包括大型包,默认行为)all
: 下载所有可用的源代码压缩包(用于批量构建)[prefixes]
: 一个或多个用于过滤要下载的包的前缀下载的文件存储在:
~/rpmbuild/SOURCES/
~/deb/tarball/
示例:
pig build get std # 获取标准包(除了 pg_duckdb/pg_mooncake/omnigres/plv8,太大了)
pig build get all # 获取所有可用的源代码压缩包
pig build get pg_mooncake # 获取 pg_mooncake 源代码
pig build get pg_duckdb # 获取 pg_duckdb 源代码
pig build get omnigres # 获取 omnigres 源代码
pig build get plv8 # 获取 plv8 源代码
pig build get citus # 获取 citus 源代码
pig build get timescaledb # 获取 timescaledb 源代码
pig build get hydra # 获取 hydra 源代码
pig build get pgjwt # 获取 pgjwt 源代码
....
build ext
别名: e
使用当前操作系统的适当构建环境构建 PostgreSQL 扩展。
pig build ext [extname...]
参数:
extname
: 要构建的一个或多个扩展名对于每个扩展,该命令:
~/rpmbuild/BUILD
或 ~/deb/build
)make citus
)它实际上利用规范仓库中的 make <ext>
命令来构建扩展。
build proxy
别名: p
设置代理服务器以访问外部资源,在网络访问受限的环境中很有用。
这是完全可选的,如果你没有任何连接问题就不需要它。
pig build proxy [id@host:port] [local]
参数:
id@host:port
: 远程 v2ray 代理规范,格式为 user-id@host:port
local
: v2ray 要绑定的本地地址(默认: “127.0.0.1:12345”)此命令:
/usr/local/bin/v2ray
)/etc/profile.d/proxy.sh
中创建环境设置脚本你可以通过运行以下命令加载代理环境变量:
. /etc/profile.d/proxy.sh
设置后,你可以使用以下别名:
po
: 启用代理(在当前 shell 会话中设置代理环境变量)px
: 禁用代理(取消设置代理环境变量)pck
: 检查代理状态(通过 ping google)pig
itself runs on any x86_64/aarch64
compatible Linux distribution.
But the pig extension repo only supports the following Linux distributions:
Code | Distribution | x86_64 |
aarch64 |
---|---|---|---|
el9 | RHEL 9 / Rocky9 / Alma9 / … | PG 17 - 13 | PG 17 - 13 |
el8 | RHEL 8 / Rocky8 / Alma8 / … | PG 17 - 13 | PG 17 - 13 |
u24 | Ubuntu 24.04 (noble ) |
PG 17 - 13 | PG 17 - 13 |
u22 | Ubuntu 22.04 (jammy ) |
PG 17 - 13 | PG 17 - 13 |
d12 | Debian 12 (bookworm ) |
PG 17 - 13 | PG 17 - 13 |
Here are some bad cases and limitation for above Linux distros:
pg_duckdb
el8:*:*
pljava
: el8:*:*
pllua
: el8:arm:13,14,15
h3
: el8.amd.pg17
jdbc_fdw
: el:arm:*
pg_partman
: u24:*:13
wiltondb
: d12:*:*
citus
and hydra
are mutually exclusivepg_duckdb
will invalidate duckdb_fdw
documentdb
is not available on arm
archPigsty 中总共有 405 个可用扩展,其中 EL 可用 RPM扩展 397 个,Debian/Ubuntu 可用 DEB扩展 391 个。 除去 PostgreSQL 自带的 69 个 Contrib扩展,共有 335 个第三方(PGDG,Pigsty)扩展插件。
扩展名(详情) | 标准名(官网) | 仓库 | 版本 | 类目 | 许可证 | LOAD |
DDL |
TRUST |
RELOC |
简介 |
---|---|---|---|---|---|---|---|---|---|---|
timescaledb | timescaledb |
PIGSTY | 2.19.0 | TIME |
Timescale | 时序数据库扩展插件 | ||||
timescaledb_toolkit | timescaledb_toolkit |
PIGSTY | 1.19.0 | TIME |
Timescale | 超表分析查询,时间序列流式处理,以及其他SQL工具 | ||||
timeseries | pg_timeseries |
PIGSTY | 0.1.6 | TIME |
PostgreSQL | Tembo时序数据API封装 | ||||
periods | periods |
PGDG | 1.2.3 | TIME |
PostgreSQL | 为 PERIODs 和 SYSTEM VERSIONING 提供标准 SQL 功能 | ||||
temporal_tables | temporal_tables |
PIGSTY | 1.2.2 | TIME |
BSD 2 | 时态表功能支持 | ||||
emaj | emaj |
PIGSTY | 4.6.0 | TIME |
GPLv3 | 让数据库的子集具有细粒度日志和时间旅行功能 | ||||
table_version | table_version |
PIGSTY | 1.11.1 | TIME |
BSD 3 | PostgreSQL 版本控制表扩展 | ||||
pg_cron | pg_cron |
PGDG | 1.6.5 | TIME |
PostgreSQL | 定时任务调度器 | ||||
pg_task | pg_task |
PGDG | 2.1.7 | TIME |
MIT | 在特定时间点在后台执行SQL命令 | ||||
pg_later | pg_later |
PIGSTY | 0.3.0 | TIME |
PostgreSQL | 执行查询,并在稍后异步获取查询结果 | ||||
pg_background | pg_background |
PIGSTY | 1.3 | TIME |
GPLv3 | 在后台运行 SQL 查询 | ||||
postgis | postgis |
PGDG | 3.5.2 | GIS |
GPLv2 | PostGIS 几何和地理空间扩展 | ||||
postgis_topology | postgis |
PGDG | 3.5.2 | GIS |
GPLv2 | PostGIS 拓扑空间类型和函数 | ||||
postgis_raster | postgis |
PGDG | 3.5.2 | GIS |
GPLv2 | PostGIS 光栅类型和函数 | ||||
postgis_sfcgal | postgis |
PGDG | 3.5.2 | GIS |
GPLv2 | PostGIS SFCGAL 函数 | ||||
postgis_tiger_geocoder | postgis |
PGDG | 3.5.2 | GIS |
GPLv2 | PostGIS tiger 地理编码器和反向地理编码器 | ||||
address_standardizer | postgis |
PGDG | 3.5.2 | GIS |
GPLv2 | 地址标准化函数。 | ||||
address_standardizer_data_us | postgis |
PGDG | 3.5.2 | GIS |
GPLv2 | 地址标准化函数:美国数据集示例 | ||||
pgrouting | pgrouting |
PGDG | 3.7.3 | GIS |
GPLv2 | 提供寻路能力 | ||||
pointcloud | pointcloud |
PIGSTY | 1.2.5 | GIS |
BSD 3 | 提供激光雷达点云数据类型支持 | ||||
pointcloud_postgis | pointcloud |
PGDG | 1.2.5 | GIS |
BSD 3 | 将激光雷达点云与PostGIS几何类型相集成 | ||||
h3 | pg_h3 |
PGDG | 4.2.2 | GIS |
Apache-2.0 | H3六边形层级索引支持 | ||||
h3_postgis | pg_h3 |
PGDG | 4.2.2 | GIS |
Apache-2.0 | H3与PostGIS集成的扩展插件 | ||||
q3c | q3c |
PIGSTY | 2.0.1 | GIS |
GPLv2 | Q3C天空索引插件 | ||||
ogr_fdw | ogr_fdw |
PGDG | 1.1.6 | GIS |
MIT | GIS 数据外部数据源包装器 | ||||
geoip | geoip |
PIGSTY | 0.3.0 | GIS |
BSD 2 | IP 地理位置扩展(围绕 MaxMind GeoLite 数据集的包装器) | ||||
pg_polyline | pg_polyline |
PIGSTY | 0.0.1 | GIS |
MIT | Google快速Polyline编码解码扩展 | ||||
pg_geohash | pg_geohash |
PIGSTY | 1.0 | GIS |
MIT | 使用GeoHash处理空间坐标的函数包 | ||||
mobilitydb | mobilitydb |
PGDG | 1.2.0 | GIS |
GPLv3 | MobilityDB地理空间投影数据管理分析平台 | ||||
earthdistance | earthdistance |
CONTRIB | 1.2 | GIS |
PostgreSQL | 计算地球表面上的大圆距离 | ||||
vector | pgvector |
PGDG | 0.8.0 | RAG |
PostgreSQL | 向量数据类型和 ivfflat / hnsw 访问方法 | ||||
vchord | vchord |
PIGSTY | 0.2.2 | RAG |
AGPLv3 | 使用Rust重写的高性能向量扩展 | ||||
vectorscale | pgvectorscale |
PIGSTY | 0.6.0 | RAG |
PostgreSQL | 使用DiskANN算法对向量进行高效索引 | ||||
vectorize | pg_vectorize |
PIGSTY | 0.21.1 | RAG |
PostgreSQL | 在PostgreSQL中封装RAG向量检索服务 | ||||
pg_similarity | pg_similarity |
PIGSTY | 1.0 | RAG |
BSD 3 | 提供17种距离度量函数 | ||||
smlar | smlar |
PIGSTY | 1.0 | RAG |
PostgreSQL | 高效的相似度搜索函数 | ||||
pg_summarize | pg_summarize |
PIGSTY | 0.0.1 | RAG |
PostgreSQL | 使用LLM对文本字段进行总结 | ||||
pg_tiktoken | pg_tiktoken |
PIGSTY | 0.0.1 | RAG |
Apache-2.0 | 在PostgreSQL中计算OpenAI使用的Token数 | ||||
pg4ml | pg4ml |
PIGSTY | 2.0 | RAG |
AGPLv3 | PG4ML是一个机器学习框架 | ||||
pgml | pgml |
PIGSTY | 2.10.0 | RAG |
MIT | PostgresML:用SQL运行机器学习算法并训练模型 | ||||
pg_search | pg_search |
PIGSTY | 0.15.8 | FTS |
AGPLv3 | ParadeDB BM25算法全文检索插件,ES全文检索 | ||||
pgroonga | pgroonga |
PIGSTY | 4.0.0 | FTS |
PostgreSQL | 使用Groonga,面向所有语言的高速全文检索平台 | ||||
pgroonga_database | pgroonga |
PIGSTY | 4.0.0 | FTS |
PostgreSQL | PGGroonga 数据库管理模块 | ||||
pg_bigm | pg_bigm |
PIGSTY | 1.2 | FTS |
PostgreSQL | 基于二字组的多语言全文检索扩展 | ||||
zhparser | zhparser |
PIGSTY | 2.3 | FTS |
PostgreSQL | 中文分词,全文搜索解析器 | ||||
pg_bestmatch | pg_bestmatch |
PIGSTY | 0.0.1 | FTS |
Apache-2.0 | 在数据库内生成BM25稀疏向量 | ||||
vchord_bm25 | vchord_bm25 |
PIGSTY | 0.1.1 | FTS |
AGPLv3 | BM25排序算法 | ||||
hunspell_cs_cz | hunspell_cs_cz |
PIGSTY | 1.0 | FTS |
PostgreSQL | Hunspell捷克语全文检索词典 | ||||
hunspell_de_de | hunspell_de_de |
PIGSTY | 1.0 | FTS |
PostgreSQL | Hunspell德语全文检索词典 | ||||
hunspell_en_us | hunspell_en_us |
PIGSTY | 1.0 | FTS |
PostgreSQL | Hunspell英语全文检索词典 | ||||
hunspell_fr | hunspell_fr |
PIGSTY | 1.0 | FTS |
PostgreSQL | Hunspell法语全文检索词典 | ||||
hunspell_ne_np | hunspell_ne_np |
PIGSTY | 1.0 | FTS |
PostgreSQL | Hunspell尼泊尔语全文检索词典 | ||||
hunspell_nl_nl | hunspell_nl_nl |
PIGSTY | 1.0 | FTS |
PostgreSQL | Hunspell荷兰语全文检索词典 | ||||
hunspell_nn_no | hunspell_nn_no |
PIGSTY | 1.0 | FTS |
PostgreSQL | Hunspell挪威语全文检索词典 | ||||
hunspell_pt_pt | hunspell_pt_pt |
PIGSTY | 1.0 | FTS |
PostgreSQL | Hunspell葡萄牙语全文检索词典 | ||||
hunspell_ru_ru | hunspell_ru_ru |
PIGSTY | 1.0 | FTS |
PostgreSQL | Hunspell俄语全文检索词典 | ||||
hunspell_ru_ru_aot | hunspell_ru_ru_aot |
PIGSTY | 1.0 | FTS |
PostgreSQL | Hunspell俄语全文检索词典(来自AOT.ru小组) | ||||
fuzzystrmatch | fuzzystrmatch |
CONTRIB | 1.2 | FTS |
PostgreSQL | 确定字符串之间的相似性和距离 | ||||
pg_trgm | pg_trgm |
CONTRIB | 1.6 | FTS |
PostgreSQL | 文本相似度测量函数与模糊检索 | ||||
citus | citus |
PIGSTY | 13.0.2 | OLAP |
AGPLv3 | Citus 分布式数据库 | ||||
citus_columnar | citus |
PIGSTY | 13.0.2 | OLAP |
AGPLv3 | Citus 列式存储引擎 | ||||
columnar | hydra |
PIGSTY | 1.1.2 | OLAP |
AGPLv3 | 开源列式存储扩展 | ||||
pg_analytics | pg_analytics |
PIGSTY | 0.3.7 | OLAP |
PostgreSQL | 由 DuckDB 驱动的数据分析引擎 | ||||
pg_duckdb | pg_duckdb |
PIGSTY | 0.3.1 | OLAP |
MIT | 在PostgreSQL中的嵌入式DuckDB扩展 | ||||
pg_mooncake | pg_mooncake |
PIGSTY | 0.1.2 | OLAP |
MIT | PostgreSQL列式存储表 | ||||
duckdb_fdw | duckdb_fdw |
PIGSTY | 1.1.2 | OLAP |
MIT | DuckDB 外部数据源包装器 | ||||
pg_parquet | pg_parquet |
PIGSTY | 0.3.1 | OLAP |
PostgreSQL | 在PostgreSQL与本地/S3中的Parquet文件复制数据 | ||||
pg_fkpart | pg_fkpart |
PIGSTY | 1.7.0 | OLAP |
GPLv2 | 按外键实用程序进行表分区的扩展 | ||||
pg_partman | pg_partman |
PGDG | 5.2.4 | OLAP |
PostgreSQL | 用于按时间或 ID 管理分区表的扩展 | ||||
plproxy | plproxy |
PGDG | 2.11.0 | OLAP |
BSD 0 | 作为过程语言实现的数据库分区 | ||||
pg_strom | pg_strom |
PGDG | 5.2.2 | OLAP |
PostgreSQL | 使用GPU与NVMe加速大数据处理 | ||||
tablefunc | tablefunc |
CONTRIB | 1.0 | OLAP |
PostgreSQL | 交叉表函数 | ||||
age | age |
PIGSTY | 1.5.0 | FEAT |
Apache-2.0 | Apache AGE,图数据库扩展 (Deb可用) | ||||
hll | hll |
PGDG | 2.18 | FEAT |
Apache-2.0 | hyperloglog 数据类型 | ||||
rum | rum |
PGDG | 1.3.14 | FEAT |
PostgreSQL | RUM 索引访问方法 | ||||
pg_graphql | pg_graphql |
PIGSTY | 1.5.11 | FEAT |
Apache-2.0 | PG内的 GraphQL 支持 (RUST, supabase) | ||||
pg_jsonschema | pg_jsonschema |
PIGSTY | 0.3.3 | FEAT |
Apache-2.0 | 提供JSON Schema校验能力 | ||||
jsquery | jsquery |
PGDG | 1.2 | FEAT |
PostgreSQL | 用于内省 JSONB 数据类型的查询类型 | ||||
pg_hint_plan | pg_hint_plan |
PGDG | 1.7.0 | FEAT |
BSD 3 | 添加强制指定执行计划的能力 | ||||
hypopg | hypopg |
PGDG | 1.4.1 | FEAT |
PostgreSQL | 假设索引,用于创建一个虚拟索引检验执行计划 | ||||
index_advisor | index_advisor |
PIGSTY | 0.2.0 | FEAT |
PostgreSQL | 查询索引建议器 | ||||
plan_filter | pg_plan_filter |
PIGSTY | 0.0.1 | FEAT |
PostgreSQL | 使用执行计划代价过滤阻止特定查询语句 | ||||
imgsmlr | imgsmlr |
PIGSTY | 1.0 | FEAT |
PostgreSQL | 使用Haar小波分析计算图片相似度 | ||||
pg_ivm | pg_ivm |
PIGSTY | 1.10 | FEAT |
PostgreSQL | 增量维护的物化视图 | ||||
pg_incremental | pg_incremental |
PIGSTY | 1.2.0 | FEAT |
PostgreSQL | 增量处理流式事件 | ||||
pgmq | pgmq |
PIGSTY | 1.5.0 | FEAT |
PostgreSQL | 基于Postgres实现类似AWS SQS/RSMQ的消息队列 | ||||
pgq | pgq |
PGDG | 3.5.1 | FEAT |
ISC | 通用队列的PG实现 | ||||
pg_cardano | pg_cardano |
PIGSTY | 1.0.3 | FEAT |
MIT | Cardano相关工具包:加密函数,地址编解码,区块链处理 | ||||
rdkit | rdkit |
PGDG | 202409.4 | FEAT |
BSD 3 | 在PostgreSQL化学领域数据管理功能 | ||||
omni | omnigres |
PIGSTY | 0.2.4 | FEAT |
Apache-2.0 | PostgreSQL即平台,Omnigres主扩展与加载器 | ||||
omni_auth | omnigres |
PIGSTY | 0.1.2 | FEAT |
Apache-2.0 | Omnigres 基础会话认证管理模块 | ||||
omni_aws | omnigres |
PIGSTY | 0.1.2 | FEAT |
Apache-2.0 | Omnigres AWS S3 API封装 | ||||
omni_containers | omnigres |
PIGSTY | 0.2.0 | FEAT |
Apache-2.0 | Omnigres Docker容器管理模块 | ||||
omni_credentials | omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | Omnigres 应用密钥管理模块 | ||||
omni_http | omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | Omnigres 基本HTTP类型 | ||||
omni_httpc | omnigres |
PIGSTY | 0.1.4 | FEAT |
Apache-2.0 | Omnigres HTTP客户端 | ||||
omni_httpd | omnigres |
PIGSTY | 0.2.9 | FEAT |
Apache-2.0 | Omnigres HTTP服务器 | ||||
omni_id | omnigres |
PIGSTY | 0.4.0 | FEAT |
Apache-2.0 | Omnigres ID身份数据类型 | ||||
omni_json | omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | Omnigres JSON工具箱 | ||||
omni_kube | omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | Omnigres Kubernetes集成模块 | ||||
omni_ledger | omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | Omnigres 金融账本模块 | ||||
omni_manifest | omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | Omnigres 包管理清单模块 | ||||
omni_mimetypes | omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | Omnigres MIME数据类型 | ||||
omni_os | omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | Omnigres 操作系统集成模块 | ||||
omni_polyfill | omnigres |
PIGSTY | 0.2.0 | FEAT |
Apache-2.0 | Omnigres Postgres多态API | ||||
omni_python | omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | Omnigres 第一类Python支持模块 | ||||
omni_regex | omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | Omnigres PCRE兼容正则表达式模块 | ||||
omni_rest | omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | Omnigres REST API 工具包 | ||||
omni_schema | omnigres |
PIGSTY | 0.2.3 | FEAT |
Apache-2.0 | Omnigres 高级模式管理组件 | ||||
omni_seq | omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | Omnigres 分布式整型序列号 | ||||
omni_service | omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | Omnigres 服务管理器 | ||||
omni_session | omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | Omnigres 会话管理器 | ||||
omni_sql | omnigres |
PIGSTY | 0.5.0 | FEAT |
Apache-2.0 | Omnigres SQL编程组件 | ||||
omni_test | omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | Omnigres 测试框架 | ||||
omni_txn | omnigres |
PIGSTY | 0.5.0 | FEAT |
Apache-2.0 | Omnigres 事务管理器模块 | ||||
omni_types | omnigres |
PIGSTY | 0.2.1 | FEAT |
Apache-2.0 | Omnigres 高级数据类型模块 | ||||
omni_var | omnigres |
PIGSTY | 0.3.0 | FEAT |
Apache-2.0 | Omnigres 局部变量模块 | ||||
omni_vfs | omnigres |
PIGSTY | 0.2.0 | FEAT |
Apache-2.0 | Omnigres 虚拟文件系统 | ||||
omni_vfs_types_v1 | omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | Omnigres 虚拟文件系统(v1) | ||||
omni_web | omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | Omnigres Web工具箱 | ||||
omni_xml | omnigres |
PIGSTY | 0.1.2 | FEAT |
Apache-2.0 | Omnigres XML工具包 | ||||
omni_yaml | omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | Omnigres YAML工具包 | ||||
bloom | bloom |
CONTRIB | 1.0 | FEAT |
PostgreSQL | bloom 索引-基于指纹的索引 | ||||
pg_tle | pg_tle |
PIGSTY | 1.5.0 | LANG |
Apache-2.0 | AWS 可信语言扩展 | ||||
plv8 | plv8 |
PIGSTY | 3.2.3 | LANG |
PostgreSQL | PL/JavaScript (v8) 可信过程程序语言 | ||||
pllua | pllua |
PGDG | 2.0.12 | LANG |
MIT | Lua 程序语言 | ||||
hstore_pllua | pllua |
PGDG | 2.0.12 | LANG |
MIT | Lua 程序语言的Hstore适配扩展 | ||||
plluau | pllua |
PGDG | 2.0.12 | LANG |
MIT | Lua 程序语言(不受信任的) | ||||
hstore_plluau | pllua |
PGDG | 2.0.12 | LANG |
MIT | Lua 程序语言的Hstore适配扩展(不受信任的) | ||||
plprql | plprql |
PIGSTY | 1.0.0 | LANG |
Apache-2.0 | 在PostgreSQL使用PRQL——管线式关系查询语言 | ||||
pldbgapi | pldebugger |
PGDG | 1.8 | LANG |
Artistic | 用于调试 PL/pgSQL 函数的服务器端支持 | ||||
plpgsql_check | plpgsql_check |
PGDG | 2.8.0 | LANG |
MIT | 对 plpgsql 函数进行扩展检查 | ||||
plprofiler | plprofiler |
PGDG | 4.2.5 | LANG |
Artistic | 剖析 PL/pgSQL 函数 | ||||
plsh | plsh |
PGDG | 1.20220917 | LANG |
MIT | PL/sh 程序语言 | ||||
pljava | pljava |
PGDG | 1.6.8 | LANG |
BSD 3 | Java 程序语言 | ||||
plr | plr |
PGDG | 8.4.7 | LANG |
GPLv2 | 从数据库中加载R语言解释器并执行R脚本 | ||||
pgtap | pgtap |
PGDG | 1.3.3 | LANG |
PostgreSQL | PostgreSQL单元测试框架 | ||||
faker | faker |
PGDG | 0.5.3 | LANG |
PostgreSQL | 插入生成的测试伪造数据,Python库的包装 | ||||
dbt2 | dbt2 |
PGDG | 0.45.0 | LANG |
Artistic | OSDL-DBT-2 测试组件 | ||||
pltcl | pltcl |
CONTRIB | 1.0 | LANG |
PostgreSQL | PL/TCL 存储过程语言 | ||||
pltclu | pltcl |
CONTRIB | 1.0 | LANG |
PostgreSQL | PL/TCL 存储过程语言(未受信/高权限) | ||||
plperl | plperl |
CONTRIB | 1.0 | LANG |
PostgreSQL | PL/Perl 存储过程语言 | ||||
bool_plperl | plperl |
CONTRIB | 1.0 | LANG |
PostgreSQL | 在 bool 和 plperl 之间转换 | ||||
hstore_plperl | plperl |
CONTRIB | 1.0 | LANG |
PostgreSQL | 在 hstore 和 plperl 之间转换适配类型 | ||||
jsonb_plperl | plperl |
CONTRIB | 1.0 | LANG |
PostgreSQL | 在 jsonb 和 plperl 之间转换 | ||||
plperlu | plperlu |
CONTRIB | 1.0 | LANG |
PostgreSQL | PL/PerlU 存储过程语言(未受信/高权限) | ||||
bool_plperlu | plperlu |
CONTRIB | 1.0 | LANG |
PostgreSQL | 在 bool 和 plperlu 之间转换 | ||||
jsonb_plperlu | plperlu |
CONTRIB | 1.0 | LANG |
PostgreSQL | 在 jsonb 和 plperlu 之间转换 | ||||
hstore_plperlu | plperlu |
CONTRIB | 1.0 | LANG |
PostgreSQL | 在 hstore 和 plperlu 之间转换适配类型 | ||||
plpgsql | plpgsql |
CONTRIB | 1.0 | LANG |
PostgreSQL | PL/pgSQL 程序设计语言 | ||||
plpython3u | plpython3u |
CONTRIB | 1.0 | LANG |
PostgreSQL | PL/Python3 存储过程语言(未受信/高权限) | ||||
jsonb_plpython3u | plpython3u |
CONTRIB | 1.0 | LANG |
PostgreSQL | 在 jsonb 和 plpython3u 之间转换 | ||||
ltree_plpython3u | plpython3u |
CONTRIB | 1.0 | LANG |
PostgreSQL | 在 ltree 和 plpython3u 之间转换 | ||||
hstore_plpython3u | plpython3u |
CONTRIB | 1.0 | LANG |
PostgreSQL | 在 hstore 和 plpython3u 之间转换 | ||||
prefix | pg_prefix |
PGDG | 1.2.10 | TYPE |
PostgreSQL | 前缀树数据类型 | ||||
semver | pg_semver |
PGDG | 0.40.0 | TYPE |
PostgreSQL | 语义版本号数据类型 | ||||
unit | pgunit |
PGDG | 7.10 | TYPE |
GPLv2 | SI 国标单位扩展 | ||||
pgpdf | pgpdf |
PIGSTY | 0.1.0 | TYPE |
GPLv3 | PDF数据类型,管理函数与全文检索 | ||||
pglite_fusion | pglite_fusion |
PIGSTY | 0.0.3 | TYPE |
MIT | 在PG表中嵌入SQLite数据库作为数据类型 | ||||
md5hash | md5hash |
PIGSTY | 1.0.1 | TYPE |
BSD 2 | 提供128位MD5的原生数据类型 | ||||
asn1oid | asn1oid |
PIGSTY | 1.6 | TYPE |
GPLv3 | ASN1OID数据类型支持 | ||||
roaringbitmap | roaringbitmap |
PIGSTY | 0.5.4 | TYPE |
Apache-2.0 | 支持RoaringBitmap数据类型 | ||||
pgfaceting | pgfaceting |
PIGSTY | 0.2.0 | TYPE |
BSD 3 | 使用倒排索引的高速切面查询 | ||||
pg_sphere | pgsphere |
PIGSTY | 1.5.1 | TYPE |
BSD 3 | 球面对象函数、运算符与索引支持 | ||||
country | pg_country |
PIGSTY | 0.0.3 | TYPE |
PostgreSQL | 国家代码数据类型,遵循ISO 3166-1标准 | ||||
pg_xenophile | pg_xenophile |
PIGSTY | 0.8.3 | TYPE |
PostgreSQL | PostgreSQL i8n与l10n工具包 | ||||
currency | pg_currency |
PIGSTY | 0.0.3 | TYPE |
MIT | 使用1字节表示的货币数据类型 | ||||
collection | pg_collection |
PIGSTY | 0.9.1 | TYPE |
Apache-2.0 | 在PlPGSQL中使用的内存优化高性能集合数据结构 | ||||
pgmp | pgmp |
PGDG | 1.0.5 | TYPE |
LGPLv3 | 多精度算术扩展 | ||||
numeral | numeral |
PIGSTY | 1.3 | TYPE |
GPLv2 | 数值类型扩展 | ||||
pg_rational | pg_rational |
PIGSTY | 0.0.2 | TYPE |
MIT | 使用BIGINT表示的有理数数据类型 | ||||
uint | pguint |
PIGSTY | 1.20231206 | TYPE |
PostgreSQL | 无符号整型数据类型 | ||||
uint128 | pg_uint128 |
PIGSTY | 1.0.0 | TYPE |
PostgreSQL | 原生128位无符号整型数据类型 | ||||
hashtypes | hashtypes |
PIGSTY | 0.1.5 | TYPE |
PostgreSQL | 包括SHA1,MD5在内的多种哈希数据类型 | ||||
ip4r | ip4r |
PGDG | 2.4.2 | TYPE |
PostgreSQL | PostgreSQL 的 IPv4/v6 和 IPv4/v6 范围索引类型 | ||||
pg_duration | pg_duration |
PIGSTY | 1.0.2 | TYPE |
MIT | 用于表示时间段的强化数据类型 | ||||
uri | pg_uri |
PIGSTY | 1.20151224 | TYPE |
PostgreSQL | URI数据类型 | ||||
emailaddr | pgemailaddr |
PIGSTY | 0 | TYPE |
PostgreSQL | Email地址数据类型 | ||||
acl | pg_acl |
PIGSTY | 1.0.4 | TYPE |
BSD 2 | ACL数据类型 | ||||
debversion | debversion |
PGDG | 1.2.0 | TYPE |
PostgreSQL | Debian版本号数据类型 | ||||
pg_rrule | pg_rrule |
PGDG | 0.2.0 | TYPE |
MIT | 日历重复规则RRULE数据类型 | ||||
timestamp9 | timestamp9 |
PIGSTY | 1.4.0 | TYPE |
MIT | 纳秒分辨率时间戳 | ||||
chkpass | chkpass |
PIGSTY | 1.0 | TYPE |
PostgreSQL | 数据类型:自动加密的密码 | ||||
isn | isn |
CONTRIB | 1.2 | TYPE |
PostgreSQL | 用于国际产品编号标准的数据类型 | ||||
seg | seg |
CONTRIB | 1.4 | TYPE |
PostgreSQL | 表示线段或浮点间隔的数据类型 | ||||
cube | cube |
CONTRIB | 1.5 | TYPE |
PostgreSQL | 用于存储多维立方体的数据类型 | ||||
ltree | ltree |
CONTRIB | 1.3 | TYPE |
PostgreSQL | 用于表示分层树状结构的数据类型 | ||||
hstore | hstore |
CONTRIB | 1.8 | TYPE |
PostgreSQL | 用于存储(键,值)对集合的数据类型 | ||||
citext | citext |
CONTRIB | 1.6 | TYPE |
PostgreSQL | 提供大小写不敏感的字符串类型 | ||||
xml2 | xml2 |
CONTRIB | 1.1 | TYPE |
PostgreSQL | XPath 查询和 XSLT | ||||
gzip | pg_gzip |
PIGSTY | 1.0.1 | UTIL |
MIT | 使用SQL执行Gzip压缩与解压缩 | ||||
bzip | pg_bzip |
PIGSTY | 1.0.0 | UTIL |
MIT | BZIP压缩解压缩函数包 | ||||
zstd | pg_zstd |
PIGSTY | 1.1.2 | UTIL |
ISC | ZSTD压缩解压缩函数包 | ||||
http | pg_http |
PGDG | 1.6.3 | UTIL |
MIT | HTTP客户端,允许在数据库内收发HTTP请求 (supabase) | ||||
pg_net | pg_net |
PIGSTY | 0.9.2 | UTIL |
Apache-2.0 | 用 SQL 进行异步非阻塞HTTP/HTTPS 请求的扩展 (supabase) | ||||
pg_curl | pg_curl |
PIGSTY | 2.4 | UTIL |
MIT | 封装CURL,执行各种用URL传输数据的操作 | ||||
pgjq | pgjq |
PIGSTY | 0.1.0 | UTIL |
MIT | 在Postgres中使用jq查询JSON | ||||
pgjwt | pgjwt |
PIGSTY | 0.2.0 | UTIL |
MIT | JSON Web Token API 的PG实现 (supabase) | ||||
pg_smtp_client | pg_smtp_client |
PIGSTY | 0.2.0 | UTIL |
MIT | 使用SMTP从PostgreSQL内发送邮件的客户端扩展 | ||||
pg_html5_email_address | pg_html5_email_address |
PIGSTY | 1.2.3 | UTIL |
PostgreSQL | 验证Email是否符合HTML5规范的扩展 | ||||
url_encode | url_encode |
PIGSTY | 1.2.5 | UTIL |
PostgreSQL | 提供URL编码解码函数 | ||||
pgsql_tweaks | pgsql_tweaks |
PIGSTY | 0.11.1 | UTIL |
PostgreSQL | 一些日常会用到的便利函数与视图 | ||||
pg_extra_time | pg_extra_time |
PIGSTY | 2.0.0 | UTIL |
PostgreSQL | 一些关于日期与时间的扩展函数 | ||||
pgpcre | pgpcre |
PIGSTY | 1 | UTIL |
PostgreSQL | PCRE/Perl风格的正则表达式支持 | ||||
icu_ext | icu_ext |
PIGSTY | 1.9.0 | UTIL |
PostgreSQL | 访问ICU库提供的函数 | ||||
pgqr | pgqr |
PIGSTY | 1.0 | UTIL |
BSD 3 | 从数据库中直接生成QR二维码 | ||||
pg_protobuf | pg_protobuf |
PIGSTY | 1.0 | UTIL |
MIT | 提供Protobuf函数支持 | ||||
envvar | envvar |
PIGSTY | 1.0.0 | UTIL |
PostgreSQL | 获取环境变量的函数 | ||||
floatfile | floatfile |
PIGSTY | 1.3.1 | UTIL |
MIT | 将浮点数组存储到文件中而不是堆表中 | ||||
pg_readme | pg_readme |
PIGSTY | 0.7.0 | UTIL |
PostgreSQL | 为模式与扩展生成Markdown文档 | ||||
ddl_historization | ddl_historization |
PIGSTY | 0.0.7 | UTIL |
GPLv2 | 用SQL将所有DDL变更写入到数据库表中 | ||||
data_historization | data_historization |
PIGSTY | 1.1.0 | UTIL |
PostgreSQL | 用SQL将数据变更历史保存到分区表中 | ||||
schedoc | pg_schedoc |
PIGSTY | 0.0.1 | UTIL |
GPLv3 | 在Django与DBT之间通过注释文档交换元数据 | ||||
hashlib | pg_hashlib |
PIGSTY | 1.1 | UTIL |
PostgreSQL | 稳定哈希函数包 | ||||
xxhash | pg_xxhash |
PIGSTY | 0.0.1 | UTIL |
BSD 2 | xxhash哈希函数包 | ||||
shacrypt | shacrypt |
PIGSTY | 1.1 | UTIL |
PostgreSQL | 实现SHA256-CRYPT与SHA512-CRYPT密钥加密算法 | ||||
cryptint | cryptint |
PIGSTY | 1.0.0 | UTIL |
PostgreSQL | 加密INT与BIGINT类型 | ||||
pguecc | pg_ecdsa |
PIGSTY | 1.0 | UTIL |
BSD 2 | PostgreSQL的uECC绑定,椭圆曲线加解密函数包 | ||||
pg_idkit | pg_idkit |
PIGSTY | 0.2.4 | FUNC |
Apache-2.0 | 生成各式各样的唯一标识符:UUIDv6, ULID, KSUID | ||||
pg_uuidv7 | pg_uuidv7 |
PIGSTY | 1.6.0 | FUNC |
MPLv2 | UUIDv7 支持 | ||||
permuteseq | permuteseq |
PIGSTY | 1.2.2 | FUNC |
PostgreSQL | 伪随机数ID置换生成器 | ||||
pg_hashids | pg_hashids |
PIGSTY | 1.3 | FUNC |
MIT | 加盐将整型ID转为短字符串ID | ||||
sequential_uuids | sequential_uuids |
PIGSTY | 1.0.3 | FUNC |
MIT | 生成连续生成的UUID | ||||
topn | topn |
PGDG | 2.7.0 | FUNC |
AGPLv3 | top-n JSONB 的类型 | ||||
quantile | quantile |
PIGSTY | 1.1.8 | FUNC |
BSD 2 | Quantile聚合函数 | ||||
lower_quantile | lower_quantile |
PIGSTY | 1.0.3 | FUNC |
BSD 2 | Lower Quantile 聚合函数 | ||||
count_distinct | count_distinct |
PIGSTY | 3.0.2 | FUNC |
BSD 2 | COUNT(DISTINCT …) 聚合的替代方案 | ||||
omnisketch | omnisketch |
PIGSTY | 1.0.2 | FUNC |
PostgreSQL | 实现OmniSketch数据结构,实现近似摘要聚合 | ||||
ddsketch | ddsketch |
PIGSTY | 1.0.1 | FUNC |
PostgreSQL | 实现DDSketch数据结构,实现在线的Quantile聚合 | ||||
vasco | vasco |
PIGSTY | 0.1.0 | FUNC |
GPLv3 | 使用MIC发现数据中隐含的关联 | ||||
xicor | pgxicor |
PIGSTY | 0.1.0 | FUNC |
GPLv3 | 在PG中计算XI相关系数 | ||||
tdigest | tdigest |
PGDG | 1.4.3 | FUNC |
Apache-2.0 | tdigest 聚合函数 | ||||
first_last_agg | first_last_agg |
PIGSTY | 0.1.4 | FUNC |
PostgreSQL | first() 与 last() 聚合函数 | ||||
extra_window_functions | extra_window_functions |
PGDG | 1.0 | FUNC |
PostgreSQL | 额外的窗口函数 | ||||
floatvec | floatvec |
PIGSTY | 1.1.1 | FUNC |
MIT | 数组类型数学运算扩展 | ||||
aggs_for_vecs | aggs_for_vecs |
PIGSTY | 1.3.2 | FUNC |
MIT | 针对数组类型的聚合函数集合扩展 | ||||
aggs_for_arrays | aggs_for_arrays |
PIGSTY | 1.3.3 | FUNC |
MIT | 计算数组聚合统计值的函数包 | ||||
arraymath | pg_arraymath |
PIGSTY | 1.1 | FUNC |
MIT | 数组逐元素数学运算符包 | ||||
pg_math | pg_math |
PIGSTY | 1.0 | FUNC |
GPLv3 | 使用GSL库的数学统计函数 | ||||
random | pg_random |
PIGSTY | 2.0.0 | FUNC |
PostgreSQL | 随机数生成器 | ||||
base36 | pg_base36 |
PIGSTY | 1.0.0 | FUNC |
MIT | Base36编码解码扩展 | ||||
base62 | pg_base62 |
PIGSTY | 0.0.1 | FUNC |
MIT | Base62编码解码扩展 | ||||
pg_base58 | pg_base58 |
PIGSTY | 0.0.1 | FUNC |
MIT | Base58 编码/解码函数 | ||||
financial | pg_financial |
PIGSTY | 1.0.1 | FUNC |
PostgreSQL | 金融领域聚合函数 | ||||
refint | refint |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 实现引用完整性的函数 | ||||
autoinc | autoinc |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 用于自动递增字段的函数 | ||||
insert_username | insert_username |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 用于跟踪谁更改了表的函数 | ||||
moddatetime | moddatetime |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 跟踪最后修改时间 | ||||
tsm_system_time | tsm_system_time |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 接受毫秒数限制的 TABLESAMPLE 方法 | ||||
dict_xsyn | dict_xsyn |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 用于扩展同义词处理的文本搜索字典模板 | ||||
tsm_system_rows | tsm_system_rows |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 接受行数限制的 TABLESAMPLE 方法 | ||||
tcn | tcn |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 用触发器通知变更 | ||||
uuid-ossp | uuid-ossp |
CONTRIB | 1.1 | FUNC |
PostgreSQL | 生成通用唯一标识符(UUIDs) | ||||
btree_gist | btree_gist |
CONTRIB | 1.7 | FUNC |
PostgreSQL | 用GiST索引常见数据类型 | ||||
btree_gin | btree_gin |
CONTRIB | 1.3 | FUNC |
PostgreSQL | 用GIN索引常见数据类型 | ||||
intarray | intarray |
CONTRIB | 1.5 | FUNC |
PostgreSQL | 1维整数数组的额外函数、运算符和索引支持 | ||||
intagg | intagg |
CONTRIB | 1.1 | FUNC |
PostgreSQL | 整数聚合器和枚举器(过时) | ||||
dict_int | dict_int |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 用于整数的文本搜索字典模板 | ||||
unaccent | unaccent |
CONTRIB | 1.1 | FUNC |
PostgreSQL | 删除重音的文本搜索字典 | ||||
pg_repack | pg_repack |
PGDG | 1.5.2 | ADMIN |
BSD 3 | 在线垃圾清理与表膨胀治理 | ||||
pg_squeeze | pg_squeeze |
PGDG | 1.8.0 | ADMIN |
BSD 2 | 从关系中删除未使用空间 | ||||
pg_dirtyread | pg_dirtyread |
PIGSTY | 2.7 | ADMIN |
BSD 3 | 从表中读取尚未垃圾回收的行 | ||||
pgfincore | pgfincore |
PGDG | 1.3.1 | ADMIN |
BSD 3 | 检查和管理操作系统缓冲区缓存 | ||||
pg_cooldown | pg_cooldown |
PIGSTY | 0.1 | ADMIN |
Apache-2.0 | 从缓冲区中移除特定关系的页面 | ||||
ddlx | pg_ddlx |
PIGSTY | 0.29 | ADMIN |
PostgreSQL | 提取数据库对象的DDL | ||||
prioritize | pg_prioritize |
PGDG | 1.0.4 | ADMIN |
PostgreSQL | 获取和设置 PostgreSQL 后端的优先级 | ||||
pg_checksums | pg_checksums |
PGDG | 1.2 | ADMIN |
BSD 2 | 在离线模式下激活/启用/禁用数据库集群的校验和功能 | ||||
pg_readonly | pg_readonly |
PGDG | 1.0.3 | ADMIN |
PostgreSQL | 将集群设置为只读 | ||||
pg_upless | pg_upless |
PIGSTY | 0.0.3 | ADMIN |
PostgreSQL | 检测表上的无用UPDATE | ||||
pg_permissions | pg_permissions |
PIGSTY | 1.3 | ADMIN |
BSD 2 | 查看对象权限并将其与期望状态进行比较 | ||||
pgautofailover | pgautofailover |
PGDG | 2.1 | ADMIN |
PostgreSQL | PG 自动故障迁移 | ||||
pg_catcheck | pg_catcheck |
PGDG | 1.6.0 | ADMIN |
BSD 3 | 用于诊断系统目录是否损坏的工具 | ||||
pre_prepare | preprepare |
PIGSTY | 0.9 | ADMIN |
PostgreSQL | 在服务端预先准备好PreparedStatement备用 | ||||
pgcozy | pgcozy |
PIGSTY | 1.0 | ADMIN |
PostgreSQL | 根据先前的pg_buffercache快照预热内存缓冲区 | ||||
pg_orphaned | pg_orphaned |
PIGSTY | 1.0 | ADMIN |
PostgreSQL | 处理孤儿文件的扩展插件 | ||||
pg_crash | pg_crash |
PIGSTY | 1.0 | ADMIN |
BSD 3 | 向数据库进程随机发送信号模拟故障 | ||||
pg_cheat_funcs | pg_cheat_funcs |
PIGSTY | 1.0 | ADMIN |
PostgreSQL | 一些超级实用的作弊函数 | ||||
fio | pg_fio |
PIGSTY | 1.0 | ADMIN |
BSD 3 | PostgreSQL文件IO函数包 | ||||
pg_savior | pg_savior |
PIGSTY | 0.0.1 | ADMIN |
Apache-2.0 | 阻止不带条件的全表更新以避免意外事故 | ||||
safeupdate | safeupdate |
PGDG | 1.5 | ADMIN |
ISC | 强制在 UPDATE 和 DELETE 时提供 Where 条件 | ||||
pg_drop_events | pg_drop_events |
PGDG | 0.1.0 | ADMIN |
PostgreSQL | 记录删表删列删视图的事务号,辅助PITR确定时间点 | ||||
table_log | table_log |
PIGSTY | 0.6.4 | ADMIN |
PostgreSQL | 记录某张表的修改日志并做表/行级时间点恢复 | ||||
pgagent | pgagent |
PGDG | 4.2.3 | ADMIN |
PostgreSQL | PostgreSQL任务调度工具,与PGADMIN配合使用 | ||||
pg_prewarm | pg_prewarm |
CONTRIB | 1.2 | ADMIN |
PostgreSQL | 预热关系数据 | ||||
pgpool_adm | pgpool |
PGDG | 4.6.0 | ADMIN |
PostgreSQL | PGPool 管理函数 | ||||
pgpool_recovery | pgpool |
PGDG | 4.6.0 | ADMIN |
PostgreSQL | PGPool辅助扩展,从v4.3提供的恢复函数 | ||||
pgpool_regclass | pgpool |
PGDG | 4.6.0 | ADMIN |
PostgreSQL | PGPool辅助扩展,RegClass替代 | ||||
lo | lo |
CONTRIB | 1.1 | ADMIN |
PostgreSQL | 大对象维护 | ||||
basic_archive | basic_archive |
CONTRIB | - | ADMIN |
PostgreSQL | 归档模块样例 | ||||
basebackup_to_shell | basebackup_to_shell |
CONTRIB | - | ADMIN |
PostgreSQL | 添加一种备份到Shell终端到基础备份方式 | ||||
old_snapshot | old_snapshot |
CONTRIB | 1.0 | ADMIN |
PostgreSQL | 支持 old_snapshot_threshold 的实用程序 | ||||
adminpack | adminpack |
CONTRIB | 2.1 | ADMIN |
PostgreSQL | PostgreSQL 管理函数集合 | ||||
amcheck | amcheck |
CONTRIB | 1.4 | ADMIN |
PostgreSQL | 校验关系完整性 | ||||
pg_surgery | pg_surgery |
CONTRIB | 1.0 | ADMIN |
PostgreSQL | 对损坏的关系进行手术 | ||||
pg_profile | pg_profile |
PIGSTY | 4.8 | STAT |
BSD 2 | PostgreSQL 数据库负载记录与AWR报表工具 | ||||
pg_tracing | pg_tracing |
PIGSTY | 0.1.2 | STAT |
MIT | PostgreSQL分布式Tracing | ||||
pg_show_plans | pg_show_plans |
PGDG | 2.1.2 | STAT |
PostgreSQL | 打印所有当前正在运行查询的执行计划 | ||||
pg_stat_kcache | pg_stat_kcache |
PGDG | 2.3.0 | STAT |
BSD 3 | 内核统计信息收集 | ||||
pg_stat_monitor | pg_stat_monitor |
PIGSTY | 2.1.1 | STAT |
BSD 3 | 提供查询聚合统计、客户端信息、执行计划详细信息和直方图 | ||||
pg_qualstats | pg_qualstats |
PGDG | 2.1.1 | STAT |
BSD 3 | 收集有关 quals 的统计信息的扩展 | ||||
pg_store_plans | pg_store_plans |
PIGSTY | 1.8 | STAT |
BSD 3 | 跟踪所有执行的 SQL 语句的计划统计信息 | ||||
pg_track_settings | pg_track_settings |
PGDG | 2.1.2 | STAT |
PostgreSQL | 跟踪设置更改 | ||||
pg_wait_sampling | pg_wait_sampling |
PGDG | 1.1.8 | STAT |
PostgreSQL | 基于采样的等待事件统计 | ||||
system_stats | system_stats |
PIGSTY | 3.2 | STAT |
PostgreSQL | PostgreSQL 的系统统计函数 | ||||
meta | pg_meta |
PIGSTY | 0.4.0 | STAT |
BSD 2 | 标准化,更友好的PostgreSQL系统目录视图 | ||||
pgnodemx | pgnodemx |
PIGSTY | 1.7 | STAT |
Apache-2.0 | 使用SQL查询获取操作系统指标 | ||||
pg_proctab | pgnodemx |
PIGSTY | 1.7 | STAT |
BSD 3 | 通过SQL接口访问操作系统进程表 | ||||
pg_sqlog | pg_sqlog |
PIGSTY | 1.6 | STAT |
BSD 3 | 提供访问PostgreSQL日志的SQL接口 | ||||
bgw_replstatus | bgw_replstatus |
PGDG | 1.0.7 | STAT |
PostgreSQL | 用于汇报本机主从状态的后台工作进程 | ||||
pgmeminfo | pgmeminfo |
PIGSTY | 1.0.0 | STAT |
MIT | 显示内存使用情况 | ||||
toastinfo | toastinfo |
PIGSTY | 1.5 | STAT |
PostgreSQL | 显示TOAST字段的详细信息 | ||||
explain_ui | pg_explain_ui |
PIGSTY | 0.0.1 | STAT |
PostgreSQL | 快速跳转至PEV查阅可视化执行计划 | ||||
pg_relusage | pg_relusage |
PIGSTY | 0.0.1 | STAT |
PostgreSQL | 打印查询引用的表与列 | ||||
pagevis | pagevis |
PIGSTY | 0.1 | STAT |
MIT | 使用ASCII字符可视化数据库物理页面布局 | ||||
powa | powa |
PGDG | 5.0.1 | STAT |
PostgreSQL | PostgreSQL 工作负载分析器-核心 | ||||
pageinspect | pageinspect |
CONTRIB | 1.12 | STAT |
PostgreSQL | 检查数据库页面二进制内容 | ||||
pgrowlocks | pgrowlocks |
CONTRIB | 1.2 | STAT |
PostgreSQL | 显示行级锁信息 | ||||
sslinfo | sslinfo |
CONTRIB | 1.2 | STAT |
PostgreSQL | 关于 SSL 证书的信息 | ||||
pg_buffercache | pg_buffercache |
CONTRIB | 1.5 | STAT |
PostgreSQL | 检查共享缓冲区缓存 | ||||
pg_walinspect | pg_walinspect |
CONTRIB | 1.1 | STAT |
PostgreSQL | 用于检查 PostgreSQL WAL 日志内容的函数 | ||||
pg_freespacemap | pg_freespacemap |
CONTRIB | 1.2 | STAT |
PostgreSQL | 检查自由空间映射的内容(FSM) | ||||
pg_visibility | pg_visibility |
CONTRIB | 1.2 | STAT |
PostgreSQL | 检查可见性图(VM)和页面级可见性信息 | ||||
pgstattuple | pgstattuple |
CONTRIB | 1.5 | STAT |
PostgreSQL | 显示元组级统计信息 | ||||
auto_explain | auto_explain |
CONTRIB | - | STAT |
PostgreSQL | 提供一种自动记录执行计划的手段 | ||||
pg_stat_statements | pg_stat_statements |
CONTRIB | 1.11 | STAT |
PostgreSQL | 跟踪所有执行的 SQL 语句的计划和执行统计信息 | ||||
passwordcheck_cracklib | passwordcheck |
PIGSTY | 3.1.0 | SEC |
LGPLv2 | 使用cracklib加固PG用户密码 | ||||
supautils | supautils |
PIGSTY | 2.6.0 | SEC |
Apache-2.0 | 用于在云环境中确保数据库集群的安全 | ||||
pgsodium | pgsodium |
PIGSTY | 3.1.9 | SEC |
BSD 3 | 表数据加密存储 TDE | ||||
supabase_vault | pg_vault |
PIGSTY | 0.3.1 | SEC |
Apache-2.0 | 在 Vault 中存储加密凭证的扩展 (supabase) | ||||
pg_session_jwt | pg_session_jwt |
PIGSTY | 0.2.0 | SEC |
Apache-2.0 | 使用JWT进行会话认证 | ||||
anon | pg_anon |
PIGSTY | 2.0.0 | SEC |
PostgreSQL | 数据匿名化处理工具 | ||||
pg_tde | pg_tde |
PIGSTY | 1.0 | SEC |
MIT | 试点性质的加密存储引擎 | ||||
pgsmcrypto | pgsmcrypto |
PIGSTY | 0.1.0 | SEC |
MIT | 为PostgreSQL提供商密算法支持:SM2,SM3,SM4 | ||||
pgaudit | pgaudit |
PGDG | 17.1 | SEC |
PostgreSQL | 提供审计功能 | ||||
pgauditlogtofile | pgauditlogtofile |
PGDG | 1.6.4 | SEC |
PostgreSQL | pgAudit 子扩展,将审计日志写入单独的文件中 | ||||
pg_auth_mon | pg_auth_mon |
PIGSTY | 3.0 | SEC |
MIT | 监控每个用户的连接尝试 | ||||
credcheck | credcheck |
PGDG | 3.0 | SEC |
MIT | 明文凭证检查器 | ||||
pgcryptokey | pgcryptokey |
PIGSTY | 0.85 | SEC |
PostgreSQL | PG密钥管理 | ||||
pg_jobmon | pg_jobmon |
PIGSTY | 1.4.1 | SEC |
PostgreSQL | 记录和监控函数 | ||||
logerrors | logerrors |
PIGSTY | 2.1.3 | SEC |
BSD 3 | 用于收集日志文件中消息统计信息的函数 | ||||
login_hook | login_hook |
PIGSTY | 1.6 | SEC |
GPLv3 | 在用户登陆时执行login_hook.login()函数 | ||||
set_user | set_user |
PGDG | 4.1.0 | SEC |
PostgreSQL | 增加了日志记录的 SET ROLE | ||||
pg_snakeoil | pg_snakeoil |
PIGSTY | 1.4 | SEC |
PostgreSQL | PostgreSQL动态链接库反病毒功能 | ||||
pgextwlist | pgextwlist |
PIGSTY | 1.17 | SEC |
PostgreSQL | PostgreSQL扩展白名单功能 | ||||
pg_auditor | pg_auditor |
PIGSTY | 0.2 | SEC |
BSD 3 | 审计数据变更并提供闪回能力 | ||||
sslutils | sslutils |
PIGSTY | 1.4 | SEC |
PostgreSQL | 使用SQL管理SSL证书 | ||||
noset | pg_noset |
PIGSTY | 0.3.0 | SEC |
AGPLv3 | 阻止非超级用户使用SET/RESET设置变量 | ||||
sepgsql | sepgsql |
CONTRIB | - | SEC |
PostgreSQL | 基于SELinux标签的强制访问控制 | ||||
auth_delay | auth_delay |
CONTRIB | - | SEC |
PostgreSQL | 在返回认证失败前暂停一会,避免爆破 | ||||
pgcrypto | pgcrypto |
CONTRIB | 1.3 | SEC |
PostgreSQL | 实用加解密函数 | ||||
passwordcheck | passwordcheck |
CONTRIB | - | SEC |
PostgreSQL | 用于强制拒绝修改弱密码的扩展 | ||||
wrappers | wrappers |
PIGSTY | 0.4.5 | FDW |
Apache-2.0 | Supabase提供的外部数据源包装器捆绑包 | ||||
multicorn | multicorn |
PGDG | 3.0 | FDW |
PostgreSQL | 用Python编写自定义的外部数据源包装器 | ||||
odbc_fdw | odbc_fdw |
PGDG | 0.5.1 | FDW |
PostgreSQL | 访问ODBC可访问的任何外部数据源 | ||||
jdbc_fdw | jdbc_fdw |
PGDG | 1.2 | FDW |
PostgreSQL | 访问JDBC可访问的任何外部数据源 | ||||
pgspider_ext | pgspider_ext |
PGDG | 1.3.0 | FDW |
PostgreSQL | 使用多种FDW访问远程数据库服务器 | ||||
mysql_fdw | mysql_fdw |
PGDG | 2.9.2 | FDW |
BSD 3 | MySQL外部数据包装器 | ||||
oracle_fdw | oracle_fdw |
PGDG | 2.7.0 | FDW |
PostgreSQL | 提供对Oracle的外部数据源包装器 | ||||
tds_fdw | tds_fdw |
PGDG | 2.0.4 | FDW |
PostgreSQL | TDS 数据库(Sybase/SQL Server)外部数据包装器 | ||||
db2_fdw | db2_fdw |
PGDG | 6.0.1 | FDW |
PostgreSQL | 提供对DB2的外部数据源包装器 | ||||
sqlite_fdw | sqlite_fdw |
PGDG | 2.5.0 | FDW |
PostgreSQL | SQLite 外部数据包装器 | ||||
pgbouncer_fdw | pgbouncer_fdw |
PGDG | 1.3.0 | FDW |
PostgreSQL | 用SQL查询pgbouncer统计信息,并执行pgbouncer命令 | ||||
mongo_fdw | mongo_fdw |
PGDG | 1.1 | FDW |
LGPLv3 | MongoDB 外部数据包装器 | ||||
redis_fdw | redis_fdw |
PIGSTY | 1.0 | FDW |
PostgreSQL | 查询外部Redis数据源 | ||||
redis | pg_redis_pubsub |
PIGSTY | 0.0.1 | FDW |
MIT | 从PG向Redis发送Pub/Sub消息 | ||||
kafka_fdw | kafka_fdw |
PIGSTY | 0.0.3 | FDW |
PostgreSQL | Kafka外部数据源包装器 | ||||
hdfs_fdw | hdfs_fdw |
PGDG | 2.3.2 | FDW |
BSD 3 | hdfs 外部数据包装器 | ||||
firebird_fdw | firebird_fdw |
PIGSTY | 1.4.0 | FDW |
PostgreSQL | Firebird外部数据源包装器 | ||||
aws_s3 | aws_s3 |
PIGSTY | 0.0.1 | FDW |
Apache-2.0 | 从S3导入导出数据的外部数据源包装器 | ||||
log_fdw | log_fdw |
PIGSTY | 1.4 | FDW |
Apache-2.0 | 访问PostgreSQL日志文件的FDW | ||||
sparql | pgsparql |
PIGSTY | 1.0 | UTIL |
Apache-2.0 | 使用SQL查询SPARQL数据源 | ||||
dblink | dblink |
CONTRIB | 1.2 | FDW |
PostgreSQL | 从数据库内连接到其他 PostgreSQL 数据库 | ||||
file_fdw | file_fdw |
CONTRIB | 1.0 | FDW |
PostgreSQL | 访问外部文件的外部数据包装器 | ||||
postgres_fdw | postgres_fdw |
CONTRIB | 1.1 | FDW |
PostgreSQL | 用于远程 PostgreSQL 服务器的外部数据包装器 | ||||
documentdb | documentdb |
PIGSTY | 0.102 | SIM |
MIT | 微软DocumentDB的API层 | ||||
documentdb_core | documentdb |
PIGSTY | 0.102 | SIM |
MIT | 微软DocumentDB的核心API层实现 | ||||
documentdb_distributed | documentdb |
PIGSTY | 0.102 | SIM |
MIT | DocumentDB多节点模式的API层 | ||||
orafce | orafce |
PGDG | 4.14.2 | SIM |
BSD 0 | 模拟 Oracle RDBMS 的一部分函数和包的函数和运算符 | ||||
pgtt | pgtt |
PGDG | 4.0 | SIM |
ISC | 类似Oracle的全局临时表功能 | ||||
session_variable | session_variable |
PIGSTY | 3.4 | SIM |
GPLv3 | Oracle兼容的会话变量/常量操作函数 | ||||
pg_statement_rollback | pg_statement_rollback |
PIGSTY | 1.4 | SIM |
ISC | 在服务端提供类似Oracle/DB2的语句级回滚能力 | ||||
pg_dbms_metadata | pg_dbms_metadata |
PGDG | 1.0.0 | SIM |
PostgreSQL | 添加 Oracle DBMS_METADATA 兼容性支持的扩展 | ||||
pg_dbms_lock | pg_dbms_lock |
PGDG | 1.0 | SIM |
PostgreSQL | 为PG添加对 Oracle DBMS_LOCK 的完整兼容性支持 | ||||
pg_dbms_job | pg_dbms_job |
PGDG | 1.5 | SIM |
PostgreSQL | 添加 Oracle DBMS_JOB 兼容性支持的扩展 | ||||
babelfishpg_common | babelfishpg_common |
WILTON | 3.3.3 | SIM |
Apache-2.0 | SQL Server 数据类型兼容扩展 | ||||
babelfishpg_tsql | babelfishpg_tsql |
WILTON | 3.3.1 | SIM |
Apache-2.0 | SQL Server SQL语法兼容性扩展 | ||||
babelfishpg_tds | babelfishpg_tds |
WILTON | 1.0.0 | SIM |
Apache-2.0 | SQL Server TDS线缆协议兼容扩展 | ||||
babelfishpg_money | babelfishpg_money |
WILTON | 1.1.0 | SIM |
Apache-2.0 | SQL Server 货币数据类型兼容扩展 | ||||
pgmemcache | pgmemcache |
PGDG | 2.3.0 | SIM |
MIT | 为PG提供memcached兼容接口 | ||||
pglogical | pglogical |
PGDG | 2.4.5 | ETL |
PostgreSQL | PostgreSQL逻辑复制:三方扩展实现 | ||||
pglogical_origin | pglogical |
PGDG | 2.4.5 | ETL |
PostgreSQL | 用于从 Postgres 9.4 升级时的兼容性虚拟扩展 | ||||
pglogical_ticker | pglogical_ticker |
PGDG | 1.4.1 | ETL |
PostgreSQL | pglogical复制延迟以秒计的精确视图 | ||||
pgl_ddl_deploy | pgl_ddl_deploy |
PGDG | 2.2.1 | ETL |
MIT | 使用 pglogical 执行自动 DDL 部署 | ||||
pg_failover_slots | pg_failover_slots |
PIGSTY | 1.1.0 | ETL |
PostgreSQL | 在Failover过程中保留复制槽 | ||||
db_migrator | db_migrator |
PIGSTY | 1.0.0 | ETL |
BSD 3 | 使用FDW从其他DBMS迁移到PostgreSQL | ||||
wal2json | wal2json |
PGDG | 2.6 | ETL |
BSD 3 | 用逻辑解码捕获 JSON 格式的 CDC 变更 | ||||
wal2mongo | wal2mongo |
PIGSTY | 1.0.7 | ETL |
Apache-2.0 | 使用逻辑解码捕获MongoDB JSON格式的CDC变更 | ||||
decoderbufs | decoderbufs |
PGDG | 3.0.7 | ETL |
MIT | 将WAL逻辑解码为ProtocolBuffer协议的消息 | ||||
decoder_raw | decoder_raw |
PIGSTY | 1.0 | ETL |
PostgreSQL | 逻辑复制解码输出插件:RAW SQL格式 | ||||
pgoutput | pgoutput |
CONTRIB | - | ETL |
PostgreSQL | PG内置的逻辑解码输出插件 | ||||
test_decoding | test_decoding |
CONTRIB | - | ETL |
PostgreSQL | 基于SQL的WAL逻辑解码样例 | ||||
mimeo | mimeo |
PIGSTY | 1.5.1 | ETL |
PostgreSQL | 在PostgreSQL实例间进行表级复制 | ||||
repmgr | repmgr |
PGDG | 5.5.0 | ETL |
GPLv3 | PostgreSQL复制管理组件 | ||||
pg_fact_loader | pg_fact_loader |
PGDG | 2.0.1 | ETL |
MIT | 在 Postgres 中构建事实表 | ||||
pg_bulkload | pg_bulkload |
PIGSTY | 3.1.22 | ETL |
BSD 3 | 向 PostgreSQL 中高速加载数据 |
Pigsty 在 EL 系统中总共有 398 个可用 RPM 扩展,其中有 13 个RPM独占扩展,缺少 7 个DEB独占扩展。 在EL可用扩展中,PG 自带了 69 个 Contrib扩展,PGDG YUM 仓库提供了 116 个,Pigsty 提供了 209 个。 当前首要大版本 PostgreSQL 17 支持了 381 个扩展,而 PostgreSQL 16 支持了其中的 393 个。
扩展名(详情) | 标准名(官网) | 包名 | 仓库 | 版本 | 类目 | 许可证 | PG大版本支持 | LOAD |
DDL |
DBSU |
RELOC |
简介 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
timescaledb | timescaledb |
timescaledb-tsl_$v* |
PIGSTY | 2.19.0 | TIME |
Timescale | 17 ,16 ,15 ,14 |
时序数据库扩展插件 | |||||
timescaledb_toolkit | timescaledb_toolkit |
timescaledb-toolkit_$v |
PIGSTY | 1.19.0 | TIME |
Timescale | 17 ,16 ,15 ,14 |
超表分析查询,时间序列流式处理,以及其他SQL工具 | |||||
timeseries | pg_timeseries |
pg_timeseries_$v |
PIGSTY | 0.1.6 | TIME |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Tembo时序数据API封装 | |||||
periods | periods |
periods_$v* |
PGDG | 1.2.3 | TIME |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
为 PERIODs 和 SYSTEM VERSIONING 提供标准 SQL 功能 | |||||
temporal_tables | temporal_tables |
temporal_tables_$v* |
PIGSTY | 1.2.2 | TIME |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
时态表功能支持 | |||||
emaj | emaj |
e-maj_$v |
PGDG | 4.6.0 | TIME |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
让数据库的子集具有细粒度日志和时间旅行功能 | |||||
table_version | table_version |
table_version_$v |
PIGSTY | 1.11.1 | TIME |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
PostgreSQL 版本控制表扩展 | |||||
pg_cron | pg_cron |
pg_cron_$v* |
PGDG | 1.6.5 | TIME |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
定时任务调度器 | |||||
pg_task | pg_task |
pg_task_$v* |
PGDG | 2.1.7 | TIME |
MIT | 17 ,16 ,15 ,14 ,13 |
在特定时间点在后台执行SQL命令 | |||||
pg_later | pg_later |
pg_later_$v |
PIGSTY | 0.3.0 | TIME |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
执行查询,并在稍后异步获取查询结果 | |||||
pg_background | pg_background |
pg_background_$v* |
PGDG | 1.3 | TIME |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
在后台运行 SQL 查询 | |||||
postgis | postgis |
postgis35_$v* |
PGDG | 3.5.2 | GIS |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
PostGIS 几何和地理空间扩展 | |||||
postgis_topology | postgis |
postgis35_$v* |
PGDG | 3.5.2 | GIS |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
PostGIS 拓扑空间类型和函数 | |||||
postgis_raster | postgis |
postgis35_$v* |
PGDG | 3.5.2 | GIS |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
PostGIS 光栅类型和函数 | |||||
postgis_sfcgal | postgis |
postgis35_$v* |
PGDG | 3.5.2 | GIS |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
PostGIS SFCGAL 函数 | |||||
postgis_tiger_geocoder | postgis |
postgis35_$v* |
PGDG | 3.5.2 | GIS |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
PostGIS tiger 地理编码器和反向地理编码器 | |||||
address_standardizer | postgis |
postgis35_$v* |
PGDG | 3.5.2 | GIS |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
地址标准化函数。 | |||||
address_standardizer_data_us | postgis |
postgis35_$v* |
PGDG | 3.5.2 | GIS |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
地址标准化函数:美国数据集示例 | |||||
pgrouting | pgrouting |
pgrouting_$v* |
PGDG | 3.7.3 | GIS |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
提供寻路能力 | |||||
pointcloud | pointcloud |
pointcloud_$v* |
PIGSTY | 1.2.5 | GIS |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
提供激光雷达点云数据类型支持 | |||||
pointcloud_postgis | pointcloud |
pointcloud_$v* |
PGDG | 1.2.5 | GIS |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
将激光雷达点云与PostGIS几何类型相集成 | |||||
h3 | pg_h3 |
h3-pg_$v* |
PGDG | 4.2.2 | GIS |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
H3六边形层级索引支持 | |||||
h3_postgis | pg_h3 |
h3-pg_$v* |
PGDG | 4.2.2 | GIS |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
H3与PostGIS集成的扩展插件 | |||||
q3c | q3c |
q3c_$v* |
PIGSTY | 2.0.1 | GIS |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
Q3C天空索引插件 | |||||
ogr_fdw | ogr_fdw |
ogr_fdw_$v* |
PGDG | 1.1.6 | GIS |
MIT | 17 ,16 ,15 ,14 ,13 |
GIS 数据外部数据源包装器 | |||||
geoip | geoip |
geoip_$v |
PIGSTY | 0.3.0 | GIS |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
IP 地理位置扩展(围绕 MaxMind GeoLite 数据集的包装器) | |||||
pg_polyline | pg_polyline |
pg_polyline_$v |
PIGSTY | 0.0.1 | GIS |
MIT | 17 ,16 ,15 ,14 ,13 |
Google快速Polyline编码解码扩展 | |||||
pg_geohash | pg_geohash |
pg_geohash_$v* |
PIGSTY | 1.0 | GIS |
MIT | 17 ,16 ,15 ,14 ,13 |
使用GeoHash处理空间坐标的函数包 | |||||
earthdistance | earthdistance |
postgresql$v-contrib |
CONTRIB | 1.2 | GIS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
计算地球表面上的大圆距离 | |||||
vector | pgvector |
pgvector_$v* |
PGDG | 0.8.0 | RAG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
向量数据类型和 ivfflat / hnsw 访问方法 | |||||
vchord | vchord |
vchord_$v |
PIGSTY | 0.2.2 | RAG |
AGPLv3 | 17 ,16 ,15 ,14 |
使用Rust重写的高性能向量扩展 | |||||
vectorscale | pgvectorscale |
pgvectorscale_$v |
PIGSTY | 0.6.0 | RAG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
使用DiskANN算法对向量进行高效索引 | |||||
vectorize | pg_vectorize |
pg_vectorize_$v |
PIGSTY | 0.21.1 | RAG |
PostgreSQL | 17 ,16 ,15 ,14 |
在PostgreSQL中封装RAG向量检索服务 | |||||
pg_similarity | pg_similarity |
pg_similarity_$v* |
PIGSTY | 1.0 | RAG |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
提供17种距离度量函数 | |||||
smlar | smlar |
smlar_$v* |
PIGSTY | 1.0 | RAG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
高效的相似度搜索函数 | |||||
pg_summarize | pg_summarize |
pg_summarize_$v |
PIGSTY | 0.0.1 | RAG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
使用LLM对文本字段进行总结 | |||||
pg_tiktoken | pg_tiktoken |
pg_tiktoken_$v |
PIGSTY | 0.0.1 | RAG |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
在PostgreSQL中计算OpenAI使用的Token数 | |||||
pg4ml | pg4ml |
pg4ml_$v |
PIGSTY | 2.0 | RAG |
AGPLv3 | 17 ,16 ,15 ,14 ,13 |
PG4ML是一个机器学习框架 | |||||
pg_search | pg_search |
pg_search_$v |
PIGSTY | 0.15.8 | FTS |
AGPLv3 | 17 ,16 ,15 ,14 |
ParadeDB BM25算法全文检索插件,ES全文检索 | |||||
pgroonga | pgroonga |
pgroonga_$v* |
PIGSTY | 4.0.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
使用Groonga,面向所有语言的高速全文检索平台 | |||||
pgroonga_database | pgroonga |
pgroonga_$v* |
PIGSTY | 4.0.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PGGroonga 数据库管理模块 | |||||
pg_bigm | pg_bigm |
pg_bigm_$v* |
PGDG | 1.2 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
基于二字组的多语言全文检索扩展 | |||||
zhparser | zhparser |
zhparser_$v* |
PIGSTY | 2.3 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
中文分词,全文搜索解析器 | |||||
pg_bestmatch | pg_bestmatch |
pg_bestmatch_$v |
PIGSTY | 0.0.1 | FTS |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
在数据库内生成BM25稀疏向量 | |||||
vchord_bm25 | vchord_bm25 |
vchord_bm25_$v |
PIGSTY | 0.1.1 | FTS |
AGPLv3 | 17 ,16 ,15 ,14 |
BM25排序算法 | |||||
hunspell_cs_cz | hunspell_cs_cz |
hunspell_cs_cz_$v |
PIGSTY | 1.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Hunspell捷克语全文检索词典 | |||||
hunspell_de_de | hunspell_de_de |
hunspell_de_de_$v |
PIGSTY | 1.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Hunspell德语全文检索词典 | |||||
hunspell_en_us | hunspell_en_us |
hunspell_en_us_$v |
PIGSTY | 1.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Hunspell英语全文检索词典 | |||||
hunspell_fr | hunspell_fr |
hunspell_fr_$v |
PIGSTY | 1.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Hunspell法语全文检索词典 | |||||
hunspell_ne_np | hunspell_ne_np |
hunspell_ne_np_$v |
PIGSTY | 1.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Hunspell尼泊尔语全文检索词典 | |||||
hunspell_nl_nl | hunspell_nl_nl |
hunspell_nl_nl_$v |
PIGSTY | 1.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Hunspell荷兰语全文检索词典 | |||||
hunspell_nn_no | hunspell_nn_no |
hunspell_nn_no_$v |
PIGSTY | 1.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Hunspell挪威语全文检索词典 | |||||
hunspell_pt_pt | hunspell_pt_pt |
hunspell_pt_pt_$v |
PIGSTY | 1.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Hunspell葡萄牙语全文检索词典 | |||||
hunspell_ru_ru | hunspell_ru_ru |
hunspell_ru_ru_$v |
PIGSTY | 1.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Hunspell俄语全文检索词典 | |||||
hunspell_ru_ru_aot | hunspell_ru_ru_aot |
hunspell_ru_ru_aot_$v |
PIGSTY | 1.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Hunspell俄语全文检索词典(来自AOT.ru小组) | |||||
fuzzystrmatch | fuzzystrmatch |
postgresql$v-contrib |
CONTRIB | 1.2 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
确定字符串之间的相似性和距离 | |||||
pg_trgm | pg_trgm |
postgresql$v-contrib |
CONTRIB | 1.6 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
文本相似度测量函数与模糊检索 | |||||
citus | citus |
citus_$v* |
PIGSTY | 13.0.2 | OLAP |
AGPLv3 | 17 ,16 ,15 ,14 |
Citus 分布式数据库 | |||||
citus_columnar | citus |
citus_$v* |
PIGSTY | 13.0.2 | OLAP |
AGPLv3 | 17 ,16 ,15 ,14 |
Citus 列式存储引擎 | |||||
columnar | hydra |
hydra_$v* |
PIGSTY | 1.1.2 | OLAP |
AGPLv3 | 16 ,15 ,14 ,13 |
开源列式存储扩展 | |||||
pg_analytics | pg_analytics |
pg_analytics_$v |
PIGSTY | 0.3.7 | OLAP |
PostgreSQL | 17 ,16 ,15 ,14 |
由 DuckDB 驱动的数据分析引擎 | |||||
pg_duckdb | pg_duckdb |
pg_duckdb_$v* |
PIGSTY | 0.3.1 | OLAP |
MIT | 17 ,16 ,15 ,14 |
在PostgreSQL中的嵌入式DuckDB扩展 | |||||
pg_mooncake | pg_mooncake |
pg_mooncake_$v* |
PIGSTY | 0.1.2 | OLAP |
MIT | 17 ,16 ,15 ,14 |
PostgreSQL列式存储表 | |||||
duckdb_fdw | duckdb_fdw |
duckdb_fdw_$v* |
PIGSTY | 1.1.2 | OLAP |
MIT | 17 ,16 ,15 ,14 ,13 |
DuckDB 外部数据源包装器 | |||||
pg_parquet | pg_parquet |
pg_parquet_$v |
PIGSTY | 0.3.1 | OLAP |
PostgreSQL | 17 ,16 ,15 ,14 |
在PostgreSQL与本地/S3中的Parquet文件复制数据 | |||||
pg_fkpart | pg_fkpart |
pg_fkpart_$v |
PIGSTY | 1.7.0 | OLAP |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
按外键实用程序进行表分区的扩展 | |||||
pg_partman | pg_partman |
pg_partman_$v* |
PGDG | 5.2.4 | OLAP |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于按时间或 ID 管理分区表的扩展 | |||||
plproxy | plproxy |
plproxy_$v* |
PIGSTY | 2.11.0 | OLAP |
BSD 0 | 17 ,16 ,15 ,14 ,13 |
作为过程语言实现的数据库分区 | |||||
pg_strom | pg_strom |
pg_strom_$v* |
PGDG | 5.2.2 | OLAP |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
使用GPU与NVMe加速大数据处理 | |||||
tablefunc | tablefunc |
postgresql$v-contrib |
CONTRIB | 1.0 | OLAP |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
交叉表函数 | |||||
age | age |
apache-age_$v* |
PIGSTY | 1.5.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Apache AGE,图数据库扩展 (Deb可用) | |||||
hll | hll |
hll_$v* |
PGDG | 2.18 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
hyperloglog 数据类型 | |||||
rum | rum |
rum_$v |
PGDG | 1.3.14 | FEAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
RUM 索引访问方法 | |||||
pg_graphql | pg_graphql |
pg_graphql_$v |
PIGSTY | 1.5.11 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 |
PG内的 GraphQL 支持 (RUST, supabase) | |||||
pg_jsonschema | pg_jsonschema |
pg_jsonschema_$v |
PIGSTY | 0.3.3 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
提供JSON Schema校验能力 | |||||
jsquery | jsquery |
jsquery_$v* |
PGDG | 1.2 | FEAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于内省 JSONB 数据类型的查询类型 | |||||
pg_hint_plan | pg_hint_plan |
pg_hint_plan_$v* |
PGDG | 1.7.0 | FEAT |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
添加强制指定执行计划的能力 | |||||
hypopg | hypopg |
hypopg_$v* |
PGDG | 1.4.1 | FEAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
假设索引,用于创建一个虚拟索引检验执行计划 | |||||
index_advisor | index_advisor |
index_advisor_$v |
PIGSTY | 0.2.0 | FEAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
查询索引建议器 | |||||
plan_filter | pg_plan_filter |
pg_plan_filter_$v* |
PIGSTY | 0.0.1 | FEAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
使用执行计划代价过滤阻止特定查询语句 | |||||
imgsmlr | imgsmlr |
imgsmlr_$v* |
PIGSTY | 1.0 | FEAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
使用Haar小波分析计算图片相似度 | |||||
pg_ivm | pg_ivm |
pg_ivm_$v* |
PGDG | 1.10 | FEAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
增量维护的物化视图 | |||||
pg_incremental | pg_incremental |
pg_incremental_$v* |
PIGSTY | 1.2.0 | FEAT |
PostgreSQL | 17 ,16 |
增量处理流式事件 | |||||
pgmq | pgmq |
pgmq_$v |
PIGSTY | 1.5.0 | FEAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
基于Postgres实现类似AWS SQS/RSMQ的消息队列 | |||||
pgq | pgq |
pgq_$v* |
PGDG | 3.5.1 | FEAT |
ISC | 17 ,16 ,15 ,14 ,13 |
通用队列的PG实现 | |||||
pg_cardano | pg_cardano |
pg_cardano_$v |
PIGSTY | 1.0.3 | FEAT |
MIT | 17 ,16 ,15 ,14 ,13 |
Cardano相关工具包:加密函数,地址编解码,区块链处理 | |||||
omni | omnigres |
omnigres_$v |
PIGSTY | 0.2.4 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
PostgreSQL即平台,Omnigres主扩展与加载器 | |||||
omni_auth | omnigres |
omnigres_$v |
PIGSTY | 0.1.2 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 基础会话认证管理模块 | |||||
omni_aws | omnigres |
omnigres_$v |
PIGSTY | 0.1.2 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres AWS S3 API封装 | |||||
omni_containers | omnigres |
omnigres_$v |
PIGSTY | 0.2.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres Docker容器管理模块 | |||||
omni_credentials | omnigres |
omnigres_$v |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 应用密钥管理模块 | |||||
omni_http | omnigres |
omnigres_$v |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 基本HTTP类型 | |||||
omni_httpc | omnigres |
omnigres_$v |
PIGSTY | 0.1.4 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres HTTP客户端 | |||||
omni_httpd | omnigres |
omnigres_$v |
PIGSTY | 0.2.9 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres HTTP服务器 | |||||
omni_id | omnigres |
omnigres_$v |
PIGSTY | 0.4.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres ID身份数据类型 | |||||
omni_json | omnigres |
omnigres_$v |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres JSON工具箱 | |||||
omni_kube | omnigres |
omnigres_$v |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres Kubernetes集成模块 | |||||
omni_ledger | omnigres |
omnigres_$v |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 金融账本模块 | |||||
omni_manifest | omnigres |
omnigres_$v |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 包管理清单模块 | |||||
omni_mimetypes | omnigres |
omnigres_$v |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres MIME数据类型 | |||||
omni_os | omnigres |
omnigres_$v |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 操作系统集成模块 | |||||
omni_polyfill | omnigres |
omnigres_$v |
PIGSTY | 0.2.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres Postgres多态API | |||||
omni_python | omnigres |
omnigres_$v |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 第一类Python支持模块 | |||||
omni_regex | omnigres |
omnigres_$v |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres PCRE兼容正则表达式模块 | |||||
omni_rest | omnigres |
omnigres_$v |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres REST API 工具包 | |||||
omni_schema | omnigres |
omnigres_$v |
PIGSTY | 0.2.3 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 高级模式管理组件 | |||||
omni_seq | omnigres |
omnigres_$v |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 分布式整型序列号 | |||||
omni_service | omnigres |
omnigres_$v |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 服务管理器 | |||||
omni_session | omnigres |
omnigres_$v |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 会话管理器 | |||||
omni_sql | omnigres |
omnigres_$v |
PIGSTY | 0.5.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres SQL编程组件 | |||||
omni_test | omnigres |
omnigres_$v |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 测试框架 | |||||
omni_txn | omnigres |
omnigres_$v |
PIGSTY | 0.5.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 事务管理器模块 | |||||
omni_types | omnigres |
omnigres_$v |
PIGSTY | 0.2.1 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 高级数据类型模块 | |||||
omni_var | omnigres |
omnigres_$v |
PIGSTY | 0.3.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 局部变量模块 | |||||
omni_vfs | omnigres |
omnigres_$v |
PIGSTY | 0.2.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 虚拟文件系统 | |||||
omni_vfs_types_v1 | omnigres |
omnigres_$v |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 虚拟文件系统(v1) | |||||
omni_web | omnigres |
omnigres_$v |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres Web工具箱 | |||||
omni_xml | omnigres |
omnigres_$v |
PIGSTY | 0.1.2 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres XML工具包 | |||||
omni_yaml | omnigres |
omnigres_$v |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres YAML工具包 | |||||
bloom | bloom |
postgresql$v-contrib |
CONTRIB | 1.0 | FEAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
bloom 索引-基于指纹的索引 | |||||
pg_tle | pg_tle |
pg_tle_$v* |
PIGSTY | 1.5.0 | LANG |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
AWS 可信语言扩展 | |||||
plv8 | plv8 |
plv8_$v* |
PIGSTY | 3.2.3 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PL/JavaScript (v8) 可信过程程序语言 | |||||
pllua | pllua |
pllua_$v* |
PGDG | 2.0.12 | LANG |
MIT | 17 ,16 ,15 ,14 ,13 |
Lua 程序语言 | |||||
plluau | pllua |
pllua_$v* |
PGDG | 2.0.12 | LANG |
MIT | 17 ,16 ,15 ,14 ,13 |
Lua 程序语言(不受信任的) | |||||
plprql | plprql |
plprql_$v |
PIGSTY | 1.0.0 | LANG |
Apache-2.0 | 16 ,15 ,14 ,13 |
在PostgreSQL使用PRQL——管线式关系查询语言 | |||||
pldbgapi | pldebugger |
pldebugger_$v* |
PGDG | 1.8 | LANG |
Artistic | 17 ,16 ,15 ,14 ,13 |
用于调试 PL/pgSQL 函数的服务器端支持 | |||||
plpgsql_check | plpgsql_check |
plpgsql_check_$v* |
PGDG | 2.8.0 | LANG |
MIT | 17 ,16 ,15 ,14 ,13 |
对 plpgsql 函数进行扩展检查 | |||||
plprofiler | plprofiler |
plprofiler_$v* |
PGDG | 4.2.5 | LANG |
Artistic | 17 ,16 ,15 ,14 ,13 |
剖析 PL/pgSQL 函数 | |||||
plsh | plsh |
plsh_$v* |
PGDG | 1.20220917 | LANG |
MIT | 17 ,16 ,15 ,14 ,13 |
PL/sh 程序语言 | |||||
pljava | pljava |
pljava_$v* |
PGDG | 1.6.8 | LANG |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
Java 程序语言 | |||||
plr | plr |
plr_$v* |
PGDG | 8.4.7 | LANG |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
从数据库中加载R语言解释器并执行R脚本 | |||||
pgtap | pgtap |
pgtap_$v* |
PGDG | 1.3.3 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PostgreSQL单元测试框架 | |||||
faker | faker |
postgresql_faker_$v* |
PGDG | 0.5.3 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
插入生成的测试伪造数据,Python库的包装 | |||||
dbt2 | dbt2 |
dbt2-pg$v-extensions* |
PGDG | 0.45.0 | LANG |
Artistic | 17 ,16 ,15 ,14 ,13 |
OSDL-DBT-2 测试组件 | |||||
pltcl | pltcl |
postgresql$v-contrib |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PL/TCL 存储过程语言 | |||||
pltclu | pltcl |
postgresql$v-contrib |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PL/TCL 存储过程语言(未受信/高权限) | |||||
plperl | plperl |
postgresql$v-contrib |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PL/Perl 存储过程语言 | |||||
bool_plperl | plperl |
postgresql$v-contrib |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在 bool 和 plperl 之间转换 | |||||
hstore_plperl | plperl |
postgresql$v-contrib |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在 hstore 和 plperl 之间转换适配类型 | |||||
jsonb_plperl | plperl |
postgresql$v-contrib |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在 jsonb 和 plperl 之间转换 | |||||
plperlu | plperlu |
postgresql$v-contrib |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PL/PerlU 存储过程语言(未受信/高权限) | |||||
bool_plperlu | plperlu |
postgresql$v-contrib |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在 bool 和 plperlu 之间转换 | |||||
jsonb_plperlu | plperlu |
postgresql$v-contrib |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在 jsonb 和 plperlu 之间转换 | |||||
hstore_plperlu | plperlu |
postgresql$v-contrib |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在 hstore 和 plperlu 之间转换适配类型 | |||||
plpgsql | plpgsql |
postgresql$v-contrib |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PL/pgSQL 程序设计语言 | |||||
plpython3u | plpython3u |
postgresql$v-contrib |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PL/Python3 存储过程语言(未受信/高权限) | |||||
jsonb_plpython3u | plpython3u |
postgresql$v-contrib |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在 jsonb 和 plpython3u 之间转换 | |||||
ltree_plpython3u | plpython3u |
postgresql$v-contrib |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在 ltree 和 plpython3u 之间转换 | |||||
hstore_plpython3u | plpython3u |
postgresql$v-contrib |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在 hstore 和 plpython3u 之间转换 | |||||
prefix | pg_prefix |
prefix_$v* |
PGDG | 1.2.10 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
前缀树数据类型 | |||||
semver | pg_semver |
semver_$v* |
PGDG | 0.40.0 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
语义版本号数据类型 | |||||
unit | pgunit |
postgresql-unit_$v* |
PGDG | 7.10 | TYPE |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
SI 国标单位扩展 | |||||
pgpdf | pgpdf |
pgpdf_$v* |
PIGSTY | 0.1.0 | TYPE |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
PDF数据类型,管理函数与全文检索 | |||||
pglite_fusion | pglite_fusion |
pglite_fusion_$v |
PIGSTY | 0.0.3 | TYPE |
MIT | 17 ,16 ,15 ,14 ,13 |
在PG表中嵌入SQLite数据库作为数据类型 | |||||
md5hash | md5hash |
md5hash_$v* |
PIGSTY | 1.0.1 | TYPE |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
提供128位MD5的原生数据类型 | |||||
asn1oid | asn1oid |
asn1oid_$v* |
PIGSTY | 1.6 | TYPE |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
ASN1OID数据类型支持 | |||||
roaringbitmap | roaringbitmap |
pg_roaringbitmap_$v* |
PIGSTY | 0.5.4 | TYPE |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
支持RoaringBitmap数据类型 | |||||
pgfaceting | pgfaceting |
pgfaceting_$v |
PIGSTY | 0.2.0 | TYPE |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
使用倒排索引的高速切面查询 | |||||
pg_sphere | pgsphere |
pgsphere_$v* |
PIGSTY | 1.5.1 | TYPE |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
球面对象函数、运算符与索引支持 | |||||
country | pg_country |
pg_country_$v* |
PIGSTY | 0.0.3 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
国家代码数据类型,遵循ISO 3166-1标准 | |||||
pg_xenophile | pg_xenophile |
pg_xenophile_$v |
PIGSTY | 0.8.3 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PostgreSQL i8n与l10n工具包 | |||||
currency | pg_currency |
pg_currency_$v* |
PIGSTY | 0.0.3 | TYPE |
MIT | 17 ,16 ,15 ,14 ,13 |
使用1字节表示的货币数据类型 | |||||
collection | pg_collection |
pgcollection_$v* |
PIGSTY | 0.9.1 | TYPE |
Apache-2.0 | 17 ,16 ,15 ,14 |
在PlPGSQL中使用的内存优化高性能集合数据结构 | |||||
pgmp | pgmp |
pgmp_$v* |
PGDG | 1.0.5 | TYPE |
LGPLv3 | 17 ,16 ,15 ,14 ,13 |
多精度算术扩展 | |||||
numeral | numeral |
numeral_$v* |
PIGSTY | 1.3 | TYPE |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
数值类型扩展 | |||||
pg_rational | pg_rational |
pg_rational_$v* |
PIGSTY | 0.0.2 | TYPE |
MIT | 17 ,16 ,15 ,14 ,13 |
使用BIGINT表示的有理数数据类型 | |||||
uint | pguint |
pguint_$v* |
PIGSTY | 1.20231206 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
无符号整型数据类型 | |||||
uint128 | pg_uint128 |
pg_uint128_$v* |
PIGSTY | 1.0.0 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
原生128位无符号整型数据类型 | |||||
hashtypes | hashtypes |
hashtypes_$v* |
PIGSTY | 0.1.5 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 |
包括SHA1,MD5在内的多种哈希数据类型 | |||||
ip4r | ip4r |
ip4r_$v* |
PGDG | 2.4.2 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PostgreSQL 的 IPv4/v6 和 IPv4/v6 范围索引类型 | |||||
pg_duration | pg_duration |
pg_duration_$v* |
PIGSTY | 1.0.2 | TYPE |
MIT | 17 |
用于表示时间段的强化数据类型 | |||||
uri | pg_uri |
pg_uri_$v* |
PIGSTY | 1.20151224 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
URI数据类型 | |||||
emailaddr | pgemailaddr |
pg_emailaddr_$v* |
PIGSTY | 0 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Email地址数据类型 | |||||
acl | pg_acl |
acl_$v* |
PIGSTY | 1.0.4 | TYPE |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
ACL数据类型 | |||||
timestamp9 | timestamp9 |
timestamp9_$v* |
PGDG | 1.4.0 | TYPE |
MIT | 17 ,16 ,15 ,14 ,13 |
纳秒分辨率时间戳 | |||||
chkpass | chkpass |
chkpass_$v* |
PIGSTY | 1.0 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
数据类型:自动加密的密码 | |||||
isn | isn |
postgresql$v-contrib |
CONTRIB | 1.2 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于国际产品编号标准的数据类型 | |||||
seg | seg |
postgresql$v-contrib |
CONTRIB | 1.4 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
表示线段或浮点间隔的数据类型 | |||||
cube | cube |
postgresql$v-contrib |
CONTRIB | 1.5 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于存储多维立方体的数据类型 | |||||
ltree | ltree |
postgresql$v-contrib |
CONTRIB | 1.3 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于表示分层树状结构的数据类型 | |||||
hstore | hstore |
postgresql$v-contrib |
CONTRIB | 1.8 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于存储(键,值)对集合的数据类型 | |||||
citext | citext |
postgresql$v-contrib |
CONTRIB | 1.6 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
提供大小写不敏感的字符串类型 | |||||
xml2 | xml2 |
postgresql$v-contrib |
CONTRIB | 1.1 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
XPath 查询和 XSLT | |||||
gzip | pg_gzip |
pgsql_gzip_$v* |
PGDG | 1.0.1 | UTIL |
MIT | 17 ,16 ,15 ,14 ,13 |
使用SQL执行Gzip压缩与解压缩 | |||||
bzip | pg_bzip |
pg_bzip_$v* |
PIGSTY | 1.0.0 | UTIL |
MIT | 17 ,16 ,15 ,14 ,13 |
BZIP压缩解压缩函数包 | |||||
zstd | pg_zstd |
pg_zstd_$v* |
PIGSTY | 1.1.2 | UTIL |
ISC | 17 ,16 ,15 ,14 ,13 |
ZSTD压缩解压缩函数包 | |||||
http | pg_http |
pgsql_http_$v* |
PGDG | 1.6.3 | UTIL |
MIT | 17 ,16 ,15 ,14 ,13 |
HTTP客户端,允许在数据库内收发HTTP请求 (supabase) | |||||
pg_net | pg_net |
pg_net_$v* |
PIGSTY | 0.9.2 | UTIL |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
用 SQL 进行异步非阻塞HTTP/HTTPS 请求的扩展 (supabase) | |||||
pg_curl | pg_curl |
pg_curl_$v* |
PIGSTY | 2.4 | UTIL |
MIT | 17 ,16 ,15 ,14 ,13 |
封装CURL,执行各种用URL传输数据的操作 | |||||
pgjq | pgjq |
pgjq_$v* |
PIGSTY | 0.1.0 | UTIL |
MIT | 17 ,16 ,15 ,14 |
在Postgres中使用jq查询JSON | |||||
pgjwt | pgjwt |
pgjwt_$v |
PIGSTY | 0.2.0 | UTIL |
MIT | 17 ,16 ,15 ,14 ,13 |
JSON Web Token API 的PG实现 (supabase) | |||||
pg_smtp_client | pg_smtp_client |
pg_smtp_client_$v |
PIGSTY | 0.2.0 | UTIL |
MIT | 17 ,16 ,15 ,14 |
使用SMTP从PostgreSQL内发送邮件的客户端扩展 | |||||
pg_html5_email_address | pg_html5_email_address |
pg_html5_email_address_$v |
PIGSTY | 1.2.3 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
验证Email是否符合HTML5规范的扩展 | |||||
url_encode | url_encode |
url_encode_$v* |
PIGSTY | 1.2.5 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
提供URL编码解码函数 | |||||
pgsql_tweaks | pgsql_tweaks |
pgsql_tweaks_$v |
PGDG | 0.11.1 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
一些日常会用到的便利函数与视图 | |||||
pg_extra_time | pg_extra_time |
pg_extra_time_$v |
PGDG | 2.0.0 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
一些关于日期与时间的扩展函数 | |||||
pgpcre | pgpcre |
pgpcre_$v |
PIGSTY | 1 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PCRE/Perl风格的正则表达式支持 | |||||
icu_ext | icu_ext |
icu_ext_$v* |
PIGSTY | 1.9.0 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
访问ICU库提供的函数 | |||||
pgqr | pgqr |
pgqr_$v* |
PIGSTY | 1.0 | UTIL |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
从数据库中直接生成QR二维码 | |||||
pg_protobuf | pg_protobuf |
pg_protobuf_$v |
PIGSTY | 1.0 | UTIL |
MIT | 17 ,16 ,15 ,14 ,13 |
提供Protobuf函数支持 | |||||
envvar | envvar |
pg_envvar_$v* |
PIGSTY | 1.0.0 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
获取环境变量的函数 | |||||
floatfile | floatfile |
floatfile_$v* |
PIGSTY | 1.3.1 | UTIL |
MIT | 17 ,16 ,15 ,14 ,13 |
将浮点数组存储到文件中而不是堆表中 | |||||
pg_readme | pg_readme |
pg_readme_$v |
PGDG | 0.7.0 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
为模式与扩展生成Markdown文档 | |||||
ddl_historization | ddl_historization |
ddl_historization_$v |
PIGSTY | 0.0.7 | UTIL |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
用SQL将所有DDL变更写入到数据库表中 | |||||
data_historization | data_historization |
data_historization_$v |
PIGSTY | 1.1.0 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用SQL将数据变更历史保存到分区表中 | |||||
schedoc | pg_schedoc |
pg_schedoc_$v |
PIGSTY | 0.0.1 | UTIL |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
在Django与DBT之间通过注释文档交换元数据 | |||||
hashlib | pg_hashlib |
pg_hashlib_$v |
PIGSTY | 1.1 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
稳定哈希函数包 | |||||
xxhash | pg_xxhash |
pg_xxhash_$v* |
PIGSTY | 0.0.1 | UTIL |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
xxhash哈希函数包 | |||||
shacrypt | shacrypt |
postgres_shacrypt_$v* |
PIGSTY | 1.1 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
实现SHA256-CRYPT与SHA512-CRYPT密钥加密算法 | |||||
cryptint | cryptint |
cryptint_$v* |
PIGSTY | 1.0.0 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
加密INT与BIGINT类型 | |||||
pguecc | pg_ecdsa |
pg_ecdsa_$v* |
PIGSTY | 1.0 | UTIL |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
PostgreSQL的uECC绑定,椭圆曲线加解密函数包 | |||||
pg_idkit | pg_idkit |
pg_idkit_$v |
PIGSTY | 0.2.4 | FUNC |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
生成各式各样的唯一标识符:UUIDv6, ULID, KSUID | |||||
pg_uuidv7 | pg_uuidv7 |
pg_uuidv7_$v* |
PGDG | 1.6.0 | FUNC |
MPLv2 | 17 ,16 ,15 ,14 ,13 |
UUIDv7 支持 | |||||
permuteseq | permuteseq |
permuteseq_$v* |
PIGSTY | 1.2.2 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
伪随机数ID置换生成器 | |||||
pg_hashids | pg_hashids |
pg_hashids_$v* |
PIGSTY | 1.3 | FUNC |
MIT | 17 ,16 ,15 ,14 ,13 |
加盐将整型ID转为短字符串ID | |||||
sequential_uuids | sequential_uuids |
sequential_uuids_$v |
PGDG | 1.0.3 | FUNC |
MIT | 17 ,16 ,15 ,14 ,13 |
生成连续生成的UUID | |||||
topn | topn |
topn_$v* |
PGDG | 2.7.0 | FUNC |
AGPLv3 | 17 ,16 ,15 ,14 ,13 |
top-n JSONB 的类型 | |||||
quantile | quantile |
quantile_$v* |
PIGSTY | 1.1.8 | FUNC |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
Quantile聚合函数 | |||||
lower_quantile | lower_quantile |
lower_quantile_$v* |
PIGSTY | 1.0.3 | FUNC |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
Lower Quantile 聚合函数 | |||||
count_distinct | count_distinct |
count_distinct_$v* |
PIGSTY | 3.0.2 | FUNC |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
COUNT(DISTINCT …) 聚合的替代方案 | |||||
omnisketch | omnisketch |
omnisketch_$v* |
PIGSTY | 1.0.2 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
实现OmniSketch数据结构,实现近似摘要聚合 | |||||
ddsketch | ddsketch |
ddsketch_$v* |
PIGSTY | 1.0.1 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
实现DDSketch数据结构,实现在线的Quantile聚合 | |||||
vasco | vasco |
vasco_$v* |
PIGSTY | 0.1.0 | FUNC |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
使用MIC发现数据中隐含的关联 | |||||
xicor | pgxicor |
pgxicor_$v* |
PIGSTY | 0.1.0 | FUNC |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
在PG中计算XI相关系数 | |||||
tdigest | tdigest |
tdigest_$v* |
PGDG | 1.4.3 | FUNC |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
tdigest 聚合函数 | |||||
first_last_agg | first_last_agg |
first_last_agg_$v |
PIGSTY | 0.1.4 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
first() 与 last() 聚合函数 | |||||
extra_window_functions | extra_window_functions |
extra_window_functions_$v* |
PGDG | 1.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
额外的窗口函数 | |||||
floatvec | floatvec |
floatvec_$v* |
PIGSTY | 1.1.1 | FUNC |
MIT | 17 ,16 ,15 ,14 ,13 |
数组类型数学运算扩展 | |||||
aggs_for_vecs | aggs_for_vecs |
aggs_for_vecs_$v* |
PIGSTY | 1.3.2 | FUNC |
MIT | 17 ,16 ,15 ,14 ,13 |
针对数组类型的聚合函数集合扩展 | |||||
aggs_for_arrays | aggs_for_arrays |
aggs_for_arrays_$v* |
PIGSTY | 1.3.3 | FUNC |
MIT | 17 ,16 ,15 ,14 ,13 |
计算数组聚合统计值的函数包 | |||||
arraymath | pg_arraymath |
pg_arraymath_$v* |
PIGSTY | 1.1 | FUNC |
MIT | 17 ,16 ,15 ,14 ,13 |
数组逐元素数学运算符包 | |||||
pg_math | pg_math |
pg_math_$v* |
PIGSTY | 1.0 | FUNC |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
使用GSL库的数学统计函数 | |||||
random | pg_random |
pg_random_$v* |
PIGSTY | 2.0.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
随机数生成器 | |||||
base36 | pg_base36 |
pg_base36_$v* |
PIGSTY | 1.0.0 | FUNC |
MIT | 17 ,16 ,15 ,14 ,13 |
Base36编码解码扩展 | |||||
base62 | pg_base62 |
pg_base62_$v* |
PIGSTY | 0.0.1 | FUNC |
MIT | 17 ,16 ,15 ,14 ,13 |
Base62编码解码扩展 | |||||
pg_base58 | pg_base58 |
pg_base58_$v |
PIGSTY | 0.0.1 | FUNC |
MIT | 17 ,16 ,15 ,14 ,13 |
Base58 编码/解码函数 | |||||
financial | pg_financial |
pg_financial_$v* |
PIGSTY | 1.0.1 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
金融领域聚合函数 | |||||
refint | refint |
postgresql$v-contrib |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
实现引用完整性的函数 | |||||
autoinc | autoinc |
postgresql$v-contrib |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于自动递增字段的函数 | |||||
insert_username | insert_username |
postgresql$v-contrib |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于跟踪谁更改了表的函数 | |||||
moddatetime | moddatetime |
postgresql$v-contrib |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
跟踪最后修改时间 | |||||
tsm_system_time | tsm_system_time |
postgresql$v-contrib |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
接受毫秒数限制的 TABLESAMPLE 方法 | |||||
dict_xsyn | dict_xsyn |
postgresql$v-contrib |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于扩展同义词处理的文本搜索字典模板 | |||||
tsm_system_rows | tsm_system_rows |
postgresql$v-contrib |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
接受行数限制的 TABLESAMPLE 方法 | |||||
tcn | tcn |
postgresql$v-contrib |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用触发器通知变更 | |||||
uuid-ossp | uuid-ossp |
postgresql$v-contrib |
CONTRIB | 1.1 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
生成通用唯一标识符(UUIDs) | |||||
btree_gist | btree_gist |
postgresql$v-contrib |
CONTRIB | 1.7 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用GiST索引常见数据类型 | |||||
btree_gin | btree_gin |
postgresql$v-contrib |
CONTRIB | 1.3 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用GIN索引常见数据类型 | |||||
intarray | intarray |
postgresql$v-contrib |
CONTRIB | 1.5 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
1维整数数组的额外函数、运算符和索引支持 | |||||
intagg | intagg |
postgresql$v-contrib |
CONTRIB | 1.1 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
整数聚合器和枚举器(过时) | |||||
dict_int | dict_int |
postgresql$v-contrib |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于整数的文本搜索字典模板 | |||||
unaccent | unaccent |
postgresql$v-contrib |
CONTRIB | 1.1 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
删除重音的文本搜索字典 | |||||
pg_repack | pg_repack |
pg_repack_$v* |
PGDG | 1.5.2 | ADMIN |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
在线垃圾清理与表膨胀治理 | |||||
pg_squeeze | pg_squeeze |
pg_squeeze_$v* |
PGDG | 1.8.0 | ADMIN |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
从关系中删除未使用空间 | |||||
pg_dirtyread | pg_dirtyread |
pg_dirtyread_$v* |
PIGSTY | 2.7 | ADMIN |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
从表中读取尚未垃圾回收的行 | |||||
pgfincore | pgfincore |
pgfincore_$v* |
PGDG | 1.3.1 | ADMIN |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
检查和管理操作系统缓冲区缓存 | |||||
pg_cooldown | pg_cooldown |
pg_cooldown_$v* |
PIGSTY | 0.1 | ADMIN |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
从缓冲区中移除特定关系的页面 | |||||
ddlx | pg_ddlx |
ddlx_$v |
PIGSTY | 0.29 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
提取数据库对象的DDL | |||||
prioritize | pg_prioritize |
pg_prioritize_$v* |
PGDG | 1.0.4 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
获取和设置 PostgreSQL 后端的优先级 | |||||
pg_checksums | pg_checksums |
pg_checksums_$v* |
PGDG | 1.2 | ADMIN |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
在离线模式下激活/启用/禁用数据库集群的校验和功能 | |||||
pg_readonly | pg_readonly |
pg_readonly_$v* |
PGDG | 1.0.3 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
将集群设置为只读 | |||||
pg_upless | pg_upless |
pg_upless_$v |
PIGSTY | 0.0.3 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
检测表上的无用UPDATE | |||||
pg_permissions | pg_permissions |
pg_permissions_$v |
PGDG | 1.3 | ADMIN |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
查看对象权限并将其与期望状态进行比较 | |||||
pgautofailover | pgautofailover |
pg_auto_failover_$v* |
PGDG | 2.1 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PG 自动故障迁移 | |||||
pg_catcheck | pg_catcheck |
pg_catcheck_$v* |
PGDG | 1.6.0 | ADMIN |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
用于诊断系统目录是否损坏的工具 | |||||
pre_prepare | preprepare |
preprepare_$v* |
PIGSTY | 0.9 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在服务端预先准备好PreparedStatement备用 | |||||
pgcozy | pgcozy |
pgcozy_$v |
PIGSTY | 1.0 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
根据先前的pg_buffercache快照预热内存缓冲区 | |||||
pg_orphaned | pg_orphaned |
pg_orphaned_$v* |
PIGSTY | 1.0 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
处理孤儿文件的扩展插件 | |||||
pg_crash | pg_crash |
pg_crash_$v* |
PIGSTY | 1.0 | ADMIN |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
向数据库进程随机发送信号模拟故障 | |||||
pg_cheat_funcs | pg_cheat_funcs |
pg_cheat_funcs_$v* |
PIGSTY | 1.0 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
一些超级实用的作弊函数 | |||||
fio | pg_fio |
pg_fio_$v |
PIGSTY | 1.0 | ADMIN |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
PostgreSQL文件IO函数包 | |||||
pg_savior | pg_savior |
pg_savior_$v* |
PIGSTY | 0.0.1 | ADMIN |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
阻止不带条件的全表更新以避免意外事故 | |||||
safeupdate | safeupdate |
safeupdate_$v* |
PGDG | 1.5 | ADMIN |
ISC | 17 ,16 ,15 ,14 ,13 |
强制在 UPDATE 和 DELETE 时提供 Where 条件 | |||||
pg_drop_events | pg_drop_events |
pg_drop_events_$v |
PGDG | 0.1.0 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
记录删表删列删视图的事务号,辅助PITR确定时间点 | |||||
table_log | table_log |
table_log_$v |
PIGSTY | 0.6.4 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
记录某张表的修改日志并做表/行级时间点恢复 | |||||
pgagent | pgagent |
pgagent_$v* |
PGDG | 4.2.3 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PostgreSQL任务调度工具,与PGADMIN配合使用 | |||||
pg_prewarm | pg_prewarm |
postgresql$v-contrib |
CONTRIB | 1.2 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
预热关系数据 | |||||
pgpool_adm | pgpool |
pgpool-II-pg$v-extensions |
PGDG | 4.6.0 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PGPool 管理函数 | |||||
pgpool_recovery | pgpool |
pgpool-II-pg$v-extensions |
PGDG | 4.6.0 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PGPool辅助扩展,从v4.3提供的恢复函数 | |||||
pgpool_regclass | pgpool |
pgpool-II-pg$v-extensions |
PGDG | 4.6.0 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PGPool辅助扩展,RegClass替代 | |||||
lo | lo |
postgresql$v-contrib |
CONTRIB | 1.1 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
大对象维护 | |||||
basic_archive | basic_archive |
postgresql$v-contrib |
CONTRIB | - | ADMIN |
PostgreSQL | 17 ,16 ,15 |
归档模块样例 | |||||
basebackup_to_shell | basebackup_to_shell |
postgresql$v-contrib |
CONTRIB | - | ADMIN |
PostgreSQL | 17 ,16 ,15 |
添加一种备份到Shell终端到基础备份方式 | |||||
old_snapshot | old_snapshot |
postgresql$v-contrib |
CONTRIB | 1.0 | ADMIN |
PostgreSQL | 16 ,15 ,14 |
支持 old_snapshot_threshold 的实用程序 | |||||
adminpack | adminpack |
postgresql$v-contrib |
CONTRIB | 2.1 | ADMIN |
PostgreSQL | 16 ,15 ,14 ,13 |
PostgreSQL 管理函数集合 | |||||
amcheck | amcheck |
postgresql$v-contrib |
CONTRIB | 1.4 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
校验关系完整性 | |||||
pg_surgery | pg_surgery |
postgresql$v-contrib |
CONTRIB | 1.0 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 |
对损坏的关系进行手术 | |||||
pg_profile | pg_profile |
pg_profile_$v* |
PGDG | 4.8 | STAT |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
PostgreSQL 数据库负载记录与AWR报表工具 | |||||
pg_tracing | pg_tracing |
pg_tracing_$v* |
PIGSTY | 0.1.2 | STAT |
MIT | 17 ,16 ,15 |
PostgreSQL分布式Tracing | |||||
pg_show_plans | pg_show_plans |
pg_show_plans_$v* |
PGDG | 2.1.2 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
打印所有当前正在运行查询的执行计划 | |||||
pg_stat_kcache | pg_stat_kcache |
pg_stat_kcache_$v* |
PGDG | 2.3.0 | STAT |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
内核统计信息收集 | |||||
pg_stat_monitor | pg_stat_monitor |
pg_stat_monitor_$v* |
PGDG | 2.1.1 | STAT |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
提供查询聚合统计、客户端信息、执行计划详细信息和直方图 | |||||
pg_qualstats | pg_qualstats |
pg_qualstats_$v* |
PGDG | 2.1.1 | STAT |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
收集有关 quals 的统计信息的扩展 | |||||
pg_store_plans | pg_store_plans |
pg_store_plans_$v* |
PIGSTY | 1.8 | STAT |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
跟踪所有执行的 SQL 语句的计划统计信息 | |||||
pg_track_settings | pg_track_settings |
pg_track_settings_$v |
PGDG | 2.1.2 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
跟踪设置更改 | |||||
pg_wait_sampling | pg_wait_sampling |
pg_wait_sampling_$v* |
PGDG | 1.1.8 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
基于采样的等待事件统计 | |||||
system_stats | system_stats |
system_stats_$v* |
PGDG | 3.2 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PostgreSQL 的系统统计函数 | |||||
meta | pg_meta |
pg_meta_$v |
PIGSTY | 0.4.0 | STAT |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
标准化,更友好的PostgreSQL系统目录视图 | |||||
pgnodemx | pgnodemx |
pgnodemx_$v |
PIGSTY | 1.7 | STAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
使用SQL查询获取操作系统指标 | |||||
pg_proctab | pgnodemx |
pgnodemx_$v |
PIGSTY | 1.7 | STAT |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
通过SQL接口访问操作系统进程表 | |||||
pg_sqlog | pg_sqlog |
pg_sqlog_$v |
PIGSTY | 1.6 | STAT |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
提供访问PostgreSQL日志的SQL接口 | |||||
bgw_replstatus | bgw_replstatus |
bgw_replstatus_$v* |
PGDG | 1.0.7 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于汇报本机主从状态的后台工作进程 | |||||
pgmeminfo | pgmeminfo |
pgmeminfo_$v* |
PIGSTY | 1.0.0 | STAT |
MIT | 17 ,16 ,15 ,14 ,13 |
显示内存使用情况 | |||||
toastinfo | toastinfo |
toastinfo_$v* |
PIGSTY | 1.5 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
显示TOAST字段的详细信息 | |||||
explain_ui | pg_explain_ui |
pg_explain_ui_$v |
PIGSTY | 0.0.1 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
快速跳转至PEV查阅可视化执行计划 | |||||
pg_relusage | pg_relusage |
pg_relusage_$v |
PIGSTY | 0.0.1 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
打印查询引用的表与列 | |||||
pagevis | pagevis |
pagevis_$v |
PIGSTY | 0.1 | STAT |
MIT | 17 ,16 ,15 ,14 ,13 |
使用ASCII字符可视化数据库物理页面布局 | |||||
powa | powa |
powa_$v* |
PGDG | 5.0.1 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PostgreSQL 工作负载分析器-核心 | |||||
pageinspect | pageinspect |
postgresql$v-contrib |
CONTRIB | 1.12 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
检查数据库页面二进制内容 | |||||
pgrowlocks | pgrowlocks |
postgresql$v-contrib |
CONTRIB | 1.2 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
显示行级锁信息 | |||||
sslinfo | sslinfo |
postgresql$v-contrib |
CONTRIB | 1.2 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
关于 SSL 证书的信息 | |||||
pg_buffercache | pg_buffercache |
postgresql$v-contrib |
CONTRIB | 1.5 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
检查共享缓冲区缓存 | |||||
pg_walinspect | pg_walinspect |
postgresql$v-contrib |
CONTRIB | 1.1 | STAT |
PostgreSQL | 17 ,16 ,15 |
用于检查 PostgreSQL WAL 日志内容的函数 | |||||
pg_freespacemap | pg_freespacemap |
postgresql$v-contrib |
CONTRIB | 1.2 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
检查自由空间映射的内容(FSM) | |||||
pg_visibility | pg_visibility |
postgresql$v-contrib |
CONTRIB | 1.2 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
检查可见性图(VM)和页面级可见性信息 | |||||
pgstattuple | pgstattuple |
postgresql$v-contrib |
CONTRIB | 1.5 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
显示元组级统计信息 | |||||
auto_explain | auto_explain |
postgresql$v-contrib |
CONTRIB | - | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
提供一种自动记录执行计划的手段 | |||||
pg_stat_statements | pg_stat_statements |
postgresql$v-contrib |
CONTRIB | 1.11 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
跟踪所有执行的 SQL 语句的计划和执行统计信息 | |||||
passwordcheck_cracklib | passwordcheck |
passwordcheck_cracklib_$v* |
PGDG | 3.1.0 | SEC |
LGPLv2 | 17 ,16 ,15 ,14 ,13 |
使用cracklib加固PG用户密码 | |||||
supautils | supautils |
supautils_$v* |
PIGSTY | 2.6.0 | SEC |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
用于在云环境中确保数据库集群的安全 | |||||
pgsodium | pgsodium |
pgsodium_$v* |
PIGSTY | 3.1.9 | SEC |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
表数据加密存储 TDE | |||||
supabase_vault | pg_vault |
vault_$v* |
PIGSTY | 0.3.1 | SEC |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
在 Vault 中存储加密凭证的扩展 (supabase) | |||||
pg_session_jwt | pg_session_jwt |
pg_session_jwt_$v |
PIGSTY | 0.2.0 | SEC |
Apache-2.0 | 17 ,16 ,15 ,14 |
使用JWT进行会话认证 | |||||
anon | pg_anon |
pg_anon_$v |
PIGSTY | 2.0.0 | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
数据匿名化处理工具 | |||||
pg_tde | pg_tde |
pg_tde_$v* |
PIGSTY | 1.0 | SEC |
MIT | 16 |
试点性质的加密存储引擎 | |||||
pgsmcrypto | pgsmcrypto |
pgsmcrypto_$v |
PIGSTY | 0.1.0 | SEC |
MIT | 17 ,16 ,15 ,14 ,13 |
为PostgreSQL提供商密算法支持:SM2,SM3,SM4 | |||||
pgaudit | pgaudit |
pgaudit_$v* |
PGDG | 17.1 | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
提供审计功能 | |||||
pgauditlogtofile | pgauditlogtofile |
pgauditlogtofile_$v* |
PGDG | 1.6.4 | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
pgAudit 子扩展,将审计日志写入单独的文件中 | |||||
pg_auth_mon | pg_auth_mon |
pg_auth_mon_$v* |
PGDG | 3.0 | SEC |
MIT | 17 ,16 ,15 ,14 ,13 |
监控每个用户的连接尝试 | |||||
credcheck | credcheck |
credcheck_$v* |
PGDG | 3.0 | SEC |
MIT | 17 ,16 ,15 ,14 ,13 |
明文凭证检查器 | |||||
pgcryptokey | pgcryptokey |
pgcryptokey_$v |
PIGSTY | 0.85 | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PG密钥管理 | |||||
pg_jobmon | pg_jobmon |
pg_jobmon_$v |
PGDG | 1.4.1 | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
记录和监控函数 | |||||
logerrors | logerrors |
logerrors_$v* |
PGDG | 2.1.3 | SEC |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
用于收集日志文件中消息统计信息的函数 | |||||
login_hook | login_hook |
login_hook_$v* |
PGDG | 1.6 | SEC |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
在用户登陆时执行login_hook.login()函数 | |||||
set_user | set_user |
set_user_$v* |
PGDG | 4.1.0 | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
增加了日志记录的 SET ROLE | |||||
pg_snakeoil | pg_snakeoil |
pg_snakeoil_$v* |
PIGSTY | 1.4 | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PostgreSQL动态链接库反病毒功能 | |||||
pgextwlist | pgextwlist |
pgextwlist_$v* |
PIGSTY | 1.17 | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PostgreSQL扩展白名单功能 | |||||
pg_auditor | pg_auditor |
pg_auditor_$v |
PIGSTY | 0.2 | SEC |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
审计数据变更并提供闪回能力 | |||||
sslutils | sslutils |
sslutils_$v* |
PIGSTY | 1.4 | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
使用SQL管理SSL证书 | |||||
noset | pg_noset |
noset_$v* |
PIGSTY | 0.3.0 | SEC |
AGPLv3 | 17 ,16 ,15 ,14 ,13 |
阻止非超级用户使用SET/RESET设置变量 | |||||
sepgsql | sepgsql |
postgresql$v-contrib |
CONTRIB | - | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
基于SELinux标签的强制访问控制 | |||||
auth_delay | auth_delay |
postgresql$v-contrib |
CONTRIB | - | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在返回认证失败前暂停一会,避免爆破 | |||||
pgcrypto | pgcrypto |
postgresql$v-contrib |
CONTRIB | 1.3 | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
实用加解密函数 | |||||
passwordcheck | passwordcheck |
postgresql$v-contrib |
CONTRIB | - | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于强制拒绝修改弱密码的扩展 | |||||
wrappers | wrappers |
wrappers_$v |
PIGSTY | 0.4.5 | FDW |
Apache-2.0 | 17 ,16 ,15 ,14 |
Supabase提供的外部数据源包装器捆绑包 | |||||
multicorn | multicorn |
multicorn2_$v* |
PGDG | 3.0 | FDW |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用Python编写自定义的外部数据源包装器 | |||||
odbc_fdw | odbc_fdw |
odbc_fdw_$v* |
PGDG | 0.5.1 | FDW |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
访问ODBC可访问的任何外部数据源 | |||||
jdbc_fdw | jdbc_fdw |
jdbc_fdw_$v* |
PGDG | 1.2 | FDW |
PostgreSQL | 16 ,15 ,14 ,13 |
访问JDBC可访问的任何外部数据源 | |||||
pgspider_ext | pgspider_ext |
pgspider_ext_$v* |
PGDG | 1.3.0 | FDW |
PostgreSQL | 17 ,16 ,15 |
使用多种FDW访问远程数据库服务器 | |||||
mysql_fdw | mysql_fdw |
mysql_fdw_$v* |
PGDG | 2.9.2 | FDW |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
MySQL外部数据包装器 | |||||
oracle_fdw | oracle_fdw |
oracle_fdw_$v* |
PGDG | 2.7.0 | FDW |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
提供对Oracle的外部数据源包装器 | |||||
tds_fdw | tds_fdw |
tds_fdw_$v* |
PGDG | 2.0.4 | FDW |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
TDS 数据库(Sybase/SQL Server)外部数据包装器 | |||||
db2_fdw | db2_fdw |
db2_fdw_$v* |
PGDG | 6.0.1 | FDW |
PostgreSQL | 16 ,15 ,14 ,13 |
提供对DB2的外部数据源包装器 | |||||
sqlite_fdw | sqlite_fdw |
sqlite_fdw_$v* |
PGDG | 2.5.0 | FDW |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
SQLite 外部数据包装器 | |||||
pgbouncer_fdw | pgbouncer_fdw |
pgbouncer_fdw_$v |
PGDG | 1.3.0 | FDW |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用SQL查询pgbouncer统计信息,并执行pgbouncer命令 | |||||
mongo_fdw | mongo_fdw |
mongo_fdw_$v* |
PGDG | 1.1 | FDW |
LGPLv3 | 16 ,15 ,14 ,13 |
MongoDB 外部数据包装器 | |||||
redis_fdw | redis_fdw |
redis_fdw_$v* |
PIGSTY | 1.0 | FDW |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
查询外部Redis数据源 | |||||
redis | pg_redis_pubsub |
pg_redis_pubsub_$v* |
PIGSTY | 0.0.1 | FDW |
MIT | 17 ,16 ,15 ,14 ,13 |
从PG向Redis发送Pub/Sub消息 | |||||
kafka_fdw | kafka_fdw |
kafka_fdw_$v |
PIGSTY | 0.0.3 | FDW |
PostgreSQL | 16 ,15 ,14 ,13 |
Kafka外部数据源包装器 | |||||
hdfs_fdw | hdfs_fdw |
hdfs_fdw_$v* |
PGDG | 2.3.2 | FDW |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
hdfs 外部数据包装器 | |||||
firebird_fdw | firebird_fdw |
firebird_fdw_$v |
PIGSTY | 1.4.0 | FDW |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Firebird外部数据源包装器 | |||||
aws_s3 | aws_s3 |
aws_s3_$v |
PIGSTY | 0.0.1 | FDW |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
从S3导入导出数据的外部数据源包装器 | |||||
log_fdw | log_fdw |
log_fdw_$v* |
PIGSTY | 1.4 | FDW |
Apache-2.0 | 17 ,16 ,15 ,14 |
访问PostgreSQL日志文件的FDW | |||||
sparql | pgsparql |
pgsparql_$v |
PIGSTY | 1.0 | UTIL |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
使用SQL查询SPARQL数据源 | |||||
dblink | dblink |
postgresql$v-contrib |
CONTRIB | 1.2 | FDW |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
从数据库内连接到其他 PostgreSQL 数据库 | |||||
file_fdw | file_fdw |
postgresql$v-contrib |
CONTRIB | 1.0 | FDW |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
访问外部文件的外部数据包装器 | |||||
postgres_fdw | postgres_fdw |
postgresql$v-contrib |
CONTRIB | 1.1 | FDW |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于远程 PostgreSQL 服务器的外部数据包装器 | |||||
documentdb | documentdb |
documentdb_$v* |
PIGSTY | 0.102 | SIM |
MIT | 17 ,16 ,15 |
微软DocumentDB的API层 | |||||
documentdb_core | documentdb |
documentdb_$v* |
PIGSTY | 0.102 | SIM |
MIT | 17 ,16 ,15 |
微软DocumentDB的核心API层实现 | |||||
documentdb_distributed | documentdb |
documentdb_$v* |
PIGSTY | 0.102 | SIM |
MIT | 17 ,16 ,15 |
DocumentDB多节点模式的API层 | |||||
orafce | orafce |
orafce_$v |
PGDG | 4.14.2 | SIM |
BSD 0 | 17 ,16 ,15 ,14 ,13 |
模拟 Oracle RDBMS 的一部分函数和包的函数和运算符 | |||||
pgtt | pgtt |
pgtt_$v* |
PGDG | 4.0 | SIM |
ISC | 17 ,16 ,15 ,14 ,13 |
类似Oracle的全局临时表功能 | |||||
session_variable | session_variable |
session_variable_$v* |
PIGSTY | 3.4 | SIM |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
Oracle兼容的会话变量/常量操作函数 | |||||
pg_statement_rollback | pg_statement_rollback |
pg_statement_rollback_$v* |
PGDG | 1.4 | SIM |
ISC | 17 ,16 ,15 ,14 ,13 |
在服务端提供类似Oracle/DB2的语句级回滚能力 | |||||
pg_dbms_metadata | pg_dbms_metadata |
pg_dbms_metadata_$v |
PGDG | 1.0.0 | SIM |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
添加 Oracle DBMS_METADATA 兼容性支持的扩展 | |||||
pg_dbms_lock | pg_dbms_lock |
pg_dbms_lock_$v |
PGDG | 1.0 | SIM |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
为PG添加对 Oracle DBMS_LOCK 的完整兼容性支持 | |||||
pg_dbms_job | pg_dbms_job |
pg_dbms_job_$v |
PGDG | 1.5 | SIM |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
添加 Oracle DBMS_JOB 兼容性支持的扩展 | |||||
babelfishpg_common | babelfishpg_common |
babelfishpg-common* |
WILTON | 3.3.3 | SIM |
Apache-2.0 | 15 |
SQL Server 数据类型兼容扩展 | |||||
babelfishpg_tsql | babelfishpg_tsql |
babelfishpg-tsql* |
WILTON | 3.3.1 | SIM |
Apache-2.0 | 15 |
SQL Server SQL语法兼容性扩展 | |||||
babelfishpg_tds | babelfishpg_tds |
babelfishpg-tds* |
WILTON | 1.0.0 | SIM |
Apache-2.0 | 15 |
SQL Server TDS线缆协议兼容扩展 | |||||
babelfishpg_money | babelfishpg_money |
babelfishpg-money* |
WILTON | 1.1.0 | SIM |
Apache-2.0 | 15 |
SQL Server 货币数据类型兼容扩展 | |||||
pgmemcache | pgmemcache |
pgmemcache_$v* |
PGDG | 2.3.0 | SIM |
MIT | 17 ,16 ,15 ,14 ,13 |
为PG提供memcached兼容接口 | |||||
pglogical | pglogical |
pglogical_$v* |
PGDG | 2.4.5 | ETL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PostgreSQL逻辑复制:三方扩展实现 | |||||
pglogical_origin | pglogical |
pglogical_$v* |
PGDG | 2.4.5 | ETL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于从 Postgres 9.4 升级时的兼容性虚拟扩展 | |||||
pglogical_ticker | pglogical_ticker |
pglogical_ticker_$v* |
PIGSTY | 1.4.1 | ETL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
pglogical复制延迟以秒计的精确视图 | |||||
pgl_ddl_deploy | pgl_ddl_deploy |
pgl_ddl_deploy_$v* |
PGDG | 2.2.1 | ETL |
MIT | 17 ,16 ,15 ,14 ,13 |
使用 pglogical 执行自动 DDL 部署 | |||||
pg_failover_slots | pg_failover_slots |
pg_failover_slots_$v* |
PIGSTY | 1.1.0 | ETL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在Failover过程中保留复制槽 | |||||
db_migrator | db_migrator |
db_migrator_$v |
PIGSTY | 1.0.0 | ETL |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
使用FDW从其他DBMS迁移到PostgreSQL | |||||
wal2json | wal2json |
wal2json_$v* |
PGDG | 2.6 | ETL |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
用逻辑解码捕获 JSON 格式的 CDC 变更 | |||||
wal2mongo | wal2mongo |
wal2mongo_$v* |
PIGSTY | 1.0.7 | ETL |
Apache-2.0 | 16 ,15 ,14 ,13 |
使用逻辑解码捕获MongoDB JSON格式的CDC变更 | |||||
decoderbufs | decoderbufs |
postgres-decoderbufs_$v* |
PGDG | 3.0.7 | ETL |
MIT | 17 ,16 ,15 ,14 ,13 |
将WAL逻辑解码为ProtocolBuffer协议的消息 | |||||
decoder_raw | decoder_raw |
decoder_raw_$v* |
PIGSTY | 1.0 | ETL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
逻辑复制解码输出插件:RAW SQL格式 | |||||
pgoutput | pgoutput |
postgresql$v-contrib |
CONTRIB | - | ETL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PG内置的逻辑解码输出插件 | |||||
test_decoding | test_decoding |
postgresql$v-contrib |
CONTRIB | - | ETL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
基于SQL的WAL逻辑解码样例 | |||||
mimeo | mimeo |
mimeo_$v |
PIGSTY | 1.5.1 | ETL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在PostgreSQL实例间进行表级复制 | |||||
repmgr | repmgr |
repmgr_$v* |
PGDG | 5.5.0 | ETL |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
PostgreSQL复制管理组件 | |||||
pg_fact_loader | pg_fact_loader |
pg_fact_loader_$v* |
PGDG | 2.0.1 | ETL |
MIT | 17 ,16 ,15 ,14 ,13 |
在 Postgres 中构建事实表 | |||||
pg_bulkload | pg_bulkload |
pg_bulkload_$v* |
PGDG | 3.1.22 | ETL |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
向 PostgreSQL 中高速加载数据 |
Pigsty 在 Debian/Ubuntu 系统中总共有 392 个可用 DEB 扩展,其中DEB独占扩展 7 个,缺少RPM独占扩展 13 个。
其中除去 69 个PG自带的 Contrib扩展,PGDG APT 仓库提供了 103 个,Pigsty APT 仓库提供了 216 个。 当前首要大版本 PostgreSQL 17 支持了 379 个扩展,而 PostgreSQL 17 支持了其中的 387 个。
扩展名(详情) | 标准名(官网) | 包名 | 仓库 | 版本 | 类目 | 许可证 | PG大版本支持 | LOAD |
DDL |
DBSU |
RELOC |
简介 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
timescaledb | timescaledb |
postgresql-$v-timescaledb-tsl |
PIGSTY | 2.19.0 | TIME |
Timescale | 17 ,16 ,15 ,14 |
时序数据库扩展插件 | ||||
timescaledb_toolkit | timescaledb_toolkit |
postgresql-$v-timescaledb-toolkit |
PIGSTY | 1.19.0 | TIME |
Timescale | 17 ,16 ,15 ,14 |
超表分析查询,时间序列流式处理,以及其他SQL工具 | ||||
timeseries | pg_timeseries |
postgresql-$v-pg-timeseries |
PIGSTY | 0.1.6 | TIME |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Tembo时序数据API封装 | ||||
periods | periods |
postgresql-$v-periods |
PGDG | 1.2.3 | TIME |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
为 PERIODs 和 SYSTEM VERSIONING 提供标准 SQL 功能 | ||||
temporal_tables | temporal_tables |
postgresql-$v-temporal-tables |
PIGSTY | 1.2.2 | TIME |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
时态表功能支持 | ||||
emaj | emaj |
postgresql-$v-emaj |
PIGSTY | 4.6.0 | TIME |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
让数据库的子集具有细粒度日志和时间旅行功能 | ||||
table_version | table_version |
postgresql-$v-table-version |
PIGSTY | 1.11.1 | TIME |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
PostgreSQL 版本控制表扩展 | ||||
pg_cron | pg_cron |
postgresql-$v-cron |
PGDG | 1.6.5 | TIME |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
定时任务调度器 | ||||
pg_task | pg_task |
postgresql-$v-pg-task |
PIGSTY | 2.1.7 | TIME |
MIT | 17 ,16 ,15 ,14 ,13 |
在特定时间点在后台执行SQL命令 | ||||
pg_later | pg_later |
postgresql-$v-pg-later |
PIGSTY | 0.3.0 | TIME |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
执行查询,并在稍后异步获取查询结果 | ||||
pg_background | pg_background |
postgresql-$v-pg-background |
PIGSTY | 1.3 | TIME |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
在后台运行 SQL 查询 | ||||
postgis | postgis |
postgresql-$v-postgis-3 postgresql-$v-postgis-3-scripts |
PGDG | 3.5.2 | GIS |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
PostGIS 几何和地理空间扩展 | ||||
postgis_topology | postgis |
postgresql-$v-postgis-3 postgresql-$v-postgis-3-scripts |
PGDG | 3.5.2 | GIS |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
PostGIS 拓扑空间类型和函数 | ||||
postgis_raster | postgis |
postgresql-$v-postgis-3 postgresql-$v-postgis-3-scripts |
PGDG | 3.5.2 | GIS |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
PostGIS 光栅类型和函数 | ||||
postgis_sfcgal | postgis |
postgresql-$v-postgis-3 postgresql-$v-postgis-3-scripts |
PGDG | 3.5.2 | GIS |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
PostGIS SFCGAL 函数 | ||||
postgis_tiger_geocoder | postgis |
postgresql-$v-postgis-3 postgresql-$v-postgis-3-scripts |
PGDG | 3.5.2 | GIS |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
PostGIS tiger 地理编码器和反向地理编码器 | ||||
address_standardizer | postgis |
postgresql-$v-postgis-3 postgresql-$v-postgis-3-scripts |
PGDG | 3.5.2 | GIS |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
地址标准化函数。 | ||||
address_standardizer_data_us | postgis |
postgresql-$v-postgis-3 postgresql-$v-postgis-3-scripts |
PGDG | 3.5.2 | GIS |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
地址标准化函数:美国数据集示例 | ||||
pgrouting | pgrouting |
postgresql-$v-pgrouting postgresql-$v-pgrouting-scripts |
PGDG | 3.7.3 | GIS |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
提供寻路能力 | ||||
pointcloud | pointcloud |
postgresql-$v-pointcloud |
PGDG | 1.2.5 | GIS |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
提供激光雷达点云数据类型支持 | ||||
pointcloud_postgis | pointcloud |
postgresql-$v-pointcloud |
PGDG | 1.2.5 | GIS |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
将激光雷达点云与PostGIS几何类型相集成 | ||||
h3 | pg_h3 |
postgresql-$v-h3 |
PGDG | 4.2.2 | GIS |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
H3六边形层级索引支持 | ||||
h3_postgis | pg_h3 |
postgresql-$v-h3 |
PGDG | 4.2.2 | GIS |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
H3与PostGIS集成的扩展插件 | ||||
q3c | q3c |
postgresql-$v-q3c |
PGDG | 2.0.1 | GIS |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
Q3C天空索引插件 | ||||
ogr_fdw | ogr_fdw |
postgresql-$v-ogr-fdw |
PGDG | 1.1.6 | GIS |
MIT | 17 ,16 ,15 ,14 ,13 |
GIS 数据外部数据源包装器 | ||||
geoip | geoip |
postgresql-$v-geoip |
PIGSTY | 0.3.0 | GIS |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
IP 地理位置扩展(围绕 MaxMind GeoLite 数据集的包装器) | ||||
pg_polyline | pg_polyline |
postgresql-$v-pg-polyline |
PIGSTY | 0.0.1 | GIS |
MIT | 17 ,16 ,15 ,14 ,13 |
Google快速Polyline编码解码扩展 | ||||
pg_geohash | pg_geohash |
postgresql-$v-pg-geohash |
PIGSTY | 1.0 | GIS |
MIT | 17 ,16 ,15 ,14 ,13 |
使用GeoHash处理空间坐标的函数包 | ||||
mobilitydb | mobilitydb |
postgresql-$v-mobilitydb |
PGDG | 1.2.0 | GIS |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
MobilityDB地理空间投影数据管理分析平台 | ||||
earthdistance | earthdistance |
postgresql-$v |
CONTRIB | 1.2 | GIS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
计算地球表面上的大圆距离 | ||||
vector | pgvector |
postgresql-$v-pgvector |
PGDG | 0.8.0 | RAG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
向量数据类型和 ivfflat / hnsw 访问方法 | ||||
vchord | vchord |
postgresql-$v-vchord |
PIGSTY | 0.2.2 | RAG |
AGPLv3 | 17 ,16 ,15 ,14 |
使用Rust重写的高性能向量扩展 | ||||
vectorscale | pgvectorscale |
postgresql-$v-pgvectorscale |
PIGSTY | 0.6.0 | RAG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
使用DiskANN算法对向量进行高效索引 | ||||
vectorize | pg_vectorize |
postgresql-$v-pg-vectorize |
PIGSTY | 0.21.1 | RAG |
PostgreSQL | 17 ,16 ,15 ,14 |
在PostgreSQL中封装RAG向量检索服务 | ||||
pg_similarity | pg_similarity |
postgresql-$v-similarity |
PGDG | 1.0 | RAG |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
提供17种距离度量函数 | ||||
smlar | smlar |
postgresql-$v-smlar |
PIGSTY | 1.0 | RAG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
高效的相似度搜索函数 | ||||
pg_summarize | pg_summarize |
postgresql-$v-pg-summarize |
PIGSTY | 0.0.1 | RAG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
使用LLM对文本字段进行总结 | ||||
pg_tiktoken | pg_tiktoken |
postgresql-$v-pg-tiktoken |
PIGSTY | 0.0.1 | RAG |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
在PostgreSQL中计算OpenAI使用的Token数 | ||||
pg4ml | pg4ml |
postgresql-$v-pg4ml |
PIGSTY | 2.0 | RAG |
AGPLv3 | 17 ,16 ,15 ,14 ,13 |
PG4ML是一个机器学习框架 | ||||
pgml | pgml |
postgresql-$v-pgml |
PIGSTY | 2.10.0 | RAG |
MIT | 17 ,16 ,15 ,14 |
PostgresML:用SQL运行机器学习算法并训练模型 | ||||
pg_search | pg_search |
postgresql-$v-pg-search |
PIGSTY | 0.15.8 | FTS |
AGPLv3 | 17 ,16 ,15 ,14 |
ParadeDB BM25算法全文检索插件,ES全文检索 | ||||
pgroonga | pgroonga |
postgresql-$v-pgroonga |
PIGSTY | 4.0.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
使用Groonga,面向所有语言的高速全文检索平台 | ||||
pgroonga_database | pgroonga |
postgresql-$v-pgroonga |
PIGSTY | 4.0.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PGGroonga 数据库管理模块 | ||||
pg_bigm | pg_bigm |
postgresql-$v-pg-bigm |
PIGSTY | 1.2 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
基于二字组的多语言全文检索扩展 | ||||
zhparser | zhparser |
postgresql-$v-zhparser |
PIGSTY | 2.3 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
中文分词,全文搜索解析器 | ||||
pg_bestmatch | pg_bestmatch |
postgresql-$v-pg-bestmatch |
PIGSTY | 0.0.1 | FTS |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
在数据库内生成BM25稀疏向量 | ||||
vchord_bm25 | vchord_bm25 |
postgresql-$v-vchord-bm25 |
PIGSTY | 0.1.1 | FTS |
AGPLv3 | 17 ,16 ,15 ,14 |
BM25排序算法 | ||||
hunspell_cs_cz | hunspell_cs_cz |
postgresql-$v-hunspell-cs-cz |
PIGSTY | 1.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Hunspell捷克语全文检索词典 | ||||
hunspell_de_de | hunspell_de_de |
postgresql-$v-hunspell-de-de |
PIGSTY | 1.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Hunspell德语全文检索词典 | ||||
hunspell_en_us | hunspell_en_us |
postgresql-$v-hunspell-en-us |
PIGSTY | 1.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Hunspell英语全文检索词典 | ||||
hunspell_fr | hunspell_fr |
postgresql-$v-hunspell-fr |
PIGSTY | 1.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Hunspell法语全文检索词典 | ||||
hunspell_ne_np | hunspell_ne_np |
postgresql-$v-hunspell-ne-np |
PIGSTY | 1.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Hunspell尼泊尔语全文检索词典 | ||||
hunspell_nl_nl | hunspell_nl_nl |
postgresql-$v-hunspell-nl-nl |
PIGSTY | 1.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Hunspell荷兰语全文检索词典 | ||||
hunspell_nn_no | hunspell_nn_no |
postgresql-$v-hunspell-nn-no |
PIGSTY | 1.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Hunspell挪威语全文检索词典 | ||||
hunspell_pt_pt | hunspell_pt_pt |
postgresql-$v-hunspell-pt-pt |
PIGSTY | 1.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Hunspell葡萄牙语全文检索词典 | ||||
hunspell_ru_ru | hunspell_ru_ru |
postgresql-$v-hunspell-ru-ru |
PIGSTY | 1.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Hunspell俄语全文检索词典 | ||||
hunspell_ru_ru_aot | hunspell_ru_ru_aot |
postgresql-$v-hunspell-ru-ru-aot |
PIGSTY | 1.0 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Hunspell俄语全文检索词典(来自AOT.ru小组) | ||||
fuzzystrmatch | fuzzystrmatch |
postgresql-$v |
CONTRIB | 1.2 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
确定字符串之间的相似性和距离 | ||||
pg_trgm | pg_trgm |
postgresql-$v |
CONTRIB | 1.6 | FTS |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
文本相似度测量函数与模糊检索 | ||||
citus | citus |
postgresql-$v-citus |
PIGSTY | 13.0.2 | OLAP |
AGPLv3 | 17 ,16 ,15 ,14 |
Citus 分布式数据库 | ||||
citus_columnar | citus |
postgresql-$v-citus |
PIGSTY | 13.0.2 | OLAP |
AGPLv3 | 17 ,16 ,15 ,14 |
Citus 列式存储引擎 | ||||
columnar | hydra |
postgresql-$v-hydra |
PIGSTY | 1.1.2 | OLAP |
AGPLv3 | 16 ,15 ,14 ,13 |
开源列式存储扩展 | ||||
pg_analytics | pg_analytics |
postgresql-$v-pg-analytics |
PIGSTY | 0.3.7 | OLAP |
PostgreSQL | 17 ,16 ,15 ,14 |
由 DuckDB 驱动的数据分析引擎 | ||||
pg_duckdb | pg_duckdb |
postgresql-$v-pg-duckdb |
PIGSTY | 0.3.1 | OLAP |
MIT | 17 ,16 ,15 ,14 |
在PostgreSQL中的嵌入式DuckDB扩展 | ||||
pg_mooncake | pg_mooncake |
postgresql-$v-pg-mooncake |
PIGSTY | 0.1.2 | OLAP |
MIT | 17 ,16 ,15 ,14 |
PostgreSQL列式存储表 | ||||
duckdb_fdw | duckdb_fdw |
postgresql-$v-duckdb-fdw |
PIGSTY | 1.1.2 | OLAP |
MIT | 17 ,16 ,15 ,14 ,13 |
DuckDB 外部数据源包装器 | ||||
pg_parquet | pg_parquet |
postgresql-$v-pg-parquet |
PIGSTY | 0.3.1 | OLAP |
PostgreSQL | 17 ,16 ,15 ,14 |
在PostgreSQL与本地/S3中的Parquet文件复制数据 | ||||
pg_fkpart | pg_fkpart |
postgresql-$v-pg-fkpart |
PIGSTY | 1.7.0 | OLAP |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
按外键实用程序进行表分区的扩展 | ||||
pg_partman | pg_partman |
postgresql-$v-partman |
PGDG | 5.2.4 | OLAP |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于按时间或 ID 管理分区表的扩展 | ||||
plproxy | plproxy |
postgresql-$v-plproxy |
PGDG | 2.11.0 | OLAP |
BSD 0 | 17 ,16 ,15 ,14 ,13 |
作为过程语言实现的数据库分区 | ||||
tablefunc | tablefunc |
postgresql-$v |
CONTRIB | 1.0 | OLAP |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
交叉表函数 | ||||
age | age |
postgresql-$v-age |
PGDG | 1.5.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Apache AGE,图数据库扩展 (Deb可用) | ||||
hll | hll |
postgresql-$v-hll |
PGDG | 2.18 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
hyperloglog 数据类型 | ||||
rum | rum |
postgresql-$v-rum |
PGDG | 1.3.14 | FEAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
RUM 索引访问方法 | ||||
pg_graphql | pg_graphql |
postgresql-$v-pg-graphql |
PIGSTY | 1.5.11 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 |
PG内的 GraphQL 支持 (RUST, supabase) | ||||
pg_jsonschema | pg_jsonschema |
postgresql-$v-pg-jsonschema |
PIGSTY | 0.3.3 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
提供JSON Schema校验能力 | ||||
jsquery | jsquery |
postgresql-$v-jsquery |
PGDG | 1.2 | FEAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于内省 JSONB 数据类型的查询类型 | ||||
pg_hint_plan | pg_hint_plan |
postgresql-$v-pg-hint-plan |
PGDG | 1.7.0 | FEAT |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
添加强制指定执行计划的能力 | ||||
hypopg | hypopg |
postgresql-$v-hypopg |
PGDG | 1.4.1 | FEAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
假设索引,用于创建一个虚拟索引检验执行计划 | ||||
index_advisor | index_advisor |
postgresql-$v-index-advisor |
PIGSTY | 0.2.0 | FEAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
查询索引建议器 | ||||
plan_filter | pg_plan_filter |
postgresql-$v-pg-plan-filter |
PIGSTY | 0.0.1 | FEAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
使用执行计划代价过滤阻止特定查询语句 | ||||
imgsmlr | imgsmlr |
postgresql-$v-imgsmlr |
PIGSTY | 1.0 | FEAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
使用Haar小波分析计算图片相似度 | ||||
pg_ivm | pg_ivm |
postgresql-$v-pg-ivm |
PIGSTY | 1.10 | FEAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
增量维护的物化视图 | ||||
pg_incremental | pg_incremental |
postgresql-$v-pg-incremental |
PIGSTY | 1.2.0 | FEAT |
PostgreSQL | 17 ,16 |
增量处理流式事件 | ||||
pgmq | pgmq |
postgresql-$v-pgmq |
PIGSTY | 1.5.0 | FEAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
基于Postgres实现类似AWS SQS/RSMQ的消息队列 | ||||
pgq | pgq |
postgresql-$v-pgq3 |
PGDG | 3.5.1 | FEAT |
ISC | 17 ,16 ,15 ,14 ,13 |
通用队列的PG实现 | ||||
pg_cardano | pg_cardano |
postgresql-$v-pg-cardano |
PIGSTY | 1.0.3 | FEAT |
MIT | 17 ,16 ,15 ,14 ,13 |
Cardano相关工具包:加密函数,地址编解码,区块链处理 | ||||
rdkit | rdkit |
postgresql-$v-rdkit |
PGDG | 202409.4 | FEAT |
BSD 3 | 16 ,15 ,14 ,13 |
在PostgreSQL化学领域数据管理功能 | ||||
omni | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.2.4 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
PostgreSQL即平台,Omnigres主扩展与加载器 | ||||
omni_auth | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.2 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 基础会话认证管理模块 | ||||
omni_aws | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.2 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres AWS S3 API封装 | ||||
omni_containers | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.2.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres Docker容器管理模块 | ||||
omni_credentials | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 应用密钥管理模块 | ||||
omni_http | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 基本HTTP类型 | ||||
omni_httpc | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.4 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres HTTP客户端 | ||||
omni_httpd | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.2.9 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres HTTP服务器 | ||||
omni_id | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.4.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres ID身份数据类型 | ||||
omni_json | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres JSON工具箱 | ||||
omni_kube | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres Kubernetes集成模块 | ||||
omni_ledger | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 金融账本模块 | ||||
omni_manifest | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 包管理清单模块 | ||||
omni_mimetypes | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres MIME数据类型 | ||||
omni_os | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 操作系统集成模块 | ||||
omni_polyfill | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.2.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres Postgres多态API | ||||
omni_python | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 第一类Python支持模块 | ||||
omni_regex | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres PCRE兼容正则表达式模块 | ||||
omni_rest | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres REST API 工具包 | ||||
omni_schema | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.2.3 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 高级模式管理组件 | ||||
omni_seq | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 分布式整型序列号 | ||||
omni_service | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 服务管理器 | ||||
omni_session | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 会话管理器 | ||||
omni_sql | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.5.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres SQL编程组件 | ||||
omni_test | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 测试框架 | ||||
omni_txn | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.5.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 事务管理器模块 | ||||
omni_types | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.2.1 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 高级数据类型模块 | ||||
omni_var | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.3.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 局部变量模块 | ||||
omni_vfs | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.2.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 虚拟文件系统 | ||||
omni_vfs_types_v1 | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres 虚拟文件系统(v1) | ||||
omni_web | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres Web工具箱 | ||||
omni_xml | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.2 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres XML工具包 | ||||
omni_yaml | omnigres |
postgresql-$v-omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
Omnigres YAML工具包 | ||||
bloom | bloom |
postgresql-$v |
CONTRIB | 1.0 | FEAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
bloom 索引-基于指纹的索引 | ||||
pg_tle | pg_tle |
postgresql-$v-pg-tle |
PIGSTY | 1.5.0 | LANG |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
AWS 可信语言扩展 | ||||
plv8 | plv8 |
postgresql-$v-plv8 |
PIGSTY | 3.2.3 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PL/JavaScript (v8) 可信过程程序语言 | ||||
pllua | pllua |
postgresql-$v-pllua |
PGDG | 2.0.12 | LANG |
MIT | 17 ,16 ,15 ,14 ,13 |
Lua 程序语言 | ||||
hstore_pllua | pllua |
postgresql-$v-pllua |
PGDG | 2.0.12 | LANG |
MIT | 17 ,16 ,15 ,14 ,13 |
Lua 程序语言的Hstore适配扩展 | ||||
plluau | pllua |
postgresql-$v-pllua |
PGDG | 2.0.12 | LANG |
MIT | 17 ,16 ,15 ,14 ,13 |
Lua 程序语言(不受信任的) | ||||
hstore_plluau | pllua |
postgresql-$v-pllua |
PGDG | 2.0.12 | LANG |
MIT | 17 ,16 ,15 ,14 ,13 |
Lua 程序语言的Hstore适配扩展(不受信任的) | ||||
plprql | plprql |
postgresql-$v-plprql |
PIGSTY | 1.0.0 | LANG |
Apache-2.0 | 16 ,15 ,14 ,13 |
在PostgreSQL使用PRQL——管线式关系查询语言 | ||||
pldbgapi | pldebugger |
postgresql-$v-pldebugger |
PGDG | 1.8 | LANG |
Artistic | 17 ,16 ,15 ,14 ,13 |
用于调试 PL/pgSQL 函数的服务器端支持 | ||||
plpgsql_check | plpgsql_check |
postgresql-$v-plpgsql-check |
PGDG | 2.8.0 | LANG |
MIT | 17 ,16 ,15 ,14 ,13 |
对 plpgsql 函数进行扩展检查 | ||||
plprofiler | plprofiler |
postgresql-$v-plprofiler |
PGDG | 4.2.5 | LANG |
Artistic | 17 ,16 ,15 ,14 ,13 |
剖析 PL/pgSQL 函数 | ||||
plsh | plsh |
postgresql-$v-plsh |
PGDG | 1.20220917 | LANG |
MIT | 17 ,16 ,15 ,14 ,13 |
PL/sh 程序语言 | ||||
pljava | pljava |
postgresql-$v-pljava |
PGDG | 1.6.8 | LANG |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
Java 程序语言 | ||||
plr | plr |
postgresql-$v-plr |
PGDG | 8.4.7 | LANG |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
从数据库中加载R语言解释器并执行R脚本 | ||||
pgtap | pgtap |
postgresql-$v-pgtap |
PGDG | 1.3.3 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PostgreSQL单元测试框架 | ||||
pltcl | pltcl |
postgresql-$v |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PL/TCL 存储过程语言 | ||||
pltclu | pltcl |
postgresql-$v |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PL/TCL 存储过程语言(未受信/高权限) | ||||
plperl | plperl |
postgresql-$v |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PL/Perl 存储过程语言 | ||||
bool_plperl | plperl |
postgresql-$v |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在 bool 和 plperl 之间转换 | ||||
hstore_plperl | plperl |
postgresql-$v |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在 hstore 和 plperl 之间转换适配类型 | ||||
jsonb_plperl | plperl |
postgresql-$v |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在 jsonb 和 plperl 之间转换 | ||||
plperlu | plperlu |
postgresql-$v |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PL/PerlU 存储过程语言(未受信/高权限) | ||||
bool_plperlu | plperlu |
postgresql-$v |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在 bool 和 plperlu 之间转换 | ||||
jsonb_plperlu | plperlu |
postgresql-$v |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在 jsonb 和 plperlu 之间转换 | ||||
hstore_plperlu | plperlu |
postgresql-$v |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在 hstore 和 plperlu 之间转换适配类型 | ||||
plpgsql | plpgsql |
postgresql-$v |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PL/pgSQL 程序设计语言 | ||||
plpython3u | plpython3u |
postgresql-$v |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PL/Python3 存储过程语言(未受信/高权限) | ||||
jsonb_plpython3u | plpython3u |
postgresql-$v |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在 jsonb 和 plpython3u 之间转换 | ||||
ltree_plpython3u | plpython3u |
postgresql-$v |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在 ltree 和 plpython3u 之间转换 | ||||
hstore_plpython3u | plpython3u |
postgresql-$v |
CONTRIB | 1.0 | LANG |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在 hstore 和 plpython3u 之间转换 | ||||
prefix | pg_prefix |
postgresql-$v-prefix |
PGDG | 1.2.10 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
前缀树数据类型 | ||||
semver | pg_semver |
postgresql-$v-semver |
PGDG | 0.40.0 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
语义版本号数据类型 | ||||
unit | pgunit |
postgresql-$v-unit |
PGDG | 7.10 | TYPE |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
SI 国标单位扩展 | ||||
pgpdf | pgpdf |
postgresql-$v-pgpdf |
PIGSTY | 0.1.0 | TYPE |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
PDF数据类型,管理函数与全文检索 | ||||
pglite_fusion | pglite_fusion |
postgresql-$v-pglite-fusion |
PIGSTY | 0.0.3 | TYPE |
MIT | 17 ,16 ,15 ,14 ,13 |
在PG表中嵌入SQLite数据库作为数据类型 | ||||
md5hash | md5hash |
postgresql-$v-md5hash |
PIGSTY | 1.0.1 | TYPE |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
提供128位MD5的原生数据类型 | ||||
asn1oid | asn1oid |
postgresql-$v-asn1oid |
PGDG | 1.6 | TYPE |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
ASN1OID数据类型支持 | ||||
roaringbitmap | roaringbitmap |
postgresql-$v-roaringbitmap |
PGDG | 0.5.4 | TYPE |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
支持RoaringBitmap数据类型 | ||||
pgfaceting | pgfaceting |
postgresql-$v-pgfaceting |
PGDG | 0.2.0 | TYPE |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
使用倒排索引的高速切面查询 | ||||
pg_sphere | pgsphere |
postgresql-$v-pgsphere |
PGDG | 1.5.1 | TYPE |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
球面对象函数、运算符与索引支持 | ||||
country | pg_country |
postgresql-$v-pg-country |
PIGSTY | 0.0.3 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
国家代码数据类型,遵循ISO 3166-1标准 | ||||
pg_xenophile | pg_xenophile |
postgresql-$v-pg-xenophile |
PIGSTY | 0.8.3 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PostgreSQL i8n与l10n工具包 | ||||
currency | pg_currency |
postgresql-$v-pg-currency |
PIGSTY | 0.0.3 | TYPE |
MIT | 17 ,16 ,15 ,14 ,13 |
使用1字节表示的货币数据类型 | ||||
collection | pg_collection |
postgresql-$v-collection |
PIGSTY | 0.9.1 | TYPE |
Apache-2.0 | 17 ,16 ,15 ,14 |
在PlPGSQL中使用的内存优化高性能集合数据结构 | ||||
pgmp | pgmp |
postgresql-$v-pgmp |
PGDG | 1.0.5 | TYPE |
LGPLv3 | 17 ,16 ,15 ,14 ,13 |
多精度算术扩展 | ||||
numeral | numeral |
postgresql-$v-numeral |
PGDG | 1.3 | TYPE |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
数值类型扩展 | ||||
pg_rational | pg_rational |
postgresql-$v-rational |
PGDG | 0.0.2 | TYPE |
MIT | 17 ,16 ,15 ,14 ,13 |
使用BIGINT表示的有理数数据类型 | ||||
uint | pguint |
postgresql-$v-pguint |
PIGSTY | 1.20231206 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
无符号整型数据类型 | ||||
uint128 | pg_uint128 |
postgresql-$v-pg-uint128 |
PIGSTY | 1.0.0 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
原生128位无符号整型数据类型 | ||||
hashtypes | hashtypes |
postgresql-$v-hashtypes |
PIGSTY | 0.1.5 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 |
包括SHA1,MD5在内的多种哈希数据类型 | ||||
ip4r | ip4r |
postgresql-$v-ip4r |
PGDG | 2.4.2 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PostgreSQL 的 IPv4/v6 和 IPv4/v6 范围索引类型 | ||||
pg_duration | pg_duration |
postgresql-$v-pg-duration |
PIGSTY | 1.0.2 | TYPE |
MIT | 17 |
用于表示时间段的强化数据类型 | ||||
uri | pg_uri |
postgresql-$v-pg-uri |
PIGSTY | 1.20151224 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
URI数据类型 | ||||
emailaddr | pgemailaddr |
postgresql-$v-pg-emailaddr |
PIGSTY | 0 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Email地址数据类型 | ||||
acl | pg_acl |
postgresql-$v-acl |
PIGSTY | 1.0.4 | TYPE |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
ACL数据类型 | ||||
debversion | debversion |
postgresql-$v-debversion |
PGDG | 1.2.0 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Debian版本号数据类型 | ||||
pg_rrule | pg_rrule |
postgresql-$v-pg-rrule |
PGDG | 0.2.0 | TYPE |
MIT | 17 ,16 ,15 ,14 ,13 |
日历重复规则RRULE数据类型 | ||||
timestamp9 | timestamp9 |
postgresql-$v-timestamp9 |
PIGSTY | 1.4.0 | TYPE |
MIT | 17 ,16 ,15 ,14 ,13 |
纳秒分辨率时间戳 | ||||
chkpass | chkpass |
postgresql-$v-chkpass |
PIGSTY | 1.0 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
数据类型:自动加密的密码 | ||||
isn | isn |
postgresql-$v |
CONTRIB | 1.2 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于国际产品编号标准的数据类型 | ||||
seg | seg |
postgresql-$v |
CONTRIB | 1.4 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
表示线段或浮点间隔的数据类型 | ||||
cube | cube |
postgresql-$v |
CONTRIB | 1.5 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于存储多维立方体的数据类型 | ||||
ltree | ltree |
postgresql-$v |
CONTRIB | 1.3 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于表示分层树状结构的数据类型 | ||||
hstore | hstore |
postgresql-$v |
CONTRIB | 1.8 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于存储(键,值)对集合的数据类型 | ||||
citext | citext |
postgresql-$v |
CONTRIB | 1.6 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
提供大小写不敏感的字符串类型 | ||||
xml2 | xml2 |
postgresql-$v |
CONTRIB | 1.1 | TYPE |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
XPath 查询和 XSLT | ||||
gzip | pg_gzip |
postgresql-$v-gzip |
PIGSTY | 1.0.1 | UTIL |
MIT | 17 ,16 ,15 ,14 ,13 |
使用SQL执行Gzip压缩与解压缩 | ||||
bzip | pg_bzip |
postgresql-$v-bzip |
PIGSTY | 1.0.0 | UTIL |
MIT | 17 ,16 ,15 ,14 ,13 |
BZIP压缩解压缩函数包 | ||||
zstd | pg_zstd |
postgresql-$v-zstd |
PIGSTY | 1.1.2 | UTIL |
ISC | 17 ,16 ,15 ,14 ,13 |
ZSTD压缩解压缩函数包 | ||||
http | pg_http |
postgresql-$v-http |
PGDG | 1.6.3 | UTIL |
MIT | 17 ,16 ,15 ,14 ,13 |
HTTP客户端,允许在数据库内收发HTTP请求 (supabase) | ||||
pg_net | pg_net |
postgresql-$v-pg-net |
PIGSTY | 0.9.2 | UTIL |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
用 SQL 进行异步非阻塞HTTP/HTTPS 请求的扩展 (supabase) | ||||
pg_curl | pg_curl |
postgresql-$v-pg-curl |
PIGSTY | 2.4 | UTIL |
MIT | 17 ,16 ,15 ,14 ,13 |
封装CURL,执行各种用URL传输数据的操作 | ||||
pgjq | pgjq |
postgresql-$v-pgjq |
PIGSTY | 0.1.0 | UTIL |
MIT | 17 ,16 ,15 ,14 |
在Postgres中使用jq查询JSON | ||||
pgjwt | pgjwt |
postgresql-$v-pgjwt |
PIGSTY | 0.2.0 | UTIL |
MIT | 17 ,16 ,15 ,14 ,13 |
JSON Web Token API 的PG实现 (supabase) | ||||
pg_smtp_client | pg_smtp_client |
postgresql-$v-pg-smtp-client |
PIGSTY | 0.2.0 | UTIL |
MIT | 17 ,16 ,15 ,14 |
使用SMTP从PostgreSQL内发送邮件的客户端扩展 | ||||
pg_html5_email_address | pg_html5_email_address |
postgresql-$v-pg-html5-email-address |
PIGSTY | 1.2.3 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
验证Email是否符合HTML5规范的扩展 | ||||
url_encode | url_encode |
postgresql-$v-url-encode |
PIGSTY | 1.2.5 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
提供URL编码解码函数 | ||||
pgsql_tweaks | pgsql_tweaks |
postgresql-$v-pgsql-tweaks |
PIGSTY | 0.11.1 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
一些日常会用到的便利函数与视图 | ||||
pg_extra_time | pg_extra_time |
postgresql-$v-pg-extra-time |
PIGSTY | 2.0.0 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
一些关于日期与时间的扩展函数 | ||||
pgpcre | pgpcre |
postgresql-$v-pgpcre |
PGDG | 1 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PCRE/Perl风格的正则表达式支持 | ||||
icu_ext | icu_ext |
postgresql-$v-icu-ext |
PGDG | 1.9.0 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
访问ICU库提供的函数 | ||||
pgqr | pgqr |
postgresql-$v-pgqr |
PIGSTY | 1.0 | UTIL |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
从数据库中直接生成QR二维码 | ||||
pg_protobuf | pg_protobuf |
postgresql-$v-pg-protobuf |
PIGSTY | 1.0 | UTIL |
MIT | 17 ,16 ,15 ,14 ,13 |
提供Protobuf函数支持 | ||||
envvar | envvar |
postgresql-$v-pg-envvar |
PIGSTY | 1.0.0 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
获取环境变量的函数 | ||||
floatfile | floatfile |
postgresql-$v-floatfile |
PIGSTY | 1.3.1 | UTIL |
MIT | 17 ,16 ,15 ,14 ,13 |
将浮点数组存储到文件中而不是堆表中 | ||||
pg_readme | pg_readme |
postgresql-$v-pg-readme |
PIGSTY | 0.7.0 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
为模式与扩展生成Markdown文档 | ||||
ddl_historization | ddl_historization |
postgresql-$v-ddl-historization |
PIGSTY | 0.0.7 | UTIL |
GPLv2 | 17 ,16 ,15 ,14 ,13 |
用SQL将所有DDL变更写入到数据库表中 | ||||
data_historization | data_historization |
postgresql-$v-data-historization |
PIGSTY | 1.1.0 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用SQL将数据变更历史保存到分区表中 | ||||
schedoc | pg_schedoc |
postgresql-$v-pg-schedoc |
PIGSTY | 0.0.1 | UTIL |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
在Django与DBT之间通过注释文档交换元数据 | ||||
hashlib | pg_hashlib |
postgresql-$v-pg-hashlib |
PIGSTY | 1.1 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
稳定哈希函数包 | ||||
xxhash | pg_xxhash |
postgresql-$v-pg-xxhash |
PIGSTY | 0.0.1 | UTIL |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
xxhash哈希函数包 | ||||
shacrypt | shacrypt |
postgresql-$v-shacrypt |
PIGSTY | 1.1 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
实现SHA256-CRYPT与SHA512-CRYPT密钥加密算法 | ||||
cryptint | cryptint |
postgresql-$v-cryptint |
PIGSTY | 1.0.0 | UTIL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
加密INT与BIGINT类型 | ||||
pguecc | pg_ecdsa |
postgresql-$v-pg-ecdsa |
PIGSTY | 1.0 | UTIL |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
PostgreSQL的uECC绑定,椭圆曲线加解密函数包 | ||||
pg_idkit | pg_idkit |
postgresql-$v-pg-idkit |
PIGSTY | 0.2.4 | FUNC |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
生成各式各样的唯一标识符:UUIDv6, ULID, KSUID | ||||
pg_uuidv7 | pg_uuidv7 |
postgresql-$v-pg-uuidv7 |
PIGSTY | 1.6.0 | FUNC |
MPLv2 | 17 ,16 ,15 ,14 ,13 |
UUIDv7 支持 | ||||
permuteseq | permuteseq |
postgresql-$v-permuteseq |
PIGSTY | 1.2.2 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
伪随机数ID置换生成器 | ||||
pg_hashids | pg_hashids |
postgresql-$v-pg-hashids |
PIGSTY | 1.3 | FUNC |
MIT | 17 ,16 ,15 ,14 ,13 |
加盐将整型ID转为短字符串ID | ||||
sequential_uuids | sequential_uuids |
postgresql-$v-sequential-uuids |
PIGSTY | 1.0.3 | FUNC |
MIT | 17 ,16 ,15 ,14 ,13 |
生成连续生成的UUID | ||||
topn | topn |
postgresql-$v-topn |
PIGSTY | 2.7.0 | FUNC |
AGPLv3 | 17 ,16 ,15 ,14 ,13 |
top-n JSONB 的类型 | ||||
quantile | quantile |
postgresql-$v-quantile |
PIGSTY | 1.1.8 | FUNC |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
Quantile聚合函数 | ||||
lower_quantile | lower_quantile |
postgresql-$v-lower-quantile |
PIGSTY | 1.0.3 | FUNC |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
Lower Quantile 聚合函数 | ||||
count_distinct | count_distinct |
postgresql-$v-count-distinct |
PIGSTY | 3.0.2 | FUNC |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
COUNT(DISTINCT …) 聚合的替代方案 | ||||
omnisketch | omnisketch |
postgresql-$v-omnisketch |
PIGSTY | 1.0.2 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
实现OmniSketch数据结构,实现近似摘要聚合 | ||||
ddsketch | ddsketch |
postgresql-$v-ddsketch |
PIGSTY | 1.0.1 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
实现DDSketch数据结构,实现在线的Quantile聚合 | ||||
vasco | vasco |
postgresql-$v-vasco |
PIGSTY | 0.1.0 | FUNC |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
使用MIC发现数据中隐含的关联 | ||||
xicor | pgxicor |
postgresql-$v-pgxicor |
PIGSTY | 0.1.0 | FUNC |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
在PG中计算XI相关系数 | ||||
tdigest | tdigest |
postgresql-$v-tdigest |
PGDG | 1.4.3 | FUNC |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
tdigest 聚合函数 | ||||
first_last_agg | first_last_agg |
postgresql-$v-first-last-agg |
PGDG | 0.1.4 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
first() 与 last() 聚合函数 | ||||
extra_window_functions | extra_window_functions |
postgresql-$v-extra-window-functions |
PGDG | 1.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
额外的窗口函数 | ||||
floatvec | floatvec |
postgresql-$v-floatvec |
PIGSTY | 1.1.1 | FUNC |
MIT | 17 ,16 ,15 ,14 ,13 |
数组类型数学运算扩展 | ||||
aggs_for_vecs | aggs_for_vecs |
postgresql-$v-aggs-for-vecs |
PIGSTY | 1.3.2 | FUNC |
MIT | 17 ,16 ,15 ,14 ,13 |
针对数组类型的聚合函数集合扩展 | ||||
aggs_for_arrays | aggs_for_arrays |
postgresql-$v-aggs-for-arrays |
PIGSTY | 1.3.3 | FUNC |
MIT | 17 ,16 ,15 ,14 ,13 |
计算数组聚合统计值的函数包 | ||||
arraymath | pg_arraymath |
postgresql-$v-pg-arraymath |
PIGSTY | 1.1 | FUNC |
MIT | 17 ,16 ,15 ,14 ,13 |
数组逐元素数学运算符包 | ||||
pg_math | pg_math |
postgresql-$v-pg-math |
PIGSTY | 1.0 | FUNC |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
使用GSL库的数学统计函数 | ||||
random | pg_random |
postgresql-$v-random |
PIGSTY | 2.0.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
随机数生成器 | ||||
base36 | pg_base36 |
postgresql-$v-base36 |
PIGSTY | 1.0.0 | FUNC |
MIT | 17 ,16 ,15 ,14 ,13 |
Base36编码解码扩展 | ||||
base62 | pg_base62 |
postgresql-$v-base62 |
PIGSTY | 0.0.1 | FUNC |
MIT | 17 ,16 ,15 ,14 ,13 |
Base62编码解码扩展 | ||||
pg_base58 | pg_base58 |
postgresql-$v-pg-base58 |
PIGSTY | 0.0.1 | FUNC |
MIT | 17 ,16 ,15 ,14 ,13 |
Base58 编码/解码函数 | ||||
financial | pg_financial |
postgresql-$v-pg-financial |
PIGSTY | 1.0.1 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
金融领域聚合函数 | ||||
refint | refint |
postgresql-$v |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
实现引用完整性的函数 | ||||
autoinc | autoinc |
postgresql-$v |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于自动递增字段的函数 | ||||
insert_username | insert_username |
postgresql-$v |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于跟踪谁更改了表的函数 | ||||
moddatetime | moddatetime |
postgresql-$v |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
跟踪最后修改时间 | ||||
tsm_system_time | tsm_system_time |
postgresql-$v |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
接受毫秒数限制的 TABLESAMPLE 方法 | ||||
dict_xsyn | dict_xsyn |
postgresql-$v |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于扩展同义词处理的文本搜索字典模板 | ||||
tsm_system_rows | tsm_system_rows |
postgresql-$v |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
接受行数限制的 TABLESAMPLE 方法 | ||||
tcn | tcn |
postgresql-$v |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用触发器通知变更 | ||||
uuid-ossp | uuid-ossp |
postgresql-$v |
CONTRIB | 1.1 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
生成通用唯一标识符(UUIDs) | ||||
btree_gist | btree_gist |
postgresql-$v |
CONTRIB | 1.7 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用GiST索引常见数据类型 | ||||
btree_gin | btree_gin |
postgresql-$v |
CONTRIB | 1.3 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用GIN索引常见数据类型 | ||||
intarray | intarray |
postgresql-$v |
CONTRIB | 1.5 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
1维整数数组的额外函数、运算符和索引支持 | ||||
intagg | intagg |
postgresql-$v |
CONTRIB | 1.1 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
整数聚合器和枚举器(过时) | ||||
dict_int | dict_int |
postgresql-$v |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于整数的文本搜索字典模板 | ||||
unaccent | unaccent |
postgresql-$v |
CONTRIB | 1.1 | FUNC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
删除重音的文本搜索字典 | ||||
pg_repack | pg_repack |
postgresql-$v-repack |
PGDG | 1.5.2 | ADMIN |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
在线垃圾清理与表膨胀治理 | ||||
pg_squeeze | pg_squeeze |
postgresql-$v-squeeze |
PGDG | 1.8.0 | ADMIN |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
从关系中删除未使用空间 | ||||
pg_dirtyread | pg_dirtyread |
postgresql-$v-dirtyread |
PGDG | 2.7 | ADMIN |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
从表中读取尚未垃圾回收的行 | ||||
pgfincore | pgfincore |
postgresql-$v-pgfincore |
PGDG | 1.3.1 | ADMIN |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
检查和管理操作系统缓冲区缓存 | ||||
pg_cooldown | pg_cooldown |
postgresql-$v-pg-cooldown |
PIGSTY | 0.1 | ADMIN |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
从缓冲区中移除特定关系的页面 | ||||
ddlx | pg_ddlx |
postgresql-$v-ddlx |
PIGSTY | 0.29 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
提取数据库对象的DDL | ||||
prioritize | pg_prioritize |
postgresql-$v-prioritize |
PGDG | 1.0.4 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
获取和设置 PostgreSQL 后端的优先级 | ||||
pg_checksums | pg_checksums |
postgresql-$v-pg-checksums |
PGDG | 1.2 | ADMIN |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
在离线模式下激活/启用/禁用数据库集群的校验和功能 | ||||
pg_readonly | pg_readonly |
postgresql-$v-pg-readonly |
PGDG | 1.0.3 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
将集群设置为只读 | ||||
pg_upless | pg_upless |
postgresql-$v-pg-upless |
PIGSTY | 0.0.3 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
检测表上的无用UPDATE | ||||
pg_permissions | pg_permissions |
postgresql-$v-pg-permissions |
PIGSTY | 1.3 | ADMIN |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
查看对象权限并将其与期望状态进行比较 | ||||
pgautofailover | pgautofailover |
postgresql-$v-auto-failover |
PGDG | 2.1 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PG 自动故障迁移 | ||||
pg_catcheck | pg_catcheck |
postgresql-$v-pg-catcheck |
PGDG | 1.6.0 | ADMIN |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
用于诊断系统目录是否损坏的工具 | ||||
pre_prepare | preprepare |
postgresql-$v-preprepare |
PGDG | 0.9 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在服务端预先准备好PreparedStatement备用 | ||||
pgcozy | pgcozy |
postgresql-$v-pgcozy |
PIGSTY | 1.0 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
根据先前的pg_buffercache快照预热内存缓冲区 | ||||
pg_orphaned | pg_orphaned |
postgresql-$v-pg-orphaned |
PIGSTY | 1.0 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
处理孤儿文件的扩展插件 | ||||
pg_crash | pg_crash |
postgresql-$v-pg-crash |
PIGSTY | 1.0 | ADMIN |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
向数据库进程随机发送信号模拟故障 | ||||
pg_cheat_funcs | pg_cheat_funcs |
postgresql-$v-pg-cheat-funcs |
PIGSTY | 1.0 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
一些超级实用的作弊函数 | ||||
fio | pg_fio |
postgresql-$v-pg-fio |
PIGSTY | 1.0 | ADMIN |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
PostgreSQL文件IO函数包 | ||||
pg_savior | pg_savior |
postgresql-$v-pg-savior |
PIGSTY | 0.0.1 | ADMIN |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
阻止不带条件的全表更新以避免意外事故 | ||||
safeupdate | safeupdate |
postgresql-$v-pg-safeupdate |
PGDG | 1.5 | ADMIN |
ISC | 17 ,16 ,15 ,14 ,13 |
强制在 UPDATE 和 DELETE 时提供 Where 条件 | ||||
pg_drop_events | pg_drop_events |
postgresql-$v-pg-drop-events |
PIGSTY | 0.1.0 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
记录删表删列删视图的事务号,辅助PITR确定时间点 | ||||
table_log | table_log |
postgresql-$v-tablelog |
PGDG | 0.6.4 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
记录某张表的修改日志并做表/行级时间点恢复 | ||||
pgagent | pgagent |
pgagent |
PGDG | 4.2.3 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PostgreSQL任务调度工具,与PGADMIN配合使用 | ||||
pg_prewarm | pg_prewarm |
postgresql-$v |
CONTRIB | 1.2 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
预热关系数据 | ||||
pgpool_adm | pgpool |
postgresql-$v-pgpool2 |
PGDG | 4.6.0 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PGPool 管理函数 | ||||
pgpool_recovery | pgpool |
postgresql-$v-pgpool2 |
PGDG | 4.6.0 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PGPool辅助扩展,从v4.3提供的恢复函数 | ||||
pgpool_regclass | pgpool |
postgresql-$v-pgpool2 |
PGDG | 4.6.0 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PGPool辅助扩展,RegClass替代 | ||||
lo | lo |
postgresql-$v |
CONTRIB | 1.1 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
大对象维护 | ||||
basic_archive | basic_archive |
postgresql-$v |
CONTRIB | - | ADMIN |
PostgreSQL | 17 ,16 ,15 |
归档模块样例 | ||||
basebackup_to_shell | basebackup_to_shell |
postgresql-$v |
CONTRIB | - | ADMIN |
PostgreSQL | 17 ,16 ,15 |
添加一种备份到Shell终端到基础备份方式 | ||||
old_snapshot | old_snapshot |
postgresql-$v |
CONTRIB | 1.0 | ADMIN |
PostgreSQL | 16 ,15 ,14 |
支持 old_snapshot_threshold 的实用程序 | ||||
adminpack | adminpack |
postgresql-$v |
CONTRIB | 2.1 | ADMIN |
PostgreSQL | 16 ,15 ,14 ,13 |
PostgreSQL 管理函数集合 | ||||
amcheck | amcheck |
postgresql-$v |
CONTRIB | 1.4 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
校验关系完整性 | ||||
pg_surgery | pg_surgery |
postgresql-$v |
CONTRIB | 1.0 | ADMIN |
PostgreSQL | 17 ,16 ,15 ,14 |
对损坏的关系进行手术 | ||||
pg_profile | pg_profile |
postgresql-$v-pg-profile |
PIGSTY | 4.8 | STAT |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
PostgreSQL 数据库负载记录与AWR报表工具 | ||||
pg_tracing | pg_tracing |
postgresql-$v-pg-tracing |
PIGSTY | 0.1.2 | STAT |
MIT | 17 ,16 ,15 |
PostgreSQL分布式Tracing | ||||
pg_show_plans | pg_show_plans |
postgresql-$v-show-plans |
PGDG | 2.1.2 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
打印所有当前正在运行查询的执行计划 | ||||
pg_stat_kcache | pg_stat_kcache |
postgresql-$v-pg-stat-kcache |
PGDG | 2.3.0 | STAT |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
内核统计信息收集 | ||||
pg_stat_monitor | pg_stat_monitor |
postgresql-$v-pg-stat-monitor |
PIGSTY | 2.1.1 | STAT |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
提供查询聚合统计、客户端信息、执行计划详细信息和直方图 | ||||
pg_qualstats | pg_qualstats |
postgresql-$v-pg-qualstats |
PGDG | 2.1.1 | STAT |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
收集有关 quals 的统计信息的扩展 | ||||
pg_store_plans | pg_store_plans |
postgresql-$v-pg-store-plan |
PIGSTY | 1.8 | STAT |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
跟踪所有执行的 SQL 语句的计划统计信息 | ||||
pg_track_settings | pg_track_settings |
postgresql-$v-pg-track-settings |
PGDG | 2.1.2 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
跟踪设置更改 | ||||
pg_wait_sampling | pg_wait_sampling |
postgresql-$v-pg-wait-sampling |
PGDG | 1.1.8 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
基于采样的等待事件统计 | ||||
system_stats | system_stats |
postgresql-$v-system-stats |
PIGSTY | 3.2 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PostgreSQL 的系统统计函数 | ||||
meta | pg_meta |
postgresql-$v-pg-meta |
PIGSTY | 0.4.0 | STAT |
BSD 2 | 17 ,16 ,15 ,14 ,13 |
标准化,更友好的PostgreSQL系统目录视图 | ||||
pgnodemx | pgnodemx |
postgresql-$v-pgnodemx |
PIGSTY | 1.7 | STAT |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
使用SQL查询获取操作系统指标 | ||||
pg_proctab | pgnodemx |
postgresql-$v-pgnodemx |
PIGSTY | 1.7 | STAT |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
通过SQL接口访问操作系统进程表 | ||||
pg_sqlog | pg_sqlog |
postgresql-$v-pg-sqlog |
PIGSTY | 1.6 | STAT |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
提供访问PostgreSQL日志的SQL接口 | ||||
bgw_replstatus | bgw_replstatus |
postgresql-$v-bgw-replstatus |
PGDG | 1.0.7 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于汇报本机主从状态的后台工作进程 | ||||
pgmeminfo | pgmeminfo |
postgresql-$v-pgmeminfo |
PIGSTY | 1.0.0 | STAT |
MIT | 17 ,16 ,15 ,14 ,13 |
显示内存使用情况 | ||||
toastinfo | toastinfo |
postgresql-$v-toastinfo |
PIGSTY | 1.5 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
显示TOAST字段的详细信息 | ||||
explain_ui | pg_explain_ui |
postgresql-$v-pg-explain-ui |
PIGSTY | 0.0.1 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
快速跳转至PEV查阅可视化执行计划 | ||||
pg_relusage | pg_relusage |
postgresql-$v-pg-relusage |
PIGSTY | 0.0.1 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
打印查询引用的表与列 | ||||
pagevis | pagevis |
postgresql-$v-pagevis |
PIGSTY | 0.1 | STAT |
MIT | 17 ,16 ,15 ,14 ,13 |
使用ASCII字符可视化数据库物理页面布局 | ||||
powa | powa |
postgresql-$v-powa |
PGDG | 5.0.1 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PostgreSQL 工作负载分析器-核心 | ||||
pageinspect | pageinspect |
postgresql-$v |
CONTRIB | 1.12 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
检查数据库页面二进制内容 | ||||
pgrowlocks | pgrowlocks |
postgresql-$v |
CONTRIB | 1.2 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
显示行级锁信息 | ||||
sslinfo | sslinfo |
postgresql-$v |
CONTRIB | 1.2 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
关于 SSL 证书的信息 | ||||
pg_buffercache | pg_buffercache |
postgresql-$v |
CONTRIB | 1.5 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
检查共享缓冲区缓存 | ||||
pg_walinspect | pg_walinspect |
postgresql-$v |
CONTRIB | 1.1 | STAT |
PostgreSQL | 17 ,16 ,15 |
用于检查 PostgreSQL WAL 日志内容的函数 | ||||
pg_freespacemap | pg_freespacemap |
postgresql-$v |
CONTRIB | 1.2 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
检查自由空间映射的内容(FSM) | ||||
pg_visibility | pg_visibility |
postgresql-$v |
CONTRIB | 1.2 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
检查可见性图(VM)和页面级可见性信息 | ||||
pgstattuple | pgstattuple |
postgresql-$v |
CONTRIB | 1.5 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
显示元组级统计信息 | ||||
auto_explain | auto_explain |
postgresql-$v |
CONTRIB | - | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
提供一种自动记录执行计划的手段 | ||||
pg_stat_statements | pg_stat_statements |
postgresql-$v |
CONTRIB | 1.11 | STAT |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
跟踪所有执行的 SQL 语句的计划和执行统计信息 | ||||
passwordcheck_cracklib | passwordcheck |
postgresql-$v-passwordcheck-cracklib |
PIGSTY | 3.1.0 | SEC |
LGPLv2 | 17 ,16 ,15 ,14 ,13 |
使用cracklib加固PG用户密码 | ||||
supautils | supautils |
postgresql-$v-supautils |
PIGSTY | 2.6.0 | SEC |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
用于在云环境中确保数据库集群的安全 | ||||
pgsodium | pgsodium |
postgresql-$v-pgsodium |
PIGSTY | 3.1.9 | SEC |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
表数据加密存储 TDE | ||||
supabase_vault | pg_vault |
postgresql-$v-vault |
PIGSTY | 0.3.1 | SEC |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
在 Vault 中存储加密凭证的扩展 (supabase) | ||||
pg_session_jwt | pg_session_jwt |
postgresql-$v-pg-session-jwt |
PIGSTY | 0.2.0 | SEC |
Apache-2.0 | 17 ,16 ,15 ,14 |
使用JWT进行会话认证 | ||||
anon | pg_anon |
postgresql-$v-pg-anon |
PIGSTY | 2.0.0 | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
数据匿名化处理工具 | ||||
pg_tde | pg_tde |
postgresql-$v-pg-tde |
PIGSTY | 1.0 | SEC |
MIT | 16 |
试点性质的加密存储引擎 | ||||
pgsmcrypto | pgsmcrypto |
postgresql-$v-pgsmcrypto |
PIGSTY | 0.1.0 | SEC |
MIT | 17 ,16 ,15 ,14 ,13 |
为PostgreSQL提供商密算法支持:SM2,SM3,SM4 | ||||
pgaudit | pgaudit |
postgresql-$v-pgaudit |
PGDG | 17.1 | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
提供审计功能 | ||||
pgauditlogtofile | pgauditlogtofile |
postgresql-$v-pgauditlogtofile |
PGDG | 1.6.4 | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
pgAudit 子扩展,将审计日志写入单独的文件中 | ||||
pg_auth_mon | pg_auth_mon |
postgresql-$v-pg-auth-mon |
PIGSTY | 3.0 | SEC |
MIT | 17 ,16 ,15 ,14 ,13 |
监控每个用户的连接尝试 | ||||
credcheck | credcheck |
postgresql-$v-credcheck |
PGDG | 3.0 | SEC |
MIT | 17 ,16 ,15 ,14 ,13 |
明文凭证检查器 | ||||
pgcryptokey | pgcryptokey |
postgresql-$v-pgcryptokey |
PIGSTY | 0.85 | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PG密钥管理 | ||||
pg_jobmon | pg_jobmon |
postgresql-$v-pg-jobmon |
PIGSTY | 1.4.1 | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
记录和监控函数 | ||||
logerrors | logerrors |
postgresql-$v-logerrors |
PIGSTY | 2.1.3 | SEC |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
用于收集日志文件中消息统计信息的函数 | ||||
login_hook | login_hook |
postgresql-$v-login-hook |
PIGSTY | 1.6 | SEC |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
在用户登陆时执行login_hook.login()函数 | ||||
set_user | set_user |
postgresql-$v-set-user |
PGDG | 4.1.0 | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
增加了日志记录的 SET ROLE | ||||
pg_snakeoil | pg_snakeoil |
postgresql-$v-snakeoil |
PGDG | 1.4 | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PostgreSQL动态链接库反病毒功能 | ||||
pgextwlist | pgextwlist |
postgresql-$v-pgextwlist |
PIGSTY | 1.17 | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PostgreSQL扩展白名单功能 | ||||
pg_auditor | pg_auditor |
postgresql-$v-pg-auditor |
PIGSTY | 0.2 | SEC |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
审计数据变更并提供闪回能力 | ||||
sslutils | sslutils |
postgresql-$v-sslutils |
PIGSTY | 1.4 | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
使用SQL管理SSL证书 | ||||
noset | pg_noset |
postgresql-$v-noset |
PIGSTY | 0.3.0 | SEC |
AGPLv3 | 17 ,16 ,15 ,14 ,13 |
阻止非超级用户使用SET/RESET设置变量 | ||||
sepgsql | sepgsql |
postgresql-$v |
CONTRIB | - | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
基于SELinux标签的强制访问控制 | ||||
auth_delay | auth_delay |
postgresql-$v |
CONTRIB | - | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在返回认证失败前暂停一会,避免爆破 | ||||
pgcrypto | pgcrypto |
postgresql-$v |
CONTRIB | 1.3 | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
实用加解密函数 | ||||
passwordcheck | passwordcheck |
postgresql-$v |
CONTRIB | - | SEC |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于强制拒绝修改弱密码的扩展 | ||||
wrappers | wrappers |
postgresql-$v-wrappers |
PIGSTY | 0.4.5 | FDW |
Apache-2.0 | 17 ,16 ,15 ,14 |
Supabase提供的外部数据源包装器捆绑包 | ||||
pgspider_ext | pgspider_ext |
postgresql-$v-pgspider-ext |
PIGSTY | 1.3.0 | FDW |
PostgreSQL | 17 ,16 ,15 |
使用多种FDW访问远程数据库服务器 | ||||
mysql_fdw | mysql_fdw |
postgresql-$v-mysql-fdw |
PGDG | 2.9.2 | FDW |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
MySQL外部数据包装器 | ||||
oracle_fdw | oracle_fdw |
postgresql-$v-oracle-fdw |
PGDG | 2.7.0 | FDW |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
提供对Oracle的外部数据源包装器 | ||||
tds_fdw | tds_fdw |
postgresql-$v-tds-fdw |
PGDG | 2.0.4 | FDW |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
TDS 数据库(Sybase/SQL Server)外部数据包装器 | ||||
sqlite_fdw | sqlite_fdw |
postgresql-$v-sqlite-fdw |
PGDG | 2.5.0 | FDW |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
SQLite 外部数据包装器 | ||||
redis_fdw | redis_fdw |
postgresql-$v-redis-fdw |
PIGSTY | 1.0 | FDW |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
查询外部Redis数据源 | ||||
redis | pg_redis_pubsub |
postgresql-$v-pg-redis-pubsub |
PIGSTY | 0.0.1 | FDW |
MIT | 17 ,16 ,15 ,14 ,13 |
从PG向Redis发送Pub/Sub消息 | ||||
kafka_fdw | kafka_fdw |
postgresql-$v-kafka-fdw |
PIGSTY | 0.0.3 | FDW |
PostgreSQL | 16 ,15 ,14 ,13 |
Kafka外部数据源包装器 | ||||
firebird_fdw | firebird_fdw |
postgresql-$v-firebird-fdw |
PIGSTY | 1.4.0 | FDW |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
Firebird外部数据源包装器 | ||||
aws_s3 | aws_s3 |
postgresql-$v-aws-s3 |
PIGSTY | 0.0.1 | FDW |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
从S3导入导出数据的外部数据源包装器 | ||||
log_fdw | log_fdw |
postgresql-$v-log-fdw |
PIGSTY | 1.4 | FDW |
Apache-2.0 | 17 ,16 ,15 ,14 |
访问PostgreSQL日志文件的FDW | ||||
sparql | pgsparql |
postgresql-$v-pgsparql |
PIGSTY | 1.0 | UTIL |
Apache-2.0 | 17 ,16 ,15 ,14 ,13 |
使用SQL查询SPARQL数据源 | ||||
dblink | dblink |
postgresql-$v |
CONTRIB | 1.2 | FDW |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
从数据库内连接到其他 PostgreSQL 数据库 | ||||
file_fdw | file_fdw |
postgresql-$v |
CONTRIB | 1.0 | FDW |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
访问外部文件的外部数据包装器 | ||||
postgres_fdw | postgres_fdw |
postgresql-$v |
CONTRIB | 1.1 | FDW |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于远程 PostgreSQL 服务器的外部数据包装器 | ||||
documentdb | documentdb |
postgresql-$v-documentdb |
PIGSTY | 0.102 | SIM |
MIT | 17 ,16 ,15 |
微软DocumentDB的API层 | ||||
documentdb_core | documentdb |
postgresql-$v-documentdb |
PIGSTY | 0.102 | SIM |
MIT | 17 ,16 ,15 |
微软DocumentDB的核心API层实现 | ||||
documentdb_distributed | documentdb |
postgresql-$v-documentdb |
PIGSTY | 0.102 | SIM |
MIT | 17 ,16 ,15 |
DocumentDB多节点模式的API层 | ||||
orafce | orafce |
postgresql-$v-orafce |
PGDG | 4.14.2 | SIM |
BSD 0 | 17 ,16 ,15 ,14 ,13 |
模拟 Oracle RDBMS 的一部分函数和包的函数和运算符 | ||||
pgtt | pgtt |
postgresql-$v-pgtt |
PGDG | 4.0 | SIM |
ISC | 17 ,16 ,15 ,14 ,13 |
类似Oracle的全局临时表功能 | ||||
session_variable | session_variable |
postgresql-$v-session-variable |
PIGSTY | 3.4 | SIM |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
Oracle兼容的会话变量/常量操作函数 | ||||
pg_statement_rollback | pg_statement_rollback |
postgresql-$v-pg-statement-rollback |
PIGSTY | 1.4 | SIM |
ISC | 17 ,16 ,15 ,14 ,13 |
在服务端提供类似Oracle/DB2的语句级回滚能力 | ||||
babelfishpg_common | babelfishpg_common |
babelfishpg-common |
WILTON | 3.3.3 | SIM |
Apache-2.0 | 15 |
SQL Server 数据类型兼容扩展 | ||||
babelfishpg_tsql | babelfishpg_tsql |
babelfishpg-tsql |
WILTON | 3.3.1 | SIM |
Apache-2.0 | 15 |
SQL Server SQL语法兼容性扩展 | ||||
babelfishpg_tds | babelfishpg_tds |
babelfishpg-tds |
WILTON | 1.0.0 | SIM |
Apache-2.0 | 15 |
SQL Server TDS线缆协议兼容扩展 | ||||
babelfishpg_money | babelfishpg_money |
babelfishpg-money |
WILTON | 1.1.0 | SIM |
Apache-2.0 | 15 |
SQL Server 货币数据类型兼容扩展 | ||||
pgmemcache | pgmemcache |
postgresql-$v-pgmemcache |
PGDG | 2.3.0 | SIM |
MIT | 17 ,16 ,15 ,14 ,13 |
为PG提供memcached兼容接口 | ||||
pglogical | pglogical |
postgresql-$v-pglogical |
PGDG | 2.4.5 | ETL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PostgreSQL逻辑复制:三方扩展实现 | ||||
pglogical_origin | pglogical |
postgresql-$v-pglogical |
PGDG | 2.4.5 | ETL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
用于从 Postgres 9.4 升级时的兼容性虚拟扩展 | ||||
pglogical_ticker | pglogical_ticker |
postgresql-$v-pglogical-ticker |
PGDG | 1.4.1 | ETL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
pglogical复制延迟以秒计的精确视图 | ||||
pgl_ddl_deploy | pgl_ddl_deploy |
postgresql-$v-pgl-ddl-deploy |
PGDG | 2.2.1 | ETL |
MIT | 17 ,16 ,15 ,14 ,13 |
使用 pglogical 执行自动 DDL 部署 | ||||
pg_failover_slots | pg_failover_slots |
postgresql-$v-pg-failover-slots |
PIGSTY | 1.1.0 | ETL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在Failover过程中保留复制槽 | ||||
db_migrator | db_migrator |
postgresql-$v-db-migrator |
PIGSTY | 1.0.0 | ETL |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
使用FDW从其他DBMS迁移到PostgreSQL | ||||
wal2json | wal2json |
postgresql-$v-wal2json |
PGDG | 2.6 | ETL |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
用逻辑解码捕获 JSON 格式的 CDC 变更 | ||||
wal2mongo | wal2mongo |
postgresql-$v-wal2mongo |
PIGSTY | 1.0.7 | ETL |
Apache-2.0 | 16 ,15 ,14 ,13 |
使用逻辑解码捕获MongoDB JSON格式的CDC变更 | ||||
decoderbufs | decoderbufs |
postgresql-$v-decoderbufs |
PGDG | 3.0.7 | ETL |
MIT | 17 ,16 ,15 ,14 ,13 |
将WAL逻辑解码为ProtocolBuffer协议的消息 | ||||
decoder_raw | decoder_raw |
postgresql-$v-decoder-raw |
PIGSTY | 1.0 | ETL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
逻辑复制解码输出插件:RAW SQL格式 | ||||
pgoutput | pgoutput |
postgresql-$v |
CONTRIB | - | ETL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
PG内置的逻辑解码输出插件 | ||||
test_decoding | test_decoding |
postgresql-$v |
CONTRIB | - | ETL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
基于SQL的WAL逻辑解码样例 | ||||
mimeo | mimeo |
postgresql-$v-mimeo |
PGDG | 1.5.1 | ETL |
PostgreSQL | 17 ,16 ,15 ,14 ,13 |
在PostgreSQL实例间进行表级复制 | ||||
repmgr | repmgr |
postgresql-$v-repmgr |
PGDG | 5.5.0 | ETL |
GPLv3 | 17 ,16 ,15 ,14 ,13 |
PostgreSQL复制管理组件 | ||||
pg_fact_loader | pg_fact_loader |
postgresql-$v-pg-fact-loader |
PGDG | 2.0.1 | ETL |
MIT | 17 ,16 ,15 ,14 ,13 |
在 Postgres 中构建事实表 | ||||
pg_bulkload | pg_bulkload |
postgresql-$v-pg-bulkload |
PIGSTY | 3.1.22 | ETL |
BSD 3 | 17 ,16 ,15 ,14 ,13 |
向 PostgreSQL 中高速加载数据 |
PostgreSQL 自带了 69 个 Contrib 扩展,全部来自 Contrib 模块,使用 PostgreSQL 开源许可证。
扩展名(详情) | 标准名(官网) | 版本 | 类目 | PG大版本支持 | LOAD |
DDL |
DBSU |
RELOC |
简介 |
---|---|---|---|---|---|---|---|---|---|
earthdistance | earthdistance |
1.2 | GIS |
17 ,16 ,15 ,14 ,13 |
计算地球表面上的大圆距离 | ||||
fuzzystrmatch | fuzzystrmatch |
1.2 | FTS |
17 ,16 ,15 ,14 ,13 |
确定字符串之间的相似性和距离 | ||||
pg_trgm | pg_trgm |
1.6 | FTS |
17 ,16 ,15 ,14 ,13 |
文本相似度测量函数与模糊检索 | ||||
tablefunc | tablefunc |
1.0 | OLAP |
17 ,16 ,15 ,14 ,13 |
交叉表函数 | ||||
bloom | bloom |
1.0 | FEAT |
17 ,16 ,15 ,14 ,13 |
bloom 索引-基于指纹的索引 | ||||
pltcl | pltcl |
1.0 | LANG |
17 ,16 ,15 ,14 ,13 |
PL/TCL 存储过程语言 | ||||
pltclu | pltcl |
1.0 | LANG |
17 ,16 ,15 ,14 ,13 |
PL/TCL 存储过程语言(未受信/高权限) | ||||
plperl | plperl |
1.0 | LANG |
17 ,16 ,15 ,14 ,13 |
PL/Perl 存储过程语言 | ||||
bool_plperl | plperl |
1.0 | LANG |
17 ,16 ,15 ,14 ,13 |
在 bool 和 plperl 之间转换 | ||||
hstore_plperl | plperl |
1.0 | LANG |
17 ,16 ,15 ,14 ,13 |
在 hstore 和 plperl 之间转换适配类型 | ||||
jsonb_plperl | plperl |
1.0 | LANG |
17 ,16 ,15 ,14 ,13 |
在 jsonb 和 plperl 之间转换 | ||||
plperlu | plperlu |
1.0 | LANG |
17 ,16 ,15 ,14 ,13 |
PL/PerlU 存储过程语言(未受信/高权限) | ||||
bool_plperlu | plperlu |
1.0 | LANG |
17 ,16 ,15 ,14 ,13 |
在 bool 和 plperlu 之间转换 | ||||
jsonb_plperlu | plperlu |
1.0 | LANG |
17 ,16 ,15 ,14 ,13 |
在 jsonb 和 plperlu 之间转换 | ||||
hstore_plperlu | plperlu |
1.0 | LANG |
17 ,16 ,15 ,14 ,13 |
在 hstore 和 plperlu 之间转换适配类型 | ||||
plpgsql | plpgsql |
1.0 | LANG |
17 ,16 ,15 ,14 ,13 |
PL/pgSQL 程序设计语言 | ||||
plpython3u | plpython3u |
1.0 | LANG |
17 ,16 ,15 ,14 ,13 |
PL/Python3 存储过程语言(未受信/高权限) | ||||
jsonb_plpython3u | plpython3u |
1.0 | LANG |
17 ,16 ,15 ,14 ,13 |
在 jsonb 和 plpython3u 之间转换 | ||||
ltree_plpython3u | plpython3u |
1.0 | LANG |
17 ,16 ,15 ,14 ,13 |
在 ltree 和 plpython3u 之间转换 | ||||
hstore_plpython3u | plpython3u |
1.0 | LANG |
17 ,16 ,15 ,14 ,13 |
在 hstore 和 plpython3u 之间转换 | ||||
isn | isn |
1.2 | TYPE |
17 ,16 ,15 ,14 ,13 |
用于国际产品编号标准的数据类型 | ||||
seg | seg |
1.4 | TYPE |
17 ,16 ,15 ,14 ,13 |
表示线段或浮点间隔的数据类型 | ||||
cube | cube |
1.5 | TYPE |
17 ,16 ,15 ,14 ,13 |
用于存储多维立方体的数据类型 | ||||
ltree | ltree |
1.3 | TYPE |
17 ,16 ,15 ,14 ,13 |
用于表示分层树状结构的数据类型 | ||||
hstore | hstore |
1.8 | TYPE |
17 ,16 ,15 ,14 ,13 |
用于存储(键,值)对集合的数据类型 | ||||
citext | citext |
1.6 | TYPE |
17 ,16 ,15 ,14 ,13 |
提供大小写不敏感的字符串类型 | ||||
xml2 | xml2 |
1.1 | TYPE |
17 ,16 ,15 ,14 ,13 |
XPath 查询和 XSLT | ||||
refint | refint |
1.0 | FUNC |
17 ,16 ,15 ,14 ,13 |
实现引用完整性的函数 | ||||
autoinc | autoinc |
1.0 | FUNC |
17 ,16 ,15 ,14 ,13 |
用于自动递增字段的函数 | ||||
insert_username | insert_username |
1.0 | FUNC |
17 ,16 ,15 ,14 ,13 |
用于跟踪谁更改了表的函数 | ||||
moddatetime | moddatetime |
1.0 | FUNC |
17 ,16 ,15 ,14 ,13 |
跟踪最后修改时间 | ||||
tsm_system_time | tsm_system_time |
1.0 | FUNC |
17 ,16 ,15 ,14 ,13 |
接受毫秒数限制的 TABLESAMPLE 方法 | ||||
dict_xsyn | dict_xsyn |
1.0 | FUNC |
17 ,16 ,15 ,14 ,13 |
用于扩展同义词处理的文本搜索字典模板 | ||||
tsm_system_rows | tsm_system_rows |
1.0 | FUNC |
17 ,16 ,15 ,14 ,13 |
接受行数限制的 TABLESAMPLE 方法 | ||||
tcn | tcn |
1.0 | FUNC |
17 ,16 ,15 ,14 ,13 |
用触发器通知变更 | ||||
uuid-ossp | uuid-ossp |
1.1 | FUNC |
17 ,16 ,15 ,14 ,13 |
生成通用唯一标识符(UUIDs) | ||||
btree_gist | btree_gist |
1.7 | FUNC |
17 ,16 ,15 ,14 ,13 |
用GiST索引常见数据类型 | ||||
btree_gin | btree_gin |
1.3 | FUNC |
17 ,16 ,15 ,14 ,13 |
用GIN索引常见数据类型 | ||||
intarray | intarray |
1.5 | FUNC |
17 ,16 ,15 ,14 ,13 |
1维整数数组的额外函数、运算符和索引支持 | ||||
intagg | intagg |
1.1 | FUNC |
17 ,16 ,15 ,14 ,13 |
整数聚合器和枚举器(过时) | ||||
dict_int | dict_int |
1.0 | FUNC |
17 ,16 ,15 ,14 ,13 |
用于整数的文本搜索字典模板 | ||||
unaccent | unaccent |
1.1 | FUNC |
17 ,16 ,15 ,14 ,13 |
删除重音的文本搜索字典 | ||||
pg_prewarm | pg_prewarm |
1.2 | ADMIN |
17 ,16 ,15 ,14 ,13 |
预热关系数据 | ||||
lo | lo |
1.1 | ADMIN |
17 ,16 ,15 ,14 ,13 |
大对象维护 | ||||
basic_archive | basic_archive |
- | ADMIN |
17 ,16 ,15 |
归档模块样例 | ||||
basebackup_to_shell | basebackup_to_shell |
- | ADMIN |
17 ,16 ,15 |
添加一种备份到Shell终端到基础备份方式 | ||||
old_snapshot | old_snapshot |
1.0 | ADMIN |
16 ,15 ,14 |
支持 old_snapshot_threshold 的实用程序 | ||||
adminpack | adminpack |
2.1 | ADMIN |
16 ,15 ,14 ,13 |
PostgreSQL 管理函数集合 | ||||
amcheck | amcheck |
1.4 | ADMIN |
17 ,16 ,15 ,14 ,13 |
校验关系完整性 | ||||
pg_surgery | pg_surgery |
1.0 | ADMIN |
17 ,16 ,15 ,14 |
对损坏的关系进行手术 | ||||
pageinspect | pageinspect |
1.12 | STAT |
17 ,16 ,15 ,14 ,13 |
检查数据库页面二进制内容 | ||||
pgrowlocks | pgrowlocks |
1.2 | STAT |
17 ,16 ,15 ,14 ,13 |
显示行级锁信息 | ||||
sslinfo | sslinfo |
1.2 | STAT |
17 ,16 ,15 ,14 ,13 |
关于 SSL 证书的信息 | ||||
pg_buffercache | pg_buffercache |
1.5 | STAT |
17 ,16 ,15 ,14 ,13 |
检查共享缓冲区缓存 | ||||
pg_walinspect | pg_walinspect |
1.1 | STAT |
17 ,16 ,15 |
用于检查 PostgreSQL WAL 日志内容的函数 | ||||
pg_freespacemap | pg_freespacemap |
1.2 | STAT |
17 ,16 ,15 ,14 ,13 |
检查自由空间映射的内容(FSM) | ||||
pg_visibility | pg_visibility |
1.2 | STAT |
17 ,16 ,15 ,14 ,13 |
检查可见性图(VM)和页面级可见性信息 | ||||
pgstattuple | pgstattuple |
1.5 | STAT |
17 ,16 ,15 ,14 ,13 |
显示元组级统计信息 | ||||
auto_explain | auto_explain |
- | STAT |
17 ,16 ,15 ,14 ,13 |
提供一种自动记录执行计划的手段 | ||||
pg_stat_statements | pg_stat_statements |
1.11 | STAT |
17 ,16 ,15 ,14 ,13 |
跟踪所有执行的 SQL 语句的计划和执行统计信息 | ||||
sepgsql | sepgsql |
- | SEC |
17 ,16 ,15 ,14 ,13 |
基于SELinux标签的强制访问控制 | ||||
auth_delay | auth_delay |
- | SEC |
17 ,16 ,15 ,14 ,13 |
在返回认证失败前暂停一会,避免爆破 | ||||
pgcrypto | pgcrypto |
1.3 | SEC |
17 ,16 ,15 ,14 ,13 |
实用加解密函数 | ||||
passwordcheck | passwordcheck |
- | SEC |
17 ,16 ,15 ,14 ,13 |
用于强制拒绝修改弱密码的扩展 | ||||
dblink | dblink |
1.2 | FDW |
17 ,16 ,15 ,14 ,13 |
从数据库内连接到其他 PostgreSQL 数据库 | ||||
file_fdw | file_fdw |
1.0 | FDW |
17 ,16 ,15 ,14 ,13 |
访问外部文件的外部数据包装器 | ||||
postgres_fdw | postgres_fdw |
1.1 | FDW |
17 ,16 ,15 ,14 ,13 |
用于远程 PostgreSQL 服务器的外部数据包装器 | ||||
pgoutput | pgoutput |
- | ETL |
17 ,16 ,15 ,14 ,13 |
PG内置的逻辑解码输出插件 | ||||
test_decoding | test_decoding |
- | ETL |
17 ,16 ,15 ,14 ,13 |
基于SQL的WAL逻辑解码样例 |
每个扩展都有一些元数据属性,以下是这些属性的说明
id
扩展标识,由 Pigsty 唯一分配给每个扩展的整型标识符,用于内部排序。
name
扩展名,扩展在 PostgreSQL 扩展系统目录中的名称,用于 CREATE EXTESION
时引用。
扩展一般会带有同名的 <name>.control
, <name>*.so
,以及 <name>*.sql
文件。
alias
扩展别名,由 Pigsty 为每个逻辑扩展分配的唯一名称,通常与 扩展名 name
保持一致。
但存在一些特例,比如安装一个扩展 RPM 包如果引入多个 Extension,那么这些 Extension 会共享一个别名,例如 postgis
version
扩展默认版本,通常是扩展的最新版本。通常由定义于扩展 control
文件中的版本号决定。
在一些特殊情况下,RPM 与 Debian 中可用的扩展版本可能略微有所不同。
category
扩展分类,用于区分扩展的功能类型,默认分为16大类: gis
,time
,rag
,fts
,olap
,feat
,lang
,type
,util
, func
,admin
,stat
,sec
,fdw
,sim
,etl
等。
tags
一些标签,用于描述扩展的特性
repo
扩展的来源仓库,CONTRIB
代表这是一个 PostgreSQL 自带扩展,PGDG
代表这是一个 PGDG 第一方扩展,PIGSTY
代表这是一个 Pigsty 第三方扩展。
lang
扩展使用的编程语言,通常为 C
,也有一些 C++
或 Rust
编写的扩展。也有纯 SQL 与纯数据组成的扩展。
need_load
带有 Load
标记,意味着这个扩展使用了 PostgreSQL Hook,需要动态加载,并重启 PostgreSQL 生效。
只有少量扩展需要动态加载,大部分扩展都是静态加载的。
need_ddl
带有 DDL
标记,意味着这个扩展需要执行 DDL 语句:CREATE EXTENSION
。
绝大多数扩展都需要执行 CREATE EXTENSION
DDL 语句完成创建,但也有一些特例,例如 pg_stat_statements
,wal2json
等。
need_dbsu
安装此扩展是否需要超级用户权限?或者说,这个扩展是否被“信任” —— 只在数据库内部提供功能。
少部分扩展因为只在数据库内部提供功能,因此不需要超级用户权限就能安装,任何持有 CREATE
权限的用户都可以安装受信任的扩展。
relocatable
扩展是否可以被重定位?即是否可以被安装到其他 Schema 中?大部分扩展都是可以被重定位的,但也有一些特例,这些扩展会显式指定自己使用的扩展名。
schemas
如果扩展是可重定位的,那么它可以被安装到指定的 Schema 中,这个属性指定了扩展的默认 Schema。
PostgreSQL 默认只允许扩展使用一个 Schema,但一些扩展并不遵循这个规则,例如 citus
与 timescaledb
等。
pg_ver
扩展支持的 PostgreSQL 版本,默认只考虑支持声明周期内的版本,即 12 - 16 。
requires
此扩展依赖的其他扩展,如果有的话。一个扩展可能同时依赖多个其他扩展,这些依赖关系通常在扩展的 control
文件中的 requires
字段里声明。
安装扩展时,可以通过 CREATE EXTENSION xxx CASCADE
语句自动安装依赖的扩展。
pkg
扩展软件包(RPM/DEB)名称,这里使用 $v
来替代具体的 PostgreSQL 大版本号。
pkg_ver
扩展软件包(RPM/DEB)的版本号,通常 RPM / DEB 包的版本与扩展本身的版本(version,从系统视图中得到)是一致的。 但依然存在极个别特例,软件包的版本与扩展本身的版本是不一致,甚至是独立演进管理的。
pkg_deps
扩展软件包(RPM/DEB)的依赖,不同于扩展本身的依赖(requires
),这里是扩展 RPM/DEB 包的特殊依赖。
url
扩展的官方网站或者源代码仓库地址。
license
扩展使用的开源许可证,通常是 PostgreSQL
,MIT
,Apache
,GPL
等。
en_desc
扩展的英文描述,用于描述扩展的功能与用途。
zh_desc
扩展的中文描述,用于描述扩展的功能与用途。
comment
一些额外的注释,用于描述扩展的特性或者注意事项。
CREATE TABLE IF NOT EXISTS ext.extension
(
id INTEGER PRIMARY KEY,
name TEXT NOT NULL,
pkg TEXT NOT NULL,
alias TEXT,
category TEXT,
state TEXT,
url TEXT,
license TEXT,
tags TEXT[],
version TEXT,
repo TEXT,
lang TEXT,
contrib BOOLEAN,
lead BOOLEAN,
has_bin BOOLEAN,
has_lib BOOLEAN,
need_ddl BOOLEAN,
need_load BOOLEAN,
trusted BOOLEAN,
relocatable BOOLEAN,
schemas TEXT[],
pg_ver TEXT[],
requires TEXT[],
rpm_ver TEXT,
rpm_repo TEXT,
rpm_pkg TEXT,
rpm_pg TEXT[],
rpm_deps TEXT[],
deb_ver TEXT,
deb_repo TEXT,
deb_pkg TEXT,
deb_deps TEXT[],
deb_pg TEXT[],
bad_case TEXT[],
extra JSONB,
ctime DATE DEFAULT CURRENT_DATE,
mtime DATE DEFAULT CURRENT_DATE,
en_desc TEXT,
zh_desc TEXT,
comment TEXT
);
COMMENT ON TABLE ext.extension IS 'PostgreSQL Extension Table';
COMMENT ON COLUMN ext.extension.id IS 'Extension Identifier (integer)';
COMMENT ON COLUMN ext.extension.name IS 'Extension Name (in system catalog)';
COMMENT ON COLUMN ext.extension.pkg IS 'Normalized extension package name';
COMMENT ON COLUMN ext.extension.alias IS 'Download pkg group alias';
COMMENT ON COLUMN ext.extension.category IS 'Category of this extension';
COMMENT ON COLUMN ext.extension.state IS 'Extension State (available, deprecated, removed, not-ready)';
COMMENT ON COLUMN ext.extension.url IS 'Extension Repo URL';
COMMENT ON COLUMN ext.extension.license IS 'Extension License';
COMMENT ON COLUMN ext.extension.tags IS 'Extra tags';
COMMENT ON COLUMN ext.extension.version IS 'the latest available version of this extension';
COMMENT ON COLUMN ext.extension.lang IS 'Programming Language of this extension';
COMMENT ON COLUMN ext.extension.lead IS 'Mark the primary extension among one multi-ext package';
COMMENT ON COLUMN ext.extension.has_bin IS 'does this extension has binary utils';
COMMENT ON COLUMN ext.extension.has_lib IS 'Does the extension have shared library?';
COMMENT ON COLUMN ext.extension.need_ddl IS 'Extension need `CREATE EXTENSION` to work?';
COMMENT ON COLUMN ext.extension.need_load IS 'Require LOAD & shared_preload_libraries to work?';
COMMENT ON COLUMN ext.extension.trusted IS 'A Trusted extension does not require superuser to work';
COMMENT ON COLUMN ext.extension.relocatable IS 'Can this extension be relocated?';
COMMENT ON COLUMN ext.extension.schemas IS 'Installed Schema, if not relocatable';
COMMENT ON COLUMN ext.extension.pg_ver IS 'Supported PostgreSQL major versions';
COMMENT ON COLUMN ext.extension.requires IS 'Dependencies of this extension';
COMMENT ON COLUMN ext.extension.rpm_pkg IS 'RPM package name, major version is replace with $v';
COMMENT ON COLUMN ext.extension.deb_pkg IS 'DEB package name, major version is replace with $v';
COMMENT ON COLUMN ext.extension.en_desc IS 'English description';
COMMENT ON COLUMN ext.extension.zh_desc IS 'Chinese description';
COMMENT ON COLUMN ext.extension.comment IS 'Extra information';
如果您使用 Pigsty 来部署 PostgreSQL 并安装扩展,那么您 并不需要 关心软件仓库的问题,Pigsty 会自动为您配置好一切。 但如果您想要独立使用 Pigsty 扩展仓库(例如为您现有的 PG 部署安装 400+ 额外扩展),那么本节内容将对您有所帮助。
PostgreSQL 全球开发组(PGDG)提供了的 PGDG YUM/APT 软件仓库,可以视作 PostgreSQL 的“官方”仓库仓库。 而 Pigsty 提供了一个补充软件仓库(类似于 EPEL 之于 RHEL),针对 PostgreSQL 扩展与生态工具,提供了额外的 RPM / DEB 包,并在构建规范上与 PGDG 仓库 保持一致。
目前 Pigsty 扩展仓库支持 x86_64/aarch64
架构,包括两个子仓库:pigsty-infra
与 pigsty-pgsql
,
前者包含了 OS 大版本无关的通用基础设施组件(例如 EL 7/8/9 都能用的 go 程序 vip-manager),
后者包含了 OS 大版本相关的 PostgreSQL 扩展,具体的支持范围为:EL 8/9, Debian 12,Ubuntu 22.04/24.04,总计 10 个发行版大版本架构组合。
在支持的操作系统上,我们提供 PostgreSQL 包管理器 pig
命令行工具,提供了 Pigsty 仓库/扩展管理功能的子集,可以帮助您管理软件仓库,并安装/卸载/更新/查询扩展。
当然 Pigsty 扩展仓库也同样支持传统/标准的 YUM / APT 仓库使用方式,使用 yum/dnf/apt 进行手工管理。
对于 EL 8/9 及兼容系统,使用以下命令依次添加 Pigsty 仓库的 GPG 公钥,写入仓库定义,并更新缓存:
# 将 pigsty 的 gpg 公钥添加到你的系统钥匙链中,从而验证软件包签名
curl -fsSL https://repo.pigsty.cc/key | sudo tee /etc/pki/rpm-gpg/RPM-GPG-KEY-pigsty >/dev/null
# 向 /etc/yum.repos.d 目录中添加 Pigsty Repo 定义文件,包括两个仓库
sudo tee /etc/yum.repos.d/pigsty-cc.repo > /dev/null <<-'EOF'
[pigsty-infra]
name=Pigsty Infra for $basearch
baseurl=https://repo.pigsty.cc/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.cc/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;
# 将 pigsty 的 gpg 公钥添加到你的系统钥匙链中,从而验证软件包签名
curl -fsSL https://repo.pigsty.io/key | sudo tee /etc/pki/rpm-gpg/RPM-GPG-KEY-pigsty >/dev/null
# 向 /etc/yum.repos.d 目录中添加 Pigsty Repo 定义文件,包括两个仓库
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
# 刷新 YUM/DNF 仓库缓存
sudo yum makecache;
pigsty-pgsql
仓库包含以下内容:
pigsty-infra
仓库包含以下内容:
对于 Debian/Ubuntu 及其兼容系统,使用以下命令依次添加 Pigsty 仓库的 GPG 公钥,写入仓库定义,并更新缓存:
# 将 pigsty 的 gpg 公钥添加到你的系统钥匙链中,从而验证软件包签名
curl -fsSL https://repo.pigsty.cc/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.cc/apt/infra generic main
deb [signed-by=/etc/apt/keyrings/pigsty.gpg] https://repo.pigsty.cc/apt/pgsql/${distro_codename} ${distro_codename} main
EOF
# 刷新 APT 仓库缓存
sudo apt update
# 将 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/infra generic main
deb [signed-by=/etc/apt/keyrings/pigsty.gpg] https://repo.pigsty.io/apt/pgsql ${distro_codename} main
EOF
# 刷新 APT 仓库缓存
sudo apt update
pigsty-pgsql
仓库包含以下内容:
pigsty-infra
仓库包含以下内容:
您可以使用 Pigsty 提供的 pig
命令行工具,管理 Linux 操作系统上的软件仓库。使用以下命令 安装 pig
命令行工具:
curl https://repo.pigsty.cc/pig | bash
使用以下命令添加软件仓库,Pig 命令行工具会自动检测您的网络条件(墙内/墙外),并选择速度最快的镜像:
pig repo add pigsty # 添加 PIGSTY 仓库
pig repo add pgdg # 添加 PGDG 仓库
pig repo add pgsql # 添加 PGDG + PIGSTY 镜像源
pig repo add node # 添加操作系统默认软件仓库
pig repo add all # 添加 PIGSTY + PGDG + NODE 仓库
所有Repo 文件默认会写入 /etc/yum.repos.d/
(EL) 与 /etc/apt/sources.list.d/
(Debian/Ubuntu) 目录下。
您可以使用以下命令,向当前系统添加 PIGSTY + PGDG + NODE 仓库并更新软件仓库缓存:
pig repo add all -u # 添加 NODE + PGSQL 软件仓库并更新缓存
如果您想要清除并覆盖当前系统上的所有仓库,并重新添加 PIGSTY + PGDG + NODE 仓库,您可以使用以下命令:
pig repo add all -ru # remove + update
pig repo set # 上面命令的缩写
移除的现有 repo 文件会被自动备份到上述目录下的 backup
目录中。
我们建议使用这种方式来管理软件仓库,但如果您不想使用 Pigsty 提供的命令行工具,您也可以 手工添加 YUM/APT软件仓库。
Pigsty 补充仓库中的所有 RPM/DEB 包都使用指纹为 (B9BD8B20
) 的 GPG 密钥进行签名。
完整摘要为:9592A7BC7A682E7333376E09E7935D8DB9BD8B20
Ruohang Feng (Pigsty) rh@vonng.com
pub rsa4096 2024-07-16 [SC]
9592A7BC7A682E7333376E09E7935D8DB9BD8B20
uid [ultimate] Ruohang Feng (Pigsty) <rh@vonng.com>
sub rsa4096 2024-07-16 [E]
在 RHEL/Rocky 兼容 Linux 发行版中,您可以使用以下命令导入此密钥:
curl -fsSL https://repo.pigsty.cc/key | sudo tee /etc/pki/rpm-gpg/RPM-GPG-KEY-pigsty >/dev/null
curl -fsSL https://repo.pigsty.io/key | sudo tee /etc/pki/rpm-gpg/RPM-GPG-KEY-pigsty >/dev/null
在 Debian/Ubuntu 兼容 Linux 发行版中,您可以使用以下命令导入此密钥:
curl -fsSL https://repo.pigsty.cc/key | sudo gpg --dearmor -o /etc/apt/keyrings/pigsty.gpg
curl -fsSL https://repo.pigsty.io/key | sudo gpg --dearmor -o /etc/apt/keyrings/pigsty.gpg
您可以在此处下载此公钥:
此密钥对应的公钥内容为:
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGaV5PwBEACbErI+7yOrsXTT3mR83O6Fw9WyHJqozhyNPF3dA1gAtWpfWqd4
S9x6vBjVwUbIRn21jYgov0hDiaLABNQhRzifvVr0r1IjBW8lhA8zJGaO42Uz0aBW
YIkajOklsXgYMX+gSmy5WXzM31sDQVMnzptHh9dwW067hMM5pJKDslu2pLMwSb9K
QgIFcYsaR0taBkcDg4dNu1gncriD/GcdXIS0/V4R82DIYeIqj2S0lt0jDTACbUz3
C6esrTw2XerCeHKHb9c/V+KMhqvLJOOpy/aJWLrTGBoaH7xw6v0qg32OYiBxlUj9
VEzoQbDfbRkR+jlxiuYP3scUs/ziKrSh+0mshVbeuLRSNfuHLa7C4xTEnATcgD1J
MZeMaJXIcDt+DN+1aHVQjY5YNvr5wA3ykxW51uReZf7/odgqVW3+1rhW5pd8NQKQ
qoVUHOtIrC9KaiGfrczEtJTNUxcNZV9eBgcKHYDXB2hmR2pIf7WvydgXTs/qIsXg
SIzfKjisi795Dd5GrvdLYXVnu9YzylWlkJ5rjod1wnSxkI/CcCJaoPLnXZA9KV7A
cpMWWaUEXP/XBIwIU+vxDd1taBIaPIOv1KIdzvG7QqAQtf5Lphi5HfaGvBud/CVt
mvWhRPJMr1J0ER2xAgU2iZR7dN0vSF6zDqc0W09RAoC0nDS3tupDX2BrOwARAQAB
tCRSdW9oYW5nIEZlbmcgKFBpZ3N0eSkgPHJoQHZvbm5nLmNvbT6JAlEEEwEIADsW
IQSVkqe8emguczM3bgnnk12Nub2LIAUCZpXk/AIbAwULCQgHAgIiAgYVCgkICwIE
FgIDAQIeBwIXgAAKCRDnk12Nub2LIOMuEACBLVc09O4icFwc45R3KMvOMu14Egpn
UkpmBKhErjup0TIunzI0zZH6HG8LGuf6XEdH4ItCJeLg5349UE00BUHNmxk2coo2
u4Wtu28LPqmxb6sqpuRAaefedU6vqfs7YN6WWp52pVF1KdOHkIOcgAQ9z3ZHdosM
I/Y/UxO2t4pjdCAfJHOmGPrbgLcHSMpoLLxjuf3YIwS5NSfjNDd0Y8sKFUcMGLCF
5P0lv5feLLdZvh2Una34UmHKhZlXC5E3vlY9bf/LgsRzXRFQosD0RsCXbz3Tk+zF
+j/eP3WhUvJshqIDuY6eJYCzMjiA8sM5gety+htVJuD0mewp+qAhjxE0d4bIr4qO
BKQzBt9tT2ackCPdgW42VPS+IZymm1oMET0hgZfKiVpwsKO6qxeWn4RW2jJ0zkUJ
MsrrxOPFdZQAtuFcLwa5PUAHHs6XQT2vzxDpeE9lInQ14lshofU5ZKIeb9sbvb/w
P+xnDqvZ1pcotEIBvDK0S0jHbHHqtioIUdDFvdCBlBlYP1TQRNPlJ7TJDBBvhj8i
fmjQsYSV1u36aHOJVGYNHv+SyJpVd3nHCZn97ADM9qHnDm7xljyHXPzIx4FMmBGJ
UTiLH5yxa1xhWr42Iv3TykaQJVbpydmBuegFR8WbWitAvVqI3HvRG+FalLsjJruc
8YDAf7gHdj/937kCDQRmleT8ARAAmJxscC76NZzqFBiaeq2+aJxOt1HGPqKb4pbz
jLKRX9sFkeXuzhfZaNDljnr2yrnQ75rit9Aah/loEhbSHanNUDCNmvOeSEISr9yA
yfOnqlcVOtcwWQK57n6MvlCSM8Js3jdoSmCFHVtdFFwxejE5ok0dk1VFYDIg6DRk
ZBMuxGO7ZJW7TzCxhK4AL+NNYA2wX6b+IVMn6CA9kwNwCNrrnGHR1sblSxZp7lPo
+GsqzYY0LXGR2eEicgKd4lk38gaO8Q4d1mlpX95vgdhGKxR+CM26y9QU0qrO1hXP
Fw6lX9HfIUkVNrqAa1mzgneYXivnLvcj8gc7bFAdweX4MyBHsmiPm32WqjUJFAmw
kcKYaiyfDJ+1wusa/b+7RCnshWc8B9udYbXfvcpOGgphpUuvomKT8at3ToJfEWmR
BzToYYTsgAAX8diY/X53BHCE/+MhLccglEUYNZyBRkTwDLrS9QgNkhrADaTwxsv1
8PwnVKve/ZxwOU0QGf4ZOhA2YQOE5hkRDR5uY2OHsOS5vHsd9Y6kNNnO8EBy99d1
QiBJOW3AP0nr4Cj1/NhdigAujsYRKiCAuPT7dgqART58VU4bZ3PgonMlziLe7+ht
YYxV+wyP6LVqicDd0MLLvG7r/JOiWuABOUxsFFaRecehoPJjeAEQxnWJjedokXKL
HVOFaEkAEQEAAYkCNgQYAQgAIBYhBJWSp7x6aC5zMzduCeeTXY25vYsgBQJmleT8
AhsMAAoJEOeTXY25vYsgG8sP/3UdsWuiwTsf/x4BTW82K+Uk9YwZDnUNH+4dUMED
bKT1C6CbuSZ7Mnbi2rVsmGzOMs9MehIx6Ko8/iCR2OCeWi8Q+wM+iffAfWuT1GK6
7f/VIfoYBUWEa+kvDcPgEbd5Tu7ZdUO/jROVBSlXRSjzK9LpIj7GozBTJ8Vqy5x7
oqbWPPEYtGDVHime8o6f5/wfhNgL3mFnoq6srK7KhwACwfTXlNqAlGiXGa30Yj+b
Cj6IvmxoII49E67/ovMEmzDCb3RXiaL6OATy25P+HQJvWvAam7Qq5Xn+bZg65Mup
vXq3zoX0a7EKXc5vsJVNtTlXO1ATdYszKP5uNzkHrNAN52VRYaowq1vPy/MVMbSI
rL/hTFKr7ZNhmC7jmS3OuJyCYQsfEerubtBUuc/W6JDc2oTI3xOG1S2Zj8f4PxLl
H7vMG4E+p6eOrUGw6VQXjFsH9GtwhkPh/ZGMKENb2+JztJ02674Cok4s5c/lZFKz
mmRUcNjX2bm2K0GfGG5/hAog/CHCeUZvwIh4hZLkdeJ1QsIYpN8xbvY7QP6yh4VB
XrL18+2sontZ45MsGResrRibB35x7IrCrxZsVtRJZthHqshiORPatgy+AiWcAtEv
UWEnnC1xBSasNebw4fSE8AJg9JMCRw+3GAetlotOeW9q7PN6yrXD9rGuV/QquQNd
/c7w
=4rRi
-----END PGP PUBLIC KEY BLOCK-----
Pigsty 让您可以直接在 PGSQL
集群中,通过声明式的方式下载,安装,加载,启用 PostgreSQL 扩展。
Pigsty 为用户封装了扩展管理的复杂度,用户无需了解细节,只要在配置文件中按需进行声明即可:
例如,下面的配置文件片段声明了一个 PostgreSQL 集群,下载 并 安装 了三个额外的扩展插件,动态 加载 了三个扩展,并 启用 了三个扩展。
all:
children:
pg-meta:
hosts: {10.10.10.10: { pg_seq: 1, pg_role: primary }}
vars:
pg_cluster: pg-meta
pg_databases: {name: meta, extensions: [ postgis, timescaledb, vector ]} # 动态启用三个扩展(这里使用扩展名,而非扩展包名)
pg_libs: 'timescaledb, pg_stat_statements, auto_explain' # 动态加载三个扩展(后两个为 PG 自带扩展,无需专门下载安装)
pg_extensions: [ pgsql-main, postgis pgvector timescaledb ] # 额外安装三个扩展(默认大版本 PG 17,pgsql-main 为内核)
repo_extra_packages: [ postgis, timescaledb, vector ] # 额外下载三个扩展(全局参数)
执行 ./install.yml
剧本,本地仓库中将下载这三个额外扩展,创建的 PostgreSQL 集群 pg-meta
中将自动安装,加载,启用上述扩展。
想要在 PostgreSQL 集群中使用扩展(Extension),通常涉及到 下载、安装、加载、启用 四个核心问题:
在 Pigsty 默认在线安装时,只会下载当前 PG 大版本对应的三个默认扩展(pg_repack
, wal2json
, pgvector
)。
如果您想要下载更多扩展,将其加入 repo_extra_packages
中即可。您可以加入扩展包名,或者直接指定扩展类目进行批量下载。
在 Pigsty 配置模板中的样例集群中,已经提供了完整可用的扩展清单,您只需要将想要 安装 的扩展,添加到 pg_extensions
中即可。
如果您想要在集群创建完毕后,安装额外的扩展,那么在配置完毕后,执行 ./pgsql.yml -t pg_extension
子任务即可。
一小部分使用了 PostgreSQL 钩子函数的扩展,需要动态加载并 重启 数据库后才可以启用,您需要将这些扩展添加到 pg_libs
中,并在重启数据库后生效。
如果您的数据库集群已经创建完毕,那么需要 配置现有集群 的 shared_preload_libraries
参数,并重启数据库集群后生效。
启用哪些扩展:pg_databases.extensions
绝大多数扩展在安装之后,都需要执行 CREATE EXTENSION
DDL 语句,才会真实在具体的数据库中被创建并启用。
您可以手工执行此 DDL,或者在 pg_datbasese.extensions
中显式指定要在数据库中启用的扩展列表,这些扩展会在集群初始化时自动启用。
您可能注意到,在加载,启用扩展时,使用的是“扩展名”(ext
),而在下载,安装扩展时,使用的是“扩展包名”(pkg
)。
例如,向量数据库扩展 PGVECTOR 的扩展名是 vector
,而扩展包名是 pgvector
。
flowchart LR ext[( EXTNAME )] -- "n:1" --> pkg[( PKGNAME )] pkg[( PKGNAME )] -- "1:n" --> packages[( RPM/DEB )]
这里的扩展包名是由 Pigsty 添加的额外抽象层,解决了不同操作系统发行版的扩展包名差异问题,在绝大部分情况下,扩展名(ext
)与扩展包名(pkg
)是相同的。
但是一个扩展包可能包含多个扩展,例如 postgis
扩展包中就包含了 postgis
与 其他六个扩展。
多个扩展(ext
)可能对应同一个扩展包(pkg
),此外,有些扩展名与操作系统发行版自带的软件包名有冲突,因此您需要使用扩展包名(pkg
)来下载,安装扩展。
在 Pigsty 中,您可以在 repo_extra_packages
, pg_packages
, pg_extensions
等下载安装相关参数中使用扩展包名(pkg
),例如要安装 postgis
扩展,您可以使用:
$v
占位符的包名,Pigsty 会自动使用 pg_version
的值替换占位符。*
通配符,或依次指定每个包名。postgis # 指定扩展包别名,自动翻译为 DEB/RPM 包名,与当前活跃 PG 大版本
postgis35_$v* # 指定 RPM 包名模式,同时使用 PG 大版本号占位符 $v
postgis35_15* # 直接指定 RPM 包名名称
postgresql-$v-postgis-3* # 指定 DEB 包名模式,同时使用 PG 大版本号占位符 $v
postgresql-14-postgis-3* # 直接指定 DEB 包名称
Pigsty 中所有可用扩展的扩展包名与扩展名之间的映射关系,可以查询 扩展列表 页面。 此外,一个扩展包在不同的操作系统和 PostgreSQL 大版本组合下,也会对应不同的具体 RPM/DEB 包名。
我们建议使用 Pigsty 提供的标准化扩展名(pkg
)来下载安装扩展,在不同的操作系统发行版中,
Pigsty 将标准扩展名翻译为对应 PG 大版本的 RPM / DEB 包名,并填充 PG 大版本号,这样您就无需关心不同 OS/PG 组合的扩展包名差异了。
尽管如此,不同操作系统与芯片架构上可用的扩展仍然会有略微差异,具体操作系统发行版可用的扩展列表,下面的配置文件为权威参考:
Pigsty 尽最大努力对齐 EL 操作系统与 Debian 操作系统生态的 PostgreSQL 扩展,但仍有少量扩展因为各种原因难以/尚未移植, 请参考 RPM扩展列表 与 DEB扩展列表 了解更多信息。
下面是一个具体的例子:自建 Supabase 使用到的 app/supa
配置模板:
Supabase 是一个封装 PostgreSQL 作为底层存储的“上层抽象数据库”,它深度使用了 PostgreSQL 的扩展机制,以下片段定义了 Supabase 需要的扩展:
all:
children:
# pg-meta, the underlying postgres database for supabase
pg-meta:
hosts: { 10.10.10.10: { pg_seq: 1, pg_role: primary } }
vars:
pg_cluster: pg-meta
pg_users:
# supabase roles: anon, authenticated, dashboard_user
- { name: anon ,login: false }
- { name: authenticated ,login: false }
- { name: dashboard_user ,login: false ,replication: true ,createdb: true ,createrole: true }
- { name: service_role ,login: false ,bypassrls: true }
# supabase users: please use the same password
- { name: supabase_admin ,password: 'DBUser.Supa' ,pgbouncer: true ,inherit: true ,roles: [ dbrole_admin ] ,superuser: true ,replication: true ,createdb: true ,createrole: true ,bypassrls: true }
- { name: authenticator ,password: 'DBUser.Supa' ,pgbouncer: true ,inherit: false ,roles: [ dbrole_admin, authenticated ,anon ,service_role ] }
- { name: supabase_auth_admin ,password: 'DBUser.Supa' ,pgbouncer: true ,inherit: false ,roles: [ dbrole_admin ] ,createrole: true }
- { name: supabase_storage_admin ,password: 'DBUser.Supa' ,pgbouncer: true ,inherit: false ,roles: [ dbrole_admin, authenticated ,anon ,service_role ] ,createrole: true }
- { name: supabase_functions_admin ,password: 'DBUser.Supa' ,pgbouncer: true ,inherit: false ,roles: [ dbrole_admin ] ,createrole: true }
- { name: supabase_replication_admin ,password: 'DBUser.Supa' ,replication: true ,roles: [ dbrole_admin ]}
- { name: supabase_read_only_user ,password: 'DBUser.Supa' ,bypassrls: true ,roles: [ dbrole_readonly, pg_read_all_data ] }
pg_databases:
- name: postgres
baseline: supabase.sql
owner: supabase_admin
comment: supabase postgres database
schemas: [ extensions ,auth ,realtime ,storage ,graphql_public ,supabase_functions ,_analytics ,_realtime ]
extensions: # 这里定义了在 postgres 数据库中 创建启用 的扩展列表
- { name: pgcrypto ,schema: extensions } # 加密函数
- { name: pg_net ,schema: extensions } # 异步 HTTP
- { name: pgjwt ,schema: extensions } # PostgreSQL 的 JSON Web Token API
- { name: uuid-ossp ,schema: extensions } # 生成通用唯一标识符 (UUID)
- { name: pgsodium } # pgsodium 是 PostgreSQL 的现代加密库
- { name: supabase_vault } # Supabase 保险库扩展
- { name: pg_graphql } # pg_graphql: GraphQL 支持
- { name: pg_jsonschema } # pg_jsonschema: 验证 JSON 模式
- { name: wrappers } # wrappers: 外部数据包装器集合
- { name: http } # http: 允许在数据库内检索网页
- { name: pg_cron } # pg_cron: PostgreSQL 的任务调度器
- { name: timescaledb } # timescaledb: 支持时间序列数据的可扩展插入和复杂查询
- { name: pg_tle } # pg_tle: PostgreSQL 的可信语言扩展
- { name: vector } # pgvector: 向量相似性搜索
- { name: pgmq } # pgmq: 类似 AWS SQS 和 RSMQ 的轻量级消息队列
# supabase required extensions
pg_libs: 'timescaledb, plpgsql, plpgsql_check, pg_cron, pg_net, pg_stat_statements, auto_explain, pg_tle, plan_filter'
pg_parameters:
cron.database_name: postgres
pgsodium.enable_event_trigger: off
pg_hba_rules: # supabase hba rules, require access from docker network
- { user: all ,db: postgres ,addr: intra ,auth: pwd ,title: 'allow supabase access from intranet' }
- { user: all ,db: postgres ,addr: 172.17.0.0/16 ,auth: pwd ,title: 'allow access from local docker network' }
node_crontab: [ '00 01 * * * postgres /pg/bin/pg-backup full' ] # make a full backup every 1am
vars: # 全局参数配置
pg_version: 17
repo_modules: node,pgsql,infra,docker
repo_packages: [node-bootstrap, infra-package, infra-addons, node-package1, node-package2, pgsql-utility, docker ]
repo_extra_packages: [pg17-core ,pg17-time ,pg17-gis ,pg17-rag ,pg17-fts ,pg17-olap ,pg17-feat ,pg17-lang ,pg17-type ,pg17-util ,pg17-func ,pg17-admin ,pg17-stat ,pg17-sec ,pg17-fdw ,pg17-sim ,pg17-etl ]
pg_extensions: [pg17-time ,pg17-gis ,pg17-rag ,pg17-fts ,pg17-feat ,pg17-lang ,pg17-type ,pg17-util ,pg17-func ,pg17-admin ,pg17-stat ,pg17-sec ,pg17-fdw ,pg17-sim ,pg17-etl ] #,pg17-olap]
在这里,我们声明了一个名为 pg-meta
的 PostgreSQL 集群,它使用默认的 postgres
数据库作为定制对象。
repo_extra_packages
按照 16 大分类分类批量下载所有可用扩展,而不是一个一个指定下载pg_extensions
中指定需要安装的扩展包,这里按照了除了 pg17-olap
以外的所有扩展包pg_libs
中对 Supabase 需要用到的扩展进行动态加载pg_parameters
中指定扩展所需的配置参数,例如 pgsodium
与 pg_cron
扩展所必须的配置参数pg_databases.extensions
中指定将扩展安装到哪个模式(schema
)中在 baseline: supabase.sql
中,还包含了其他对扩展进行自定义配置的 SQL Migration 逻辑。
最终,用户只需要执行 ./install.yml
,Supabase 所需的 PostgreSQL 集群就能被创建出来并开箱即用了!
在 Pigsty 的默认剧本中,扩展插件的下载与 安装 是分离的两个步骤。
Pigsty 会首先在 INFRA
模块安装的过程中,统一下载所有需要的软件至本地,并创建一个本地 YUM/APT 仓库供整套部署(包括本节点)使用。
这样做可以加速安装,避免重复下载,避免数据库节点访问互联网,减少网络流量消耗,提高交付可靠性性,并解决重复安装版本不一致的风险。是严肃生产环境中推荐的做法。
不过,如果您的数据库节点可以直接访问互联网,那么确实还有另一种可行的方式:直接从互联网在线安装下载扩展插件。
在 repo_packages
参数与 repo_extra_packages
参数中定义的软件包会在 Pigsty 安装过程中自动下载到本地软件仓库。
通常在指定下载与 PostgreSQL 大版本相关的软件包(例如内核与扩展)时,需要修改 repo_extra_packages
参数,而 repo_packages
留空以使用不同系统的默认值。
此参数的默认值为 [pgsql-main]
,其中 pgsql-main
是一个由 Pigsty 定义的便捷别名,代表当前活跃 PG 大版本的内核与关键扩展包。
repo_extra_packages: [ pgsql-main ] # 下载当前活跃 PG 大版本(17)的内核与关键扩展包(pgvector, pg_repack, wal2json)
如果您你想要添加特定的扩展插件,将 Pigsty 标准扩展包名 添加到此参数中即可。您无需指定 PG 大版本号,Pigsty 会自动下载当前活跃 PG 大版本相关的扩展包。
repo_extra_packages: [ pgsql-main, documentdb, citus, postgis, pgvector, pg_cron, rum ]
如果你想要下载当前 PG 版本 “所有可用”的扩展插件,可以类似 rich
配置模板所做的那样,将 16 个扩展分类的别名全部添加到此参数中即可:
repo_extra_packages: [ pgsql-main ,pgsql-time ,pgsql-gis ,pgsql-rag ,pgsql-fts ,pgsql-olap ,pgsql-feat ,pgsql-lang ,pgsql-type ,pgsql-util ,pgsql-func ,pgsql-admin ,pgsql-stat ,pgsql-sec ,pgsql-fdw ,pgsql-sim ,pgsql-etl]
如果你想要下载“所有可用”的扩展插件,还可以使用具体的 PG大版本相关别名 来指定:
repo_extra_packages: [
pg17-core,pg17-time,pg17-gis,pg17-rag,pg17-fts,pg17-olap,pg17-feat,pg17-lang,pg17-type,pg17-util,pg17-func,pg17-admin,pg17-stat,pg17-sec,pg17-fdw,pg17-sim,pg17-etl,
pg16-core,pg16-time,pg16-gis,pg16-rag,pg16-fts,pg16-olap,pg16-feat,pg16-lang,pg16-type,pg16-util,pg16-func,pg16-admin,pg16-stat,pg16-sec,pg16-fdw,pg16-sim,pg16-etl,
pg15-core,pg15-time,pg15-gis,pg15-rag,pg15-fts,pg15-olap,pg15-feat,pg15-lang,pg15-type,pg15-util,pg15-func,pg15-admin,pg15-stat,pg15-sec,pg15-fdw,pg15-sim,pg15-etl,
pg14-core,pg14-time,pg14-gis,pg14-rag,pg14-fts,pg14-olap,pg14-feat,pg14-lang,pg14-type,pg14-util,pg14-func,pg14-admin,pg14-stat,pg14-sec,pg14-fdw,pg14-sim,pg14-etl,
pg13-core,pg13-time,pg13-gis,pg13-rag,pg13-fts,pg13-olap,pg13-feat,pg13-lang,pg13-type,pg13-util,pg13-func,pg13-admin,pg13-stat,pg13-sec,pg13-fdw,pg13-sim,pg13-etl,
]
如果你想要向本地仓库中添加新的扩展包,在修改上述参数后,重新运行 INFRA 模块的 repo_build
子任务即可:
./infra.yml -t repo_build # 重新下载并重建本地仓库
./node.yml -t node_repo # 【可选】更新仓库元数据
PostgreSQL 有着繁荣的开源生态,安装 PostgreSQL 绝非安装几个内核 RPM/DEB 这么简单。
Pigsty 提供了一种优雅的抽象翻译层,将所需的 PostgreSQL 软件包分门别类,归结为一系列 “别名”(Alias),屏蔽了不同系统、架构、PG大版本之间的差异。
在 快速上手 中,我们已经使用了例如 pgsql-main
与 pgsql-core
等别名,这些别名会根据系统与架构自动翻译为具体的软件包名。
以 EL 系统为例,pgsql-main
被翻译为 postgresql$v*
内核包,以及 pgvector_$v*
,pg_repack_$v*
与 wal2json_$v*
三个扩展插件。
pgsql-main: "postgresql$v* pg_repack_$v* wal2json_$v* pgvector_$v*"
同时,带有 $v
版本号占位符的包名会进一步被默认的 pg_version=17
替换为 PostgreSQL 17 对应的内核包与三个扩展包。
带有 *
通配符的具体内核包又会进一步展开为postgresql17
, postgresql17-server
, postgresql17-libs
, postgresql17-contrib
, postgresql17-plperl
, postgresql17-plpython3
, postgresql17-pltcl
, postgresql17-test
, postgresql17-devel
, postgresql17-llvmjit
,而扩展中的 *
会展开为扩展本体 RPM + LLVMJIT,以及其他 RPM。
Pigsty 为用户封装处理好了这些细节。
完整的可用软件包与别名可以参考 roles/node_id/vars/<os.arch>.yml
里面包含了不同系统与架构的可用软件包/别名列表,以下是一些最常用的各个系统都提供的别名列表:
postgresql: "postgresql$v*"
pgsql-main: "postgresql$v* pg_repack_$v* wal2json_$v* pgvector_$v*"
pgsql-core: "postgresql$v postgresql$v-server postgresql$v-libs postgresql$v-contrib postgresql$v-plperl postgresql$v-plpython3 postgresql$v-pltcl postgresql$v-test postgresql$v-devel postgresql$v-llvmjit"
pgsql-simple: "postgresql$v postgresql$v-server postgresql$v-libs postgresql$v-contrib postgresql$v-plperl postgresql$v-plpython3 postgresql$v-pltcl"
pgsql-client: "postgresql$v"
pgsql-server: "postgresql$v-server postgresql$v-libs postgresql$v-contrib"
pgsql-devel: "postgresql$v-devel"
pgsql-basic: "pg_repack_$v* wal2json_$v* pgvector_$v*"
pgsql-time: "timescaledb-tsl_$v* timescaledb-toolkit_$v pg_timeseries_$v periods_$v* temporal_tables_$v* e-maj_$v table_version_$v pg_cron_$v* pg_task_$v* pg_later_$v pg_background_$v*"
pgsql-gis: "postgis35_$v* pgrouting_$v* pointcloud_$v* h3-pg_$v* q3c_$v* ogr_fdw_$v* geoip_$v pg_polyline_$v pg_geohash_$v*"
pgsql-rag: "pgvector_$v* vchord_$v pgvectorscale_$v pg_vectorize_$v pg_similarity_$v* smlar_$v* pg_summarize_$v pg_tiktoken_$v pg4ml_$v"
pgsql-fts: "pg_search_$v pgroonga_$v* pg_bigm_$v* zhparser_$v* pg_bestmatch_$v vchord_bm25_$v hunspell_cs_cz_$v hunspell_de_de_$v hunspell_en_us_$v hunspell_fr_$v hunspell_ne_np_$v hunspell_nl_nl_$v hunspell_nn_no_$v hunspell_ru_ru_$v hunspell_ru_ru_aot_$v"
pgsql-olap: "citus_$v* pg_analytics_$v pg_duckdb_$v* pg_mooncake_$v* duckdb_fdw_$v* pg_parquet_$v pg_fkpart_$v pg_partman_$v* plproxy_$v*" #hydra_$v* #pg_strom_$v*
pgsql-feat: "hll_$v* rum_$v pg_graphql_$v pg_jsonschema_$v jsquery_$v* pg_hint_plan_$v* hypopg_$v* index_advisor_$v pg_plan_filter_$v* imgsmlr_$v* pg_ivm_$v* pg_incremental_$v* pgmq_$v pgq_$v* pg_cardano_$v omnigres_$v" #apache-age_$v*
pgsql-lang: "pg_tle_$v* plv8_$v* pllua_$v* pldebugger_$v* plpgsql_check_$v* plprofiler_$v* plsh_$v* pljava_$v*" #plprql_$v #plr_$v* #pgtap_$v* #postgresql_faker_$v* #dbt2-pgsql-extensions*
pgsql-type: "prefix_$v* semver_$v* postgresql-unit_$v* pgpdf_$v* pglite_fusion_$v md5hash_$v* asn1oid_$v* pg_roaringbitmap_$v* pgfaceting_$v pgsphere_$v* pg_country_$v* pg_xenophile_$v pg_currency_$v* pgcollection_$v* pgmp_$v* numeral_$v* pg_rational_$v* pguint_$v* pg_uint128_$v* hashtypes_$v* ip4r_$v* pg_duration_$v* pg_uri_$v* pg_emailaddr_$v* acl_$v* timestamp9_$v* chkpass_$v*"
pgsql-util: "pgsql_gzip_$v* pg_bzip_$v* pg_zstd_$v* pgsql_http_$v* pg_net_$v* pg_curl_$v* pgjq_$v* pgjwt_$v pg_smtp_client_$v pg_html5_email_address_$v url_encode_$v* pgsql_tweaks_$v pg_extra_time_$v pgpcre_$v icu_ext_$v* pgqr_$v* pg_protobuf_$v pg_envvar_$v* floatfile_$v* pg_readme_$v ddl_historization_$v data_historization_$v pg_schedoc_$v pg_hashlib_$v pg_xxhash_$v* postgres_shacrypt_$v* cryptint_$v* pg_ecdsa_$v* pgsparql_$v"
pgsql-func: "pg_idkit_$v pg_uuidv7_$v* permuteseq_$v* pg_hashids_$v* sequential_uuids_$v topn_$v* quantile_$v* lower_quantile_$v* count_distinct_$v* omnisketch_$v* ddsketch_$v* vasco_$v* pgxicor_$v* tdigest_$v* first_last_agg_$v extra_window_functions_$v* floatvec_$v* aggs_for_vecs_$v* aggs_for_arrays_$v* pg_arraymath_$v* pg_math_$v* pg_random_$v* pg_base36_$v* pg_base62_$v* pg_base58_$v pg_financial_$v*"
pgsql-admin: "pg_repack_$v* pg_squeeze_$v* pg_dirtyread_$v* pgfincore_$v* pg_cooldown_$v* ddlx_$v pg_prioritize_$v* pg_readonly_$v* pg_upless_$v pg_permissions_$v pg_catcheck_$v* preprepare_$v* pgcozy_$v pg_orphaned_$v* pg_crash_$v* pg_cheat_funcs_$v* pg_fio_$v pg_savior_$v* safeupdate_$v* pg_drop_events_$v table_log_$v" #pg_checksums_$v* #pg_auto_failover_$v* #pgagent_$v* #pgpool-II-pgsql-extensions
pgsql-stat: "pg_profile_$v* pg_tracing_$v* pg_show_plans_$v* pg_stat_kcache_$v* pg_stat_monitor_$v* pg_qualstats_$v* pg_store_plans_$v* pg_track_settings_$v pg_wait_sampling_$v* system_stats_$v* pg_meta_$v pgnodemx_$v pg_sqlog_$v bgw_replstatus_$v* pgmeminfo_$v* toastinfo_$v* pg_explain_ui_$v pg_relusage_$v pagevis_$v powa_$v*"
pgsql-sec: "passwordcheck_cracklib_$v* supautils_$v* pgsodium_$v* vault_$v* pg_session_jwt_$v pg_anon_$v pgsmcrypto_$v pgaudit_$v* pgauditlogtofile_$v* pg_auth_mon_$v* credcheck_$v* pgcryptokey_$v pg_jobmon_$v logerrors_$v* login_hook_$v* set_user_$v* pg_snakeoil_$v* pgextwlist_$v* pg_auditor_$v sslutils_$v* noset_$v*" #pg_tde_$v*
pgsql-fdw: "wrappers_$v multicorn2_$v* odbc_fdw_$v* mysql_fdw_$v* tds_fdw_$v* sqlite_fdw_$v* pgbouncer_fdw_$v redis_fdw_$v* pg_redis_pubsub_$v* hdfs_fdw_$v* firebird_fdw_$v aws_s3_$v log_fdw_$v*" #jdbc_fdw_$v* #oracle_fdw_$v* #db2_fdw_$v* #mongo_fdw_$v* #kafka_fdw_$v
pgsql-sim: "documentdb_$v* orafce_$v pgtt_$v* session_variable_$v* pg_statement_rollback_$v* pg_dbms_metadata_$v pg_dbms_lock_$v pgmemcache_$v*" #pg_dbms_job_$v #wiltondb
pgsql-etl: "pglogical_$v* pglogical_ticker_$v* pgl_ddl_deploy_$v* pg_failover_slots_$v* db_migrator_$v wal2json_$v* postgres-decoderbufs_$v* decoder_raw_$v* mimeo_$v pg_fact_loader_$v* pg_bulkload_$v*" #wal2mongo_$v* #repmgr_$v*
postgresql: "postgresql-$v postgresql-client-$v postgresql-plpython3-$v postgresql-plperl-$v postgresql-pltcl-$v postgresql-server-dev-$v"
pgsql-main: "postgresql-$v postgresql-client-$v postgresql-plpython3-$v postgresql-plperl-$v postgresql-pltcl-$v postgresql-server-dev-$v postgresql-$v-repack postgresql-$v-wal2json postgresql-$v-pgvector"
pgsql-core: "postgresql-$v postgresql-client-$v postgresql-plpython3-$v postgresql-plperl-$v postgresql-pltcl-$v postgresql-server-dev-$v"
pgsql-simple: "postgresql-$v postgresql-client-$v postgresql-plperl-$v postgresql-plpython3-$v postgresql-pltcl-$v"
pgsql-client: "postgresql-client-$v"
pgsql-server: "postgresql-$v"
pgsql-devel: "postgresql-server-dev-$v"
pgsql-basic: "postgresql-$v-repack postgresql-$v-wal2json postgresql-$v-pgvector"
pgsql-time: "postgresql-$v-timescaledb-tsl postgresql-$v-timescaledb-toolkit postgresql-$v-pg-timeseries postgresql-$v-periods postgresql-$v-temporal-tables postgresql-$v-emaj postgresql-$v-table-version postgresql-$v-cron postgresql-$v-pg-task postgresql-$v-pg-later postgresql-$v-pg-background"
pgsql-gis: "postgresql-$v-postgis-3 postgresql-$v-postgis-3-scripts postgresql-$v-pgrouting postgresql-$v-pgrouting-scripts postgresql-$v-pointcloud postgresql-$v-h3 postgresql-$v-q3c postgresql-$v-ogr-fdw postgresql-$v-geoip postgresql-$v-pg-polyline postgresql-$v-pg-geohash postgresql-$v-mobilitydb"
pgsql-rag: "postgresql-$v-pgvector postgresql-$v-vchord postgresql-$v-pgvectorscale postgresql-$v-pg-vectorize postgresql-$v-similarity postgresql-$v-smlar postgresql-$v-pg-summarize postgresql-$v-pg-tiktoken postgresql-$v-pg4ml postgresql-$v-pgml"
pgsql-fts: "postgresql-$v-pg-search postgresql-$v-pgroonga postgresql-$v-pg-bigm postgresql-$v-zhparser postgresql-$v-pg-bestmatch postgresql-$v-vchord-bm25 postgresql-$v-hunspell-cs-cz postgresql-$v-hunspell-de-de postgresql-$v-hunspell-en-us postgresql-$v-hunspell-fr postgresql-$v-hunspell-ne-np postgresql-$v-hunspell-nl-nl postgresql-$v-hunspell-nn-no postgresql-$v-hunspell-ru-ru postgresql-$v-hunspell-ru-ru-aot"
pgsql-olap: "postgresql-$v-citus postgresql-$v-pg-analytics postgresql-$v-pg-duckdb postgresql-$v-pg-mooncake postgresql-$v-duckdb-fdw postgresql-$v-pg-parquet postgresql-$v-pg-fkpart postgresql-$v-partman postgresql-$v-plproxy" #postgresql-$v-hydra
pgsql-feat: "postgresql-$v-age postgresql-$v-hll postgresql-$v-rum postgresql-$v-pg-graphql postgresql-$v-pg-jsonschema postgresql-$v-jsquery postgresql-$v-pg-hint-plan postgresql-$v-hypopg postgresql-$v-index-advisor postgresql-$v-pg-plan-filter postgresql-$v-imgsmlr postgresql-$v-pg-ivm postgresql-$v-pg-incremental postgresql-$v-pgmq postgresql-$v-pgq3 postgresql-$v-pg-cardano postgresql-$v-omnigres" #postgresql-$v-rdkit
pgsql-lang: "postgresql-$v-pg-tle postgresql-$v-plv8 postgresql-$v-pllua postgresql-$v-pldebugger postgresql-$v-plpgsql-check postgresql-$v-plprofiler postgresql-$v-plsh postgresql-$v-pljava" #postgresql-$v-plprql #postgresql-$v-plr #postgresql-$v-pgtap
pgsql-type: "postgresql-$v-prefix postgresql-$v-semver postgresql-$v-unit postgresql-$v-pgpdf postgresql-$v-pglite-fusion postgresql-$v-md5hash postgresql-$v-asn1oid postgresql-$v-roaringbitmap postgresql-$v-pgfaceting postgresql-$v-pgsphere postgresql-$v-pg-country postgresql-$v-pg-xenophile postgresql-$v-pg-currency postgresql-$v-collection postgresql-$v-pgmp postgresql-$v-numeral postgresql-$v-rational postgresql-$v-pguint postgresql-$v-pg-uint128 postgresql-$v-hashtypes postgresql-$v-ip4r postgresql-$v-pg-duration postgresql-$v-pg-uri postgresql-$v-pg-emailaddr postgresql-$v-acl postgresql-$v-debversion postgresql-$v-pg-rrule postgresql-$v-timestamp9 postgresql-$v-chkpass"
pgsql-util: "postgresql-$v-gzip postgresql-$v-bzip postgresql-$v-zstd postgresql-$v-http postgresql-$v-pg-net postgresql-$v-pg-curl postgresql-$v-pgjq postgresql-$v-pgjwt postgresql-$v-pg-smtp-client postgresql-$v-pg-html5-email-address postgresql-$v-url-encode postgresql-$v-pgsql-tweaks postgresql-$v-pg-extra-time postgresql-$v-pgpcre postgresql-$v-icu-ext postgresql-$v-pgqr postgresql-$v-pg-protobuf postgresql-$v-pg-envvar postgresql-$v-floatfile postgresql-$v-pg-readme postgresql-$v-ddl-historization postgresql-$v-data-historization postgresql-$v-pg-schedoc postgresql-$v-pg-hashlib postgresql-$v-pg-xxhash postgresql-$v-shacrypt postgresql-$v-cryptint postgresql-$v-pg-ecdsa postgresql-$v-pgsparql"
pgsql-func: "postgresql-$v-pg-idkit postgresql-$v-pg-uuidv7 postgresql-$v-permuteseq postgresql-$v-pg-hashids postgresql-$v-sequential-uuids postgresql-$v-topn postgresql-$v-quantile postgresql-$v-lower-quantile postgresql-$v-count-distinct postgresql-$v-omnisketch postgresql-$v-ddsketch postgresql-$v-vasco postgresql-$v-pgxicor postgresql-$v-tdigest postgresql-$v-first-last-agg postgresql-$v-extra-window-functions postgresql-$v-floatvec postgresql-$v-aggs-for-vecs postgresql-$v-aggs-for-arrays postgresql-$v-pg-arraymath postgresql-$v-pg-math postgresql-$v-random postgresql-$v-base36 postgresql-$v-base62 postgresql-$v-pg-base58 postgresql-$v-pg-financial"
pgsql-admin: "postgresql-$v-repack postgresql-$v-squeeze postgresql-$v-dirtyread postgresql-$v-pgfincore postgresql-$v-pg-cooldown postgresql-$v-ddlx postgresql-$v-prioritize postgresql-$v-pg-checksums postgresql-$v-pg-readonly postgresql-$v-pg-upless postgresql-$v-pg-permissions postgresql-$v-auto-failover postgresql-$v-pg-catcheck postgresql-$v-preprepare postgresql-$v-pgcozy postgresql-$v-pg-orphaned postgresql-$v-pg-crash postgresql-$v-pg-cheat-funcs postgresql-$v-pg-fio postgresql-$v-pg-savior postgresql-$v-pg-safeupdate postgresql-$v-pg-drop-events postgresql-$v-tablelog" #pgagent #postgresql-$v-pgpool2
pgsql-stat: "postgresql-$v-pg-profile postgresql-$v-pg-tracing postgresql-$v-show-plans postgresql-$v-pg-stat-kcache postgresql-$v-pg-stat-monitor postgresql-$v-pg-qualstats postgresql-$v-pg-store-plan postgresql-$v-pg-track-settings postgresql-$v-pg-wait-sampling postgresql-$v-system-stats postgresql-$v-pg-meta postgresql-$v-pgnodemx postgresql-$v-pg-sqlog postgresql-$v-bgw-replstatus postgresql-$v-pgmeminfo postgresql-$v-toastinfo postgresql-$v-pg-explain-ui postgresql-$v-pg-relusage postgresql-$v-pagevis postgresql-$v-powa"
pgsql-sec: "postgresql-$v-passwordcheck-cracklib postgresql-$v-supautils postgresql-$v-pgsodium postgresql-$v-vault postgresql-$v-pg-session-jwt postgresql-$v-pg-anon postgresql-$v-pgsmcrypto postgresql-$v-pgaudit postgresql-$v-pgauditlogtofile postgresql-$v-pg-auth-mon postgresql-$v-credcheck postgresql-$v-pgcryptokey postgresql-$v-pg-jobmon postgresql-$v-logerrors postgresql-$v-login-hook postgresql-$v-set-user postgresql-$v-snakeoil postgresql-$v-pgextwlist postgresql-$v-pg-auditor postgresql-$v-sslutils postgresql-$v-noset" #postgresql-$v-pg-tde
pgsql-fdw: "postgresql-$v-wrappers postgresql-$v-mysql-fdw postgresql-$v-tds-fdw postgresql-$v-redis-fdw postgresql-$v-pg-redis-pubsub postgresql-$v-firebird-fdw postgresql-$v-aws-s3 postgresql-$v-log-fdw" # #postgresql-$v-oracle-fdw #postgresql-$v-sqlite-fdw #postgresql-$v-kafka-fdw
pgsql-sim: "postgresql-$v-documentdb postgresql-$v-orafce postgresql-$v-pgtt postgresql-$v-session-variable postgresql-$v-pg-statement-rollback postgresql-$v-pgmemcache" # #wiltondb
pgsql-etl: "postgresql-$v-pglogical postgresql-$v-pglogical-ticker postgresql-$v-pgl-ddl-deploy postgresql-$v-pg-failover-slots postgresql-$v-db-migrator postgresql-$v-wal2json postgresql-$v-decoderbufs postgresql-$v-decoder-raw postgresql-$v-mimeo postgresql-$v-pg-fact-loader postgresql-$v-pg-bulkload" #postgresql-$v-wal2mongo #postgresql-$v-repmgr
在使用这些别名下载 PostgreSQL 软件包时,请注意,这些软件包别名与包名中的 $v
占位符变量,会在使用时被替换为实际的 PostgreSQL 大版本号(由 pg_version
参数指定,默认为 17
)。
如果您想要安装其他 PostgreSQL 大版本,只需要修改 pg_version
即可。
当然您也可以直接使用指定大版本的别名与包名,例如这些带有 pgsql-
前缀的的别名可以直接替换为 pg17-
, pg16-
,pg15-
以显式下载其他大版本的软件包。
请注意,并非所有系统都支持所有扩展插件,一些不可用,的扩展插件默认会从扩展分类列表中移除,以注释项的形式出现在别名末尾。
但并非所有在注释中的扩展都不可用,一些扩展只是较为不合时宜而未被默认列入(依赖过于庞大,比如 pl/R
,或者依赖商业软件,比如 oracle_fdw
),
而另一些可能只是在当前 PG 17 大版本中不可用,而在更早的 13-16 中可用,您依然可以手工添加这些所需的扩展并下载安装。
Pigsty 使用操作系统标准的包管理器(yum/apt)来安装 PostgreSQL 扩展插件。
在安装扩展时,Pigsty 使用与 下载 时相同的 别名映射 机制,你可以直接在这里指定扩展的名称,或者二进制包名。
all:
children:
pg-meta:
hosts: { 10.10.10.10: { pg_seq: 1, pg_role: primary } }
vars:
pg_cluster: pg-meta
pg_extensions: # extensions to be installed on this cluster
- timescaledb timescaledb_toolkit pg_timeseries periods temporal_tables emaj table_version pg_cron pg_task pg_later pg_background
- postgis pgrouting pointcloud pg_h3 q3c ogr_fdw geoip pg_polyline pg_geohash #mobilitydb
- pgvector vchord pgvectorscale pg_vectorize pg_similarity smlar pg_summarize pg_tiktoken pg4ml #pgml
- pg_search pgroonga pg_bigm zhparser pg_bestmatch vchord_bm25 hunspell
- citus hydra pg_analytics pg_duckdb pg_mooncake duckdb_fdw pg_parquet pg_fkpart pg_partman plproxy #pg_strom
- age hll rum pg_graphql pg_jsonschema jsquery pg_hint_plan hypopg index_advisor pg_plan_filter imgsmlr pg_ivm pg_incremental pgmq pgq pg_cardano omnigres #rdkit
- pg_tle plv8 pllua plprql pldebugger plpgsql_check plprofiler plsh pljava #plr #pgtap #faker #dbt2
- pg_prefix pg_semver pgunit pgpdf pglite_fusion md5hash asn1oid roaringbitmap pgfaceting pgsphere pg_country pg_xenophile pg_currency pg_collection pgmp numeral pg_rational pguint pg_uint128 hashtypes ip4r pg_uri pgemailaddr pg_acl timestamp9 chkpass #pg_duration #debversion #pg_rrule
- pg_gzip pg_bzip pg_zstd pg_http pg_net pg_curl pgjq pgjwt pg_smtp_client pg_html5_email_address url_encode pgsql_tweaks pg_extra_time pgpcre icu_ext pgqr pg_protobuf envvar floatfile pg_readme ddl_historization data_historization pg_schedoc pg_hashlib pg_xxhash shacrypt cryptint pg_ecdsa pgsparql
- pg_idkit pg_uuidv7 permuteseq pg_hashids sequential_uuids topn quantile lower_quantile count_distinct omnisketch ddsketch vasco pgxicor tdigest first_last_agg extra_window_functions floatvec aggs_for_vecs aggs_for_arrays pg_arraymath pg_math pg_random pg_base36 pg_base62 pg_base58 pg_financial
- pg_repack pg_squeeze pg_dirtyread pgfincore pg_cooldown pg_ddlx pg_prioritize pg_checksums pg_readonly pg_upless pg_permissions pgautofailover pg_catcheck preprepare pgcozy pg_orphaned pg_crash pg_cheat_funcs pg_fio pg_savior safeupdate pg_drop_events table_log #pgagent #pgpool
- pg_profile pg_tracing pg_show_plans pg_stat_kcache pg_stat_monitor pg_qualstats pg_store_plans pg_track_settings pg_wait_sampling system_stats pg_meta pgnodemx pg_sqlog bgw_replstatus pgmeminfo toastinfo pg_explain_ui pg_relusage pagevis powa
- passwordcheck supautils pgsodium pg_vault pg_session_jwt pg_anon pg_tde pgsmcrypto pgaudit pgauditlogtofile pg_auth_mon credcheck pgcryptokey pg_jobmon logerrors login_hook set_user pg_snakeoil pgextwlist pg_auditor sslutils pg_noset
- wrappers multicorn odbc_fdw jdbc_fdw mysql_fdw tds_fdw sqlite_fdw pgbouncer_fdw mongo_fdw redis_fdw pg_redis_pubsub kafka_fdw hdfs_fdw firebird_fdw aws_s3 log_fdw #oracle_fdw #db2_fdw
- documentdb orafce pgtt session_variable pg_statement_rollback pg_dbms_metadata pg_dbms_lock pgmemcache #pg_dbms_job #wiltondb
- pglogical pglogical_ticker pgl_ddl_deploy pg_failover_slots db_migrator wal2json wal2mongo decoderbufs decoder_raw mimeo pg_fact_loader pg_bulkload #repmgr
或者使用扩展分类别名,批量安装所有扩展。
all:
vars:
pg_version: 17 # default postgres version 17, so the pgsql-main is equivalent to pg17-main
pg_extensions: [ pgsql-main ,pgsql-time ,pgsql-gis ,pgsql-rag ,pgsql-fts ,pgsql-feat ,pgsql-lang ,pgsql-type ,pgsql-util ,pgsql-func ,pgsql-admin ,pgsql-stat ,pgsql-sec ,pgsql-fdw ,pgsql-sim ,pgsql-etl] #,pgsql-olap]
你也可以显式指定 PG 大版本号,然后使用扩展分类别名,批量安装所有扩展。
all:
vars:
pg_extensions: [pg17-time ,pg17-gis ,pg17-rag ,pg17-fts ,pg17-feat ,pg17-lang ,pg17-type ,pg17-util ,pg17-func ,pg17-admin ,pg17-stat ,pg17-sec ,pg17-fdw ,pg17-sim ,pg17-etl ] #,pg17-olap]
同时安装所有扩展尽管是可行的(除了 olap
分类中的两对冲突特例),但并不推荐这么做,请尽可能只安装您需要的扩展。
在 PGSQL 集群初始化时,Pigsty 会自动安装 pg_packages
和 pg_extensions
中指定的扩展插件。
两个参数都可以用于安装 PostgreSQL 相关软件包,通常 pg_packages
用于在全局指定整个环境中所有 PostgreSQL 集群都需要统一安装的软件包:例如 PostgreSQL 内核,高可用组建 Patroni,连接池 pgBouncer,监控 pgExporter 等。
Pigsty 默认也会在这里指定安装三个重要扩展:pgvector
, pg_repack
和 wal2json
用于膨胀治理和 CDC 变更抽取。
而 pg_extensions
则通常用于在特定集群中,指定本集群需要安装的扩展插件。默认为空列表,表示不安装任何额外的扩展插件。
pg_packages: # pg packages to be installed, alias can be used
- postgresql`
- wal2json pg_repack pgvector
- patroni pgbouncer pgbackrest pg_exporter pgbadger vip-manager
pg_extensions: [] # pg extensions to be installed, alias can be used
另一个重要区别是:pg_packages
安装的软件包只确保存在即可,而 pg_extensions
安装的软件包会默认 升级到最新可用版本。
当使用本地软件源时,这并不是一个问题。当您直接使用互联网上游软件源时,请充分考虑这一点,并将不希望升级的扩展插件转移到 pg_packages
中。
定义于 pg_extensions
中的扩展插件会在新集群初始化的时候自动安装。
对于一个已经完成部署的现有 PostgreSQL 集群,如果你想安装新的扩展插件:
首先将所需的扩展添加至 pg_extensions
中,然后通过以下命令执行子任务完成安装:
./pgsql.yml -t pg_extension # 安装 pg_extensions 中指定的扩展插件
请注意,pg_extension
任务中指定的扩展插件会默认升级到当前环境中最新可用版本。
想要安装扩展插件,您需要确保目标节点上已经配置了合适的软件仓库。
通常来说,对于严肃的生产环境,您应该使用 Pigsty 的本地软件源来统一管理并安装扩展: 首先下载到本地软件仓库中,再从本地软件仓库中安装扩展。这样可以确保扩展的版本全局一致,并避免让数据库节点直接访问互联网。 但某些时候(例如在开发环境中为了方便)您也可以直接使用互联网上游软件源来安装扩展。
要使用本地安装,您首先需要确保目标扩展已经被 下载 到本地软件仓库中。 如果要使用在线安装,请确保待安装的节点可以访问互联网,并且上游软件源可以正常访问。 然后使用以下命令来直接在目标集群上添加仓库并安装扩展:
./node.yml -l <cls> -t node_repo -e node_repo_modules=local,node,pgsql # 在目标节点上启用互联网软件仓库
./pgsql.yml -l <cls> -t pg_extension # 使用本地+互联网上游仓库安装扩展
在安装扩展时,用户可以使用 扩展包名 来指定扩展插件。 别名会根据 别名翻译机制 被翻译为当前活跃 PG 大版本与操作系统环境,翻译为对应的 RPM/DEB 包名。
citus
和 hydra
互斥,因为 hydra 是 citus 列存分支且未重命名pg_duckdb
, pg_mooncake
, duckdb_fdw
中只能安装一个,因为它们都使用自己的 libduckdbpgaudit
在 EL 系统上对于 PG 15 及以下版本有特殊的命名规则:pg16+ = pgaudit, pg15=pgaudit17, pg14=pgaudit16, pg13=pgaudit15, pg12=pgaudit14postgis
在 EL 系统的包名中有自己的版本号:默认是 postgis35除了纯 SQL 编写的扩展外,绝大多数扩展都会提供一个 .so
文件,这是一个动态连接库文件。大部分扩展并不需要显式加载,只需要通过 CREATE EXTENSION
直接启用 即可。
但一小部分扩展使用了 PostgreSQL 的 Hook 机制,要启用 这些扩展 需要一个额外的加载步骤 —— 您需要修改 PostgreSQL 集群的 shared_preload_libraries
参数,然后重启数据库服务器使其生效。
如果您在未加载/重启生效的情况下直接执行 CREATE EXTENSION
会报错。
例如,在 conf/app/supa
配置模板中,我们定义了 Supabase 需要的扩展列表,并显式指定了 pg_libs
参数,用于加载扩展:
all:
children:
pg-meta:
hosts: { 10.10.10.10: { pg_seq: 1, pg_role: primary } }
vars:
pg_cluster: pg-meta
pg_databases:
- name: postgres
pg_libs: 'timescaledb, plpgsql, plpgsql_check, pg_cron, pg_net, pg_stat_statements, auto_explain, pg_tle, plan_filter'
schemas: [ extensions ,auth ,realtime ,storage ,graphql_public ,supabase_functions ,_analytics ,_realtime ]
extensions: # 这里定义了在 postgres 数据库中 创建启用 的扩展列表
- { name: pgcrypto ,schema: extensions } # 加密函数
- { name: pg_net ,schema: extensions } # 异步 HTTP
- { name: pgjwt ,schema: extensions } # PostgreSQL 的 JSON Web Token API
- { name: uuid-ossp ,schema: extensions } # 生成通用唯一标识符 (UUID)
- { name: pgsodium } # pgsodium 是 PostgreSQL 的现代加密库
- { name: supabase_vault } # Supabase 保险库扩展
- { name: pg_graphql } # pg_graphql: GraphQL 支持
- { name: pg_jsonschema } # pg_jsonschema: 验证 JSON 模式
- { name: wrappers } # wrappers: 外部数据包装器集合
- { name: http } # http: 允许在数据库内检索网页
- { name: pg_cron } # pg_cron: PostgreSQL 的任务调度器
- { name: timescaledb } # timescaledb: 支持时间序列数据的可扩展插入和复杂查询
- { name: pg_tle } # pg_tle: PostgreSQL 的可信语言扩展
- { name: vector } # pgvector: 向量相似性搜索
- { name: pgmq } # pgmq: 类似 AWS SQS 和 RSMQ 的轻量级消息队列
并非所有扩展都需要通过 pg_libs
进行动态加载,例如这里的 pgcrypto
, pgjwt
, vector
等扩展,需要动态加载的扩展,请参考 需要加载的扩展 列表。
在 Pigsty 中,默认会加载以下两个 PostgreSQL 第一方自带的 Contrib 扩展:
auto_explain
用于提供一种自动记录慢查询执行计划的手段,用于微观优化特定慢查询 SQLpg_stat_statements
用于跟踪所有执行的 SQL 语句的计划和执行统计信息,用于宏观统计一类 SQL 的执行指标这是两个用于 PostgreSQL 宏观/微观查询优化 的重要自带扩展插件,因此在 Pigsty 中,pg_libs
的默认值是 pg_stat_statements, auto_explain
,
我们强烈建议您在配置加载项时保留这两个扩展,只需要在修改 pg_libs
,pg_parameters
或者直接修改 shared_preload_libraries
参数时将这两项保留即可。
要修改 PostgreSQL 集群配置,有许多不同的方式,在 Pigsty 中,我们建议:
对于尚未创建的新集群,您可以在 pg_libs
参数中进行配置,指定 shared_preload_libraries
参数的初始值。
请注意,pg_libs
仅在 创建集群 时生效,在集群创建后,该参数被指定为真正的 PostgreSQL 参数 shared_preload_libraries
的初始值。
如果您需要修改默认加载的扩展,通常可以通过 Patroni 命令行 修改集群配置,直接修改 shared_preload_libraries
参数,应用后重启数据库集群生效。
对于已经初始化好的集群,您可以通过 Patroni 命令行 修改集群配置 来修改 shared_preload_libraries
参数,应用后重启数据库集群生效。
当然您也可以通过其他方式修改 shared_preload_libraries
参数,例如手工编辑 postgresql.conf
文件,或者 ALTER SYSTEM
命令等方式进行更改,
或者通过 pg_parameters
参数进行显式覆盖,只需要确保集群范围内此配置统一一致即可。
在 shared_preload_libraries
中,如果有多个扩展插件需要加载,可以使用逗号分隔,例如:
shared_preload_libraries = 'timescaledb, pg_stat_statements, auto_explain'
请注意,citus
和 timescaledb
这两个扩展显式提出要求,要在 shared_preload_libraries
中预先加载,也就是放在最前面。
由于生态定位的问题,同时使用两者的情况非常罕见,但在这种情况中,建议将 citus
放在 timescaledb
之前。
全文检索插件 pg_search
要求显式加载,但是在 PostgreSQL 17 版本中,可以不显式加载。
MongoDB 仿真插件 documentdb
实际的动态库名称与扩展名不一致 —— 你需要使用 pg_documentdb
和 pg_documentdb_core
作为动态链接库的名称。
在 扩展列表 中,带有 LOAD
标记的扩展,即为需要动态加载并重启的扩展,包括:
扩展名 | 扩展包名 | 分类 | 说明 |
---|---|---|---|
timescaledb | timescaledb | TIME | 时序数据库扩展插件 |
pg_cron | pg_cron | TIME | 定时任务调度器 |
pg_task | pg_task | TIME | 在特定时间点在后台执行SQL命令 |
vchord | vchord | RAG | 使用Rust重写的高性能向量扩展 |
pgml | pgml | RAG | PostgresML:用SQL运行机器学习算法并训练模型 |
pg_bestmatch | pg_bestmatch | FTS | 在数据库内生成BM25稀疏向量 |
vchord_bm25 | vchord_bm25 | FTS | BM25排序算法 |
citus | citus | OLAP | Citus 分布式数据库 |
pg_duckdb | pg_duckdb | OLAP | 在PostgreSQL中的嵌入式DuckDB扩展 |
pg_parquet | pg_parquet | OLAP | 在PostgreSQL与本地/S3中的Parquet文件复制数据 |
plan_filter | pg_plan_filter | FEAT | 使用执行计划代价过滤阻止特定查询语句 |
omni | omnigres | FEAT | PostgreSQL即平台,Omnigres主扩展与加载器 |
pg_tle | pg_tle | LANG | AWS 可信语言扩展 |
plpgsql_check | plpgsql_check | LANG | 对 plpgsql 函数进行扩展检查 |
pgpdf | pgpdf | TYPE | PDF数据类型,管理函数与全文检索 |
pglite_fusion | pglite_fusion | TYPE | 在PG表中嵌入SQLite数据库作为数据类型 |
pg_net | pg_net | UTIL | 用 SQL 进行异步非阻塞HTTP/HTTPS 请求的扩展 (supabase) |
pg_squeeze | pg_squeeze | ADMIN | 从关系中删除未使用空间 |
pgautofailover | pgautofailover | ADMIN | PG 自动故障迁移 |
pg_crash | pg_crash | ADMIN | 向数据库进程随机发送信号模拟故障 |
pg_prewarm | pg_prewarm | ADMIN | 预热关系数据 |
pg_tracing | pg_tracing | STAT | PostgreSQL分布式Tracing |
pg_stat_kcache | pg_stat_kcache | STAT | 内核统计信息收集 |
pg_stat_monitor | pg_stat_monitor | STAT | 提供查询聚合统计、客户端信息、执行计划详细信息和直方图 |
pg_qualstats | pg_qualstats | STAT | 收集有关 quals 的统计信息的扩展 |
pg_store_plans | pg_store_plans | STAT | 跟踪所有执行的 SQL 语句的计划统计信息 |
pg_wait_sampling | pg_wait_sampling | STAT | 基于采样的等待事件统计 |
bgw_replstatus | bgw_replstatus | STAT | 用于汇报本机主从状态的后台工作进程 |
pg_relusage | pg_relusage | STAT | 打印查询引用的表与列 |
auto_explain | auto_explain | STAT | 提供一种自动记录执行计划的手段 |
pg_stat_statements | pg_stat_statements | STAT | 跟踪所有执行的 SQL 语句的计划和执行统计信息 |
passwordcheck_cracklib | passwordcheck | SEC | 使用cracklib加固PG用户密码 |
supautils | supautils | SEC | 用于在云环境中确保数据库集群的安全 |
pgsodium | pgsodium | SEC | 表数据加密存储 TDE |
anon | pg_anon | SEC | 数据匿名化处理工具 |
pg_tde | pg_tde | SEC | 试点性质的加密存储引擎 |
pgaudit | pgaudit | SEC | 提供审计功能 |
pg_snakeoil | pg_snakeoil | SEC | PostgreSQL动态链接库反病毒功能 |
pgextwlist | pgextwlist | SEC | PostgreSQL扩展白名单功能 |
noset | pg_noset | SEC | 阻止非超级用户使用SET/RESET设置变量 |
sepgsql | sepgsql | SEC | 基于SELinux标签的强制访问控制 |
auth_delay | auth_delay | SEC | 在返回认证失败前暂停一会,避免爆破 |
passwordcheck | passwordcheck | SEC | 用于强制拒绝修改弱密码的扩展 |
documentdb | documentdb | SIM | 微软DocumentDB的API层 |
documentdb_core | documentdb | SIM | 微软DocumentDB的核心API层实现 |
documentdb_distributed | documentdb | SIM | DocumentDB多节点模式的API层 |
pg_statement_rollback | pg_statement_rollback | SIM | 在服务端提供类似Oracle/DB2的语句级回滚能力 |
babelfishpg_tsql | babelfishpg_tsql | SIM | SQL Server SQL语法兼容性扩展 |
pglogical_ticker | pglogical_ticker | ETL | pglogical复制延迟以秒计的精确视图 |
pg_failover_slots | pg_failover_slots | ETL | 在Failover过程中保留复制槽 |
CREATE EXTENSION
在 PostgreSQL 数据库中真正启用扩展?PostgreSQL 扩展 安装完毕 后,用户可以通过 CREATE EXTENSION
命令启用扩展:
CREATE EXTENSION vector; -- 安装向量数据库扩展(无需加载)
CREATE EXTENSION timescaledb; -- 安装时序数据库扩展(需要加载)
有的扩展插件有依赖的扩展,在这种情况下,您可以首先安装依赖的扩展,或者选择执行 CREATE EXTENSION CASCADE
命令,一次性安装所有依赖的扩展。
CREATE EXTENSION documentdb CASCADE; -- 安装 documentdb 扩展,并安装它所有依赖的扩展
您还可以在 CREATE EXTENSION
命令中指定安装扩展的模式与具体版本。
扩展(数据库逻辑对象)在逻辑上属于 PostgreSQL 数据库 的组成部分,因此在 Pigsty 中,您可以在 pg_databases
中指定要在数据库中启用/创建的扩展。
pg_databases:
- name: postgres
baseline: supabase.sql
schemas: [ extensions ,auth ,realtime ,storage ,graphql_public ,supabase_functions ,_analytics ,_realtime ]
extensions: # 这里定义了在 postgres 数据库中 创建启用 的扩展列表
- { name: pgcrypto ,schema: extensions } # 加密函数
- { name: pg_net ,schema: extensions } # 异步 HTTP
- { name: pgjwt ,schema: extensions } # PostgreSQL 的 JSON Web Token API
- { name: uuid-ossp ,schema: extensions } # 生成通用唯一标识符 (UUID)
- { name: pgsodium } # pgsodium 是 PostgreSQL 的现代加密库
- { name: supabase_vault } # Supabase 保险库扩展
- { name: pg_graphql } # pg_graphql: GraphQL 支持
- { name: pg_jsonschema } # pg_jsonschema: 验证 JSON 模式
- { name: wrappers } # wrappers: 外部数据包装器集合
- { name: http } # http: 允许在数据库内检索网页
- { name: pg_cron } # pg_cron: PostgreSQL 的任务调度器
- { name: timescaledb } # timescaledb: 支持时间序列数据的可扩展插入和复杂查询
- { name: pg_tle } # pg_tle: PostgreSQL 的可信语言扩展
- { name: vector } # pgvector: 向量相似性搜索
- { name: pgmq } # pgmq: 类似 AWS SQS 和 RSMQ 的轻量级消息队列
在这里,数据库对象中的 extensions
是一个列表,每个元素可能是:
vector
name
: 唯一的 必选字段,指定扩展名,注意扩展名有可能不同于扩展包名。schema
:指定扩展安装的模式,默认是当前数据库超级用户搜索路径中的第一个模式,通常是默认的 public
。version
:指定扩展的版本,默认是最新版本如果数据库没有创建,在这里定义的扩展会在通过 Pigsty 创建集群 或 创建数据库 的时候被自动启用。
如果数据库已经启用并投产,我建议您通过标准的数据库模式变更流程(Schema Migration)来管理扩展的启用。 您可以在 Pigsty 配置文件中记录相应的修改,便于日后迁移等用例。
Pigsty 默认会为托管的 PostgreSQL 数据库安装一些默认扩展,这些扩展会被创建至默认的 template1
模板数据库与 postgres
数据库中。
任何新建的数据库都会继承 template1
中的扩展配置,因此您无需额外配置,新建的数据库也会拥有这些扩展。
您可以通过修改 pg_default_extensions
参数,来修改全局默认安装启用的扩展,以及它们安装的位置。
所有在本参数重默认 启用 的扩展都是 PostgreSQL 自带的第一方 Contrib 扩展,唯一的例外是 pg_repack
扩展,它是一个来自 PGDG 的第三方扩展。
pg_repack
对于 PostgreSQL 表膨胀治理 非常重要,因此 Pigsty 默认会默认安装它并在所有数据库中默认启用。
pg_default_extensions:
- { name: pg_stat_statements ,schema: monitor }
- { name: pgstattuple ,schema: monitor }
- { name: pg_buffercache ,schema: monitor }
- { name: pageinspect ,schema: monitor }
- { name: pg_prewarm ,schema: monitor }
- { name: pg_visibility ,schema: monitor }
- { name: pg_freespacemap ,schema: monitor }
- { name: postgres_fdw ,schema: public }
- { name: file_fdw ,schema: public }
- { name: btree_gist ,schema: public }
- { name: btree_gin ,schema: public }
- { name: pg_trgm ,schema: public }
- { name: intagg ,schema: public }
- { name: intarray ,schema: public }
- { name: pg_repack } # <-- 唯一默认启用的三方扩展
在 Pigsty 的设计中,与监控相关的扩展会被创建至 monitor
模式中,其他功能特性性质的扩展会被创建至 public
模式中。
此外,向量数据库扩展 pgvector
有着特殊地位,它在 Pigsty 中会默认 安装,并在演示用的 meta
数据库中默认启用,作为演示之用。
最后,用于实现 CDC 变更数据捕获 的关键扩展 wal2json
扩展也会默认安装,但因为这是一个“无需启用”的逻辑解码插件,因此不会出现在 pg_default_extensions
中。
并非所有扩展都需要通过 CREATE EXTENSION
命令启用。
从原理上来说:PostgreSQL 的扩展通常由以下三部分组成:
.so
, .dylib
, .dll
),可选对于扩展来说,SQL
文件是可选项,因此如果扩展没有提供 SQL
文件,则通常不需要执行 CREATE EXTENSION
命令。
LOAD \ DDL | 需要 CREATE EXTENSION |
不需要 CREATE EXTENSION |
---|---|---|
需要动态加载 | 使用 Hook 的扩展 | 无头扩展 |
不需要动态加载 | 不用 Hook 的扩展 | 逻辑解码输出插件 |
例如提供 CDC 抽取能力的 wal2json
扩展,提供慢查询统计能力的 pg_stat_statements
与 auto_explain
扩展。
它们只有共享库文件和扩展 .control
文件,没有 SQL 文件,因此不需要/也无法通过 CREATE EXTENSION
命令启用。
请注意,没有 CREATE EXTENSION
命令,不影响扩展是否需要 LOAD
命令。一些扩展虽然没有 SQL/DDL
,但仍然需要 显式加载 ,比如一些安全审计相关的扩展。
以下是所有无需 DDL 的扩展列表:
扩展名 | 扩展包名 | 分类 | 说明 |
---|---|---|---|
plan_filter | pg_plan_filter | FEAT | 使用执行计划代价过滤阻止特定查询语句 |
pg_checksums | pg_checksums | ADMIN | 在离线模式下激活/启用/禁用数据库集群的校验和功能 |
pg_crash | pg_crash | ADMIN | 向数据库进程随机发送信号模拟故障 |
safeupdate | safeupdate | ADMIN | 强制在 UPDATE 和 DELETE 时提供 Where 条件 |
basic_archive | basic_archive | ADMIN | 归档模块样例 |
basebackup_to_shell | basebackup_to_shell | ADMIN | 添加一种备份到Shell终端到基础备份方式 |
bgw_replstatus | bgw_replstatus | STAT | 用于汇报本机主从状态的后台工作进程 |
pg_relusage | pg_relusage | STAT | 打印查询引用的表与列 |
auto_explain | auto_explain | STAT | 提供一种自动记录执行计划的手段 |
passwordcheck_cracklib | passwordcheck | SEC | 使用cracklib加固PG用户密码 |
supautils | supautils | SEC | 用于在云环境中确保数据库集群的安全 |
pg_snakeoil | pg_snakeoil | SEC | PostgreSQL动态链接库反病毒功能 |
pgextwlist | pgextwlist | SEC | PostgreSQL扩展白名单功能 |
sepgsql | sepgsql | SEC | 基于SELinux标签的强制访问控制 |
auth_delay | auth_delay | SEC | 在返回认证失败前暂停一会,避免爆破 |
passwordcheck | passwordcheck | SEC | 用于强制拒绝修改弱密码的扩展 |
pg_statement_rollback | pg_statement_rollback | SIM | 在服务端提供类似Oracle/DB2的语句级回滚能力 |
pg_failover_slots | pg_failover_slots | ETL | 在Failover过程中保留复制槽 |
wal2json | wal2json | ETL | 用逻辑解码捕获 JSON 格式的 CDC 变更 |
wal2mongo | wal2mongo | ETL | 使用逻辑解码捕获MongoDB JSON格式的CDC变更 |
decoderbufs | decoderbufs | ETL | 将WAL逻辑解码为ProtocolBuffer协议的消息 |
decoder_raw | decoder_raw | ETL | 逻辑复制解码输出插件:RAW SQL格式 |
pgoutput | pgoutput | ETL | PG内置的逻辑解码输出插件 |
test_decoding | test_decoding | ETL | 基于SQL的WAL逻辑解码样例 |
要更新一个现有的扩展,您需要首先更新操作系统的软件包管理器中的 RPM/DEB 包版本,然后在 PostgreSQL 中通过 ALTER EXTENSION ... UPDATE
命令将扩展更新到新版本。
所有在 pg_extension
中指定的扩展,都可以使用 Pigsty 的 pgsql.yml
剧本进行升级。
./pgsql.yml -t pg_extension
Pigsty 的 pig
命令行工具也可以帮你完成这个任务,您无需了解操作系统的具体包名:
pig ext update pgvector
pig ext install pgvector=0.8.0
你也可以使用操作系统的软件包管理器直接手动升级扩展软件包:
yum upgrade extname...
apt upgrade extname...
然后执行数据库中的 ALTER EXTENSION ... UPDATE
命令,将扩展更新到新版本:
ALTER EXTENSION name UPDATE [ TO new_version ]
要卸载某个扩展,通常需要执行 DROP EXTENSION
语句,例如:
DROP EXTENSION "<extname>";
请注意,如果有其他扩展,或者使用此扩展的数据库对象依赖,您需要首先卸载/删除这些依赖,然后再卸载此扩展;
或者,也可以使用以下语句一次性强制卸载扩展及其依赖:
DROP EXTENSION "<extname>" CASCADE;
注意:
CASCADE
选项会删除依赖于此扩展的所有对象,包括数据库对象、函数、视图等,慎用!
并非所有扩展都是通过 CREATE EXTENSION
语句安装的,这些扩展不需要显式执行 DROP EXTENSION
语句,请参考 无需启用的扩展列表。
如果您使用的扩展需要 动态加载(修改了 shared_preload_libraries
参数),您需要首先 修改 shared_preload_libraries
参数。
将扩展名字符串从 shared_preload_libraries
中移除,并重启数据库集群生效后,您方可安全地卸载扩展包。
需要动态加载的扩展,请参考 需要加载的扩展 列表。
当你将扩展(逻辑对象)从集群中的 所有数据库 中移除后,您可以安全地卸载此扩展的软件包,Ansible 命令可以方便的帮您做到这一点:
ansible <cls> -m package -a "name=<extname> state=absent"
当然您也可以使用 pig
,或者 apt
或者 yum
的命令直接卸载。
如果您不知道扩展的名称,您可以参考 扩展列表 中的详情,或者参考 roles/node_id/vars
中定义的扩展包名映射。
Pig 命令行工具自带了设置构建环境的功能:
curl https://repo.pigsty.cc/pig | bash
pig build repo
pig build tool
pig build spec
pig build rust
下载扩展源代码包
## download big tarball
pig build get std # download std small tarball
pig build get all # download all source tarball
pig build get pg_mooncake
pig build get pg_duckdb
pig build get omnigres
pig build get plv8
构建扩展
pig build ext citus
pig build ext pgjwt
如果您的网络条件不佳,最好配置一个 HTTP 代理,例如,假设你的本地环境中,有一台可用的代理服务器: http://192.168.0.106:8118
(需要换成你自己的地址)。那么 EL 环境下的环境变量配置如下:
PROXY=http://192.168.0.107:8118
export HTTP_PROXY=${PROXY}
export HTTPS_PROXY=${PROXY}
export ALL_PROXY=${PROXY}
export NO_PROXY="localhost,127.0.0.1,10.0.0.0/8,192.168.0.0/16,*.pigsty,*.aliyun.com,mirrors.*,*.myqcloud.com,*.tsinghua.edu.cn"
alias build="HTTPS_PROXY=${PROXY} cargo pgrx package -v"
编辑 ~/.ssh/config
文件,添加代理配置,让 Github git 克隆走 HTTPS 代理(可选):
Host github.com
Hostname ssh.github.com
Port 443
User git
如果以下命令可以成功执行,说明 github
代理配置成功:
ssh -T git@github.com
Pig 命令行工具自带设置 proxy 功能:
pig build proxy user_id@ip:port
. /etc/profile.d/proxy.sh # 在当前 shell 中启用代理命令
po # 启用代理
px # 关闭代理
pck # 检查代理状态
EL 环境下,可以使用以下 Alias 便捷地切换 PG 环境:
alias pg17="export PATH=/usr/pgsql-17/bin:~/.cargo/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
alias pg16="export PATH=/usr/pgsql-16/bin:~/.cargo/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
alias pg15="export PATH=/usr/pgsql-15/bin:~/.cargo/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
alias pg14="export PATH=/usr/pgsql-14/bin:~/.cargo/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
alias pg13="export PATH=/usr/pgsql-13/bin:~/.cargo/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
alias pg12="export PATH=/usr/pgsql-12/bin:~/.cargo/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
而 Debian / Ubuntu 环境下则使用以下的 Alias:
alias pg17="export PATH=/usr/lib/postgresql/17/bin:~/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin;"
alias pg16="export PATH=/usr/lib/postgresql/16/bin:~/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin;"
alias pg15="export PATH=/usr/lib/postgresql/15/bin:~/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin;"
alias pg14="export PATH=/usr/lib/postgresql/14/bin:~/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin;"
alias pg13="export PATH=/usr/lib/postgresql/13/bin:~/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin;"
alias pg12="export PATH=/usr/lib/postgresql/12/bin:~/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin;"
如果需要构建 Rust 扩展,需要安装 rust
与 pgrx
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
安装 pgrx
,注意 版本
cargo install --locked cargo-pgrx@${PGRX_VER-'0.12.9'} # <---
cargo install --locked cargo-pgrx@${PGRX_VER-'0.11.4'}
cargo install --locked cargo-pgrx@${PGRX_VER-'0.10.2'}
cargo pgrx init
mkdir -vp ${CARGO_HOME:-$HOME/.cargo};
cat > ${CARGO_HOME:-$HOME/.cargo}/config << EOF
[source.crates-io]
replace-with = 'mirror'
[source.mirror]
registry = "sparse+https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/"
EOF
env RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup rustup install stable
Vendor | Name | Version | PGRX | License | PG Ver | Deps |
---|---|---|---|---|---|---|
Supabase | pg_graphql | v1.5.9 | v0.12.5 | Apache-2.0 | 17,16,15 | |
Supabase | pg_jsonschema | v0.3.2 | v0.12.5 | Apache-2.0 | 17,16,15,14,13,12 | |
Supabase | wrappers | v0.4.3 | v0.12.6 | Apache-2.0 | 17,16,15,14 | |
TimescaleDB | vectorscale | v0.3.0 | v0.12.5 | PostgreSQL | 17,16,15,14,13,12 | |
kelvich | pg_tiktoken | v0.0.1 | v0.12.6 | Apache-2.0 | 16,15,14,13,12 | |
PostgresML | pgml | v2.9.3 | v0.11.3 | MIT | 16,15,14 | |
Tembo | pg_vectorize | v0.17.0 | v0.11.3 | PostgreSQL | 16,15,14 | pgmq, pg_cron |
Tembo | pg_later | v0.1.1 | v0.11.3 | PostgreSQL | 16,15,14,13 | pgmq |
kaspermarstal | plprql | v0.1.0 | v0.11.3 | Apache-2.0 | 16,15,14,13,12 | |
VADOSWARE | pg_idkit | v0.2.3 | v0.12.5 | Apache-2.0 | 17,16,15,14,13,12 | |
pgsmcrypto | pgsmcrypto | v0.1.0 | v0.12.6 | MIT | 17,16,15,14,13,12 | |
rustprooflabs | pgdd | v0.5.2 | v0.10.2 | MIT | 16,15,14,13,12 | |
CrunchyData | pg_parquet | v0.1.0 | v0.12.6 | PostgreSQL | 17, 16 |
cd ~;
cd ~; git clone --recursive git@github.com:postgresml/postgresml.git ; cd ~/postgresml && git checkout v2.9.3
cd ~; git clone git@github.com:supabase/pg_graphql.git ; cd ~/pg_graphql #&& git checkout v1.5.8
cd ~; git clone git@github.com:supabase/pg_jsonschema.git ; cd ~/pg_jsonschema #&& git checkout v0.3.2
cd ~; git clone git@github.com:supabase/wrappers.git ; cd ~/wrappers && git checkout v0.4.3
cd ~; git clone git@github.com:Vonng/pgsmcrypto.git ; cd ~/pgsmcrypto
cd ~; git clone git@github.com:Vonng/pg_tiktoken.git ; cd ~/pg_tiktoken
cd ~; git clone git@github.com:VADOSWARE/pg_idkit.git ; cd ~/pg_idkit && git checkout v0.2.4
cd ~; git clone git@github.com:timescale/pgvectorscale.git ; cd ~/pgvectorscale && git checkout 0.4.0
cd ~; git clone git@github.com:tembo-io/pg_vectorize.git ; cd ~/pg_vectorize && git checkout v0.18.3
cd ~; git clone git@github.com:tembo-io/pg_later.git ; cd ~/pg_later && git checkout v0.1.3
cd ~; git clone git@github.com:kaspermarstal/plprql.git ; cd ~/plprql && git checkout v1.0.0
cd ~; git clone git@github.com:rustprooflabs/pgdd.git ; cd ~/pgdd && git checkout 0.5.2
cd ~; git@github.com:CrunchyData/pg_parquet.git ; cd ~/pg_parquet && git checkout 0.1.0
#cd ~; git clone git@github.com:tembo-io/pgmq.git ; cd ~/pgmq && git checkout v1.2.1 #v1.3.3
#cd ~; git clone --recursive https://github.com/paradedb/paradedb.git ; cd ~/paradedb && git checkout v0.8.6
#cd ~/paradedb; cargo update
您可以使用扩展别名,批量构建 Rust 扩展:
# pgrx 0.12.6
cd ~/pg_graphql; pg17 build; pg16 build; pg15 build; pg14 build;
cd ~/pg_jsonschema; pg17 build; pg16 build; pg15 build; pg14 build; pg13 build; pg12 build;
cd ~/wrappers/wrappers; pg17 build; pg16 build; pg15 build; pg14 build;
cd ~/pgsmcrypto; pg17 build; pg16 build; pg15 build; pg14 build; pg13 build; pg12 build;
cd ~/pg_tiktoken; pg17 build; pg16 build; pg15 build; pg14 build; pg13 build; pg12 build;
cd ~/pg_idkit; pg17 build; pg16 build; pg15 build; pg14 build; pg13 build; pg12 build;
export RUSTFLAGS="-C target-feature=+avx2,+fma"
cd ~/pgvectorscale/pgvectorscale; pg17 build; pg16 build; pg15 build; pg14 build; pg13 build;
# pgrx 0.11.3
cd ~/plprql/plprql; pg16 build; pg15 build; pg14 build; pg13 build; pg12 build;
cd ~/pg_later; pg16 build; pg15 build; pg14 build; pg13 build;
cd ~/pg_vectorize/extension; pg16 build; pg15 build; pg14 build;
# pgrx 0.10.2
cd ~/pgdd; pg17 build; pg16 build; pg15 build; pg14 build; pg13 build; pg12 build;
cd ~/pg_parquet; pg17 build; pg16 build;
cd ~/pg_polyline; pg17 build; pg16 build; pg15 build; pg14 build; pg13 build; pg12 build;
cd ~/pg_explain_ui; pg17 build; pg16 build; pg15 build; pg14 build; pg13 build; pg12 build;
cd ~/pg_cardano; pg17 build; pg16 build; pg15 build; pg14 build; pg13 build; pg12 build;
cd ~/pg_base58; pg17 build; pg16 build; pg15 build; pg14 build; pg13 build; pg12 build;
cd ~/pg_summarize; pg17 build; pg16 build; pg15 build; pg14 build; pg13 build; pg12 build;
echo 'deb [trusted=yes] https://apt.kitware.com/ubuntu/ jammy main' \
| sudo tee /etc/apt/sources.list.d/kitware.list
echo "deb [trusted=yes] \
https://apt.kitware.com/debian/ bookworm main" \
| sudo tee /etc/apt/sources.list.d/kitware.list
sudo dnf install -y https://apt.kitware.com/kitware-release-el8.rpm
sudo dnf install -y https://apt.kitware.com/kitware-release-el9.rpm
sudo apt remove -y cmake ; sudo apt install -y cmake
sudo yum remove -y cmake ; sudo yum install -y cmake
rm -rf cmake-3.31.4-linux-x86_64
tar -xf cmake-3.31.4-linux-x86_64.tar.gz
mv cmake-3.31.4-linux-x86_64 /opt/cmake-3.31.4
tar -xf cmake-3.31.4-linux-aarch64.tar.gz
mv ~/cmake-3.31.4-linux-aarch64 /opt/cmake-3.31.4
echo 'export PATH=/opt/cmake-3.31.4/bin:$PATH' > /etc/profile.d/cmake.sh
rm -rf /usr/bin/{ccmake,cmake,cmake-gui,cpack,ctest}
yum remove cmake -y
ln -s /opt/cmake-3.31.4/bin/ccmake /usr/bin/ccmake
ln -s /opt/cmake-3.31.4/bin/cmake /usr/bin/cmake
ln -s /opt/cmake-3.31.4/bin/cmake-gui /usr/bin/cmake-gui`
ln -s /opt/cmake-3.31.4/bin/cpack /usr/bin/cpack
ln -s /opt/cmake-3.31.4/bin/ctest /usr/bin/ctest
构建 PostgresML 是相当麻烦的工作,下面是在 EL8 与 EL9 上构建 PGML 的教程。
首先,根据 RPM 构建环境 的说明,配置好 环境与代理,安装 rust
与 pgrx
,特别注意 pgml
使用的 pgrx
版本号。
安装 Python,并设置为默认版本:
sudo yum install python3.11 python3.11-devel python3-virtualenv openssl openssl-devel cmake pkg-config libomp libomp-devel openblas* llvm llvm-devel lld openblas*
sudo yum install python3-devel
sudo apt install clang pkg-config build-essential git libclang-dev libpython3-dev libssl-dev libopenblas-dev lld
sudo alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
sudo alternatives --set python3 /usr/bin/python3.11
sudo alternatives --set python /usr/bin/python3.11
克隆 pgml
,并 检出指定版本:
cd ~; git clone --recursive git@github.com:postgresml/postgresml.git;
cd ~/postgresml && git checkout v2.9.3
cd ~/postgresml/pgml-extension
本节修改在 EL8 上进行,EL9 无需执行此操作。
sudo dnf install gcc-toolset-13
source /opt/rh/gcc-toolset-13/enable
source /opt/rh/gcc-toolset-13/enable
export CC=/opt/rh/gcc-toolset-13/root/usr/bin/gcc
export CXX=/opt/rh/gcc-toolset-13/root/usr/bin/g++
export LD_LIBRARY_PATH=/opt/rh/gcc-toolset-13/root/usr/lib64:$LD_LIBRARY_PATH
在 EL8 上构建时,需要修改 build.rs
文件,在合适的位置添加两行编译选项:
println!("cargo:rustc-link-lib=static=stdc++fs");
println!("cargo:rustc-link-search=native=/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13");
整个文件应该是这样的:
fn main() {
#[cfg(target_os = "macos")]
{
println!("cargo:rustc-link-search=/opt/homebrew/opt/openblas/lib");
println!("cargo:rustc-link-search=/opt/homebrew/opt/libomp/lib");
}
// PostgreSQL is using dlopen(RTLD_GLOBAL). this will parse some
// of symbols into the previous opened .so file, but the others will use a
// relative offset in pgml.so, and will cause a null-pointer crash.
//
// hide all symbol to avoid symbol conflicts.
//
// append mode (link-args) only works with clang ld (lld)
println!(
"cargo:link-args=-Wl,--version-script={}/ld.map",
std::env::current_dir().unwrap().to_string_lossy(),
);
println!("cargo:rustc-link-lib=static=stdc++fs");
println!("cargo:rustc-link-search=native=/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13");
vergen::EmitBuilder::builder().all_git().emit().unwrap();
}
接着修改 Cargo.toml
在 [build-dependencies]
一节中添加:cc = "1.0"
:
[build-dependencies]
+++ cc = "1.0"
针对 PostgreSQL 16, 15, 14 构建 PGML:
cd ~/postgresml/pgml-extension; pg16 build; pg15 build; pg14 build;
将构建产物放置于 ~/rpmbuild/SOURCES
目录备用
rm -rf ~/rpmbuild/SOURCES/pgml_16; cp -r ~/postgresml/pgml-extension/target/release/pgml-pg16 ~/rpmbuild/SOURCES/pgml_16;
rm -rf ~/rpmbuild/SOURCES/pgml_15; cp -r ~/postgresml/pgml-extension/target/release/pgml-pg15 ~/rpmbuild/SOURCES/pgml_15;
rm -rf ~/rpmbuild/SOURCES/pgml_14; cp -r ~/postgresml/pgml-extension/target/release/pgml-pg14 ~/rpmbuild/SOURCES/pgml_14;
使用 pgml.spec
执行 RPM 打包:
cd ~/rpmbuild/SPECS && make pgml
# 或手工进行构建:
rm -rf ~/rpmbuild/RPMS/x86_64/pgml*.rpm;
rpmbuild --without debuginfo --define "pgmajorversion 16" -ba ~/rpmbuild/SPECS/pgml.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pgml.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pgml.spec
安装依赖 (EL):
sudo yum groupinstall --nobest -y 'Development Tools';
sudo yum install git cmake
克隆代码:
rpmdev-setuptree
cd ~/rpmbuild/SOURCES/
git clone git@github.com:plv8/plv8.git
cd plv8; git checkout v3.2.2
make -j16
基于第一段编译产物,针对不同 PG 大版本制作 RPM 包:
rpmbuild --define "pgmajorversion 16" -ba ~/rpmbuild/SPECS/plv8.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/plv8.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/plv8.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/plv8.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/plv8.spec
或者:
cd ~/rpmbuild/SPECS && make plv8
编译此扩展需要 clang-17+。
To build this extension, you’ll need clang-17+
Ubuntu 24 直接安装 Clang 即可:
apt install clang
You can install clang
on Ubuntu 24 directly, and install clang-18 on Ubuntu 22 / Debian 12 with:
curl --proto '=https' --tlsv1.2 -sSf https://apt.llvm.org/llvm.sh | bash -s -- 18
sudo update-alternatives --install /usr/bin/clang clang $(which clang-18) 255
下面是构建 ParadeDB 扩展插件的教程:
首先,根据 RPM 构建环境 的说明,配置好环境与代理,安装 rust
与 pgrx
。
安装时特别需要注意 pg_search
与 pg_lakehouse
使用的 pgrx
版本号。
克隆 ParadeDB,并 检出最新版本,完成编译。
cd ~; git clone --recursive git@github.com:paradedb/paradedb.git;
cd ~/paradedb; git checkout v0.8.6
cd ~/paradedb/pg_search/
cargo update
# build pg_search
pg16 build
pg15 build
pg14 build
pg13 build
pg12 build
# move to rpmbuild SOURCES dir
rm -rf ~/rpmbuild/SOURCES/pg_search_16; cp -r ~/paradedb/target/release/pg_search-pg16 ~/rpmbuild/SOURCES/pg_search_16;
rm -rf ~/rpmbuild/SOURCES/pg_search_15; cp -r ~/paradedb/target/release/pg_search-pg15 ~/rpmbuild/SOURCES/pg_search_15;
rm -rf ~/rpmbuild/SOURCES/pg_search_14; cp -r ~/paradedb/target/release/pg_search-pg14 ~/rpmbuild/SOURCES/pg_search_14;
rm -rf ~/rpmbuild/SOURCES/pg_search_13; cp -r ~/paradedb/target/release/pg_search-pg13 ~/rpmbuild/SOURCES/pg_search_13;
rm -rf ~/rpmbuild/SOURCES/pg_search_12; cp -r ~/paradedb/target/release/pg_search-pg12 ~/rpmbuild/SOURCES/pg_search_12;
# packaging with rpmbuild
cd ~/rpmbuild/SPECS && make pg_search
rpmbuild --without debuginfo --define "pgmajorversion 16" -ba ~/rpmbuild/SPECS/pg_search.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_search.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_search.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_search.spec
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_search.spec
cd ~/paradedb/pg_lakehouse/
cargo update
# build pg_lakehouse
pg16 build
pg15 build
# move to rpmbuild SOURCES dir
rm -rf ~/rpmbuild/SOURCES/pg_lakehouse_16; cp -r ~/paradedb/target/release/pg_lakehouse-pg16 ~/rpmbuild/SOURCES/pg_lakehouse_16;
rm -rf ~/rpmbuild/SOURCES/pg_lakehouse_15; cp -r ~/paradedb/target/release/pg_lakehouse-pg15 ~/rpmbuild/SOURCES/pg_lakehouse_15;
# packaging with rpmbuild
cd ~/rpmbuild/SPECS && make pg_lakehouse
rpmbuild --without debuginfo --define "pgmajorversion 16" -ba ~/rpmbuild/SPECS/pg_lakehouse.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_lakehouse.spec
DuckDB FDW 依赖 libduckdb.so
动态链接库。在 Ubuntu 与 Debian 上,可以直接使用由 DuckDB 官方提供的预编译二进制。
在 EL 系操作系统上,需要从头编译 libduckdb
并使用此版本编译 duckdb_fdw
。
Pigsty 的 github.com/pgsty/pgsql-rpm 仓库提供了预置的构建模板:
DuckDB 官方已经提供了 libduckdb-src.zip
源码,可以方便地进行构建。
在 Ubuntu / Debian 上,可以直接使用 DuckDB 官方提供的预编译二进制 libduckdb.so
。
在 EL8 和 EL9 上需要从源码编译构建 libduckdb
。
要构建 libduckdb-src
,你需要使用与构建 duckdb_fdw
一致的编译环境与参数:
clang++ -c -fPIC -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 duckdb.cpp -o duckdb.o
clang++ -shared -o libduckdb.so *.o
构建 libduckdb
RPM 包,可以使用以下命令:
cd ~/rpmbuild/SPECS && make libduckdb
要构建 duckdb_fdw
RPM 包,可以使用以下命令:
cd ~/rpmbuild/SPECS && make duckdb_fdw
扩展 parquet_s3_fdw
有两个主要依赖:arrow
与 awssdk
。
克隆 arrow 仓库并使用 cmake 构建:
cd ~ ; git clone git@github.com:apache/arrow.git;
mkdir -p ~/arrow/cpp/release; cd ~/arrow/cpp/release;
cmake .. -DARROW_PARQUET=ON -DARROW_S3=ON; make -j8
sudo make install
libaws-cpp
里有许多服务的驱动,但我们只需要两个:core
和 s3
:
# 安装依赖
sudo yum install libcurl-devel openssl-devel libuuid-devel pulseaudio-libs-devel
# sudo apt-get install libcurl4-openssl-dev libssl-dev uuid-dev libpulse-dev # debian/ubuntu
# 克隆 libaws 仓库 (很大!)
cd ~; git clone --recurse-submodules git@github.com:aws/aws-sdk-cpp.git
mkdir -p ~/aws-sdk-cpp/release; cd ~/aws-sdk-cpp/release;
cmake .. -DBUILD_ONLY="s3"; make -j20
sudo make install
收集生成的 .so
文件,然后将其打包为一个 RPM / DEB 包:
mkdir -p ~/libarrow-s3
cp -d ~/arrow/cpp/release/release/libarrow.so* ~/libarrow-s3/
cp -d ~/arrow/cpp/release/release/libparquet.so* ~/libarrow-s3/
cp -f ~/aws-sdk-cpp/release/generated/src/aws-cpp-sdk-s3/libaws-cpp-sdk-s3.so ~/libarrow-s3/
cp -f ~/aws-sdk-cpp/release/src/aws-cpp-sdk-core/libaws-cpp-sdk-core.so ~/libarrow-s3/
cp -d ~/aws-sdk-cpp/release/lib/libaws-c-event-stream.so* ~/libarrow-s3/
cp -d ~/aws-sdk-cpp/release/lib/libs2n.so* ~/libarrow-s3/
cp -d ~/aws-sdk-cpp/release/crt/aws-crt-cpp/libaws-crt-cpp.so ~/libarrow-s3/
cp -d ~/aws-sdk-cpp/release/crt/aws-crt-cpp/crt/aws-c-common/libaws-c-common.so* ~/libarrow-s3/
cp -d ~/aws-sdk-cpp/release/crt/aws-crt-cpp/crt/aws-checksums/libaws-checksums.so* ~/libarrow-s3/
cp -d ~/aws-sdk-cpp/release/crt/aws-crt-cpp/crt/aws-c-io/libaws-c-io.so* ~/libarrow-s3/
cp -d ~/aws-sdk-cpp/release/crt/aws-crt-cpp/crt/aws-c-mqtt/libaws-c-mqtt.so* ~/libarrow-s3/
cp -d ~/aws-sdk-cpp/release/crt/aws-crt-cpp/crt/aws-c-cal/libaws-c-cal.so* ~/libarrow-s3/
cp -d ~/aws-sdk-cpp/release/crt/aws-crt-cpp/crt/aws-checksums/libaws-checksums.so* ~/libarrow-s3/
cp -d ~/aws-sdk-cpp/release/crt/aws-crt-cpp/crt/aws-c-s3/libaws-c-s3.so* ~/libarrow-s3/
cp -d ~/aws-sdk-cpp/release/crt/aws-crt-cpp/crt/aws-c-common/libaws-c-common.so* ~/libarrow-s3/
cp -d ~/aws-sdk-cpp/release/crt/aws-crt-cpp/crt/aws-c-http/libaws-c-http.so* ~/libarrow-s3/
cp -d ~/aws-sdk-cpp/release/crt/aws-crt-cpp/crt/aws-c-sdkutils/libaws-c-sdkutils.so* ~/libarrow-s3/
cp -d ~/aws-sdk-cpp/release/crt/aws-crt-cpp/crt/aws-c-auth/libaws-c-auth.so* ~/libarrow-s3/
cp -d ~/aws-sdk-cpp/release/crt/aws-crt-cpp/crt/aws-c-compression/libaws-c-compression.so* ~/libarrow-s3/
构建生成的 so
文件包含空 RPATH,使用 patchelf
去除 (EL系统):
cd ~/libarrow-s3/
patchelf --remove-rpath libarrow.so.1800.0.0
patchelf --remove-rpath libparquet.so.1800.0.0
patchelf --remove-rpath libaws-cpp-sdk-core.so
patchelf --remove-rpath libaws-cpp-sdk-s3.so
将这些 so
文件整体打包为一个 libarrow-s3
软件包:
cd ~/rpmbuild/SPECS
rpmbuild -ba ~/rpmbuild/SPECS/libarrow-s3.spec
sudo rpm -ivh ~/rpmbuild/RPMS/x86_64/libarrow-s3-17.0.0-1PIGSTY.*
编译此扩展需要额外的依赖:
```bash
if [[ ${OS_VERSION} == "12" ]]; then
log_info "install deb12 utils"
sudo apt install -y lz4 unzip wget patch bash lsof sshpass debhelper devscripts fakeroot pkg-config make cmake ncdu rsync #build-essential
sudo apt install -y postgresql-all postgresql-server-dev-all libreadline-dev flex bison libxml2-dev libxml2-utils xsltproc libc++-dev libc++abi-dev libglib2.0-dev libtinfo5 libstdc++-12-dev liblz4-dev ninja-build
elif [[ ${OS_VERSION} == "22" ]]; then
log_info "install ubuntu22 utils"
sudo apt install -y lz4 unzip wget patch bash lsof sshpass debhelper devscripts fakeroot pkg-config make cmake ncdu rsync #build-essential
sudo apt install -y postgresql-all postgresql-server-dev-all libreadline-dev flex bison libxml2-dev libxml2-utils xsltproc libc++-dev libc++abi-dev libglib2.0-dev libtinfo6 libstdc++-12-dev liblz4-dev ninja-build
elif [[ ${OS_VERSION} == "24" ]]; then
log_info "install ubuntu24 utils"
sudo apt install -y lz4 unzip wget patch bash lsof sshpass debhelper devscripts fakeroot pkg-config make cmake ncdu rsync #build-essential
sudo apt install -y postgresql-all postgresql-server-dev-all libreadline-dev flex bison libxml2-dev libxml2-utils xsltproc libc++-dev libc++abi-dev libglib2.0-dev libtinfo6 libstdc++-12-dev liblz4-dev ninja-build
fi
构建此扩展需要用到 patchelf
工具:
yum install -y patchelf
apt install -y patchelf
在 EL8 上构建时,编译器版本过低,需要进行如下的 HotFix:
cd ~/rpmbuild/SOURCES
tar -xf pg_mooncake-0.1.2.tar.gz
vi pg_mooncake-0.1.2/src/pgduckdb/scan/postgres_seq_scan.cpp
75G dd dd j dd :q
tar -zcf pg_mooncake-0.1.2.tar.gz pg_mooncake-0.1.2
rm -rf pg_mooncake-0.1.2
Nope
pg_duckdb
el8:*:*
pljava
: el8:*:*
pllua
: el8:arm:13,14,15
h3
: el8.amd.pg17
jdbc_fdw
: el:arm:*
pg_partman
: u24:*:13
wiltondb
: d12:*:*
citus
and hydra
are mutually exclusivepg_duckdb
and pg_mooncake
are mutually exclusivepg_duckdb
will invalidate duckdb_fdw
documentdb_core
is not available on arm
archvchord
0.2+ is not available on d12/u22
(0.1 available)以下扩展插件尚未支持 PostgreSQL:
以下扩展插件尚未提供开源协议:
以下扩展为 Debian 系统独有,需要移植到 EL 系统中:
以下扩展为 EL 系统独有,需要移植到 Debian 系统中:
New extensions:
pig
0.0.1, the Pigsty CLI toolTIME 类目共有 11 个可用扩展:
扩展名(详情) | 标准名(官网) | 仓库 | 版本 | 类目 | 许可证 | LOAD |
DDL |
TRUST |
RELOC |
简介 |
---|---|---|---|---|---|---|---|---|---|---|
timescaledb | timescaledb |
PIGSTY | 2.19.0 | TIME |
Timescale | 时序数据库扩展插件 | ||||
timescaledb_toolkit | timescaledb_toolkit |
PIGSTY | 1.19.0 | TIME |
Timescale | 超表分析查询,时间序列流式处理,以及其他SQL工具 | ||||
timeseries | pg_timeseries |
PIGSTY | 0.1.6 | TIME |
PostgreSQL | Tembo时序数据API封装 | ||||
periods | periods |
PGDG | 1.2.3 | TIME |
PostgreSQL | 为 PERIODs 和 SYSTEM VERSIONING 提供标准 SQL 功能 | ||||
temporal_tables | temporal_tables |
PIGSTY | 1.2.2 | TIME |
BSD 2 | 时态表功能支持 | ||||
emaj | emaj |
MIXED | 4.6.0 | TIME |
GPLv3 | 让数据库的子集具有细粒度日志和时间旅行功能 | ||||
table_version | table_version |
MIXED | 1.11.1 | TIME |
BSD 3 | PostgreSQL 版本控制表扩展 | ||||
pg_cron | pg_cron |
PGDG | 1.6.5 | TIME |
PostgreSQL | 定时任务调度器 | ||||
pg_task | pg_task |
PGDG | 2.1.7 | TIME |
MIT | 在特定时间点在后台执行SQL命令 | ||||
pg_later | pg_later |
PIGSTY | 0.3.0 | TIME |
PostgreSQL | 执行查询,并在稍后异步获取查询结果 | ||||
pg_background | pg_background |
MIXED | 1.3 | TIME |
GPLv3 | 在后台运行 SQL 查询 |
PIGSTY 第三方扩展: timescaledb
: 时序数据库扩展插件
timescaledb
timescaledb
TIME
17
,16
,15
,14
CREATE EXTENSION
DDLtimescaledb_information
, timescaledb_experimental
timescaledb-tsl_$v*
2.18.2
postgresql-$v-timescaledb-tsl
2.18.2
使用 pig
命令行工具安装 timescaledb
扩展:
pig ext install timescaledb
使用 Pigsty剧本 安装 timescaledb 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["timescaledb"]}' # -l <集群名>
从 YUM仓库 手工安装 timescaledb
RPM 包:
dnf install timescaledb-tsl_17*;
dnf install timescaledb-tsl_16*;
dnf install timescaledb-tsl_15*;
dnf install timescaledb-tsl_14*;
从 APT仓库 手工安装 timescaledb
DEB 包:
apt install postgresql-17-timescaledb-tsl;
apt install postgresql-16-timescaledb-tsl;
apt install postgresql-15-timescaledb-tsl;
apt install postgresql-14-timescaledb-tsl;
扩展 timescaledb
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'timescaledb'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 timescaledb
扩展:
CREATE EXTENSION timescaledb;
Create a table and turn it into hypertable
DROP TABLE IF EXISTS ts_test;
CREATE TABLE ts_test
(
id BIGINT PRIMARY KEY,
ts TIMESTAMPTZ NOT NULL,
v INTEGER -- payload
);
SELECT create_hypertable('ts_test', by_range('id'));
INSERT INTO ts_test
SELECT i, now() + (i || ' seconds')::INTERVAL, i % 100
FROM generate_series(1, 1000000) i;
ALTER TABLE ts_test SET (timescaledb.compress_chunk_time_interval = '24 hours');
Continuous Agg Example:
CREATE MATERIALIZED VIEW continuous_aggregate_daily( timec, minl, sumt, sumh )
WITH (timescaledb.continuous) AS
SELECT count(*) FROM ts_test;
SELECT add_job('SELECT 1','1h', initial_start => '2024-07-09 18:52:00+00'::timestamptz);
PIGSTY 第三方扩展: timescaledb_toolkit
: 超表分析查询,时间序列流式处理,以及其他SQL工具
timescaledb_toolkit
timescaledb_toolkit
TIME
pgrx
17
,16
,15
,14
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建timescaledb-toolkit_$v
1.19.0
postgresql-$v-timescaledb-toolkit
1.19.0
使用 pig
命令行工具安装 timescaledb_toolkit
扩展:
pig ext install timescaledb_toolkit
使用 Pigsty剧本 安装 timescaledb_toolkit 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["timescaledb_toolkit"]}' # -l <集群名>
从 YUM仓库 手工安装 timescaledb_toolkit
RPM 包:
dnf install timescaledb-toolkit_17;
dnf install timescaledb-toolkit_16;
dnf install timescaledb-toolkit_15;
dnf install timescaledb-toolkit_14;
从 APT仓库 手工安装 timescaledb_toolkit
DEB 包:
apt install postgresql-17-timescaledb-toolkit;
apt install postgresql-16-timescaledb-toolkit;
apt install postgresql-15-timescaledb-toolkit;
apt install postgresql-14-timescaledb-toolkit;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 timescaledb_toolkit
扩展:
CREATE EXTENSION timescaledb_toolkit;
This extension provide experimental features for timescaledb, check the docs for details.
The following links lead to pages for the different features in the TimescaleDB Toolkit repository.
ASAP Smoothing experimental - A data smoothing algorithm designed to generate human readable graphs which maintain any erratic data behavior while smoothing away the cyclic noise.
Hyperloglog experimental – An approximate COUNT DISTINCT
based on hashing that provides reasonable accuracy in constant space. (Methods)
LTTB experimental – A downsample method that preserves visual similarity. (Methods)
Percentile Approximation - A simple percentile approximation interface [(Methods)], wraps and simplifies the lower level algorithms:
PIGSTY 第三方扩展: pg_timeseries
: Tembo时序数据API封装
timeseries
pg_timeseries
TIME
17
,16
,15
,14
,13
CREATE EXTENSION
DDLcolumnar
, pg_cron
, pg_ivm
, pg_partman
pg_timeseries_$v
0.1.6
hydra_$v
, pg_cron_$v
, pg_ivm_$v
, pg_partman_$v
postgresql-$v-pg-timeseries
0.1.6
使用 pig
命令行工具安装 pg_timeseries
扩展:
pig ext install pg_timeseries; # 扩展名称
pig ext install timeseries; # 标准包名
使用 Pigsty剧本 安装 pg_timeseries 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_timeseries"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_timeseries
RPM 包:
dnf install pg_timeseries_17;
dnf install pg_timeseries_16;
dnf install pg_timeseries_15;
dnf install pg_timeseries_14;
dnf install pg_timeseries_13;
从 APT仓库 手工安装 pg_timeseries
DEB 包:
apt install postgresql-17-pg-timeseries;
apt install postgresql-16-pg-timeseries;
apt install postgresql-15-pg-timeseries;
apt install postgresql-14-pg-timeseries;
apt install postgresql-13-pg-timeseries;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 timeseries
扩展:
CREATE EXTENSION timeseries CASCADE;
PGDG 第一方扩展: periods
: 为 PERIODs 和 SYSTEM VERSIONING 提供标准 SQL 功能
periods
periods
TIME
17
,16
,15
,14
,13
CREATE EXTENSION
DDLbtree_gist
periods_$v*
1.2.2
postgresql-$v-periods
1.2.3
使用 pig
命令行工具安装 periods
扩展:
pig ext install periods
使用 Pigsty剧本 安装 periods 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["periods"]}' # -l <集群名>
dnf install periods_17*;
dnf install periods_16*;
dnf install periods_15*;
dnf install periods_14*;
dnf install periods_13*;
apt install postgresql-17-periods;
apt install postgresql-16-periods;
apt install postgresql-15-periods;
apt install postgresql-14-periods;
apt install postgresql-13-periods;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 periods
扩展:
CREATE EXTENSION periods CASCADE;
PIGSTY 第三方扩展: temporal_tables
: 时态表功能支持
temporal_tables
temporal_tables
TIME
pgdg-flaw
17
,16
,15
,14
,13
CREATE EXTENSION
DDLtemporal_tables_$v*
1.2.2
postgresql-$v-temporal-tables
1.2.2
使用 pig
命令行工具安装 temporal_tables
扩展:
pig ext install temporal_tables
使用 Pigsty剧本 安装 temporal_tables 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["temporal_tables"]}' # -l <集群名>
从 YUM仓库 手工安装 temporal_tables
RPM 包:
dnf install temporal_tables_17*;
dnf install temporal_tables_16*;
dnf install temporal_tables_15*;
dnf install temporal_tables_14*;
dnf install temporal_tables_13*;
从 APT仓库 手工安装 temporal_tables
DEB 包:
apt install postgresql-17-temporal-tables;
apt install postgresql-16-temporal-tables;
apt install postgresql-15-temporal-tables;
apt install postgresql-14-temporal-tables;
apt install postgresql-13-temporal-tables;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 temporal_tables
扩展:
CREATE EXTENSION temporal_tables;
MIXED 第三方扩展: emaj
: 让数据库的子集具有细粒度日志和时间旅行功能
emaj
emaj
TIME
17
,16
,15
,14
,13
CREATE EXTENSION
DDLemaj
dblink
, btree_gist
e-maj_$v
4.5.0
postgresql-$v-emaj
4.4.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
e-maj_17 PGDG 4.5.0 |
e-maj_16 PGDG 4.5.0 |
e-maj_15 PGDG 4.5.0 |
e-maj_14 PGDG 4.5.0 |
e-maj_13 PGDG 4.5.0 |
el8 |
aarch64 |
e-maj_17 PGDG 4.5.0 |
e-maj_16 PGDG 4.5.0 |
e-maj_15 PGDG 4.5.0 |
e-maj_14 PGDG 4.5.0 |
e-maj_13 PGDG 4.5.0 |
el9 |
x86_64 |
e-maj_17 PGDG 4.5.0 |
e-maj_16 PGDG 4.5.0 |
e-maj_15 PGDG 4.5.0 |
e-maj_14 PGDG 4.5.0 |
e-maj_13 PGDG 4.5.0 |
el9 |
aarch64 |
e-maj_17 PGDG 4.5.0 |
e-maj_16 PGDG 4.5.0 |
e-maj_15 PGDG 4.5.0 |
e-maj_14 PGDG 4.5.0 |
e-maj_13 PGDG 4.5.0 |
d12 |
x86_64 |
postgresql-17-emaj PIGSTY 4.6.0 |
postgresql-16-emaj PIGSTY 4.6.0 |
postgresql-15-emaj PIGSTY 4.6.0 |
postgresql-14-emaj PIGSTY 4.6.0 |
postgresql-13-emaj PIGSTY 4.6.0 |
d12 |
aarch64 |
postgresql-17-emaj PIGSTY 4.6.0 |
postgresql-16-emaj PIGSTY 4.6.0 |
postgresql-15-emaj PIGSTY 4.6.0 |
postgresql-14-emaj PIGSTY 4.6.0 |
postgresql-13-emaj PIGSTY 4.6.0 |
u22 |
x86_64 |
postgresql-17-emaj PIGSTY 4.6.0 |
postgresql-16-emaj PIGSTY 4.6.0 |
postgresql-15-emaj PIGSTY 4.6.0 |
postgresql-14-emaj PIGSTY 4.6.0 |
postgresql-13-emaj PIGSTY 4.6.0 |
u22 |
aarch64 |
postgresql-17-emaj PIGSTY 4.6.0 |
postgresql-16-emaj PIGSTY 4.6.0 |
postgresql-15-emaj PIGSTY 4.6.0 |
postgresql-14-emaj PIGSTY 4.6.0 |
postgresql-13-emaj PIGSTY 4.6.0 |
u24 |
x86_64 |
postgresql-17-emaj PIGSTY 4.6.0 |
postgresql-16-emaj PIGSTY 4.6.0 |
postgresql-15-emaj PIGSTY 4.6.0 |
postgresql-14-emaj PIGSTY 4.6.0 |
postgresql-13-emaj PIGSTY 4.6.0 |
u24 |
aarch64 |
postgresql-17-emaj PIGSTY 4.6.0 |
postgresql-16-emaj PIGSTY 4.6.0 |
postgresql-15-emaj PIGSTY 4.6.0 |
postgresql-14-emaj PIGSTY 4.6.0 |
postgresql-13-emaj PIGSTY 4.6.0 |
使用 pig
命令行工具安装 emaj
扩展:
pig ext install emaj
使用 Pigsty剧本 安装 emaj 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["emaj"]}' # -l <集群名>
dnf install e-maj_17;
dnf install e-maj_16;
dnf install e-maj_15;
dnf install e-maj_14;
dnf install e-maj_13;
apt install postgresql-17-emaj;
apt install postgresql-16-emaj;
apt install postgresql-15-emaj;
apt install postgresql-14-emaj;
apt install postgresql-13-emaj;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 emaj
扩展:
CREATE EXTENSION emaj CASCADE;
MIXED 第三方扩展: table_version
: PostgreSQL 版本控制表扩展
table_version
table_version
TIME
pgdg-flaw
17
,16
,15
,14
,13
CREATE EXTENSION
DDLtable_version
plpgsql
table_version_$v
1.11.1
postgresql-$v-table-version
1.11.0
使用 pig
命令行工具安装 table_version
扩展:
pig ext install table_version
使用 Pigsty剧本 安装 table_version 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["table_version"]}' # -l <集群名>
从 YUM仓库 手工安装 table_version
RPM 包:
dnf install table_version_17;
dnf install table_version_16;
dnf install table_version_15;
dnf install table_version_14;
dnf install table_version_13;
从 APT仓库 手工安装 table_version
DEB 包:
apt install postgresql-17-table-version;
apt install postgresql-16-table-version;
apt install postgresql-15-table-version;
apt install postgresql-14-table-version;
apt install postgresql-13-table-version;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 table_version
扩展:
CREATE EXTENSION table_version CASCADE;
PGDG 第一方扩展: pg_cron
: 定时任务调度器
pg_cron
pg_cron
TIME
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_catalog
pg_cron_$v*
1.6
postgresql-$v-cron
1.6
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg_cron_17 PGDG 1.6.5 |
pg_cron_16 PGDG 1.6.5 |
pg_cron_15 PGDG 1.6.5 |
pg_cron_14 PGDG 1.6.5 |
pg_cron_13 PGDG 1.6.5 |
el8 |
aarch64 |
pg_cron_17 PGDG 1.6.5 |
pg_cron_16 PGDG 1.6.5 |
pg_cron_15 PGDG 1.6.5 |
pg_cron_14 PGDG 1.6.5 |
pg_cron_13 PGDG 1.6.5 |
el9 |
x86_64 |
pg_cron_17 PGDG 1.6.5 |
pg_cron_16 PGDG 1.6.5 |
pg_cron_15 PGDG 1.6.5 |
pg_cron_14 PGDG 1.6.5 |
pg_cron_13 PGDG 1.6.5 |
el9 |
aarch64 |
pg_cron_17 PGDG 1.6.5 |
pg_cron_16 PGDG 1.6.5 |
pg_cron_15 PGDG 1.6.5 |
pg_cron_14 PGDG 1.6.5 |
pg_cron_13 PGDG 1.6.5 |
d12 |
x86_64 |
postgresql-17-cron PGDG 1.6.5 |
postgresql-16-cron PGDG 1.6.5 |
postgresql-15-cron PGDG 1.6.5 |
postgresql-14-cron PGDG 1.6.5 |
postgresql-13-cron PGDG 1.6.5 |
d12 |
aarch64 |
postgresql-17-cron PGDG 1.6.5 |
postgresql-16-cron PGDG 1.6.5 |
postgresql-15-cron PGDG 1.6.5 |
postgresql-14-cron PGDG 1.6.5 |
postgresql-13-cron PGDG 1.6.5 |
u22 |
x86_64 |
postgresql-17-cron PGDG 1.6.5 |
postgresql-16-cron PGDG 1.6.5 |
postgresql-15-cron PGDG 1.6.5 |
postgresql-14-cron PGDG 1.6.5 |
postgresql-13-cron PGDG 1.6.5 |
u22 |
aarch64 |
postgresql-17-cron PGDG 1.6.5 |
postgresql-16-cron PGDG 1.6.5 |
postgresql-15-cron PGDG 1.6.5 |
postgresql-14-cron PGDG 1.6.5 |
postgresql-13-cron PGDG 1.6.5 |
u24 |
x86_64 |
postgresql-17-cron PGDG 1.6.5 |
postgresql-16-cron PGDG 1.6.5 |
postgresql-15-cron PGDG 1.6.5 |
postgresql-14-cron PGDG 1.6.5 |
postgresql-13-cron PGDG 1.6.5 |
u24 |
aarch64 |
postgresql-17-cron PGDG 1.6.5 |
postgresql-16-cron PGDG 1.6.5 |
postgresql-15-cron PGDG 1.6.5 |
postgresql-14-cron PGDG 1.6.5 |
postgresql-13-cron PGDG 1.6.5 |
使用 pig
命令行工具安装 pg_cron
扩展:
pig ext install pg_cron
使用 Pigsty剧本 安装 pg_cron 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_cron"]}' # -l <集群名>
dnf install pg_cron_17*;
dnf install pg_cron_16*;
dnf install pg_cron_15*;
dnf install pg_cron_14*;
dnf install pg_cron_13*;
apt install postgresql-17-cron;
apt install postgresql-16-cron;
apt install postgresql-15-cron;
apt install postgresql-14-cron;
apt install postgresql-13-cron;
扩展 pg_cron
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_cron'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_cron
扩展:
CREATE EXTENSION pg_cron;
beware that cron.database
has to be set before adding to shared_preload_libraries
-- Delete old data on Saturday at 3:30am (GMT)
SELECT cron.schedule('30 3 * * 6', $$DELETE FROM events WHERE event_time < now() - interval '1 week'$$);
schedule
----------
42
-- Vacuum every day at 10:00am (GMT)
SELECT cron.schedule('nightly-vacuum', '0 10 * * *', 'VACUUM');
schedule
----------
43
-- Change to vacuum at 3:00am (GMT)
SELECT cron.schedule('nightly-vacuum', '0 3 * * *', 'VACUUM');
schedule
----------
43
-- Stop scheduling jobs
SELECT cron.unschedule('nightly-vacuum' );
unschedule
------------
t
SELECT cron.unschedule(42);
unschedule
------------
t
-- Vacuum every Sunday at 4:00am (GMT) in a database other than the one pg_cron is installed in
SELECT cron.schedule_in_database('weekly-vacuum', '0 4 * * 0', 'VACUUM', 'some_other_database');
schedule
----------
44
-- Call a stored procedure every 5 seconds
SELECT cron.schedule('process-updates', '5 seconds', 'CALL process_updates()');
-- Process payroll at 12:00 of the last day of each month
SELECT cron.schedule('process-payroll', '0 12 $ * *', 'CALL process_payroll()');
Crontab format:
┌───────────── min (0 - 59)
│ ┌────────────── hour (0 - 23)
│ │ ┌─────────────── day of month (1 - 31) or last day of the month ($)
│ │ │ ┌──────────────── month (1 - 12)
│ │ │ │ ┌───────────────── day of week (0 - 6) (0 to 6 are Sunday to
│ │ │ │ │ Saturday, or use names; 7 is also Sunday)
│ │ │ │ │
│ │ │ │ │
* * * * *
PGDG 第三方扩展: pg_task
: 在特定时间点在后台执行SQL命令
pg_task
pg_task
TIME
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_task_$v*
1.0.0
postgresql-$v-pg-task
1.0.0
使用 pig
命令行工具安装 pg_task
扩展:
pig ext install pg_task
使用 Pigsty剧本 安装 pg_task 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_task"]}' # -l <集群名>
dnf install pg_task_17*;
dnf install pg_task_16*;
dnf install pg_task_15*;
dnf install pg_task_14*;
dnf install pg_task_13*;
apt install postgresql-17-pg-task;
apt install postgresql-16-pg-task;
apt install postgresql-15-pg-task;
apt install postgresql-14-pg-task;
apt install postgresql-13-pg-task;
扩展 pg_task
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_task'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_task
扩展:
CREATE EXTENSION pg_task;
PIGSTY 第三方扩展: pg_later
: 执行查询,并在稍后异步获取查询结果
pg_later
pg_later
TIME
pgrx
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpglater
pgmq
pg_later_$v
0.3.0
pgmq_$v
postgresql-$v-pg-later
0.3.0
postgresql-$v-pgmq
使用 pig
命令行工具安装 pg_later
扩展:
pig ext install pg_later
使用 Pigsty剧本 安装 pg_later 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_later"]}' # -l <集群名>
dnf install pg_later_17;
dnf install pg_later_16;
dnf install pg_later_15;
dnf install pg_later_14;
dnf install pg_later_13;
apt install postgresql-17-pg-later;
apt install postgresql-16-pg-later;
apt install postgresql-15-pg-later;
apt install postgresql-14-pg-later;
apt install postgresql-13-pg-later;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_later
扩展:
CREATE EXTENSION pg_later CASCADE;
MIXED 第三方扩展: pg_background
: 在后台运行 SQL 查询
pg_background
pg_background
TIME
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_background_$v*
1.3
postgresql-$v-pg-background
1.3
使用 pig
命令行工具安装 pg_background
扩展:
pig ext install pg_background
使用 Pigsty剧本 安装 pg_background 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_background"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_background
RPM 包:
dnf install pg_background_17*;
dnf install pg_background_16*;
dnf install pg_background_15*;
dnf install pg_background_14*;
dnf install pg_background_13*;
从 APT仓库 手工安装 pg_background
DEB 包:
apt install postgresql-17-pg-background;
apt install postgresql-16-pg-background;
apt install postgresql-15-pg-background;
apt install postgresql-14-pg-background;
apt install postgresql-13-pg-background;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_background
扩展:
CREATE EXTENSION pg_background;
GIS 类目共有 19 个可用扩展:
扩展名(详情) | 标准名(官网) | 仓库 | 版本 | 类目 | 许可证 | LOAD |
DDL |
TRUST |
RELOC |
简介 |
---|---|---|---|---|---|---|---|---|---|---|
postgis | postgis |
PGDG | 3.5.2 | GIS |
GPLv2 | PostGIS 几何和地理空间扩展 | ||||
postgis_topology | postgis |
PGDG | 3.5.2 | GIS |
GPLv2 | PostGIS 拓扑空间类型和函数 | ||||
postgis_raster | postgis |
PGDG | 3.5.2 | GIS |
GPLv2 | PostGIS 光栅类型和函数 | ||||
postgis_sfcgal | postgis |
PGDG | 3.5.2 | GIS |
GPLv2 | PostGIS SFCGAL 函数 | ||||
postgis_tiger_geocoder | postgis |
PGDG | 3.5.2 | GIS |
GPLv2 | PostGIS tiger 地理编码器和反向地理编码器 | ||||
address_standardizer | postgis |
PGDG | 3.5.2 | GIS |
GPLv2 | 地址标准化函数。 | ||||
address_standardizer_data_us | postgis |
PGDG | 3.5.2 | GIS |
GPLv2 | 地址标准化函数:美国数据集示例 | ||||
pgrouting | pgrouting |
PGDG | 3.7.3 | GIS |
GPLv2 | 提供寻路能力 | ||||
pointcloud | pointcloud |
MIXED | 1.2.5 | GIS |
BSD 3 | 提供激光雷达点云数据类型支持 | ||||
pointcloud_postgis | pointcloud |
PGDG | 1.2.5 | GIS |
BSD 3 | 将激光雷达点云与PostGIS几何类型相集成 | ||||
h3 | pg_h3 |
PGDG | 4.2.2 | GIS |
Apache-2.0 | H3六边形层级索引支持 | ||||
h3_postgis | pg_h3 |
PGDG | 4.2.2 | GIS |
Apache-2.0 | H3与PostGIS集成的扩展插件 | ||||
q3c | q3c |
MIXED | 2.0.1 | GIS |
GPLv2 | Q3C天空索引插件 | ||||
ogr_fdw | ogr_fdw |
PGDG | 1.1.6 | GIS |
MIT | GIS 数据外部数据源包装器 | ||||
geoip | geoip |
MIXED | 0.3.0 | GIS |
BSD 2 | IP 地理位置扩展(围绕 MaxMind GeoLite 数据集的包装器) | ||||
pg_polyline | pg_polyline |
PIGSTY | 0.0.1 | GIS |
MIT | Google快速Polyline编码解码扩展 | ||||
pg_geohash | pg_geohash |
PIGSTY | 1.0 | GIS |
MIT | 使用GeoHash处理空间坐标的函数包 | ||||
mobilitydb | mobilitydb |
PGDG | 1.2.0 | GIS |
GPLv3 | MobilityDB地理空间投影数据管理分析平台 | ||||
earthdistance | earthdistance |
CONTRIB | 1.2 | GIS |
PostgreSQL | 计算地球表面上的大圆距离 |
PGDG 第一方扩展: postgis
: PostGIS 几何和地理空间扩展
postgis
postgis
GIS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpostgis35_$v*
3.5.2
postgresql-$v-postgis-3 postgresql-$v-postgis-3-scripts
3.5.2
使用 pig
命令行工具安装 postgis
扩展:
pig ext install postgis
使用 Pigsty剧本 安装 postgis 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["postgis"]}' # postgis35```
从 [**YUM仓库**](/ext/repo/yum) 手工安装 `postgis` [**RPM**](/ext/list/rpm) 包:
```bash
dnf install postgis35_17*;
dnf install postgis35_16*;
dnf install postgis35_15*;
dnf install postgis35_14*;
dnf install postgis35_13*;
apt install postgresql-17-postgis-3 postgresql-17-postgis-3-scripts;
apt install postgresql-16-postgis-3 postgresql-16-postgis-3-scripts;
apt install postgresql-15-postgis-3 postgresql-15-postgis-3-scripts;
apt install postgresql-14-postgis-3 postgresql-14-postgis-3-scripts;
apt install postgresql-13-postgis-3 postgresql-13-postgis-3-scripts;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 postgis
扩展:
CREATE EXTENSION postgis;
PGDG 第一方扩展: postgis
: PostGIS 拓扑空间类型和函数
postgis_topology
postgis
GIS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLtopology
postgis
postgis35_$v*
3.5.2
postgresql-$v-postgis-3 postgresql-$v-postgis-3-scripts
3.5.2
使用 pig
命令行工具安装 postgis
扩展:
pig ext install postgis; # 扩展名称
pig ext install postgis_topology; # 标准包名
使用 Pigsty剧本 安装 postgis 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["postgis"]}' # -l <集群名>
dnf install postgis35_17*;
dnf install postgis35_16*;
dnf install postgis35_15*;
dnf install postgis35_14*;
dnf install postgis35_13*;
apt install postgresql-17-postgis-3 postgresql-17-postgis-3-scripts;
apt install postgresql-16-postgis-3 postgresql-16-postgis-3-scripts;
apt install postgresql-15-postgis-3 postgresql-15-postgis-3-scripts;
apt install postgresql-14-postgis-3 postgresql-14-postgis-3-scripts;
apt install postgresql-13-postgis-3 postgresql-13-postgis-3-scripts;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 postgis_topology
扩展:
CREATE EXTENSION postgis_topology CASCADE;
PGDG 第一方扩展: postgis
: PostGIS 光栅类型和函数
postgis_raster
postgis
GIS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpostgis
postgis35_$v*
3.5.2
postgresql-$v-postgis-3 postgresql-$v-postgis-3-scripts
3.5.2
使用 pig
命令行工具安装 postgis
扩展:
pig ext install postgis; # 扩展名称
pig ext install postgis_raster; # 标准包名
使用 Pigsty剧本 安装 postgis 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["postgis"]}' # -l <集群名>
dnf install postgis35_17*;
dnf install postgis35_16*;
dnf install postgis35_15*;
dnf install postgis35_14*;
dnf install postgis35_13*;
apt install postgresql-17-postgis-3 postgresql-17-postgis-3-scripts;
apt install postgresql-16-postgis-3 postgresql-16-postgis-3-scripts;
apt install postgresql-15-postgis-3 postgresql-15-postgis-3-scripts;
apt install postgresql-14-postgis-3 postgresql-14-postgis-3-scripts;
apt install postgresql-13-postgis-3 postgresql-13-postgis-3-scripts;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 postgis_raster
扩展:
CREATE EXTENSION postgis_raster CASCADE;
PGDG 第一方扩展: postgis
: PostGIS SFCGAL 函数
postgis_sfcgal
postgis
GIS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpostgis
postgis35_$v*
3.5.2
postgresql-$v-postgis-3 postgresql-$v-postgis-3-scripts
3.5.2
使用 pig
命令行工具安装 postgis
扩展:
pig ext install postgis; # 扩展名称
pig ext install postgis_sfcgal; # 标准包名
使用 Pigsty剧本 安装 postgis 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["postgis"]}' # -l <集群名>
dnf install postgis35_17*;
dnf install postgis35_16*;
dnf install postgis35_15*;
dnf install postgis35_14*;
dnf install postgis35_13*;
apt install postgresql-17-postgis-3 postgresql-17-postgis-3-scripts;
apt install postgresql-16-postgis-3 postgresql-16-postgis-3-scripts;
apt install postgresql-15-postgis-3 postgresql-15-postgis-3-scripts;
apt install postgresql-14-postgis-3 postgresql-14-postgis-3-scripts;
apt install postgresql-13-postgis-3 postgresql-13-postgis-3-scripts;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 postgis_sfcgal
扩展:
CREATE EXTENSION postgis_sfcgal CASCADE;
PGDG 第一方扩展: postgis
: PostGIS tiger 地理编码器和反向地理编码器
postgis_tiger_geocoder
postgis
GIS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建tiger
postgis
, fuzzystrmatch
postgis35_$v*
3.5.2
postgresql-$v-postgis-3 postgresql-$v-postgis-3-scripts
3.5.2
使用 pig
命令行工具安装 postgis
扩展:
pig ext install postgis; # 扩展名称
pig ext install postgis_tiger_geocoder; # 标准包名
使用 Pigsty剧本 安装 postgis 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["postgis"]}' # -l <集群名>
dnf install postgis35_17*;
dnf install postgis35_16*;
dnf install postgis35_15*;
dnf install postgis35_14*;
dnf install postgis35_13*;
apt install postgresql-17-postgis-3 postgresql-17-postgis-3-scripts;
apt install postgresql-16-postgis-3 postgresql-16-postgis-3-scripts;
apt install postgresql-15-postgis-3 postgresql-15-postgis-3-scripts;
apt install postgresql-14-postgis-3 postgresql-14-postgis-3-scripts;
apt install postgresql-13-postgis-3 postgresql-13-postgis-3-scripts;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 postgis_tiger_geocoder
扩展:
CREATE EXTENSION postgis_tiger_geocoder CASCADE;
PGDG 第一方扩展: postgis
: 地址标准化函数。
address_standardizer
postgis
GIS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpostgis35_$v*
3.5.2
postgresql-$v-postgis-3 postgresql-$v-postgis-3-scripts
3.5.2
使用 pig
命令行工具安装 postgis
扩展:
pig ext install postgis; # 扩展名称
pig ext install address_standardizer; # 标准包名
使用 Pigsty剧本 安装 postgis 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["postgis"]}' # -l <集群名>
dnf install postgis35_17*;
dnf install postgis35_16*;
dnf install postgis35_15*;
dnf install postgis35_14*;
dnf install postgis35_13*;
apt install postgresql-17-postgis-3 postgresql-17-postgis-3-scripts;
apt install postgresql-16-postgis-3 postgresql-16-postgis-3-scripts;
apt install postgresql-15-postgis-3 postgresql-15-postgis-3-scripts;
apt install postgresql-14-postgis-3 postgresql-14-postgis-3-scripts;
apt install postgresql-13-postgis-3 postgresql-13-postgis-3-scripts;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 address_standardizer
扩展:
CREATE EXTENSION address_standardizer;
PGDG 第一方扩展: postgis
: 地址标准化函数:美国数据集示例
address_standardizer_data_us
postgis
GIS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpostgis35_$v*
3.5.2
postgresql-$v-postgis-3 postgresql-$v-postgis-3-scripts
3.5.2
使用 pig
命令行工具安装 postgis
扩展:
pig ext install postgis; # 扩展名称
pig ext install address_standardizer_data_us; # 标准包名
使用 Pigsty剧本 安装 postgis 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["postgis"]}' # -l <集群名>
dnf install postgis35_17*;
dnf install postgis35_16*;
dnf install postgis35_15*;
dnf install postgis35_14*;
dnf install postgis35_13*;
apt install postgresql-17-postgis-3 postgresql-17-postgis-3-scripts;
apt install postgresql-16-postgis-3 postgresql-16-postgis-3-scripts;
apt install postgresql-15-postgis-3 postgresql-15-postgis-3-scripts;
apt install postgresql-14-postgis-3 postgresql-14-postgis-3-scripts;
apt install postgresql-13-postgis-3 postgresql-13-postgis-3-scripts;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 address_standardizer_data_us
扩展:
CREATE EXTENSION address_standardizer_data_us;
PGDG 第一方扩展: pgrouting
: 提供寻路能力
pgrouting
pgrouting
GIS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpostgis
pgrouting_$v*
3.7.3
postgresql-$v-pgrouting postgresql-$v-pgrouting-scripts
3.7.3
使用 pig
命令行工具安装 pgrouting
扩展:
pig ext install pgrouting
使用 Pigsty剧本 安装 pgrouting 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgrouting"]}' # -l <集群名>
dnf install pgrouting_17*;
dnf install pgrouting_16*;
dnf install pgrouting_15*;
dnf install pgrouting_14*;
dnf install pgrouting_13*;
apt install postgresql-17-pgrouting postgresql-17-pgrouting-scripts;
apt install postgresql-16-pgrouting postgresql-16-pgrouting-scripts;
apt install postgresql-15-pgrouting postgresql-15-pgrouting-scripts;
apt install postgresql-14-pgrouting postgresql-14-pgrouting-scripts;
apt install postgresql-13-pgrouting postgresql-13-pgrouting-scripts;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgrouting
扩展:
CREATE EXTENSION pgrouting CASCADE;
MIXED 第三方扩展: pointcloud
: 提供激光雷达点云数据类型支持
pointcloud
pointcloud
GIS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpointcloud_$v*
1.2.5
postgresql-$v-pointcloud
1.2.5
使用 pig
命令行工具安装 pointcloud
扩展:
pig ext install pointcloud
使用 Pigsty剧本 安装 pointcloud 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pointcloud"]}' # -l <集群名>
从 YUM仓库 手工安装 pointcloud
RPM 包:
dnf install pointcloud_17*;
dnf install pointcloud_16*;
dnf install pointcloud_15*;
dnf install pointcloud_14*;
dnf install pointcloud_13*;
从 APT仓库 手工安装 pointcloud
DEB 包:
apt install postgresql-17-pointcloud;
apt install postgresql-16-pointcloud;
apt install postgresql-15-pointcloud;
apt install postgresql-14-pointcloud;
apt install postgresql-13-pointcloud;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pointcloud
扩展:
CREATE EXTENSION pointcloud;
PGDG 第一方扩展: pointcloud
: 将激光雷达点云与PostGIS几何类型相集成
pointcloud_postgis
pointcloud
GIS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建postgis
, pointcloud
pointcloud_$v*
1.2.5
postgresql-$v-pointcloud
1.2.5
使用 pig
命令行工具安装 pointcloud
扩展:
pig ext install pointcloud; # 扩展名称
pig ext install pointcloud_postgis; # 标准包名
使用 Pigsty剧本 安装 pointcloud 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pointcloud"]}' # -l <集群名>
从 YUM仓库 手工安装 pointcloud
RPM 包:
dnf install pointcloud_17*;
dnf install pointcloud_16*;
dnf install pointcloud_15*;
dnf install pointcloud_14*;
dnf install pointcloud_13*;
从 APT仓库 手工安装 pointcloud
DEB 包:
apt install postgresql-17-pointcloud;
apt install postgresql-16-pointcloud;
apt install postgresql-15-pointcloud;
apt install postgresql-14-pointcloud;
apt install postgresql-13-pointcloud;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pointcloud_postgis
扩展:
CREATE EXTENSION pointcloud_postgis CASCADE;
PGDG 第一方扩展: pg_h3
: H3六边形层级索引支持
h3
pg_h3
GIS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLh3-pg_$v*
4.1.3
postgresql-$v-h3
4.2.2
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
h3-pg_16 PGDG 4.1.3 |
h3-pg_15 PGDG 4.1.3 |
h3-pg_14 PGDG 4.1.3 |
h3-pg_13 PGDG 4.1.3 |
|
el8 |
aarch64 |
h3-pg_17 PGDG 4.1.3 |
h3-pg_16 PGDG 4.1.3 |
h3-pg_15 PGDG 4.1.3 |
h3-pg_14 PGDG 4.1.3 |
h3-pg_13 PGDG 4.1.3 |
el9 |
x86_64 |
h3-pg_17 PGDG 4.1.3 |
h3-pg_16 PGDG 4.1.3 |
h3-pg_15 PGDG 4.1.3 |
h3-pg_14 PGDG 4.1.3 |
h3-pg_13 PGDG 4.1.3 |
el9 |
aarch64 |
h3-pg_17 PGDG 4.1.3 |
h3-pg_16 PGDG 4.1.3 |
h3-pg_15 PGDG 4.1.3 |
h3-pg_14 PGDG 4.1.3 |
h3-pg_13 PGDG 4.1.3 |
d12 |
x86_64 |
postgresql-17-h3 PGDG 4.2.2 |
postgresql-16-h3 PGDG 4.2.2 |
postgresql-15-h3 PGDG 4.2.2 |
postgresql-14-h3 PGDG 4.2.2 |
postgresql-13-h3 PGDG 4.2.2 |
d12 |
aarch64 |
postgresql-17-h3 PGDG 4.2.2 |
postgresql-16-h3 PGDG 4.2.2 |
postgresql-15-h3 PGDG 4.2.2 |
postgresql-14-h3 PGDG 4.2.2 |
postgresql-13-h3 PGDG 4.2.2 |
u22 |
x86_64 |
postgresql-17-h3 PGDG 4.2.2 |
postgresql-16-h3 PGDG 4.2.2 |
postgresql-15-h3 PGDG 4.2.2 |
postgresql-14-h3 PGDG 4.2.2 |
postgresql-13-h3 PGDG 4.2.2 |
u22 |
aarch64 |
postgresql-17-h3 PGDG 4.2.2 |
postgresql-16-h3 PGDG 4.2.2 |
postgresql-15-h3 PGDG 4.2.2 |
postgresql-14-h3 PGDG 4.2.2 |
postgresql-13-h3 PGDG 4.2.2 |
u24 |
x86_64 |
postgresql-17-h3 PGDG 4.2.2 |
postgresql-16-h3 PGDG 4.2.2 |
postgresql-15-h3 PGDG 4.2.2 |
postgresql-14-h3 PGDG 4.2.2 |
postgresql-13-h3 PGDG 4.2.2 |
u24 |
aarch64 |
postgresql-17-h3 PGDG 4.2.2 |
postgresql-16-h3 PGDG 4.2.2 |
postgresql-15-h3 PGDG 4.2.2 |
postgresql-14-h3 PGDG 4.2.2 |
postgresql-13-h3 PGDG 4.2.2 |
使用 pig
命令行工具安装 pg_h3
扩展:
pig ext install pg_h3; # 扩展名称
pig ext install h3; # 标准包名
使用 Pigsty剧本 安装 pg_h3 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_h3"]}' # -l <集群名>
dnf install h3-pg_17*;
dnf install h3-pg_16*;
dnf install h3-pg_15*;
dnf install h3-pg_14*;
dnf install h3-pg_13*;
apt install postgresql-17-h3;
apt install postgresql-16-h3;
apt install postgresql-15-h3;
apt install postgresql-14-h3;
apt install postgresql-13-h3;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 h3
扩展:
CREATE EXTENSION h3;
PGDG 第一方扩展: pg_h3
: H3与PostGIS集成的扩展插件
h3_postgis
pg_h3
GIS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLh3
, postgis
, postgis_raster
h3-pg_$v*
4.1.3
postgresql-$v-h3
4.2.2
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
h3-pg_16 PGDG 4.1.3 |
h3-pg_15 PGDG 4.1.3 |
h3-pg_14 PGDG 4.1.3 |
h3-pg_13 PGDG 4.1.3 |
|
el8 |
aarch64 |
h3-pg_17 PGDG 4.1.3 |
h3-pg_16 PGDG 4.1.3 |
h3-pg_15 PGDG 4.1.3 |
h3-pg_14 PGDG 4.1.3 |
h3-pg_13 PGDG 4.1.3 |
el9 |
x86_64 |
h3-pg_17 PGDG 4.1.3 |
h3-pg_16 PGDG 4.1.3 |
h3-pg_15 PGDG 4.1.3 |
h3-pg_14 PGDG 4.1.3 |
h3-pg_13 PGDG 4.1.3 |
el9 |
aarch64 |
h3-pg_17 PGDG 4.1.3 |
h3-pg_16 PGDG 4.1.3 |
h3-pg_15 PGDG 4.1.3 |
h3-pg_14 PGDG 4.1.3 |
h3-pg_13 PGDG 4.1.3 |
d12 |
x86_64 |
postgresql-17-h3 PGDG 4.2.2 |
postgresql-16-h3 PGDG 4.2.2 |
postgresql-15-h3 PGDG 4.2.2 |
postgresql-14-h3 PGDG 4.2.2 |
postgresql-13-h3 PGDG 4.2.2 |
d12 |
aarch64 |
postgresql-17-h3 PGDG 4.2.2 |
postgresql-16-h3 PGDG 4.2.2 |
postgresql-15-h3 PGDG 4.2.2 |
postgresql-14-h3 PGDG 4.2.2 |
postgresql-13-h3 PGDG 4.2.2 |
u22 |
x86_64 |
postgresql-17-h3 PGDG 4.2.2 |
postgresql-16-h3 PGDG 4.2.2 |
postgresql-15-h3 PGDG 4.2.2 |
postgresql-14-h3 PGDG 4.2.2 |
postgresql-13-h3 PGDG 4.2.2 |
u22 |
aarch64 |
postgresql-17-h3 PGDG 4.2.2 |
postgresql-16-h3 PGDG 4.2.2 |
postgresql-15-h3 PGDG 4.2.2 |
postgresql-14-h3 PGDG 4.2.2 |
postgresql-13-h3 PGDG 4.2.2 |
u24 |
x86_64 |
postgresql-17-h3 PGDG 4.2.2 |
postgresql-16-h3 PGDG 4.2.2 |
postgresql-15-h3 PGDG 4.2.2 |
postgresql-14-h3 PGDG 4.2.2 |
postgresql-13-h3 PGDG 4.2.2 |
u24 |
aarch64 |
postgresql-17-h3 PGDG 4.2.2 |
postgresql-16-h3 PGDG 4.2.2 |
postgresql-15-h3 PGDG 4.2.2 |
postgresql-14-h3 PGDG 4.2.2 |
postgresql-13-h3 PGDG 4.2.2 |
使用 pig
命令行工具安装 pg_h3
扩展:
pig ext install pg_h3; # 扩展名称
pig ext install h3_postgis; # 标准包名
使用 Pigsty剧本 安装 pg_h3 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_h3"]}' # -l <集群名>
dnf install h3-pg_17*;
dnf install h3-pg_16*;
dnf install h3-pg_15*;
dnf install h3-pg_14*;
dnf install h3-pg_13*;
apt install postgresql-17-h3;
apt install postgresql-16-h3;
apt install postgresql-15-h3;
apt install postgresql-14-h3;
apt install postgresql-13-h3;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 h3_postgis
扩展:
CREATE EXTENSION h3_postgis CASCADE;
MIXED 第三方扩展: q3c
: Q3C天空索引插件
q3c
q3c
GIS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLq3c_$v*
2.0.1
postgresql-$v-q3c
2.0.1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
q3c_17 PIGSTY 2.0.1 |
q3c_16 PIGSTY 2.0.1 |
q3c_15 PIGSTY 2.0.1 |
q3c_14 PIGSTY 2.0.1 |
q3c_13 PIGSTY 2.0.1 |
el8 |
aarch64 |
q3c_17 PIGSTY 2.0.1 |
q3c_16 PIGSTY 2.0.1 |
q3c_15 PIGSTY 2.0.1 |
q3c_14 PIGSTY 2.0.1 |
q3c_13 PIGSTY 2.0.1 |
el9 |
x86_64 |
q3c_17 PIGSTY 2.0.1 |
q3c_16 PIGSTY 2.0.1 |
q3c_15 PIGSTY 2.0.1 |
q3c_14 PIGSTY 2.0.1 |
q3c_13 PIGSTY 2.0.1 |
el9 |
aarch64 |
q3c_17 PIGSTY 2.0.1 |
q3c_16 PIGSTY 2.0.1 |
q3c_15 PIGSTY 2.0.1 |
q3c_14 PIGSTY 2.0.1 |
q3c_13 PIGSTY 2.0.1 |
d12 |
x86_64 |
postgresql-17-q3c PGDG 2.0.1 |
postgresql-16-q3c PGDG 2.0.1 |
postgresql-15-q3c PGDG 2.0.1 |
postgresql-14-q3c PGDG 2.0.1 |
postgresql-13-q3c PGDG 2.0.1 |
d12 |
aarch64 |
postgresql-17-q3c PGDG 2.0.1 |
postgresql-16-q3c PGDG 2.0.1 |
postgresql-15-q3c PGDG 2.0.1 |
postgresql-14-q3c PGDG 2.0.1 |
postgresql-13-q3c PGDG 2.0.1 |
u22 |
x86_64 |
postgresql-17-q3c PGDG 2.0.1 |
postgresql-16-q3c PGDG 2.0.1 |
postgresql-15-q3c PGDG 2.0.1 |
postgresql-14-q3c PGDG 2.0.1 |
postgresql-13-q3c PGDG 2.0.1 |
u22 |
aarch64 |
postgresql-17-q3c PGDG 2.0.1 |
postgresql-16-q3c PGDG 2.0.1 |
postgresql-15-q3c PGDG 2.0.1 |
postgresql-14-q3c PGDG 2.0.1 |
postgresql-13-q3c PGDG 2.0.1 |
u24 |
x86_64 |
postgresql-17-q3c PGDG 2.0.1 |
postgresql-16-q3c PGDG 2.0.1 |
postgresql-15-q3c PGDG 2.0.1 |
postgresql-14-q3c PGDG 2.0.1 |
postgresql-13-q3c PGDG 2.0.1 |
u24 |
aarch64 |
postgresql-17-q3c PGDG 2.0.1 |
postgresql-16-q3c PGDG 2.0.1 |
postgresql-15-q3c PGDG 2.0.1 |
postgresql-14-q3c PGDG 2.0.1 |
postgresql-13-q3c PGDG 2.0.1 |
使用 pig
命令行工具安装 q3c
扩展:
pig ext install q3c
使用 Pigsty剧本 安装 q3c 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["q3c"]}' # -l <集群名>
dnf install q3c_17*;
dnf install q3c_16*;
dnf install q3c_15*;
dnf install q3c_14*;
dnf install q3c_13*;
apt install postgresql-17-q3c;
apt install postgresql-16-q3c;
apt install postgresql-15-q3c;
apt install postgresql-14-q3c;
apt install postgresql-13-q3c;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 q3c
扩展:
CREATE EXTENSION q3c;
PGDG 第一方扩展: ogr_fdw
: GIS 数据外部数据源包装器
ogr_fdw
ogr_fdw
GIS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLogr_fdw_$v*
1.1
postgresql-$v-ogr-fdw
1.1
使用 pig
命令行工具安装 ogr_fdw
扩展:
pig ext install ogr_fdw
使用 Pigsty剧本 安装 ogr_fdw 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["ogr_fdw"]}' # -l <集群名>
dnf install ogr_fdw_17*;
dnf install ogr_fdw_16*;
dnf install ogr_fdw_15*;
dnf install ogr_fdw_14*;
dnf install ogr_fdw_13*;
apt install postgresql-17-ogr-fdw;
apt install postgresql-16-ogr-fdw;
apt install postgresql-15-ogr-fdw;
apt install postgresql-14-ogr-fdw;
apt install postgresql-13-ogr-fdw;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 ogr_fdw
扩展:
CREATE EXTENSION ogr_fdw;
MIXED 第三方扩展: geoip
: IP 地理位置扩展(围绕 MaxMind GeoLite 数据集的包装器)
geoip
geoip
GIS
pgdg-flaw
17
,16
,15
,14
,13
CREATE EXTENSION
DDLgeoip
ip4r
geoip_$v
0.3.0
postgresql-$v-geoip
0.3.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
geoip_17 PIGSTY 0.3.0 |
geoip_16 PIGSTY 0.3.0 |
geoip_15 PIGSTY 0.3.0 |
geoip_14 PIGSTY 0.3.0 |
geoip_13 PIGSTY 0.3.0 |
el8 |
aarch64 |
geoip_17 PIGSTY 0.3.0 |
geoip_16 PIGSTY 0.3.0 |
geoip_15 PIGSTY 0.3.0 |
geoip_14 PIGSTY 0.3.0 |
geoip_13 PIGSTY 0.3.0 |
el9 |
x86_64 |
geoip_17 PIGSTY 0.3.0 |
geoip_16 PIGSTY 0.3.0 |
geoip_15 PIGSTY 0.3.0 |
geoip_14 PIGSTY 0.3.0 |
geoip_13 PIGSTY 0.3.0 |
el9 |
aarch64 |
geoip_17 PIGSTY 0.3.0 |
geoip_16 PIGSTY 0.3.0 |
geoip_15 PIGSTY 0.3.0 |
geoip_14 PIGSTY 0.3.0 |
geoip_13 PIGSTY 0.3.0 |
d12 |
x86_64 |
postgresql-17-geoip PIGSTY 0.3.0 |
postgresql-16-geoip PIGSTY 0.3.0 |
postgresql-15-geoip PIGSTY 0.3.0 |
postgresql-14-geoip PIGSTY 0.3.0 |
postgresql-13-geoip PIGSTY 0.3.0 |
d12 |
aarch64 |
postgresql-17-geoip PIGSTY 0.3.0 |
postgresql-16-geoip PIGSTY 0.3.0 |
postgresql-15-geoip PIGSTY 0.3.0 |
postgresql-14-geoip PIGSTY 0.3.0 |
postgresql-13-geoip PIGSTY 0.3.0 |
u22 |
x86_64 |
postgresql-17-geoip PIGSTY 0.3.0 |
postgresql-16-geoip PIGSTY 0.3.0 |
postgresql-15-geoip PIGSTY 0.3.0 |
postgresql-14-geoip PIGSTY 0.3.0 |
postgresql-13-geoip PIGSTY 0.3.0 |
u22 |
aarch64 |
postgresql-17-geoip PIGSTY 0.3.0 |
postgresql-16-geoip PIGSTY 0.3.0 |
postgresql-15-geoip PIGSTY 0.3.0 |
postgresql-14-geoip PIGSTY 0.3.0 |
postgresql-13-geoip PIGSTY 0.3.0 |
u24 |
x86_64 |
postgresql-17-geoip PIGSTY 0.3.0 |
postgresql-16-geoip PIGSTY 0.3.0 |
postgresql-15-geoip PIGSTY 0.3.0 |
postgresql-14-geoip PIGSTY 0.3.0 |
postgresql-13-geoip PIGSTY 0.3.0 |
u24 |
aarch64 |
postgresql-17-geoip PIGSTY 0.3.0 |
postgresql-16-geoip PIGSTY 0.3.0 |
postgresql-15-geoip PIGSTY 0.3.0 |
postgresql-14-geoip PIGSTY 0.3.0 |
postgresql-13-geoip PIGSTY 0.3.0 |
使用 pig
命令行工具安装 geoip
扩展:
pig ext install geoip
使用 Pigsty剧本 安装 geoip 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["geoip"]}' # -l <集群名>
dnf install geoip_17;
dnf install geoip_16;
dnf install geoip_15;
dnf install geoip_14;
dnf install geoip_13;
apt install postgresql-17-geoip;
apt install postgresql-16-geoip;
apt install postgresql-15-geoip;
apt install postgresql-14-geoip;
apt install postgresql-13-geoip;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 geoip
扩展:
CREATE EXTENSION geoip CASCADE;
PIGSTY 第三方扩展: pg_polyline
: Google快速Polyline编码解码扩展
pg_polyline
pg_polyline
GIS
pgrx
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建pg_polyline_$v
0.0.1
postgresql-$v-pg-polyline
0.0.1
使用 pig
命令行工具安装 pg_polyline
扩展:
pig ext install pg_polyline
使用 Pigsty剧本 安装 pg_polyline 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_polyline"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_polyline
RPM 包:
dnf install pg_polyline_17;
dnf install pg_polyline_16;
dnf install pg_polyline_15;
dnf install pg_polyline_14;
dnf install pg_polyline_13;
从 APT仓库 手工安装 pg_polyline
DEB 包:
apt install postgresql-17-pg-polyline;
apt install postgresql-16-pg-polyline;
apt install postgresql-15-pg-polyline;
apt install postgresql-14-pg-polyline;
apt install postgresql-13-pg-polyline;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_polyline
扩展:
CREATE EXTENSION pg_polyline;
PIGSTY 第三方扩展: pg_geohash
: 使用GeoHash处理空间坐标的函数包
pg_geohash
pg_geohash
GIS
nil-lic
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_geohash_$v*
1.0
postgresql-$v-pg-geohash
1.0
使用 pig
命令行工具安装 pg_geohash
扩展:
pig ext install pg_geohash
使用 Pigsty剧本 安装 pg_geohash 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_geohash"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_geohash
RPM 包:
dnf install pg_geohash_17*;
dnf install pg_geohash_16*;
dnf install pg_geohash_15*;
dnf install pg_geohash_14*;
dnf install pg_geohash_13*;
从 APT仓库 手工安装 pg_geohash
DEB 包:
apt install postgresql-17-pg-geohash;
apt install postgresql-16-pg-geohash;
apt install postgresql-15-pg-geohash;
apt install postgresql-14-pg-geohash;
apt install postgresql-13-pg-geohash;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_geohash
扩展:
CREATE EXTENSION pg_geohash;
PGDG 第一方扩展: mobilitydb
: MobilityDB地理空间投影数据管理分析平台
mobilitydb
mobilitydb
GIS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpostgis
postgresql-$v-mobilitydb
1.2.0
使用 pig
命令行工具安装 mobilitydb
扩展:
pig ext install mobilitydb
使用 Pigsty剧本 安装 mobilitydb 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["mobilitydb"]}' # -l <集群名>
从 APT仓库 手工安装 mobilitydb
DEB 包:
apt install postgresql-17-mobilitydb;
apt install postgresql-16-mobilitydb;
apt install postgresql-15-mobilitydb;
apt install postgresql-14-mobilitydb;
apt install postgresql-13-mobilitydb;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 mobilitydb
扩展:
CREATE EXTENSION mobilitydb CASCADE;
CONTRIB 自带扩展: earthdistance
: 计算地球表面上的大圆距离
earthdistance
None
GIS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLcube
PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 earthdistance
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 earthdistance
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 earthdistance
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 earthdistance
扩展:
CREATE EXTENSION earthdistance CASCADE;
RAG 类目共有 10 个可用扩展:
扩展名(详情) | 标准名(官网) | 仓库 | 版本 | 类目 | 许可证 | LOAD |
DDL |
TRUST |
RELOC |
简介 |
---|---|---|---|---|---|---|---|---|---|---|
vector | pgvector |
PGDG | 0.8.0 | RAG |
PostgreSQL | 向量数据类型和 ivfflat / hnsw 访问方法 | ||||
vchord | vchord |
PIGSTY | 0.2.2 | RAG |
AGPLv3 | 使用Rust重写的高性能向量扩展 | ||||
vectorscale | pgvectorscale |
PIGSTY | 0.6.0 | RAG |
PostgreSQL | 使用DiskANN算法对向量进行高效索引 | ||||
vectorize | pg_vectorize |
PIGSTY | 0.21.1 | RAG |
PostgreSQL | 在PostgreSQL中封装RAG向量检索服务 | ||||
pg_similarity | pg_similarity |
MIXED | 1.0 | RAG |
BSD 3 | 提供17种距离度量函数 | ||||
smlar | smlar |
PIGSTY | 1.0 | RAG |
PostgreSQL | 高效的相似度搜索函数 | ||||
pg_summarize | pg_summarize |
PIGSTY | 0.0.1 | RAG |
PostgreSQL | 使用LLM对文本字段进行总结 | ||||
pg_tiktoken | pg_tiktoken |
PIGSTY | 0.0.1 | RAG |
Apache-2.0 | 在PostgreSQL中计算OpenAI使用的Token数 | ||||
pg4ml | pg4ml |
PIGSTY | 2.0 | RAG |
AGPLv3 | PG4ML是一个机器学习框架 | ||||
pgml | pgml |
PIGSTY | 2.10.0 | RAG |
MIT | PostgresML:用SQL运行机器学习算法并训练模型 |
PGDG 第一方扩展: pgvector
: 向量数据类型和 ivfflat / hnsw 访问方法
vector
pgvector
RAG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgvector_$v*
0.8.0
postgresql-$v-pgvector
0.8.0
使用 pig
命令行工具安装 pgvector
扩展:
pig ext install pgvector; # 扩展名称
pig ext install vector; # 标准包名
使用 Pigsty剧本 安装 pgvector 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgvector"]}' # -l <集群名>
dnf install pgvector_17*;
dnf install pgvector_16*;
dnf install pgvector_15*;
dnf install pgvector_14*;
dnf install pgvector_13*;
apt install postgresql-17-pgvector;
apt install postgresql-16-pgvector;
apt install postgresql-15-pgvector;
apt install postgresql-14-pgvector;
apt install postgresql-13-pgvector;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 vector
扩展:
CREATE EXTENSION vector;
PIGSTY 第三方扩展: vchord
: 使用Rust重写的高性能向量扩展
vchord
vchord
RAG
pgrx
17
,16
,15
,14
CREATE EXTENSION
DDLvector
vchord_$v
0.2.1
pgvector_$v
postgresql-$v-vchord
0.2.1
postgresql-$v-pgvector
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
vchord_17 PIGSTY 0.2.2 |
vchord_16 PIGSTY 0.2.2 |
vchord_15 PIGSTY 0.2.2 |
vchord_14 PIGSTY 0.2.2 |
|
el8 |
aarch64 |
vchord_17 PIGSTY 0.2.2 |
vchord_16 PIGSTY 0.2.2 |
vchord_15 PIGSTY 0.2.2 |
vchord_14 PIGSTY 0.2.2 |
|
el9 |
x86_64 |
vchord_17 PIGSTY 0.2.2 |
vchord_16 PIGSTY 0.2.2 |
vchord_15 PIGSTY 0.2.2 |
vchord_14 PIGSTY 0.2.2 |
|
el9 |
aarch64 |
vchord_17 PIGSTY 0.2.2 |
vchord_16 PIGSTY 0.2.2 |
vchord_15 PIGSTY 0.2.2 |
vchord_14 PIGSTY 0.2.2 |
|
d12 |
x86_64 |
postgresql-17-vchord PIGSTY 0.2.2 |
postgresql-16-vchord PIGSTY 0.2.2 |
postgresql-15-vchord PIGSTY 0.2.2 |
postgresql-14-vchord PIGSTY 0.2.2 |
|
d12 |
aarch64 |
postgresql-17-vchord PIGSTY 0.2.2 |
postgresql-16-vchord PIGSTY 0.2.2 |
postgresql-15-vchord PIGSTY 0.2.2 |
postgresql-14-vchord PIGSTY 0.2.2 |
|
u22 |
x86_64 |
postgresql-17-vchord PIGSTY 0.2.2 |
postgresql-16-vchord PIGSTY 0.2.2 |
postgresql-15-vchord PIGSTY 0.2.2 |
postgresql-14-vchord PIGSTY 0.2.2 |
|
u22 |
aarch64 |
postgresql-17-vchord PIGSTY 0.2.2 |
postgresql-16-vchord PIGSTY 0.2.2 |
postgresql-15-vchord PIGSTY 0.2.2 |
postgresql-14-vchord PIGSTY 0.2.2 |
|
u24 |
x86_64 |
postgresql-17-vchord PIGSTY 0.2.2 |
postgresql-16-vchord PIGSTY 0.2.2 |
postgresql-15-vchord PIGSTY 0.2.2 |
postgresql-14-vchord PIGSTY 0.2.2 |
|
u24 |
aarch64 |
postgresql-17-vchord PIGSTY 0.2.2 |
postgresql-16-vchord PIGSTY 0.2.2 |
postgresql-15-vchord PIGSTY 0.2.2 |
postgresql-14-vchord PIGSTY 0.2.2 |
使用 pig
命令行工具安装 vchord
扩展:
pig ext install vchord
使用 Pigsty剧本 安装 vchord 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["vchord"]}' # -l <集群名>
dnf install vchord_17;
dnf install vchord_16;
dnf install vchord_15;
dnf install vchord_14;
apt install postgresql-17-vchord;
apt install postgresql-16-vchord;
apt install postgresql-15-vchord;
apt install postgresql-14-vchord;
扩展 vchord
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'vchord'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 vchord
扩展:
CREATE EXTENSION vchord CASCADE;
Add this extension to shared_preload_libraries in postgresql.conf
CREATE EXTENSION vchord CASCADE;
Create Index on embedding:
CREATE INDEX ON gist_train USING vchordrq (embedding vector_l2_ops) WITH (options = $$
residual_quantization = true
[build.internal]
lists = [4096]
spherical_centroids = false
$$);
The query statement is exactly the same as pgvector. VectorChord supports any filter operation and WHERE/JOIN clauses like pgvecto.rs with VBASE.
SELECT * FROM items ORDER BY embedding <-> '[3,1,2]' LIMIT 5;
Supported distance functions are:
You can fine-tune the search performance by adjusting the probes
and epsilon
parameters:
-- Set probes to control the number of lists scanned.
-- Recommended range: 3%–10% of the total `lists` value.
SET vchordrq.probes = 100;
-- Set epsilon to control the reranking precision.
-- Larger value means more rerank for higher recall rate.
-- Don't change it unless you only have limited memory.
-- Recommended range: 1.0–1.9. Default value is 1.9.
SET vchordrq.epsilon = 1.9;
-- vchordrq relies on a projection matrix to optimize performance.
-- Add your vector dimensions to the `prewarm_dim` list to reduce latency.
-- If this is not configured, the first query will have higher latency as the matrix is generated on demand.
-- Default value: '64,128,256,384,512,768,1024,1536'
-- Note: This setting requires a database restart to take effect.
ALTER SYSTEM SET vchordrq.prewarm_dim = '64,128,256,384,512,768,1024,1536';
And for postgres’s setting
-- If using SSDs, set `effective_io_concurrency` to 200 for faster disk I/O.
SET effective_io_concurrency = 200;
-- Disable JIT (Just-In-Time Compilation) as it offers minimal benefit (1–2%)
-- and adds overhead for single-query workloads.
SET jit = off;
-- Allocate at least 25% of total memory to `shared_buffers`.
-- For disk-heavy workloads, you can increase this to up to 90% of total memory. You may also want to disable swap with network storage to avoid io hang.
-- Note: A restart is required for this setting to take effect.
ALTER SYSTEM SET shared_buffers = '8GB';
To prewarm the index, you can use the following SQL. It will significantly improve performance when using limited memory.
-- vchordrq_prewarm(index_name::regclass) to prewarm the index into the shared buffer
SELECT vchordrq_prewarm('gist_train_embedding_idx'::regclass)"
Index building can parallelized, and with external centroid precomputation, the total time is primarily limited by disk speed. Optimize parallelism using the following settings:
-- Set this to the number of CPU cores available for parallel operations.
SET max_parallel_maintenance_workers = 8;
SET max_parallel_workers = 8;
-- Adjust the total number of worker processes.
-- Note: A restart is required for this setting to take effect.
ALTER SYSTEM SET max_worker_processes = 8;
You can check the indexing progress by querying the pg_stat_progress_create_index
view.
SELECT phase, round(100.0 * blocks_done / nullif(blocks_total, 0), 1) AS "%" FROM pg_stat_progress_create_index;
Unlike pure SQL, an external index precomputation will first do clustering outside and insert centroids to a PostgreSQL table. Although it might be more complicated, external build is definitely much faster on larger dataset (>5M).
To get started, you need to do a clustering of vectors using faiss
, scikit-learn
or any other clustering library.
The centroids should be preset in a table of any name with 3 columns:
pgvector
vector typeAnd example could be like this:
-- Create table of centroids
CREATE TABLE public.centroids (id integer NOT NULL UNIQUE, parent integer, vector vector(768));
-- Insert centroids into it
INSERT INTO public.centroids (id, parent, vector) VALUES (1, NULL, '{0.1, 0.2, 0.3, ..., 0.768}');
INSERT INTO public.centroids (id, parent, vector) VALUES (2, NULL, '{0.4, 0.5, 0.6, ..., 0.768}');
INSERT INTO public.centroids (id, parent, vector) VALUES (3, NULL, '{0.7, 0.8, 0.9, ..., 0.768}');
-- ...
-- Create index using the centroid table
CREATE INDEX ON gist_train USING vchordrq (embedding vector_l2_ops) WITH (options = $$
[build.external]
table = 'public.centroids'
$$);
To simplify the workflow, we provide end-to-end scripts for external index pre-computation, see scripts.
f32
data type is supported for vectors.PIGSTY 第三方扩展: pgvectorscale
: 使用DiskANN算法对向量进行高效索引
vectorscale
pgvectorscale
RAG
pgrx
17
,16
,15
,14
,13
CREATE EXTENSION
DDLvector
pgvectorscale_$v
0.5.1
postgresql-$v-pgvectorscale
0.5.1
使用 pig
命令行工具安装 pgvectorscale
扩展:
pig ext install pgvectorscale; # 扩展名称
pig ext install vectorscale; # 标准包名
使用 Pigsty剧本 安装 pgvectorscale 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgvectorscale"]}' # -l <集群名>
从 YUM仓库 手工安装 pgvectorscale
RPM 包:
dnf install pgvectorscale_17;
dnf install pgvectorscale_16;
dnf install pgvectorscale_15;
dnf install pgvectorscale_14;
dnf install pgvectorscale_13;
从 APT仓库 手工安装 pgvectorscale
DEB 包:
apt install postgresql-17-pgvectorscale;
apt install postgresql-16-pgvectorscale;
apt install postgresql-15-pgvectorscale;
apt install postgresql-14-pgvectorscale;
apt install postgresql-13-pgvectorscale;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 vectorscale
扩展:
CREATE EXTENSION vectorscale CASCADE;
PIGSTY 第三方扩展: pg_vectorize
: 在PostgreSQL中封装RAG向量检索服务
vectorize
pg_vectorize
RAG
pgrx
17
,16
,15
,14
CREATE EXTENSION
DDLvectorize
pg_cron
, pgmq
, vector
pg_vectorize_$v
0.21.1
pgmq_$v
, pg_cron_$v
, pgvector_$v
postgresql-$v-pg-vectorize
0.21.1
postgresql-$v-pgmq
, postgresql-$v-pg-cron
, postgresql-$v-pgvector
使用 pig
命令行工具安装 pg_vectorize
扩展:
pig ext install pg_vectorize; # 扩展名称
pig ext install vectorize; # 标准包名
使用 Pigsty剧本 安装 pg_vectorize 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_vectorize"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_vectorize
RPM 包:
dnf install pg_vectorize_17;
dnf install pg_vectorize_16;
dnf install pg_vectorize_15;
dnf install pg_vectorize_14;
从 APT仓库 手工安装 pg_vectorize
DEB 包:
apt install postgresql-17-pg-vectorize;
apt install postgresql-16-pg-vectorize;
apt install postgresql-15-pg-vectorize;
apt install postgresql-14-pg-vectorize;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 vectorize
扩展:
CREATE EXTENSION vectorize CASCADE;
MIXED 第三方扩展: pg_similarity
: 提供17种距离度量函数
pg_similarity
pg_similarity
RAG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_similarity_$v*
1.0
postgresql-$v-similarity
1.0
使用 pig
命令行工具安装 pg_similarity
扩展:
pig ext install pg_similarity
使用 Pigsty剧本 安装 pg_similarity 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_similarity"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_similarity
RPM 包:
dnf install pg_similarity_17*;
dnf install pg_similarity_16*;
dnf install pg_similarity_15*;
dnf install pg_similarity_14*;
dnf install pg_similarity_13*;
从 APT仓库 手工安装 pg_similarity
DEB 包:
apt install postgresql-17-similarity;
apt install postgresql-16-similarity;
apt install postgresql-15-similarity;
apt install postgresql-14-similarity;
apt install postgresql-13-similarity;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_similarity
扩展:
CREATE EXTENSION pg_similarity;
PIGSTY 第三方扩展: smlar
: 高效的相似度搜索函数
smlar
smlar
RAG
nil-lic
17
,16
,15
,14
,13
CREATE EXTENSION
DDLsmlar_$v*
1.0
postgresql-$v-smlar
1.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
smlar_17 PIGSTY 1.0 |
smlar_16 PIGSTY 1.0 |
smlar_15 PIGSTY 1.0 |
smlar_14 PIGSTY 1.0 |
smlar_13 PIGSTY 1.0 |
el8 |
aarch64 |
smlar_17 PIGSTY 1.0 |
smlar_16 PIGSTY 1.0 |
smlar_15 PIGSTY 1.0 |
smlar_14 PIGSTY 1.0 |
smlar_13 PIGSTY 1.0 |
el9 |
x86_64 |
smlar_17 PIGSTY 1.0 |
smlar_16 PIGSTY 1.0 |
smlar_15 PIGSTY 1.0 |
smlar_14 PIGSTY 1.0 |
smlar_13 PIGSTY 1.0 |
el9 |
aarch64 |
smlar_17 PIGSTY 1.0 |
smlar_16 PIGSTY 1.0 |
smlar_15 PIGSTY 1.0 |
smlar_14 PIGSTY 1.0 |
smlar_13 PIGSTY 1.0 |
d12 |
x86_64 |
postgresql-17-smlar PIGSTY 1.0 |
postgresql-16-smlar PIGSTY 1.0 |
postgresql-15-smlar PIGSTY 1.0 |
postgresql-14-smlar PIGSTY 1.0 |
postgresql-13-smlar PIGSTY 1.0 |
d12 |
aarch64 |
postgresql-17-smlar PIGSTY 1.0 |
postgresql-16-smlar PIGSTY 1.0 |
postgresql-15-smlar PIGSTY 1.0 |
postgresql-14-smlar PIGSTY 1.0 |
postgresql-13-smlar PIGSTY 1.0 |
u22 |
x86_64 |
postgresql-17-smlar PIGSTY 1.0 |
postgresql-16-smlar PIGSTY 1.0 |
postgresql-15-smlar PIGSTY 1.0 |
postgresql-14-smlar PIGSTY 1.0 |
postgresql-13-smlar PIGSTY 1.0 |
u22 |
aarch64 |
postgresql-17-smlar PIGSTY 1.0 |
postgresql-16-smlar PIGSTY 1.0 |
postgresql-15-smlar PIGSTY 1.0 |
postgresql-14-smlar PIGSTY 1.0 |
postgresql-13-smlar PIGSTY 1.0 |
u24 |
x86_64 |
postgresql-17-smlar PIGSTY 1.0 |
postgresql-16-smlar PIGSTY 1.0 |
postgresql-15-smlar PIGSTY 1.0 |
postgresql-14-smlar PIGSTY 1.0 |
postgresql-13-smlar PIGSTY 1.0 |
u24 |
aarch64 |
postgresql-17-smlar PIGSTY 1.0 |
postgresql-16-smlar PIGSTY 1.0 |
postgresql-15-smlar PIGSTY 1.0 |
postgresql-14-smlar PIGSTY 1.0 |
postgresql-13-smlar PIGSTY 1.0 |
使用 pig
命令行工具安装 smlar
扩展:
pig ext install smlar
使用 Pigsty剧本 安装 smlar 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["smlar"]}' # -l <集群名>
dnf install smlar_17*;
dnf install smlar_16*;
dnf install smlar_15*;
dnf install smlar_14*;
dnf install smlar_13*;
apt install postgresql-17-smlar;
apt install postgresql-16-smlar;
apt install postgresql-15-smlar;
apt install postgresql-14-smlar;
apt install postgresql-13-smlar;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 smlar
扩展:
CREATE EXTENSION smlar;
PIGSTY 第三方扩展: pg_summarize
: 使用LLM对文本字段进行总结
pg_summarize
pg_summarize
RAG
pgrx
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_summarize_$v
0.0.1
postgresql-$v-pg-summarize
0.0.1
使用 pig
命令行工具安装 pg_summarize
扩展:
pig ext install pg_summarize
使用 Pigsty剧本 安装 pg_summarize 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_summarize"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_summarize
RPM 包:
dnf install pg_summarize_17;
dnf install pg_summarize_16;
dnf install pg_summarize_15;
dnf install pg_summarize_14;
dnf install pg_summarize_13;
从 APT仓库 手工安装 pg_summarize
DEB 包:
apt install postgresql-17-pg-summarize;
apt install postgresql-16-pg-summarize;
apt install postgresql-15-pg-summarize;
apt install postgresql-14-pg-summarize;
apt install postgresql-13-pg-summarize;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_summarize
扩展:
CREATE EXTENSION pg_summarize;
PIGSTY 第三方扩展: pg_tiktoken
: 在PostgreSQL中计算OpenAI使用的Token数
pg_tiktoken
pg_tiktoken
RAG
pgrx
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_tiktoken_$v
0.0.1
postgresql-$v-pg-tiktoken
0.0.1
使用 pig
命令行工具安装 pg_tiktoken
扩展:
pig ext install pg_tiktoken
使用 Pigsty剧本 安装 pg_tiktoken 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_tiktoken"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_tiktoken
RPM 包:
dnf install pg_tiktoken_17;
dnf install pg_tiktoken_16;
dnf install pg_tiktoken_15;
dnf install pg_tiktoken_14;
dnf install pg_tiktoken_13;
从 APT仓库 手工安装 pg_tiktoken
DEB 包:
apt install postgresql-17-pg-tiktoken;
apt install postgresql-16-pg-tiktoken;
apt install postgresql-15-pg-tiktoken;
apt install postgresql-14-pg-tiktoken;
apt install postgresql-13-pg-tiktoken;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_tiktoken
扩展:
CREATE EXTENSION pg_tiktoken;
PIGSTY 第三方扩展: pg4ml
: PG4ML是一个机器学习框架
pg4ml
pg4ml
RAG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建plpgsql
, tablefunc
, cube
, plpython3u
pg4ml_$v
2.0
postgresql-$v-pg4ml
2.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg4ml_17 PIGSTY 2.0 |
pg4ml_16 PIGSTY 2.0 |
pg4ml_15 PIGSTY 2.0 |
pg4ml_14 PIGSTY 2.0 |
pg4ml_13 PIGSTY 2.0 |
el8 |
aarch64 |
pg4ml_17 PIGSTY 2.0 |
pg4ml_16 PIGSTY 2.0 |
pg4ml_15 PIGSTY 2.0 |
pg4ml_14 PIGSTY 2.0 |
pg4ml_13 PIGSTY 2.0 |
el9 |
x86_64 |
pg4ml_17 PIGSTY 2.0 |
pg4ml_16 PIGSTY 2.0 |
pg4ml_15 PIGSTY 2.0 |
pg4ml_14 PIGSTY 2.0 |
pg4ml_13 PIGSTY 2.0 |
el9 |
aarch64 |
pg4ml_17 PIGSTY 2.0 |
pg4ml_16 PIGSTY 2.0 |
pg4ml_15 PIGSTY 2.0 |
pg4ml_14 PIGSTY 2.0 |
pg4ml_13 PIGSTY 2.0 |
d12 |
x86_64 |
postgresql-17-pg4ml PIGSTY 2.0 |
postgresql-16-pg4ml PIGSTY 2.0 |
postgresql-15-pg4ml PIGSTY 2.0 |
postgresql-14-pg4ml PIGSTY 2.0 |
postgresql-13-pg4ml PIGSTY 2.0 |
d12 |
aarch64 |
postgresql-17-pg4ml PIGSTY 2.0 |
postgresql-16-pg4ml PIGSTY 2.0 |
postgresql-15-pg4ml PIGSTY 2.0 |
postgresql-14-pg4ml PIGSTY 2.0 |
postgresql-13-pg4ml PIGSTY 2.0 |
u22 |
x86_64 |
postgresql-17-pg4ml PIGSTY 2.0 |
postgresql-16-pg4ml PIGSTY 2.0 |
postgresql-15-pg4ml PIGSTY 2.0 |
postgresql-14-pg4ml PIGSTY 2.0 |
postgresql-13-pg4ml PIGSTY 2.0 |
u22 |
aarch64 |
postgresql-17-pg4ml PIGSTY 2.0 |
postgresql-16-pg4ml PIGSTY 2.0 |
postgresql-15-pg4ml PIGSTY 2.0 |
postgresql-14-pg4ml PIGSTY 2.0 |
postgresql-13-pg4ml PIGSTY 2.0 |
u24 |
x86_64 |
postgresql-17-pg4ml PIGSTY 2.0 |
postgresql-16-pg4ml PIGSTY 2.0 |
postgresql-15-pg4ml PIGSTY 2.0 |
postgresql-14-pg4ml PIGSTY 2.0 |
postgresql-13-pg4ml PIGSTY 2.0 |
u24 |
aarch64 |
postgresql-17-pg4ml PIGSTY 2.0 |
postgresql-16-pg4ml PIGSTY 2.0 |
postgresql-15-pg4ml PIGSTY 2.0 |
postgresql-14-pg4ml PIGSTY 2.0 |
postgresql-13-pg4ml PIGSTY 2.0 |
使用 pig
命令行工具安装 pg4ml
扩展:
pig ext install pg4ml
使用 Pigsty剧本 安装 pg4ml 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg4ml"]}' # -l <集群名>
dnf install pg4ml_17;
dnf install pg4ml_16;
dnf install pg4ml_15;
dnf install pg4ml_14;
dnf install pg4ml_13;
apt install postgresql-17-pg4ml;
apt install postgresql-16-pg4ml;
apt install postgresql-15-pg4ml;
apt install postgresql-14-pg4ml;
apt install postgresql-13-pg4ml;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg4ml
扩展:
CREATE EXTENSION pg4ml CASCADE;
PIGSTY 第三方扩展: pgml
: PostgresML:用SQL运行机器学习算法并训练模型
pgml
pgml
RAG
pgrx
17
,16
,15
,14
CREATE EXTENSION
DDLpgml
postgresql-$v-pgml
2.10.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
postgresql-17-pgml PIGSTY 2.10.0 |
postgresql-16-pgml PIGSTY 2.10.0 |
postgresql-15-pgml PIGSTY 2.10.0 |
postgresql-14-pgml PIGSTY 2.10.0 |
postgresql-13-pgml PIGSTY 2.10.0 |
d12 |
aarch64 |
postgresql-17-pgml PIGSTY 2.10.0 |
postgresql-16-pgml PIGSTY 2.10.0 |
postgresql-15-pgml PIGSTY 2.10.0 |
postgresql-14-pgml PIGSTY 2.10.0 |
postgresql-13-pgml PIGSTY 2.10.0 |
u22 |
x86_64 |
postgresql-17-pgml PIGSTY 2.10.0 |
postgresql-16-pgml PIGSTY 2.10.0 |
postgresql-15-pgml PIGSTY 2.10.0 |
postgresql-14-pgml PIGSTY 2.10.0 |
postgresql-13-pgml PIGSTY 2.10.0 |
u22 |
aarch64 |
postgresql-17-pgml PIGSTY 2.10.0 |
postgresql-16-pgml PIGSTY 2.10.0 |
postgresql-15-pgml PIGSTY 2.10.0 |
postgresql-14-pgml PIGSTY 2.10.0 |
postgresql-13-pgml PIGSTY 2.10.0 |
u24 |
x86_64 |
postgresql-17-pgml PIGSTY 2.10.0 |
postgresql-16-pgml PIGSTY 2.10.0 |
postgresql-15-pgml PIGSTY 2.10.0 |
postgresql-14-pgml PIGSTY 2.10.0 |
postgresql-13-pgml PIGSTY 2.10.0 |
u24 |
aarch64 |
postgresql-17-pgml PIGSTY 2.10.0 |
postgresql-16-pgml PIGSTY 2.10.0 |
postgresql-15-pgml PIGSTY 2.10.0 |
postgresql-14-pgml PIGSTY 2.10.0 |
postgresql-13-pgml PIGSTY 2.10.0 |
使用 pig
命令行工具安装 pgml
扩展:
pig ext install pgml
使用 Pigsty剧本 安装 pgml 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgml"]}' # -l <集群名>
apt install postgresql-17-pgml;
apt install postgresql-16-pgml;
apt install postgresql-15-pgml;
apt install postgresql-14-pgml;
扩展 pgml
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pgml'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgml
扩展:
CREATE EXTENSION pgml;
After installing the pgml
extension and python dependencies on all cluster nodes, you can enable pgml
on the PostgreSQL cluster.
Configure cluster with patronictl
command and add pgml
to shared_preload_libraries
, and specify your venv
dir in pgml.venv
:
shared_preload_libraries: pgml, timescaledb, pg_stat_statements, auto_explain
pgml.venv: '/data/pgml'
After that, restart database cluster, and create extension with SQL command:
CREATE EXTENSION vector; -- nice to have pgvector installed too!
CREATE EXTENSION pgml; -- create PostgresML in current database
SELECT pgml.version(); -- print PostgresML version string
If it works, you should see something like:
# create extension pgml;
INFO: Python version: 3.11.2 (main, Oct 5 2023, 16:06:03) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)]
INFO: Scikit-learn 1.3.0, XGBoost 2.0.0, LightGBM 4.1.0, NumPy 1.26.1
CREATE EXTENSION
# SELECT pgml.version(); -- print PostgresML version string
version
---------
2.7.8
You are all set! Check PostgresML for more details: https://postgresml.org/docs/guides/use-cases/
FTS 类目共有 19 个可用扩展:
扩展名(详情) | 标准名(官网) | 仓库 | 版本 | 类目 | 许可证 | LOAD |
DDL |
TRUST |
RELOC |
简介 |
---|---|---|---|---|---|---|---|---|---|---|
pg_search | pg_search |
PIGSTY | 0.15.8 | FTS |
AGPLv3 | ParadeDB BM25算法全文检索插件,ES全文检索 | ||||
pgroonga | pgroonga |
PIGSTY | 4.0.0 | FTS |
PostgreSQL | 使用Groonga,面向所有语言的高速全文检索平台 | ||||
pgroonga_database | pgroonga |
PIGSTY | 4.0.0 | FTS |
PostgreSQL | PGGroonga 数据库管理模块 | ||||
pg_bigm | pg_bigm |
MIXED | 1.2 | FTS |
PostgreSQL | 基于二字组的多语言全文检索扩展 | ||||
zhparser | zhparser |
PIGSTY | 2.3 | FTS |
PostgreSQL | 中文分词,全文搜索解析器 | ||||
pg_bestmatch | pg_bestmatch |
PIGSTY | 0.0.1 | FTS |
Apache-2.0 | 在数据库内生成BM25稀疏向量 | ||||
vchord_bm25 | vchord_bm25 |
PIGSTY | 0.1.1 | FTS |
AGPLv3 | BM25排序算法 | ||||
hunspell_cs_cz | hunspell_cs_cz |
PIGSTY | 1.0 | FTS |
PostgreSQL | Hunspell捷克语全文检索词典 | ||||
hunspell_de_de | hunspell_de_de |
PIGSTY | 1.0 | FTS |
PostgreSQL | Hunspell德语全文检索词典 | ||||
hunspell_en_us | hunspell_en_us |
PIGSTY | 1.0 | FTS |
PostgreSQL | Hunspell英语全文检索词典 | ||||
hunspell_fr | hunspell_fr |
PIGSTY | 1.0 | FTS |
PostgreSQL | Hunspell法语全文检索词典 | ||||
hunspell_ne_np | hunspell_ne_np |
PIGSTY | 1.0 | FTS |
PostgreSQL | Hunspell尼泊尔语全文检索词典 | ||||
hunspell_nl_nl | hunspell_nl_nl |
PIGSTY | 1.0 | FTS |
PostgreSQL | Hunspell荷兰语全文检索词典 | ||||
hunspell_nn_no | hunspell_nn_no |
PIGSTY | 1.0 | FTS |
PostgreSQL | Hunspell挪威语全文检索词典 | ||||
hunspell_pt_pt | hunspell_pt_pt |
PIGSTY | 1.0 | FTS |
PostgreSQL | Hunspell葡萄牙语全文检索词典 | ||||
hunspell_ru_ru | hunspell_ru_ru |
PIGSTY | 1.0 | FTS |
PostgreSQL | Hunspell俄语全文检索词典 | ||||
hunspell_ru_ru_aot | hunspell_ru_ru_aot |
PIGSTY | 1.0 | FTS |
PostgreSQL | Hunspell俄语全文检索词典(来自AOT.ru小组) | ||||
fuzzystrmatch | fuzzystrmatch |
CONTRIB | 1.2 | FTS |
PostgreSQL | 确定字符串之间的相似性和距离 | ||||
pg_trgm | pg_trgm |
CONTRIB | 1.6 | FTS |
PostgreSQL | 文本相似度测量函数与模糊检索 |
PIGSTY 第三方扩展: pg_search
: ParadeDB BM25算法全文检索插件,ES全文检索
pg_search
pg_search
FTS
pgrx
17
,16
,15
,14
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建paradedb
pg_search_$v
0.15.4
postgresql-$v-pg-search
0.15.4
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg_search_17 PIGSTY 0.15.8 |
pg_search_16 PIGSTY 0.15.8 |
pg_search_15 PIGSTY 0.15.8 |
pg_search_14 PIGSTY 0.15.8 |
|
el8 |
aarch64 |
pg_search_17 PIGSTY 0.15.8 |
pg_search_16 PIGSTY 0.15.8 |
pg_search_15 PIGSTY 0.15.8 |
pg_search_14 PIGSTY 0.15.8 |
|
el9 |
x86_64 |
pg_search_17 PIGSTY 0.15.8 |
pg_search_16 PIGSTY 0.15.8 |
pg_search_15 PIGSTY 0.15.8 |
pg_search_14 PIGSTY 0.15.8 |
|
el9 |
aarch64 |
pg_search_17 PIGSTY 0.15.8 |
pg_search_16 PIGSTY 0.15.8 |
pg_search_15 PIGSTY 0.15.8 |
pg_search_14 PIGSTY 0.15.8 |
|
d12 |
x86_64 |
postgresql-17-pg-search PIGSTY 0.15.8 |
postgresql-16-pg-search PIGSTY 0.15.8 |
postgresql-15-pg-search PIGSTY 0.15.8 |
postgresql-14-pg-search PIGSTY 0.15.8 |
|
d12 |
aarch64 |
postgresql-17-pg-search PIGSTY 0.15.8 |
postgresql-16-pg-search PIGSTY 0.15.8 |
postgresql-15-pg-search PIGSTY 0.15.8 |
postgresql-14-pg-search PIGSTY 0.15.8 |
|
u22 |
x86_64 |
postgresql-17-pg-search PIGSTY 0.15.8 |
postgresql-16-pg-search PIGSTY 0.15.8 |
postgresql-15-pg-search PIGSTY 0.15.8 |
postgresql-14-pg-search PIGSTY 0.15.8 |
|
u22 |
aarch64 |
postgresql-17-pg-search PIGSTY 0.15.8 |
postgresql-16-pg-search PIGSTY 0.15.8 |
postgresql-15-pg-search PIGSTY 0.15.8 |
postgresql-14-pg-search PIGSTY 0.15.8 |
|
u24 |
x86_64 |
postgresql-17-pg-search PIGSTY 0.15.8 |
postgresql-16-pg-search PIGSTY 0.15.8 |
postgresql-15-pg-search PIGSTY 0.15.8 |
postgresql-14-pg-search PIGSTY 0.15.8 |
|
u24 |
aarch64 |
postgresql-17-pg-search PIGSTY 0.15.8 |
postgresql-16-pg-search PIGSTY 0.15.8 |
postgresql-15-pg-search PIGSTY 0.15.8 |
postgresql-14-pg-search PIGSTY 0.15.8 |
使用 pig
命令行工具安装 pg_search
扩展:
pig ext install pg_search
使用 Pigsty剧本 安装 pg_search 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_search"]}' # -l <集群名>
dnf install pg_search_17;
dnf install pg_search_16;
dnf install pg_search_15;
dnf install pg_search_14;
apt install postgresql-17-pg-search;
apt install postgresql-16-pg-search;
apt install postgresql-15-pg-search;
apt install postgresql-14-pg-search;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_search
扩展:
CREATE EXTENSION pg_search;
https://docs.paradedb.com/documentation/getting-started/quickstart
CREATE EXTENSION pg_search;
ALTER SYSTEM SET paradedb.pg_search_telemetry TO 'off';
CALL paradedb.create_bm25_test_table(
schema_name => 'public',
table_name => 'mock_items'
);
SELECT description, rating, category FROM mock_items LIMIT 3;
CALL paradedb.create_bm25(
index_name => 'search_idx',
schema_name => 'public',
table_name => 'mock_items',
key_field => 'id',
text_fields => paradedb.field('description', tokenizer => paradedb.tokenizer('en_stem')) ||
paradedb.field('category'),
numeric_fields => paradedb.field('rating')
);
SELECT description, rating, category
FROM search_idx.search('(description:keyboard OR category:electronics) AND rating:>2',limit_rows => 5);
CALL paradedb.create_bm25(
index_name => 'ngrams_idx',
schema_name => 'public',
table_name => 'mock_items',
key_field => 'id',
text_fields => paradedb.field('description', tokenizer => paradedb.tokenizer('ngram', min_gram => 4, max_gram => 4, prefix_only => false)) ||
paradedb.field('category')
);
SELECT description, rating, category
FROM ngrams_idx.search('description:blue');
PIGSTY 第三方扩展: pgroonga
: 使用Groonga,面向所有语言的高速全文检索平台
pgroonga
pgroonga
FTS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建pgroonga_$v*
4.0.0
groonga-libs
postgresql-$v-pgroonga
4.0.0
libgroonga0
使用 pig
命令行工具安装 pgroonga
扩展:
pig ext install pgroonga
使用 Pigsty剧本 安装 pgroonga 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgroonga"]}' # -l <集群名>
dnf install pgroonga_17*;
dnf install pgroonga_16*;
dnf install pgroonga_15*;
dnf install pgroonga_14*;
dnf install pgroonga_13*;
apt install postgresql-17-pgroonga;
apt install postgresql-16-pgroonga;
apt install postgresql-15-pgroonga;
apt install postgresql-14-pgroonga;
apt install postgresql-13-pgroonga;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgroonga
扩展:
CREATE EXTENSION pgroonga;
Here’s a quick tutorial about how to use PGroonga:
CREATE EXTENSION IF NOT EXISTS pgroonga;
CREATE TABLE memos
(
id integer,
content text
);
CREATE INDEX pgroonga_content_index ON memos USING pgroonga (content);
INSERT INTO memos VALUES (1, 'PostgreSQL is a relational database management system.');
INSERT INTO memos VALUES (2, 'Groonga is a fast full text search engine that supports all languages.');
INSERT INTO memos VALUES (3, 'PGroonga is a PostgreSQL extension that uses Groonga as index.');
INSERT INTO memos VALUES (4, 'There is groonga command.');
SET enable_seqscan = off;
-- now let's query pgroonga
SELECT * FROM memos WHERE content &@ 'engine';
-- id | content
-- ----+------------------------------------------------------------------------
-- 2 | Groonga is a fast full text search engine that supports all languages.
-- (1 row)
SELECT * FROM memos WHERE content &@~ 'PGroonga OR PostgreSQL';
-- id | content
-- ----+----------------------------------------------------------------
-- 3 | PGroonga is a PostgreSQL extension that uses Groonga as index.
-- 1 | PostgreSQL is a relational database management system.
-- (2 rows)
SELECT * FROM memos WHERE content LIKE '%engine%';
-- id | content
-- ----+------------------------------------------------------------------------
-- 2 | Groonga is a fast full text search engine that supports all languages.
-- (1 row)
PIGSTY 第三方扩展: pgroonga
: PGGroonga 数据库管理模块
pgroonga_database
pgroonga
FTS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建pgroonga_$v*
4.0.0
groonga-libs
postgresql-$v-pgroonga
4.0.0
libgroonga0
使用 pig
命令行工具安装 pgroonga
扩展:
pig ext install pgroonga; # 扩展名称
pig ext install pgroonga_database; # 标准包名
使用 Pigsty剧本 安装 pgroonga 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgroonga"]}' # -l <集群名>
dnf install pgroonga_17*;
dnf install pgroonga_16*;
dnf install pgroonga_15*;
dnf install pgroonga_14*;
dnf install pgroonga_13*;
apt install postgresql-17-pgroonga;
apt install postgresql-16-pgroonga;
apt install postgresql-15-pgroonga;
apt install postgresql-14-pgroonga;
apt install postgresql-13-pgroonga;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgroonga_database
扩展:
CREATE EXTENSION pgroonga_database;
MIXED 第三方扩展: pg_bigm
: 基于二字组的多语言全文检索扩展
pg_bigm
pg_bigm
FTS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_bigm_$v*
1.2
postgresql-$v-pg-bigm
1.2
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg_bigm_17 PGDG 1.2_20240606 |
pg_bigm_16 PGDG 1.2_20240606 |
pg_bigm_15 PGDG 1.2_20240606 |
pg_bigm_14 PGDG 1.2_20240606 |
pg_bigm_13 PGDG 1.2_20240606 |
el8 |
aarch64 |
pg_bigm_17 PGDG 1.2_20240606 |
pg_bigm_16 PGDG 1.2_20240606 |
pg_bigm_15 PGDG 1.2_20240606 |
pg_bigm_14 PGDG 1.2_20240606 |
pg_bigm_13 PGDG 1.2_20240606 |
el9 |
x86_64 |
pg_bigm_17 PGDG 1.2_20240606 |
pg_bigm_16 PGDG 1.2_20240606 |
pg_bigm_15 PGDG 1.2_20240606 |
pg_bigm_14 PGDG 1.2_20240606 |
pg_bigm_13 PGDG 1.2_20240606 |
el9 |
aarch64 |
pg_bigm_17 PGDG 1.2_20240606 |
pg_bigm_16 PGDG 1.2_20240606 |
pg_bigm_15 PGDG 1.2_20240606 |
pg_bigm_14 PGDG 1.2_20240606 |
pg_bigm_13 PGDG 1.2_20240606 |
d12 |
x86_64 |
postgresql-17-pg-bigm PIGSTY 1.2 |
postgresql-16-pg-bigm PIGSTY 1.2 |
postgresql-15-pg-bigm PIGSTY 1.2 |
postgresql-14-pg-bigm PIGSTY 1.2 |
postgresql-13-pg-bigm PIGSTY 1.2 |
d12 |
aarch64 |
postgresql-17-pg-bigm PIGSTY 1.2 |
postgresql-16-pg-bigm PIGSTY 1.2 |
postgresql-15-pg-bigm PIGSTY 1.2 |
postgresql-14-pg-bigm PIGSTY 1.2 |
postgresql-13-pg-bigm PIGSTY 1.2 |
u22 |
x86_64 |
postgresql-17-pg-bigm PIGSTY 1.2 |
postgresql-16-pg-bigm PIGSTY 1.2 |
postgresql-15-pg-bigm PIGSTY 1.2 |
postgresql-14-pg-bigm PIGSTY 1.2 |
postgresql-13-pg-bigm PIGSTY 1.2 |
u22 |
aarch64 |
postgresql-17-pg-bigm PIGSTY 1.2 |
postgresql-16-pg-bigm PIGSTY 1.2 |
postgresql-15-pg-bigm PIGSTY 1.2 |
postgresql-14-pg-bigm PIGSTY 1.2 |
postgresql-13-pg-bigm PIGSTY 1.2 |
u24 |
x86_64 |
postgresql-17-pg-bigm PIGSTY 1.2 |
postgresql-16-pg-bigm PIGSTY 1.2 |
postgresql-15-pg-bigm PIGSTY 1.2 |
postgresql-14-pg-bigm PIGSTY 1.2 |
postgresql-13-pg-bigm PIGSTY 1.2 |
u24 |
aarch64 |
postgresql-17-pg-bigm PIGSTY 1.2 |
postgresql-16-pg-bigm PIGSTY 1.2 |
postgresql-15-pg-bigm PIGSTY 1.2 |
postgresql-14-pg-bigm PIGSTY 1.2 |
postgresql-13-pg-bigm PIGSTY 1.2 |
使用 pig
命令行工具安装 pg_bigm
扩展:
pig ext install pg_bigm
使用 Pigsty剧本 安装 pg_bigm 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_bigm"]}' # -l <集群名>
dnf install pg_bigm_17*;
dnf install pg_bigm_16*;
dnf install pg_bigm_15*;
dnf install pg_bigm_14*;
dnf install pg_bigm_13*;
apt install postgresql-17-pg-bigm;
apt install postgresql-16-pg-bigm;
apt install postgresql-15-pg-bigm;
apt install postgresql-14-pg-bigm;
apt install postgresql-13-pg-bigm;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_bigm
扩展:
CREATE EXTENSION pg_bigm;
PIGSTY 第三方扩展: zhparser
: 中文分词,全文搜索解析器
zhparser
zhparser
FTS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLzhparser_$v*
2.3
postgresql-$v-zhparser
2.3
使用 pig
命令行工具安装 zhparser
扩展:
pig ext install zhparser
使用 Pigsty剧本 安装 zhparser 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["zhparser"]}' # -l <集群名>
dnf install zhparser_17*;
dnf install zhparser_16*;
dnf install zhparser_15*;
dnf install zhparser_14*;
dnf install zhparser_13*;
apt install postgresql-17-zhparser;
apt install postgresql-16-zhparser;
apt install postgresql-15-zhparser;
apt install postgresql-14-zhparser;
apt install postgresql-13-zhparser;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 zhparser
扩展:
CREATE EXTENSION zhparser;
PIGSTY 第三方扩展: pg_bestmatch
: 在数据库内生成BM25稀疏向量
pg_bestmatch
pg_bestmatch
FTS
pgrx
17
,16
,15
,14
,13
CREATE EXTENSION
DDLbm_catalog
pg_bestmatch_$v
0.0.1
postgresql-$v-pg-bestmatch
0.0.1
使用 pig
命令行工具安装 pg_bestmatch
扩展:
pig ext install pg_bestmatch
使用 Pigsty剧本 安装 pg_bestmatch 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_bestmatch"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_bestmatch
RPM 包:
dnf install pg_bestmatch_17;
dnf install pg_bestmatch_16;
dnf install pg_bestmatch_15;
dnf install pg_bestmatch_14;
dnf install pg_bestmatch_13;
从 APT仓库 手工安装 pg_bestmatch
DEB 包:
apt install postgresql-17-pg-bestmatch;
apt install postgresql-16-pg-bestmatch;
apt install postgresql-15-pg-bestmatch;
apt install postgresql-14-pg-bestmatch;
apt install postgresql-13-pg-bestmatch;
扩展 pg_bestmatch
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_bestmatch'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_bestmatch
扩展:
CREATE EXTENSION pg_bestmatch;
bm25_create(table_name, column_name, statistic_name);
. It will create a materilized view to record the stats.bm25_document_to_svector(statistic_name, passage)
bm25_query_to_svector(statistic_name, query)
bert-base-uncased
vocabulary set to tokenize words. Might support more configuration on tokenizer in the future.CREATE EXTENSION pg_bestmatch;
SET search_path TO public, bm_catalog;
Here is an example workflow demonstrating the usage of this extension with the example of Stanford LoCo benchmark.
pg_bestmatch
with the dataset.wget https://huggingface.co/api/datasets/hazyresearch/LoCoV1-Documents/parquet/default/test/0.parquet -O documents.parquet
wget https://huggingface.co/api/datasets/hazyresearch/LoCoV1-Queries/parquet/default/test/0.parquet -O queries.parquet
import pandas as pd
from sqlalchemy import create_engine
import numpy as np
from psycopg2.extensions import register_adapter, AsIs
def adapter_numpy_float64(numpy_float64):
return AsIs(numpy_float64)
def adapter_numpy_int64(numpy_int64):
return AsIs(numpy_int64)
def adapter_numpy_float32(numpy_float32):
return AsIs(numpy_float32)
def adapter_numpy_int32(numpy_int32):
return AsIs(numpy_int32)
def adapter_numpy_array(numpy_array):
return AsIs(tuple(numpy_array))
register_adapter(np.float64, adapter_numpy_float64)
register_adapter(np.int64, adapter_numpy_int64)
register_adapter(np.float32, adapter_numpy_float32)
register_adapter(np.int32, adapter_numpy_int32)
register_adapter(np.ndarray, adapter_numpy_array)
db_url = "postgresql://localhost:5432/pg_bestmatch_test"
engine = create_engine(db_url)
def load_documents():
df = pd.read_parquet("documents.parquet")
df.to_sql("documents", engine, if_exists='replace', index=False)
def load_queries():
df = pd.read_parquet("queries.parquet")
df['answer_pids'] = df['answer_pids'].apply(lambda x: str(x[0]))
df.to_sql("queries", engine, if_exists='replace', index=False)
load_documents()
load_queries()
documents
table.SELECT bm25_create('documents', 'passage', 'documents_passage_bm25', 0.75, 1.2);
documents
and queries
tables and update the embeddings for documents and queries.ALTER TABLE documents ADD COLUMN embedding svector; -- for pgvecto.rs users
ALTER TABLE documents ADD COLUMN embedding sparsevec; -- for pgvector users
UPDATE documents SET embedding = bm25_document_to_svector('documents_passage_bm25', passage)::svector; -- for pgvecto.rs users
UPDATE documents SET embedding = bm25_document_to_svector('documents_passage_bm25', passage, 'pgvector')::sparsevec; -- for pgvector users
CREATE INDEX ON documents USING vectors (embedding svector_dot_ops); -- for pgvecto.rs users
CREATE INDEX ON documents USING ivfflat (embedding sparsevec_ip_ops); -- for pgvector users
ALTER TABLE queries ADD COLUMN embedding svector; -- for pgvecto.rs users
ALTER TABLE queries ADD COLUMN embedding sparsevec; -- for pgvector users
UPDATE queries SET embedding = bm25_query_to_svector('documents_passage_bm25', query)::svector; -- for pgvecto.rs users
UPDATE queries SET embedding = bm25_query_to_svector('documents_passage_bm25', query, 'pgvector')::sparsevec; -- for pgvector users
SELECT sum((array[answer_pids] = array(SELECT pid FROM documents WHERE queries.dataset = documents.dataset ORDER BY queries.embedding <#> documents.embedding LIMIT 1))::int) FROM queries;
This workflow showcases how to leverage BM25 text queries and vector search in PostgreSQL using this extension. The Top 1 recall of BM25 on this dataset is 0.77
. If you reproduce the result, your operations are correct.
pg_bestmatch.rs
only provides methods for generating sparse vectors and does not support index-based search (which can be achieved by pgvecto.rs or pgvector).pg_search
performs BM25 retrieval via the external tantivy
engine, which may have limitations when combined with transactions, filters, or JOIN operations. Since pg_bestmatch.rs
is entirely native to Postgres, it offers full compatibility with these operations inside postgres.tokenize
SELECT tokenize('i have an apple'); -- result: {i,have,an,apple}
bm25_create
SELECT bm25_create('documents', 'passage', 'documents_passage_bm25');
table_name
: Name of the table.column_name
: Name of the column.stat_name
: Name of the BM25 statistics.b
: BM25 parameter (default 0.75).k
: BM25 parameter (default 1.2).bm25_refresh
SELECT bm25_refresh('documents_passage_bm25');
stat_name
: Name of the BM25 statistics to update.bm25_drop
SELECT bm25_drop('documents_passage_bm25');
stat_name
: Name of the BM25 statistics to delete.bm25_document_to_svector
SELECT bm25_document_to_svector('documents_passage_bm25', 'document_text');
stat_name
: Name of the BM25 statistics.document_text
: The text of the document.style
: Emits pgvecto.rs
-style sparse vector or pgvector
-style sparse vector.bm25_query_to_svector
SELECT bm25_query_to_svector('documents_passage_bm25', 'We begin, as always, with the text.');
stat_name
: Name of the BM25 statistics.query_text
: The text of the query.style
: Emits pgvecto.rs
-style sparse vector or pgvector
-style sparse vector.PIGSTY 第三方扩展: vchord_bm25
: BM25排序算法
vchord_bm25
vchord_bm25
FTS
pgrx
17
,16
,15
,14
CREATE EXTENSION
DDLbm25_catalog
vchord_bm25_$v
0.1.1
postgresql-$v-vchord-bm25
0.1.1
使用 pig
命令行工具安装 vchord_bm25
扩展:
pig ext install vchord_bm25
使用 Pigsty剧本 安装 vchord_bm25 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["vchord_bm25"]}' # -l <集群名>
从 YUM仓库 手工安装 vchord_bm25
RPM 包:
dnf install vchord_bm25_17;
dnf install vchord_bm25_16;
dnf install vchord_bm25_15;
dnf install vchord_bm25_14;
从 APT仓库 手工安装 vchord_bm25
DEB 包:
apt install postgresql-17-vchord-bm25;
apt install postgresql-16-vchord-bm25;
apt install postgresql-15-vchord-bm25;
apt install postgresql-14-vchord-bm25;
扩展 vchord_bm25
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'vchord_bm25'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 vchord_bm25
扩展:
CREATE EXTENSION vchord_bm25;
PIGSTY 第三方扩展: hunspell_cs_cz
: Hunspell捷克语全文检索词典
hunspell_cs_cz
hunspell
FTS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLhunspell_cs_cz_$v
1.0
postgresql-$v-hunspell-cs-cz
1.0
使用 pig
命令行工具安装 hunspell_cs_cz
扩展:
pig ext install hunspell_cs_cz
使用 Pigsty剧本 安装 hunspell_cs_cz 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["hunspell_cs_cz"]}' # -l <集群名>
从 YUM仓库 手工安装 hunspell_cs_cz
RPM 包:
dnf install hunspell_cs_cz_17;
dnf install hunspell_cs_cz_16;
dnf install hunspell_cs_cz_15;
dnf install hunspell_cs_cz_14;
dnf install hunspell_cs_cz_13;
从 APT仓库 手工安装 hunspell_cs_cz
DEB 包:
apt install postgresql-17-hunspell-cs-cz;
apt install postgresql-16-hunspell-cs-cz;
apt install postgresql-15-hunspell-cs-cz;
apt install postgresql-14-hunspell-cs-cz;
apt install postgresql-13-hunspell-cs-cz;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hunspell_cs_cz
扩展:
CREATE EXTENSION hunspell_cs_cz;
PIGSTY 第三方扩展: hunspell_de_de
: Hunspell德语全文检索词典
hunspell_de_de
hunspell
FTS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLhunspell_de_de_$v
1.0
postgresql-$v-hunspell-de-de
1.0
使用 pig
命令行工具安装 hunspell_de_de
扩展:
pig ext install hunspell_de_de
使用 Pigsty剧本 安装 hunspell_de_de 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["hunspell_de_de"]}' # -l <集群名>
从 YUM仓库 手工安装 hunspell_de_de
RPM 包:
dnf install hunspell_de_de_17;
dnf install hunspell_de_de_16;
dnf install hunspell_de_de_15;
dnf install hunspell_de_de_14;
dnf install hunspell_de_de_13;
从 APT仓库 手工安装 hunspell_de_de
DEB 包:
apt install postgresql-17-hunspell-de-de;
apt install postgresql-16-hunspell-de-de;
apt install postgresql-15-hunspell-de-de;
apt install postgresql-14-hunspell-de-de;
apt install postgresql-13-hunspell-de-de;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hunspell_de_de
扩展:
CREATE EXTENSION hunspell_de_de;
PIGSTY 第三方扩展: hunspell_en_us
: Hunspell英语全文检索词典
hunspell_en_us
hunspell
FTS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLhunspell_en_us_$v
1.0
postgresql-$v-hunspell-en-us
1.0
使用 pig
命令行工具安装 hunspell_en_us
扩展:
pig ext install hunspell_en_us
使用 Pigsty剧本 安装 hunspell_en_us 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["hunspell_en_us"]}' # -l <集群名>
从 YUM仓库 手工安装 hunspell_en_us
RPM 包:
dnf install hunspell_en_us_17;
dnf install hunspell_en_us_16;
dnf install hunspell_en_us_15;
dnf install hunspell_en_us_14;
dnf install hunspell_en_us_13;
从 APT仓库 手工安装 hunspell_en_us
DEB 包:
apt install postgresql-17-hunspell-en-us;
apt install postgresql-16-hunspell-en-us;
apt install postgresql-15-hunspell-en-us;
apt install postgresql-14-hunspell-en-us;
apt install postgresql-13-hunspell-en-us;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hunspell_en_us
扩展:
CREATE EXTENSION hunspell_en_us;
PIGSTY 第三方扩展: hunspell_fr
: Hunspell法语全文检索词典
hunspell_fr
hunspell
FTS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLhunspell_fr_$v
1.0
postgresql-$v-hunspell-fr
1.0
使用 pig
命令行工具安装 hunspell_fr
扩展:
pig ext install hunspell_fr
使用 Pigsty剧本 安装 hunspell_fr 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["hunspell_fr"]}' # -l <集群名>
从 YUM仓库 手工安装 hunspell_fr
RPM 包:
dnf install hunspell_fr_17;
dnf install hunspell_fr_16;
dnf install hunspell_fr_15;
dnf install hunspell_fr_14;
dnf install hunspell_fr_13;
从 APT仓库 手工安装 hunspell_fr
DEB 包:
apt install postgresql-17-hunspell-fr;
apt install postgresql-16-hunspell-fr;
apt install postgresql-15-hunspell-fr;
apt install postgresql-14-hunspell-fr;
apt install postgresql-13-hunspell-fr;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hunspell_fr
扩展:
CREATE EXTENSION hunspell_fr;
PIGSTY 第三方扩展: hunspell_ne_np
: Hunspell尼泊尔语全文检索词典
hunspell_ne_np
hunspell
FTS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLhunspell_ne_np_$v
1.0
postgresql-$v-hunspell-ne-np
1.0
使用 pig
命令行工具安装 hunspell_ne_np
扩展:
pig ext install hunspell_ne_np
使用 Pigsty剧本 安装 hunspell_ne_np 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["hunspell_ne_np"]}' # -l <集群名>
从 YUM仓库 手工安装 hunspell_ne_np
RPM 包:
dnf install hunspell_ne_np_17;
dnf install hunspell_ne_np_16;
dnf install hunspell_ne_np_15;
dnf install hunspell_ne_np_14;
dnf install hunspell_ne_np_13;
从 APT仓库 手工安装 hunspell_ne_np
DEB 包:
apt install postgresql-17-hunspell-ne-np;
apt install postgresql-16-hunspell-ne-np;
apt install postgresql-15-hunspell-ne-np;
apt install postgresql-14-hunspell-ne-np;
apt install postgresql-13-hunspell-ne-np;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hunspell_ne_np
扩展:
CREATE EXTENSION hunspell_ne_np;
PIGSTY 第三方扩展: hunspell_nl_nl
: Hunspell荷兰语全文检索词典
hunspell_nl_nl
hunspell
FTS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLhunspell_nl_nl_$v
1.0
postgresql-$v-hunspell-nl-nl
1.0
使用 pig
命令行工具安装 hunspell_nl_nl
扩展:
pig ext install hunspell_nl_nl
使用 Pigsty剧本 安装 hunspell_nl_nl 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["hunspell_nl_nl"]}' # -l <集群名>
从 YUM仓库 手工安装 hunspell_nl_nl
RPM 包:
dnf install hunspell_nl_nl_17;
dnf install hunspell_nl_nl_16;
dnf install hunspell_nl_nl_15;
dnf install hunspell_nl_nl_14;
dnf install hunspell_nl_nl_13;
从 APT仓库 手工安装 hunspell_nl_nl
DEB 包:
apt install postgresql-17-hunspell-nl-nl;
apt install postgresql-16-hunspell-nl-nl;
apt install postgresql-15-hunspell-nl-nl;
apt install postgresql-14-hunspell-nl-nl;
apt install postgresql-13-hunspell-nl-nl;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hunspell_nl_nl
扩展:
CREATE EXTENSION hunspell_nl_nl;
PIGSTY 第三方扩展: hunspell_nn_no
: Hunspell挪威语全文检索词典
hunspell_nn_no
hunspell
FTS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLhunspell_nn_no_$v
1.0
postgresql-$v-hunspell-nn-no
1.0
使用 pig
命令行工具安装 hunspell_nn_no
扩展:
pig ext install hunspell_nn_no
使用 Pigsty剧本 安装 hunspell_nn_no 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["hunspell_nn_no"]}' # -l <集群名>
从 YUM仓库 手工安装 hunspell_nn_no
RPM 包:
dnf install hunspell_nn_no_17;
dnf install hunspell_nn_no_16;
dnf install hunspell_nn_no_15;
dnf install hunspell_nn_no_14;
dnf install hunspell_nn_no_13;
从 APT仓库 手工安装 hunspell_nn_no
DEB 包:
apt install postgresql-17-hunspell-nn-no;
apt install postgresql-16-hunspell-nn-no;
apt install postgresql-15-hunspell-nn-no;
apt install postgresql-14-hunspell-nn-no;
apt install postgresql-13-hunspell-nn-no;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hunspell_nn_no
扩展:
CREATE EXTENSION hunspell_nn_no;
PIGSTY 第三方扩展: hunspell_pt_pt
: Hunspell葡萄牙语全文检索词典
hunspell_pt_pt
hunspell
FTS
broken
17
,16
,15
,14
,13
CREATE EXTENSION
DDLhunspell_pt_pt_$v
1.0
postgresql-$v-hunspell-pt-pt
1.0
使用 pig
命令行工具安装 hunspell_pt_pt
扩展:
pig ext install hunspell_pt_pt
使用 Pigsty剧本 安装 hunspell_pt_pt 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["hunspell_pt_pt"]}' # -l <集群名>
从 YUM仓库 手工安装 hunspell_pt_pt
RPM 包:
dnf install hunspell_pt_pt_17;
dnf install hunspell_pt_pt_16;
dnf install hunspell_pt_pt_15;
dnf install hunspell_pt_pt_14;
dnf install hunspell_pt_pt_13;
从 APT仓库 手工安装 hunspell_pt_pt
DEB 包:
apt install postgresql-17-hunspell-pt-pt;
apt install postgresql-16-hunspell-pt-pt;
apt install postgresql-15-hunspell-pt-pt;
apt install postgresql-14-hunspell-pt-pt;
apt install postgresql-13-hunspell-pt-pt;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hunspell_pt_pt
扩展:
CREATE EXTENSION hunspell_pt_pt;
PIGSTY 第三方扩展: hunspell_ru_ru
: Hunspell俄语全文检索词典
hunspell_ru_ru
hunspell
FTS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLhunspell_ru_ru_$v
1.0
postgresql-$v-hunspell-ru-ru
1.0
使用 pig
命令行工具安装 hunspell_ru_ru
扩展:
pig ext install hunspell_ru_ru
使用 Pigsty剧本 安装 hunspell_ru_ru 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["hunspell_ru_ru"]}' # -l <集群名>
从 YUM仓库 手工安装 hunspell_ru_ru
RPM 包:
dnf install hunspell_ru_ru_17;
dnf install hunspell_ru_ru_16;
dnf install hunspell_ru_ru_15;
dnf install hunspell_ru_ru_14;
dnf install hunspell_ru_ru_13;
从 APT仓库 手工安装 hunspell_ru_ru
DEB 包:
apt install postgresql-17-hunspell-ru-ru;
apt install postgresql-16-hunspell-ru-ru;
apt install postgresql-15-hunspell-ru-ru;
apt install postgresql-14-hunspell-ru-ru;
apt install postgresql-13-hunspell-ru-ru;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hunspell_ru_ru
扩展:
CREATE EXTENSION hunspell_ru_ru;
PIGSTY 第三方扩展: hunspell_ru_ru_aot
: Hunspell俄语全文检索词典(来自AOT.ru小组)
hunspell_ru_ru_aot
hunspell
FTS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLhunspell_ru_ru_aot_$v
1.0
postgresql-$v-hunspell-ru-ru-aot
1.0
使用 pig
命令行工具安装 hunspell_ru_ru_aot
扩展:
pig ext install hunspell_ru_ru_aot
使用 Pigsty剧本 安装 hunspell_ru_ru_aot 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["hunspell_ru_ru_aot"]}' # -l <集群名>
从 YUM仓库 手工安装 hunspell_ru_ru_aot
RPM 包:
dnf install hunspell_ru_ru_aot_17;
dnf install hunspell_ru_ru_aot_16;
dnf install hunspell_ru_ru_aot_15;
dnf install hunspell_ru_ru_aot_14;
dnf install hunspell_ru_ru_aot_13;
从 APT仓库 手工安装 hunspell_ru_ru_aot
DEB 包:
apt install postgresql-17-hunspell-ru-ru-aot;
apt install postgresql-16-hunspell-ru-ru-aot;
apt install postgresql-15-hunspell-ru-ru-aot;
apt install postgresql-14-hunspell-ru-ru-aot;
apt install postgresql-13-hunspell-ru-ru-aot;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hunspell_ru_ru_aot
扩展:
CREATE EXTENSION hunspell_ru_ru_aot;
CONTRIB 自带扩展: fuzzystrmatch
: 确定字符串之间的相似性和距离
fuzzystrmatch
None
FTS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 fuzzystrmatch
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 fuzzystrmatch
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 fuzzystrmatch
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 fuzzystrmatch
扩展:
CREATE EXTENSION fuzzystrmatch;
CONTRIB 自带扩展: pg_trgm
: 文本相似度测量函数与模糊检索
pg_trgm
None
FTS
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 pg_trgm
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_trgm
扩展:
CREATE EXTENSION pg_trgm;
OLAP 类目共有 13 个可用扩展:
扩展名(详情) | 标准名(官网) | 仓库 | 版本 | 类目 | 许可证 | LOAD |
DDL |
TRUST |
RELOC |
简介 |
---|---|---|---|---|---|---|---|---|---|---|
citus | citus |
PIGSTY | 13.0.2 | OLAP |
AGPLv3 | Citus 分布式数据库 | ||||
citus_columnar | citus |
PIGSTY | 13.0.2 | OLAP |
AGPLv3 | Citus 列式存储引擎 | ||||
columnar | hydra |
PIGSTY | 1.1.2 | OLAP |
AGPLv3 | 开源列式存储扩展 | ||||
pg_analytics | pg_analytics |
PIGSTY | 0.3.7 | OLAP |
PostgreSQL | 由 DuckDB 驱动的数据分析引擎 | ||||
pg_duckdb | pg_duckdb |
PIGSTY | 0.3.1 | OLAP |
MIT | 在PostgreSQL中的嵌入式DuckDB扩展 | ||||
pg_mooncake | pg_mooncake |
PIGSTY | 0.1.2 | OLAP |
MIT | PostgreSQL列式存储表 | ||||
duckdb_fdw | duckdb_fdw |
PIGSTY | 1.1.2 | OLAP |
MIT | DuckDB 外部数据源包装器 | ||||
pg_parquet | pg_parquet |
PIGSTY | 0.3.1 | OLAP |
PostgreSQL | 在PostgreSQL与本地/S3中的Parquet文件复制数据 | ||||
pg_fkpart | pg_fkpart |
MIXED | 1.7.0 | OLAP |
GPLv2 | 按外键实用程序进行表分区的扩展 | ||||
pg_partman | pg_partman |
PGDG | 5.2.4 | OLAP |
PostgreSQL | 用于按时间或 ID 管理分区表的扩展 | ||||
plproxy | plproxy |
PGDG | 2.11.0 | OLAP |
BSD 0 | 作为过程语言实现的数据库分区 | ||||
pg_strom | pg_strom |
PGDG | 5.2.2 | OLAP |
PostgreSQL | 使用GPU与NVMe加速大数据处理 | ||||
tablefunc | tablefunc |
CONTRIB | 1.0 | OLAP |
PostgreSQL | 交叉表函数 |
PIGSTY 第三方扩展: citus
: Citus 分布式数据库
citus
citus
OLAP
17
,16
,15
,14
CREATE EXTENSION
DDLpg_catalog
citus_$v*
13.0.2
postgresql-$v-citus
13.0.2
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
citus_17 PIGSTY 13.0.2 |
citus_16 PIGSTY 13.0.2 |
citus_15 PIGSTY 13.0.2 |
citus_14 PIGSTY 13.0.0 |
citus_13 PGDG 11.3.0 |
el8 |
aarch64 |
citus_17 PIGSTY 13.0.2 |
citus_16 PIGSTY 13.0.2 |
citus_15 PIGSTY 13.0.2 |
citus_14 PIGSTY 13.0.0 |
citus_13 PGDG 11.3.0 |
el9 |
x86_64 |
citus_17 PIGSTY 13.0.2 |
citus_16 PIGSTY 13.0.2 |
citus_15 PIGSTY 13.0.2 |
citus_14 PIGSTY 13.0.0 |
citus_13 PGDG 11.3.0 |
el9 |
aarch64 |
citus_17 PIGSTY 13.0.2 |
citus_16 PIGSTY 13.0.2 |
citus_15 PIGSTY 13.0.2 |
citus_14 PIGSTY 13.0.0 |
citus_13 PGDG 11.3.0 |
d12 |
x86_64 |
postgresql-17-citus PIGSTY 13.0.2 |
postgresql-16-citus PIGSTY 13.0.2 |
postgresql-15-citus PIGSTY 13.0.2 |
postgresql-14-citus PIGSTY 13.0.0 |
|
d12 |
aarch64 |
postgresql-17-citus PIGSTY 13.0.2 |
postgresql-16-citus PIGSTY 13.0.2 |
postgresql-15-citus PIGSTY 13.0.2 |
postgresql-14-citus PIGSTY 13.0.0 |
|
u22 |
x86_64 |
postgresql-17-citus PIGSTY 13.0.2 |
postgresql-16-citus PIGSTY 13.0.2 |
postgresql-15-citus PIGSTY 13.0.2 |
postgresql-14-citus PIGSTY 13.0.0 |
|
u22 |
aarch64 |
postgresql-17-citus PIGSTY 13.0.2 |
postgresql-16-citus PIGSTY 13.0.2 |
postgresql-15-citus PIGSTY 13.0.2 |
postgresql-14-citus PIGSTY 13.0.0 |
|
u24 |
x86_64 |
postgresql-17-citus PIGSTY 13.0.2 |
postgresql-16-citus PIGSTY 13.0.2 |
postgresql-15-citus PIGSTY 13.0.2 |
postgresql-14-citus PIGSTY 13.0.0 |
|
u24 |
aarch64 |
postgresql-17-citus PIGSTY 13.0.2 |
postgresql-16-citus PIGSTY 13.0.2 |
postgresql-15-citus PIGSTY 13.0.2 |
postgresql-14-citus PIGSTY 13.0.0 |
使用 pig
命令行工具安装 citus
扩展:
pig ext install citus
使用 Pigsty剧本 安装 citus 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["citus"]}' # -l <集群名>
dnf install citus_17*;
dnf install citus_16*;
dnf install citus_15*;
dnf install citus_14*;
apt install postgresql-17-citus;
apt install postgresql-16-citus;
apt install postgresql-15-citus;
apt install postgresql-14-citus;
扩展 citus
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'citus'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 citus
扩展:
CREATE EXTENSION citus;
PIGSTY 第三方扩展: citus
: Citus 列式存储引擎
citus_columnar
citus
OLAP
17
,16
,15
,14
CREATE EXTENSION
DDLpg_catalog
citus_$v*
13.0.2
postgresql-$v-citus
13.0.2
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
citus_17 PIGSTY 13.0.2 |
citus_16 PIGSTY 13.0.2 |
citus_15 PIGSTY 13.0.2 |
citus_14 PIGSTY 13.0.0 |
citus_13 PGDG 11.3.0 |
el8 |
aarch64 |
citus_17 PIGSTY 13.0.2 |
citus_16 PIGSTY 13.0.2 |
citus_15 PIGSTY 13.0.2 |
citus_14 PIGSTY 13.0.0 |
citus_13 PGDG 11.3.0 |
el9 |
x86_64 |
citus_17 PIGSTY 13.0.2 |
citus_16 PIGSTY 13.0.2 |
citus_15 PIGSTY 13.0.2 |
citus_14 PIGSTY 13.0.0 |
citus_13 PGDG 11.3.0 |
el9 |
aarch64 |
citus_17 PIGSTY 13.0.2 |
citus_16 PIGSTY 13.0.2 |
citus_15 PIGSTY 13.0.2 |
citus_14 PIGSTY 13.0.0 |
citus_13 PGDG 11.3.0 |
d12 |
x86_64 |
postgresql-17-citus PIGSTY 13.0.2 |
postgresql-16-citus PIGSTY 13.0.2 |
postgresql-15-citus PIGSTY 13.0.2 |
postgresql-14-citus PIGSTY 13.0.0 |
|
d12 |
aarch64 |
postgresql-17-citus PIGSTY 13.0.2 |
postgresql-16-citus PIGSTY 13.0.2 |
postgresql-15-citus PIGSTY 13.0.2 |
postgresql-14-citus PIGSTY 13.0.0 |
|
u22 |
x86_64 |
postgresql-17-citus PIGSTY 13.0.2 |
postgresql-16-citus PIGSTY 13.0.2 |
postgresql-15-citus PIGSTY 13.0.2 |
postgresql-14-citus PIGSTY 13.0.0 |
|
u22 |
aarch64 |
postgresql-17-citus PIGSTY 13.0.2 |
postgresql-16-citus PIGSTY 13.0.2 |
postgresql-15-citus PIGSTY 13.0.2 |
postgresql-14-citus PIGSTY 13.0.0 |
|
u24 |
x86_64 |
postgresql-17-citus PIGSTY 13.0.2 |
postgresql-16-citus PIGSTY 13.0.2 |
postgresql-15-citus PIGSTY 13.0.2 |
postgresql-14-citus PIGSTY 13.0.0 |
|
u24 |
aarch64 |
postgresql-17-citus PIGSTY 13.0.2 |
postgresql-16-citus PIGSTY 13.0.2 |
postgresql-15-citus PIGSTY 13.0.2 |
postgresql-14-citus PIGSTY 13.0.0 |
使用 pig
命令行工具安装 citus
扩展:
pig ext install citus; # 扩展名称
pig ext install citus_columnar; # 标准包名
使用 Pigsty剧本 安装 citus 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["citus"]}' # -l <集群名>
dnf install citus_17*;
dnf install citus_16*;
dnf install citus_15*;
dnf install citus_14*;
apt install postgresql-17-citus;
apt install postgresql-16-citus;
apt install postgresql-15-citus;
apt install postgresql-14-citus;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 citus_columnar
扩展:
CREATE EXTENSION citus_columnar;
PIGSTY 第三方扩展: hydra
: 开源列式存储扩展
columnar
hydra
OLAP
16
,15
,14
,13
CREATE EXTENSION
DDLhydra_$v*
1.1.2
postgresql-$v-hydra
1.1.2
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
hydra_16 PIGSTY 1.1.2 |
hydra_15 PIGSTY 1.1.2 |
hydra_14 PIGSTY 1.1.2 |
hydra_13 PIGSTY 1.1.2 |
|
el8 |
aarch64 |
hydra_16 PIGSTY 1.1.2 |
hydra_15 PIGSTY 1.1.2 |
hydra_14 PIGSTY 1.1.2 |
hydra_13 PIGSTY 1.1.2 |
|
el9 |
x86_64 |
hydra_16 PIGSTY 1.1.2 |
hydra_15 PIGSTY 1.1.2 |
hydra_14 PIGSTY 1.1.2 |
hydra_13 PIGSTY 1.1.2 |
|
el9 |
aarch64 |
hydra_16 PIGSTY 1.1.2 |
hydra_15 PIGSTY 1.1.2 |
hydra_14 PIGSTY 1.1.2 |
hydra_13 PIGSTY 1.1.2 |
|
d12 |
x86_64 |
postgresql-16-hydra PIGSTY 1.1.2 |
postgresql-15-hydra PIGSTY 1.1.2 |
postgresql-14-hydra PIGSTY 1.1.2 |
postgresql-13-hydra PIGSTY 1.1.2 |
|
d12 |
aarch64 |
postgresql-16-hydra PIGSTY 1.1.2 |
postgresql-15-hydra PIGSTY 1.1.2 |
postgresql-14-hydra PIGSTY 1.1.2 |
postgresql-13-hydra PIGSTY 1.1.2 |
|
u22 |
x86_64 |
postgresql-16-hydra PIGSTY 1.1.2 |
postgresql-15-hydra PIGSTY 1.1.2 |
postgresql-14-hydra PIGSTY 1.1.2 |
postgresql-13-hydra PIGSTY 1.1.2 |
|
u22 |
aarch64 |
postgresql-16-hydra PIGSTY 1.1.2 |
postgresql-15-hydra PIGSTY 1.1.2 |
postgresql-14-hydra PIGSTY 1.1.2 |
postgresql-13-hydra PIGSTY 1.1.2 |
|
u24 |
x86_64 |
postgresql-16-hydra PIGSTY 1.1.2 |
postgresql-15-hydra PIGSTY 1.1.2 |
postgresql-14-hydra PIGSTY 1.1.2 |
postgresql-13-hydra PIGSTY 1.1.2 |
|
u24 |
aarch64 |
postgresql-16-hydra PIGSTY 1.1.2 |
postgresql-15-hydra PIGSTY 1.1.2 |
postgresql-14-hydra PIGSTY 1.1.2 |
postgresql-13-hydra PIGSTY 1.1.2 |
使用 pig
命令行工具安装 hydra
扩展:
pig ext install hydra; # 扩展名称
pig ext install columnar; # 标准包名
使用 Pigsty剧本 安装 hydra 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["hydra"]}' # -l <集群名>
dnf install hydra_16*;
dnf install hydra_15*;
dnf install hydra_14*;
dnf install hydra_13*;
apt install postgresql-16-hydra;
apt install postgresql-15-hydra;
apt install postgresql-14-hydra;
apt install postgresql-13-hydra;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 columnar
扩展:
CREATE EXTENSION columnar;
PIGSTY 第三方扩展: pg_analytics
: 由 DuckDB 驱动的数据分析引擎
pg_analytics
pg_analytics
OLAP
pgrx
, duckdb
17
,16
,15
,14
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建paradedb
pg_analytics_$v
0.3.4
postgresql-$v-pg-analytics
0.3.3
使用 pig
命令行工具安装 pg_analytics
扩展:
pig ext install pg_analytics
使用 Pigsty剧本 安装 pg_analytics 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_analytics"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_analytics
RPM 包:
dnf install pg_analytics_17;
dnf install pg_analytics_16;
dnf install pg_analytics_15;
dnf install pg_analytics_14;
从 APT仓库 手工安装 pg_analytics
DEB 包:
apt install postgresql-17-pg-analytics;
apt install postgresql-16-pg-analytics;
apt install postgresql-15-pg-analytics;
apt install postgresql-14-pg-analytics;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_analytics
扩展:
CREATE EXTENSION pg_analytics;
https://github.com/paradedb/pg_analytics
Example, read parquet file from S3:
CREATE EXTENSION pg_lakehouse;
CREATE FOREIGN DATA WRAPPER parquet_wrapper HANDLER parquet_fdw_handler VALIDATOR parquet_fdw_validator;
-- Provide S3 credentials
CREATE SERVER parquet_server FOREIGN DATA WRAPPER parquet_wrapper;
-- Create foreign table with auto schema creation
CREATE FOREIGN TABLE trips ()
SERVER parquet_server
OPTIONS (files 's3://paradedb-benchmarks/yellow_tripdata_2024-01.parquet');
-- Success! Now you can query the remote Parquet file like a regular Postgres table
SELECT COUNT(*) FROM trips;
count
---------
2964624
(1 row)
This fdw is read-only for now.
CREATE EXTENSION pg_lakehouse;
CREATE FOREIGN DATA WRAPPER iceberg_wrapper
HANDLER iceberg_fdw_handler
VALIDATOR iceberg_fdw_validator;
CREATE SERVER iceberg_server
FOREIGN DATA WRAPPER iceberg_wrapper;
-- Replace the dummy schema with the actual schema
CREATE FOREIGN TABLE iceberg_table (x INT)
SERVER iceberg_server
OPTIONS (files 's3://bucket/iceberg_folder');
-- Success! You can now query the Iceberg table
SELECT COUNT(*) FROM iceberg_table;
PIGSTY 第三方扩展: pg_duckdb
: 在PostgreSQL中的嵌入式DuckDB扩展
pg_duckdb
pg_duckdb
OLAP
duckdb
17
,16
,15
,14
CREATE EXTENSION
DDLpg_duckdb_$v*
0.3.1
postgresql-$v-pg-duckdb
0.3.1
使用 pig
命令行工具安装 pg_duckdb
扩展:
pig ext install pg_duckdb
使用 Pigsty剧本 安装 pg_duckdb 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_duckdb"]}' # -l <集群名>
dnf install pg_duckdb_17*;
dnf install pg_duckdb_16*;
dnf install pg_duckdb_15*;
dnf install pg_duckdb_14*;
apt install postgresql-17-pg-duckdb;
apt install postgresql-16-pg-duckdb;
apt install postgresql-15-pg-duckdb;
apt install postgresql-14-pg-duckdb;
扩展 pg_duckdb
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_duckdb'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_duckdb
扩展:
CREATE EXTENSION pg_duckdb;
Add pg_duckdb
to shared_preload_libraries
via patronictl
pg edit-config --force -p shared_preload_libraries='pg_duckdb, pg_stat_statements, auto_explain'
pg restart --force pg-meta
CREATE EXTENSION pg_duckdb;
Generate some data
pgbench -is100
\timing on
SELECT count(*) FROM pgbench_accounts;
-- 3268.023ms
# use the duckdb execution engine
SET duckdb.force_execution = true;
postgres@el8:5432/postgres=# explain SELECT count(*) FROM pgbench_accounts;
QUERY PLAN
---------------------------------------------------------------------------------
Custom Scan (DuckDBScan) (cost=0.00..0.00 rows=0 width=0)
DuckDB Execution Plan:
┌───────────────────────────┐
│ UNGROUPED_AGGREGATE │
│ ──────────────────── │
│ Aggregates: │
│ count_star() │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ POSTGRES_SEQ_SCAN │
│ ──────────────────── │
│ Function: │
│ POSTGRES_SEQ_SCAN │
│ │
│ ~10000000 Rows │
└───────────────────────────┘
JIT:
Functions: 1
Options: Inlining false, Optimization false, Expressions true, Deforming true
(22 rows)
postgres@el8:5432/postgres=# SELECT count(*) FROM pgbench_accounts;
count
----------
10000000
(1 row)
Time: 696.801 ms
According some user feedbacks, the duckdb engine can achieve 100x - 1000x speed up on certain queries.
Check more details @ https://github.com/duckdb/pg_duckdb
PIGSTY 第三方扩展: pg_mooncake
: PostgreSQL列式存储表
pg_mooncake
pg_mooncake
OLAP
duckdb
17
,16
,15
,14
CREATE EXTENSION
DDLpg_mooncake_$v*
0.1.2
postgresql-$v-pg-mooncake
0.1.2
使用 pig
命令行工具安装 pg_mooncake
扩展:
pig ext install pg_mooncake
使用 Pigsty剧本 安装 pg_mooncake 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_mooncake"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_mooncake
RPM 包:
dnf install pg_mooncake_17*;
dnf install pg_mooncake_16*;
dnf install pg_mooncake_15*;
dnf install pg_mooncake_14*;
从 APT仓库 手工安装 pg_mooncake
DEB 包:
apt install postgresql-17-pg-mooncake;
apt install postgresql-16-pg-mooncake;
apt install postgresql-15-pg-mooncake;
apt install postgresql-14-pg-mooncake;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_mooncake
扩展:
CREATE EXTENSION pg_mooncake;
THIS EXTENSION IS CONFLICT WITH pg_duckdb & duckdb_fdw, if it is under maintained, we may remove this extension in the future
Beware that this package is conflict with the official pg_duckdb
extension due to use the same libduckdb.so
under same path.
And this function will block the duckdb_fdw
functioning.
-- Create a columnstore table in PostgreSQL
CREATE TABLE user_activity (....) USING columnstore;
-- Insert data into a columnstore table
INSERT INTO user_activity VALUES ....;
-- Query a columnstore table in PostgreSQL
SELECT * FROM user_activity LIMIT 5;
Use mooncake with S3:
SELECT mooncake.create_secret('<name>', 'S3', '<key_id>', '<secret>', '{"REGION": "<s3-region>"}');
SET mooncake.default_bucket = 's3://<bucket>';
SET mooncake.enable_local_cache = false; -- (if you are using Neon)
Use mooncake with local columnstore:
CREATE TABLE user_activity(
user_id BIGINT,
activity_type TEXT,
activity_timestamp TIMESTAMP,
duration INT
) USING columnstore;
INSERT INTO user_activity VALUES
(1, 'login', '2024-01-01 08:00:00', 120),
(2, 'page_view', '2024-01-01 08:05:00', 30),
(3, 'logout', '2024-01-01 08:30:00', 60),
(4, 'error', '2024-01-01 08:13:00', 60);
SELECT * FROM user_activity;
Run analytic queries
SELECT
user_id,
activity_type,
SUM(duration) AS total_duration,
COUNT(*) AS activity_count
FROM
user_activity
GROUP BY
user_id, activity_type
ORDER BY
user_id, activity_type;
The explain result could be:
postgres@u22:5432/postgres=# explain SELECT
user_id,
activity_type,
SUM(duration) AS total_duration,
COUNT(*) AS activity_count
FROM
user_activity
GROUP BY
user_id, activity_type
ORDER BY
user_id, activity_type;
QUERY PLAN
------------------------------------------------------------
Custom Scan (DuckDBScan) (cost=0.00..0.00 rows=0 width=0)
DuckDB Execution Plan:
┌───────────────────────────┐
│ PROJECTION │
│ ──────────────────── │
│__internal_decompress_integ│
│ ral_bigint(#0, 1) │
│ #1 │
│ #2 │
│ #3 │
│ │
│ ~2 Rows │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ ORDER_BY │
│ ──────────────────── │
│ user_activity.user_id ASC │
│ user_activity │
│ .activity_type ASC │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ PROJECTION │
│ ──────────────────── │
│__internal_compress_integra│
│ l_utinyint(#0, 1) │
│ #1 │
│ #2 │
│ #3 │
│ │
│ ~2 Rows │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ PROJECTION │
│ ──────────────────── │
│__internal_decompress_integ│
│ ral_bigint(#0, 1) │
│ #1 │
│ #2 │
│ #3 │
│ │
│ ~2 Rows │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ HASH_GROUP_BY │
│ ──────────────────── │
│ Groups: │
│ #0 │
│ #1 │
│ │
│ Aggregates: │
│ sum(#2) │
│ count_star() │
│ │
│ ~2 Rows │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ PROJECTION │
│ ──────────────────── │
│ user_id │
│ activity_type │
│ duration │
│ │
│ ~4 Rows │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ PROJECTION │
│ ──────────────────── │
│__internal_compress_integra│
│ l_utinyint(#0, 1) │
│ #1 │
│ #2 │
│ │
│ ~4 Rows │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ COLUMNSTORE_SCAN │
│ ──────────────────── │
│ Function: │
│ COLUMNSTORE_SCAN │
│ │
│ Projections: │
│ user_id │
│ activity_type │
│ duration │
│ │
│ ~4 Rows │
└───────────────────────────┘
(90 rows)
PIGSTY 第三方扩展: duckdb_fdw
: DuckDB 外部数据源包装器
duckdb_fdw
duckdb_fdw
OLAP
duckdb
17
,16
,15
,14
,13
CREATE EXTENSION
DDLduckdb_fdw_$v*
1.0.0
libduckdb
postgresql-$v-duckdb-fdw
1.0.0
libduckdb
使用 pig
命令行工具安装 duckdb_fdw
扩展:
pig ext install duckdb_fdw
使用 Pigsty剧本 安装 duckdb_fdw 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["duckdb_fdw"]}' # -l <集群名>
从 YUM仓库 手工安装 duckdb_fdw
RPM 包:
dnf install duckdb_fdw_17*;
dnf install duckdb_fdw_16*;
dnf install duckdb_fdw_15*;
dnf install duckdb_fdw_14*;
dnf install duckdb_fdw_13*;
从 APT仓库 手工安装 duckdb_fdw
DEB 包:
apt install postgresql-17-duckdb-fdw;
apt install postgresql-16-duckdb-fdw;
apt install postgresql-15-duckdb-fdw;
apt install postgresql-14-duckdb-fdw;
apt install postgresql-13-duckdb-fdw;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 duckdb_fdw
扩展:
CREATE EXTENSION duckdb_fdw;
After install the duckdb_fdw
yum package, you can create the extension inside PostgreSQL database:
-- create extension
CREATE EXTENSION duckdb_fdw;
-- create duckdb_fdw server
CREATE SERVER duckdb_server FOREIGN DATA WRAPPER duckdb_fdw OPTIONS (database '/tmp/duck.db');
-- create user mapping [OPTIONAL]
-- GRANT USAGE ON FOREIGN SERVER duckdb_server TO PUBLIC;
SELECT duckdb_fdw_version();
-- You can execute duckdb command with `duckdb_execute`, for example, to create a table inside duckdb:
-- create a table in duckdb
SELECT duckdb_execute('duckdb_server', 'CREATE TABLE t1 (a integer,b varchar);');
-- create duckdb foreign table mapping that duckdb table
CREATE FOREIGN TABLE t1 (
a integer,
b text
) SERVER duckdb_server OPTIONS (
table 't1'
);
-- write some data and read it back
INSERT INTO t1 SELECT i AS a,i::text AS b FROM generate_series(1,10) i;
SELECT * FROM t1;
You can also import foreign schema from duckdb server, for example, create a table with duckdb cli:
duckdb /tmp/duck.db
CREATE TABLE t1 (
a integer,
b text
);
INSERT INTO t1 VALUES (1, 'a'), (2 , 'b'), (3, 'c');
SELECT * FROM t1;
Then import the schema into PostgreSQL:
IMPORT FOREIGN SCHEMA public FROM SERVER duckdb_server INTO public;
PIGSTY 第三方扩展: pg_parquet
: 在PostgreSQL与本地/S3中的Parquet文件复制数据
pg_parquet
pg_parquet
OLAP
pgrx
17
,16
,15
,14
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建pg_parquet_$v
0.2.0
postgresql-$v-pg-parquet
0.2.0
使用 pig
命令行工具安装 pg_parquet
扩展:
pig ext install pg_parquet
使用 Pigsty剧本 安装 pg_parquet 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_parquet"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_parquet
RPM 包:
dnf install pg_parquet_17;
dnf install pg_parquet_16;
dnf install pg_parquet_15;
dnf install pg_parquet_14;
从 APT仓库 手工安装 pg_parquet
DEB 包:
apt install postgresql-17-pg-parquet;
apt install postgresql-16-pg-parquet;
apt install postgresql-15-pg-parquet;
apt install postgresql-14-pg-parquet;
扩展 pg_parquet
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_parquet'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_parquet
扩展:
CREATE EXTENSION pg_parquet;
MIXED 第三方扩展: pg_fkpart
: 按外键实用程序进行表分区的扩展
pg_fkpart
pg_fkpart
OLAP
pgdg-flaw
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgfkpart
pg_fkpart_$v
1.7.0
postgresql-$v-pg-fkpart
1.7.0
使用 pig
命令行工具安装 pg_fkpart
扩展:
pig ext install pg_fkpart
使用 Pigsty剧本 安装 pg_fkpart 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_fkpart"]}' # -l <集群名>
dnf install pg_fkpart_17;
dnf install pg_fkpart_16;
dnf install pg_fkpart_15;
dnf install pg_fkpart_14;
dnf install pg_fkpart_13;
apt install postgresql-17-pg-fkpart;
apt install postgresql-16-pg-fkpart;
apt install postgresql-15-pg-fkpart;
apt install postgresql-14-pg-fkpart;
apt install postgresql-13-pg-fkpart;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_fkpart
扩展:
CREATE EXTENSION pg_fkpart;
PGDG 第一方扩展: pg_partman
: 用于按时间或 ID 管理分区表的扩展
pg_partman
pg_partman
OLAP
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_partman_$v*
5.2.4
postgresql-$v-partman
5.2.4
使用 pig
命令行工具安装 pg_partman
扩展:
pig ext install pg_partman
使用 Pigsty剧本 安装 pg_partman 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_partman"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_partman
RPM 包:
dnf install pg_partman_17*;
dnf install pg_partman_16*;
dnf install pg_partman_15*;
dnf install pg_partman_14*;
dnf install pg_partman_13*;
从 APT仓库 手工安装 pg_partman
DEB 包:
apt install postgresql-17-partman;
apt install postgresql-16-partman;
apt install postgresql-15-partman;
apt install postgresql-14-partman;
apt install postgresql-13-partman;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_partman
扩展:
CREATE EXTENSION pg_partman;
PGDG 第三方扩展: plproxy
: 作为过程语言实现的数据库分区
plproxy
plproxy
OLAP
pgdg-flaw
17
,16
,15
,14
,13
CREATE EXTENSION
DDLplproxy_$v*
2.11.0
postgresql-$v-plproxy
2.11.0
使用 pig
命令行工具安装 plproxy
扩展:
pig ext install plproxy
使用 Pigsty剧本 安装 plproxy 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["plproxy"]}' # -l <集群名>
dnf install plproxy_17*;
dnf install plproxy_16*;
dnf install plproxy_15*;
dnf install plproxy_14*;
dnf install plproxy_13*;
apt install postgresql-17-plproxy;
apt install postgresql-16-plproxy;
apt install postgresql-15-plproxy;
apt install postgresql-14-plproxy;
apt install postgresql-13-plproxy;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 plproxy
扩展:
CREATE EXTENSION plproxy;
PGDG 第一方扩展: pg_strom
: 使用GPU与NVMe加速大数据处理
pg_strom
pg_strom
OLAP
non-free
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_strom_$v*
5.2.2
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg_strom_17 PGDG 5.2.2 |
pg_strom_16 PGDG 5.2.2 |
pg_strom_15 PGDG 5.2.2 |
pg_strom_14 PGDG 3.5 |
pg_strom_13 PGDG 3.5 |
el8 |
aarch64 |
|||||
el9 |
x86_64 |
pg_strom_17 PGDG 5.2.2 |
pg_strom_16 PGDG 5.2.2 |
pg_strom_15 PGDG 5.2.2 |
pg_strom_14 PGDG 3.5 |
pg_strom_13 PGDG 3.5 |
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
使用 pig
命令行工具安装 pg_strom
扩展:
pig ext install pg_strom
使用 Pigsty剧本 安装 pg_strom 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_strom"]}' # -l <集群名>
dnf install pg_strom_17*;
dnf install pg_strom_16*;
dnf install pg_strom_15*;
dnf install pg_strom_14*;
dnf install pg_strom_13*;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_strom
扩展:
CREATE EXTENSION pg_strom;
CONTRIB 自带扩展: tablefunc
: 交叉表函数
tablefunc
None
OLAP
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 tablefunc
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 tablefunc
扩展:
CREATE EXTENSION tablefunc;
FEAT 类目共有 51 个可用扩展:
扩展名(详情) | 标准名(官网) | 仓库 | 版本 | 类目 | 许可证 | LOAD |
DDL |
TRUST |
RELOC |
简介 |
---|---|---|---|---|---|---|---|---|---|---|
age | age |
MIXED | 1.5.0 | FEAT |
Apache-2.0 | Apache AGE,图数据库扩展 (Deb可用) | ||||
hll | hll |
PGDG | 2.18 | FEAT |
Apache-2.0 | hyperloglog 数据类型 | ||||
rum | rum |
PGDG | 1.3.14 | FEAT |
PostgreSQL | RUM 索引访问方法 | ||||
pg_graphql | pg_graphql |
PIGSTY | 1.5.11 | FEAT |
Apache-2.0 | PG内的 GraphQL 支持 (RUST, supabase) | ||||
pg_jsonschema | pg_jsonschema |
PIGSTY | 0.3.3 | FEAT |
Apache-2.0 | 提供JSON Schema校验能力 | ||||
jsquery | jsquery |
PGDG | 1.2 | FEAT |
PostgreSQL | 用于内省 JSONB 数据类型的查询类型 | ||||
pg_hint_plan | pg_hint_plan |
PGDG | 1.7.0 | FEAT |
BSD 3 | 添加强制指定执行计划的能力 | ||||
hypopg | hypopg |
PGDG | 1.4.1 | FEAT |
PostgreSQL | 假设索引,用于创建一个虚拟索引检验执行计划 | ||||
index_advisor | index_advisor |
PIGSTY | 0.2.0 | FEAT |
PostgreSQL | 查询索引建议器 | ||||
plan_filter | pg_plan_filter |
PIGSTY | 0.0.1 | FEAT |
PostgreSQL | 使用执行计划代价过滤阻止特定查询语句 | ||||
imgsmlr | imgsmlr |
PIGSTY | 1.0 | FEAT |
PostgreSQL | 使用Haar小波分析计算图片相似度 | ||||
pg_ivm | pg_ivm |
MIXED | 1.10 | FEAT |
PostgreSQL | 增量维护的物化视图 | ||||
pg_incremental | pg_incremental |
PIGSTY | 1.2.0 | FEAT |
PostgreSQL | 增量处理流式事件 | ||||
pgmq | pgmq |
PIGSTY | 1.5.0 | FEAT |
PostgreSQL | 基于Postgres实现类似AWS SQS/RSMQ的消息队列 | ||||
pgq | pgq |
PGDG | 3.5.1 | FEAT |
ISC | 通用队列的PG实现 | ||||
pg_cardano | pg_cardano |
PIGSTY | 1.0.3 | FEAT |
MIT | Cardano相关工具包:加密函数,地址编解码,区块链处理 | ||||
rdkit | rdkit |
PGDG | 202409.4 | FEAT |
BSD 3 | 在PostgreSQL化学领域数据管理功能 | ||||
omni | omnigres |
PIGSTY | 0.2.4 | FEAT |
Apache-2.0 | PostgreSQL即平台,Omnigres主扩展与加载器 | ||||
omni_auth | omnigres |
PIGSTY | 0.1.2 | FEAT |
Apache-2.0 | Omnigres 基础会话认证管理模块 | ||||
omni_aws | omnigres |
PIGSTY | 0.1.2 | FEAT |
Apache-2.0 | Omnigres AWS S3 API封装 | ||||
omni_containers | omnigres |
PIGSTY | 0.2.0 | FEAT |
Apache-2.0 | Omnigres Docker容器管理模块 | ||||
omni_credentials | omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | Omnigres 应用密钥管理模块 | ||||
omni_http | omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | Omnigres 基本HTTP类型 | ||||
omni_httpc | omnigres |
PIGSTY | 0.1.4 | FEAT |
Apache-2.0 | Omnigres HTTP客户端 | ||||
omni_httpd | omnigres |
PIGSTY | 0.2.9 | FEAT |
Apache-2.0 | Omnigres HTTP服务器 | ||||
omni_id | omnigres |
PIGSTY | 0.4.0 | FEAT |
Apache-2.0 | Omnigres ID身份数据类型 | ||||
omni_json | omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | Omnigres JSON工具箱 | ||||
omni_kube | omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | Omnigres Kubernetes集成模块 | ||||
omni_ledger | omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | Omnigres 金融账本模块 | ||||
omni_manifest | omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | Omnigres 包管理清单模块 | ||||
omni_mimetypes | omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | Omnigres MIME数据类型 | ||||
omni_os | omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | Omnigres 操作系统集成模块 | ||||
omni_polyfill | omnigres |
PIGSTY | 0.2.0 | FEAT |
Apache-2.0 | Omnigres Postgres多态API | ||||
omni_python | omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | Omnigres 第一类Python支持模块 | ||||
omni_regex | omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | Omnigres PCRE兼容正则表达式模块 | ||||
omni_rest | omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | Omnigres REST API 工具包 | ||||
omni_schema | omnigres |
PIGSTY | 0.2.3 | FEAT |
Apache-2.0 | Omnigres 高级模式管理组件 | ||||
omni_seq | omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | Omnigres 分布式整型序列号 | ||||
omni_service | omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | Omnigres 服务管理器 | ||||
omni_session | omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | Omnigres 会话管理器 | ||||
omni_sql | omnigres |
PIGSTY | 0.5.0 | FEAT |
Apache-2.0 | Omnigres SQL编程组件 | ||||
omni_test | omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | Omnigres 测试框架 | ||||
omni_txn | omnigres |
PIGSTY | 0.5.0 | FEAT |
Apache-2.0 | Omnigres 事务管理器模块 | ||||
omni_types | omnigres |
PIGSTY | 0.2.1 | FEAT |
Apache-2.0 | Omnigres 高级数据类型模块 | ||||
omni_var | omnigres |
PIGSTY | 0.3.0 | FEAT |
Apache-2.0 | Omnigres 局部变量模块 | ||||
omni_vfs | omnigres |
PIGSTY | 0.2.0 | FEAT |
Apache-2.0 | Omnigres 虚拟文件系统 | ||||
omni_vfs_types_v1 | omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | Omnigres 虚拟文件系统(v1) | ||||
omni_web | omnigres |
PIGSTY | 0.1.1 | FEAT |
Apache-2.0 | Omnigres Web工具箱 | ||||
omni_xml | omnigres |
PIGSTY | 0.1.2 | FEAT |
Apache-2.0 | Omnigres XML工具包 | ||||
omni_yaml | omnigres |
PIGSTY | 0.1.0 | FEAT |
Apache-2.0 | Omnigres YAML工具包 | ||||
bloom | bloom |
CONTRIB | 1.0 | FEAT |
PostgreSQL | bloom 索引-基于指纹的索引 |
MIXED 第三方扩展: age
: Apache AGE,图数据库扩展 (Deb可用)
age
age
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLag_catalog
apache-age_$v*
1.5.0
postgresql-$v-age
1.5.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
apache-age_17 PIGSTY 1.5.0 |
apache-age_16 PIGSTY 1.5.0 |
apache-age_15 PIGSTY 1.5.0 |
apache-age_14 PIGSTY 1.5.0 |
apache-age_13 PIGSTY 1.5.0 |
el8 |
aarch64 |
apache-age_17 PIGSTY 1.5.0 |
apache-age_16 PIGSTY 1.5.0 |
apache-age_15 PIGSTY 1.5.0 |
apache-age_14 PIGSTY 1.5.0 |
apache-age_13 PIGSTY 1.5.0 |
el9 |
x86_64 |
apache-age_17 PIGSTY 1.5.0 |
apache-age_16 PIGSTY 1.5.0 |
apache-age_15 PIGSTY 1.5.0 |
apache-age_14 PIGSTY 1.5.0 |
apache-age_13 PIGSTY 1.5.0 |
el9 |
aarch64 |
apache-age_17 PIGSTY 1.5.0 |
apache-age_16 PIGSTY 1.5.0 |
apache-age_15 PIGSTY 1.5.0 |
apache-age_14 PIGSTY 1.5.0 |
apache-age_13 PIGSTY 1.5.0 |
d12 |
x86_64 |
postgresql-17-age PGDG 1.5.0~rc0 |
postgresql-16-age PGDG 1.5.0~rc0 |
postgresql-15-age PGDG 1.5.0~rc0 |
postgresql-14-age PGDG 1.5.0~rc0 |
postgresql-13-age PGDG 1.5.0~rc0 |
d12 |
aarch64 |
postgresql-17-age PGDG 1.5.0~rc0 |
postgresql-16-age PGDG 1.5.0~rc0 |
postgresql-15-age PGDG 1.5.0~rc0 |
postgresql-14-age PGDG 1.5.0~rc0 |
postgresql-13-age PGDG 1.5.0~rc0 |
u22 |
x86_64 |
postgresql-17-age PGDG 1.5.0~rc0 |
postgresql-16-age PGDG 1.5.0~rc0 |
postgresql-15-age PGDG 1.5.0~rc0 |
postgresql-14-age PGDG 1.5.0~rc0 |
postgresql-13-age PGDG 1.5.0~rc0 |
u22 |
aarch64 |
postgresql-17-age PGDG 1.5.0~rc0 |
postgresql-16-age PGDG 1.5.0~rc0 |
postgresql-15-age PGDG 1.5.0~rc0 |
postgresql-14-age PGDG 1.5.0~rc0 |
postgresql-13-age PGDG 1.5.0~rc0 |
u24 |
x86_64 |
postgresql-17-age PGDG 1.5.0~rc0 |
postgresql-16-age PGDG 1.5.0~rc0 |
postgresql-15-age PGDG 1.5.0~rc0 |
postgresql-14-age PGDG 1.5.0~rc0 |
postgresql-13-age PGDG 1.5.0~rc0 |
u24 |
aarch64 |
postgresql-17-age PGDG 1.5.0~rc0 |
postgresql-16-age PGDG 1.5.0~rc0 |
postgresql-15-age PGDG 1.5.0~rc0 |
postgresql-14-age PGDG 1.5.0~rc0 |
postgresql-13-age PGDG 1.5.0~rc0 |
使用 pig
命令行工具安装 age
扩展:
pig ext install age
使用 Pigsty剧本 安装 age 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["age"]}' # -l <集群名>
dnf install apache-age_17*;
dnf install apache-age_16*;
dnf install apache-age_15*;
dnf install apache-age_14*;
dnf install apache-age_13*;
apt install postgresql-17-age;
apt install postgresql-16-age;
apt install postgresql-15-age;
apt install postgresql-14-age;
apt install postgresql-13-age;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 age
扩展:
CREATE EXTENSION age;
PGDG 第一方扩展: hll
: hyperloglog 数据类型
hll
hll
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLhll_$v*
2.18
postgresql-$v-hll
2.18
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
hll_17 PGDG 2.18 |
hll_16 PGDG 2.18 |
hll_15 PGDG 2.18 |
hll_14 PGDG 2.18 |
hll_13 PGDG 2.18 |
el8 |
aarch64 |
hll_17 PGDG 2.18 |
hll_16 PGDG 2.18 |
hll_15 PGDG 2.18 |
hll_14 PGDG 2.18 |
hll_13 PGDG 2.18 |
el9 |
x86_64 |
hll_17 PGDG 2.18 |
hll_16 PGDG 2.18 |
hll_15 PGDG 2.18 |
hll_14 PGDG 2.18 |
hll_13 PGDG 2.18 |
el9 |
aarch64 |
hll_17 PGDG 2.18 |
hll_16 PGDG 2.18 |
hll_15 PGDG 2.18 |
hll_14 PGDG 2.18 |
hll_13 PGDG 2.18 |
d12 |
x86_64 |
postgresql-17-hll PGDG 2.18 |
postgresql-16-hll PGDG 2.18 |
postgresql-15-hll PGDG 2.18 |
postgresql-14-hll PGDG 2.18 |
postgresql-13-hll PGDG 2.18 |
d12 |
aarch64 |
postgresql-17-hll PGDG 2.18 |
postgresql-16-hll PGDG 2.18 |
postgresql-15-hll PGDG 2.18 |
postgresql-14-hll PGDG 2.18 |
postgresql-13-hll PGDG 2.18 |
u22 |
x86_64 |
postgresql-17-hll PGDG 2.18 |
postgresql-16-hll PGDG 2.18 |
postgresql-15-hll PGDG 2.18 |
postgresql-14-hll PGDG 2.18 |
postgresql-13-hll PGDG 2.18 |
u22 |
aarch64 |
postgresql-17-hll PGDG 2.18 |
postgresql-16-hll PGDG 2.18 |
postgresql-15-hll PGDG 2.18 |
postgresql-14-hll PGDG 2.18 |
postgresql-13-hll PGDG 2.18 |
u24 |
x86_64 |
postgresql-17-hll PGDG 2.18 |
postgresql-16-hll PGDG 2.18 |
postgresql-15-hll PGDG 2.18 |
postgresql-14-hll PGDG 2.18 |
postgresql-13-hll PGDG 2.18 |
u24 |
aarch64 |
postgresql-17-hll PGDG 2.18 |
postgresql-16-hll PGDG 2.18 |
postgresql-15-hll PGDG 2.18 |
postgresql-14-hll PGDG 2.18 |
postgresql-13-hll PGDG 2.18 |
使用 pig
命令行工具安装 hll
扩展:
pig ext install hll
使用 Pigsty剧本 安装 hll 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["hll"]}' # -l <集群名>
dnf install hll_17*;
dnf install hll_16*;
dnf install hll_15*;
dnf install hll_14*;
dnf install hll_13*;
apt install postgresql-17-hll;
apt install postgresql-16-hll;
apt install postgresql-15-hll;
apt install postgresql-14-hll;
apt install postgresql-13-hll;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hll
扩展:
CREATE EXTENSION hll;
PGDG 第一方扩展: rum
: RUM 索引访问方法
rum
rum
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLrum_$v
1.3
postgresql-$v-rum
1.3
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
rum_17 PGDG 1.3.14 |
rum_16 PGDG 1.3.14 |
rum_15 PGDG 1.3.14 |
rum_14 PGDG 1.3.14 |
rum_13 PGDG 1.3.14 |
el8 |
aarch64 |
rum_17 PGDG 1.3.14 |
rum_16 PGDG 1.3.14 |
rum_15 PGDG 1.3.14 |
rum_14 PGDG 1.3.14 |
rum_13 PGDG 1.3.14 |
el9 |
x86_64 |
rum_17 PGDG 1.3.14 |
rum_16 PGDG 1.3.14 |
rum_15 PGDG 1.3.14 |
rum_14 PGDG 1.3.14 |
rum_13 PGDG 1.3.14 |
el9 |
aarch64 |
rum_17 PGDG 1.3.14 |
rum_16 PGDG 1.3.14 |
rum_15 PGDG 1.3.14 |
rum_14 PGDG 1.3.14 |
rum_13 PGDG 1.3.14 |
d12 |
x86_64 |
postgresql-17-rum PGDG 1.3.14 |
postgresql-16-rum PGDG 1.3.14 |
postgresql-15-rum PGDG 1.3.14 |
postgresql-14-rum PGDG 1.3.14 |
postgresql-13-rum PGDG 1.3.14 |
d12 |
aarch64 |
postgresql-17-rum PGDG 1.3.14 |
postgresql-16-rum PGDG 1.3.14 |
postgresql-15-rum PGDG 1.3.14 |
postgresql-14-rum PGDG 1.3.14 |
postgresql-13-rum PGDG 1.3.14 |
u22 |
x86_64 |
postgresql-17-rum PGDG 1.3.14 |
postgresql-16-rum PGDG 1.3.14 |
postgresql-15-rum PGDG 1.3.14 |
postgresql-14-rum PGDG 1.3.14 |
postgresql-13-rum PGDG 1.3.14 |
u22 |
aarch64 |
postgresql-17-rum PGDG 1.3.14 |
postgresql-16-rum PGDG 1.3.14 |
postgresql-15-rum PGDG 1.3.14 |
postgresql-14-rum PGDG 1.3.14 |
postgresql-13-rum PGDG 1.3.14 |
u24 |
x86_64 |
postgresql-17-rum PGDG 1.3.14 |
postgresql-16-rum PGDG 1.3.14 |
postgresql-15-rum PGDG 1.3.14 |
postgresql-14-rum PGDG 1.3.14 |
postgresql-13-rum PGDG 1.3.14 |
u24 |
aarch64 |
postgresql-17-rum PGDG 1.3.14 |
postgresql-16-rum PGDG 1.3.14 |
postgresql-15-rum PGDG 1.3.14 |
postgresql-14-rum PGDG 1.3.14 |
postgresql-13-rum PGDG 1.3.14 |
使用 pig
命令行工具安装 rum
扩展:
pig ext install rum
使用 Pigsty剧本 安装 rum 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["rum"]}' # -l <集群名>
dnf install rum_17;
dnf install rum_16;
dnf install rum_15;
dnf install rum_14;
dnf install rum_13;
apt install postgresql-17-rum;
apt install postgresql-16-rum;
apt install postgresql-15-rum;
apt install postgresql-14-rum;
apt install postgresql-13-rum;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 rum
扩展:
CREATE EXTENSION rum;
PIGSTY 第三方扩展: pg_graphql
: PG内的 GraphQL 支持 (RUST, supabase)
pg_graphql
pg_graphql
FEAT
pgrx
, supabase
17
,16
,15
,14
CREATE EXTENSION
DDLgraphql
pg_graphql_$v
1.5.11
postgresql-$v-pg-graphql
1.5.11
使用 pig
命令行工具安装 pg_graphql
扩展:
pig ext install pg_graphql
使用 Pigsty剧本 安装 pg_graphql 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_graphql"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_graphql
RPM 包:
dnf install pg_graphql_17;
dnf install pg_graphql_16;
dnf install pg_graphql_15;
dnf install pg_graphql_14;
从 APT仓库 手工安装 pg_graphql
DEB 包:
apt install postgresql-17-pg-graphql;
apt install postgresql-16-pg-graphql;
apt install postgresql-15-pg-graphql;
apt install postgresql-14-pg-graphql;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_graphql
扩展:
CREATE EXTENSION pg_graphql;
PIGSTY 第三方扩展: pg_jsonschema
: 提供JSON Schema校验能力
pg_jsonschema
pg_jsonschema
FEAT
pgrx
, supabase
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_jsonschema_$v
0.3.3
postgresql-$v-pg-jsonschema
0.3.3
使用 pig
命令行工具安装 pg_jsonschema
扩展:
pig ext install pg_jsonschema
使用 Pigsty剧本 安装 pg_jsonschema 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_jsonschema"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_jsonschema
RPM 包:
dnf install pg_jsonschema_17;
dnf install pg_jsonschema_16;
dnf install pg_jsonschema_15;
dnf install pg_jsonschema_14;
dnf install pg_jsonschema_13;
从 APT仓库 手工安装 pg_jsonschema
DEB 包:
apt install postgresql-17-pg-jsonschema;
apt install postgresql-16-pg-jsonschema;
apt install postgresql-15-pg-jsonschema;
apt install postgresql-14-pg-jsonschema;
apt install postgresql-13-pg-jsonschema;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_jsonschema
扩展:
CREATE EXTENSION pg_jsonschema;
PGDG 第一方扩展: jsquery
: 用于内省 JSONB 数据类型的查询类型
jsquery
jsquery
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLjsquery_$v*
1.2
postgresql-$v-jsquery
1.2
使用 pig
命令行工具安装 jsquery
扩展:
pig ext install jsquery
使用 Pigsty剧本 安装 jsquery 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["jsquery"]}' # -l <集群名>
dnf install jsquery_17*;
dnf install jsquery_16*;
dnf install jsquery_15*;
dnf install jsquery_14*;
apt install postgresql-17-jsquery;
apt install postgresql-16-jsquery;
apt install postgresql-15-jsquery;
apt install postgresql-14-jsquery;
apt install postgresql-13-jsquery;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 jsquery
扩展:
CREATE EXTENSION jsquery;
PGDG 第一方扩展: pg_hint_plan
: 添加强制指定执行计划的能力
pg_hint_plan
pg_hint_plan
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLhint_plan
pg_hint_plan_$v*
1.7.0
postgresql-$v-pg-hint-plan
1.7.0
使用 pig
命令行工具安装 pg_hint_plan
扩展:
pig ext install pg_hint_plan
使用 Pigsty剧本 安装 pg_hint_plan 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_hint_plan"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_hint_plan
RPM 包:
dnf install pg_hint_plan_17*;
dnf install pg_hint_plan_16*;
dnf install pg_hint_plan_15*;
dnf install pg_hint_plan_14*;
dnf install pg_hint_plan_13*;
从 APT仓库 手工安装 pg_hint_plan
DEB 包:
apt install postgresql-17-pg-hint-plan;
apt install postgresql-16-pg-hint-plan;
apt install postgresql-15-pg-hint-plan;
apt install postgresql-14-pg-hint-plan;
apt install postgresql-13-pg-hint-plan;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_hint_plan
扩展:
CREATE EXTENSION pg_hint_plan;
PGDG 第一方扩展: hypopg
: 假设索引,用于创建一个虚拟索引检验执行计划
hypopg
hypopg
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLhypopg_$v*
1.4.1
postgresql-$v-hypopg
1.4.1
使用 pig
命令行工具安装 hypopg
扩展:
pig ext install hypopg
使用 Pigsty剧本 安装 hypopg 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["hypopg"]}' # -l <集群名>
dnf install hypopg_17*;
dnf install hypopg_16*;
dnf install hypopg_15*;
dnf install hypopg_14*;
dnf install hypopg_13*;
apt install postgresql-17-hypopg;
apt install postgresql-16-hypopg;
apt install postgresql-15-hypopg;
apt install postgresql-14-hypopg;
apt install postgresql-13-hypopg;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hypopg
扩展:
CREATE EXTENSION hypopg;
PIGSTY 第三方扩展: index_advisor
: 查询索引建议器
index_advisor
index_advisor
FEAT
supabase
17
,16
,15
,14
,13
CREATE EXTENSION
DDLindex_advisor_$v
0.2.0
postgresql-$v-index-advisor
0.2.0
使用 pig
命令行工具安装 index_advisor
扩展:
pig ext install index_advisor
使用 Pigsty剧本 安装 index_advisor 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["index_advisor"]}' # -l <集群名>
从 YUM仓库 手工安装 index_advisor
RPM 包:
dnf install index_advisor_17;
dnf install index_advisor_16;
dnf install index_advisor_15;
dnf install index_advisor_14;
dnf install index_advisor_13;
从 APT仓库 手工安装 index_advisor
DEB 包:
apt install postgresql-17-index-advisor;
apt install postgresql-16-index-advisor;
apt install postgresql-15-index-advisor;
apt install postgresql-14-index-advisor;
apt install postgresql-13-index-advisor;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 index_advisor
扩展:
CREATE EXTENSION index_advisor;
PIGSTY 第三方扩展: pg_plan_filter
: 使用执行计划代价过滤阻止特定查询语句
plan_filter
pg_plan_filter
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_plan_filter_$v*
0.0.1
postgresql-$v-pg-plan-filter
0.0.1
使用 pig
命令行工具安装 pg_plan_filter
扩展:
pig ext install pg_plan_filter; # 扩展名称
pig ext install plan_filter; # 标准包名
使用 Pigsty剧本 安装 pg_plan_filter 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_plan_filter"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_plan_filter
RPM 包:
dnf install pg_plan_filter_17*;
dnf install pg_plan_filter_16*;
dnf install pg_plan_filter_15*;
dnf install pg_plan_filter_14*;
dnf install pg_plan_filter_13*;
从 APT仓库 手工安装 pg_plan_filter
DEB 包:
apt install postgresql-17-pg-plan-filter;
apt install postgresql-16-pg-plan-filter;
apt install postgresql-15-pg-plan-filter;
apt install postgresql-14-pg-plan-filter;
apt install postgresql-13-pg-plan-filter;
扩展 plan_filter
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'plan_filter'; # 修改 PG 集群配置
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
PIGSTY 第三方扩展: imgsmlr
: 使用Haar小波分析计算图片相似度
imgsmlr
imgsmlr
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLimgsmlr_$v*
1.0
postgresql-$v-imgsmlr
1.0
使用 pig
命令行工具安装 imgsmlr
扩展:
pig ext install imgsmlr
使用 Pigsty剧本 安装 imgsmlr 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["imgsmlr"]}' # -l <集群名>
dnf install imgsmlr_17*;
dnf install imgsmlr_16*;
dnf install imgsmlr_15*;
dnf install imgsmlr_14*;
dnf install imgsmlr_13*;
apt install postgresql-17-imgsmlr;
apt install postgresql-16-imgsmlr;
apt install postgresql-15-imgsmlr;
apt install postgresql-14-imgsmlr;
apt install postgresql-13-imgsmlr;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 imgsmlr
扩展:
CREATE EXTENSION imgsmlr;
MIXED 第三方扩展: pg_ivm
: 增量维护的物化视图
pg_ivm
pg_ivm
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_catalog
pg_ivm_$v*
1.9
postgresql-$v-pg-ivm
1.9
使用 pig
命令行工具安装 pg_ivm
扩展:
pig ext install pg_ivm
使用 Pigsty剧本 安装 pg_ivm 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_ivm"]}' # -l <集群名>
dnf install pg_ivm_17*;
dnf install pg_ivm_16*;
dnf install pg_ivm_15*;
dnf install pg_ivm_14*;
dnf install pg_ivm_13*;
apt install postgresql-17-pg-ivm;
apt install postgresql-16-pg-ivm;
apt install postgresql-15-pg-ivm;
apt install postgresql-14-pg-ivm;
apt install postgresql-13-pg-ivm;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_ivm
扩展:
CREATE EXTENSION pg_ivm;
PIGSTY 第三方扩展: pg_incremental
: 增量处理流式事件
pg_incremental
pg_incremental
FEAT
17
,16
CREATE EXTENSION
DDLpg_catalog
pg_cron
pg_incremental_$v*
1.2.0
pg_cron_$v
postgresql-$v-pg-incremental
1.2.0
postgresql-$v-cron
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg_incremental_17 PIGSTY 1.2.0 |
pg_incremental_16 PIGSTY 1.2.0 |
|||
el8 |
aarch64 |
pg_incremental_17 PIGSTY 1.2.0 |
pg_incremental_16 PIGSTY 1.2.0 |
|||
el9 |
x86_64 |
pg_incremental_17 PIGSTY 1.2.0 |
pg_incremental_16 PIGSTY 1.2.0 |
|||
el9 |
aarch64 |
pg_incremental_17 PIGSTY 1.2.0 |
pg_incremental_16 PIGSTY 1.2.0 |
|||
d12 |
x86_64 |
postgresql-17-pg-incremental PIGSTY 1.2.0 |
postgresql-16-pg-incremental PIGSTY 1.2.0 |
|||
d12 |
aarch64 |
postgresql-17-pg-incremental PIGSTY 1.2.0 |
postgresql-16-pg-incremental PIGSTY 1.2.0 |
|||
u22 |
x86_64 |
postgresql-17-pg-incremental PIGSTY 1.2.0 |
postgresql-16-pg-incremental PIGSTY 1.2.0 |
|||
u22 |
aarch64 |
postgresql-17-pg-incremental PIGSTY 1.2.0 |
postgresql-16-pg-incremental PIGSTY 1.2.0 |
|||
u24 |
x86_64 |
postgresql-17-pg-incremental PIGSTY 1.2.0 |
postgresql-16-pg-incremental PIGSTY 1.2.0 |
|||
u24 |
aarch64 |
postgresql-17-pg-incremental PIGSTY 1.2.0 |
postgresql-16-pg-incremental PIGSTY 1.2.0 |
使用 pig
命令行工具安装 pg_incremental
扩展:
pig ext install pg_incremental
使用 Pigsty剧本 安装 pg_incremental 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_incremental"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_incremental
RPM 包:
dnf install pg_incremental_17*;
dnf install pg_incremental_16*;
从 APT仓库 手工安装 pg_incremental
DEB 包:
apt install postgresql-17-pg-incremental;
apt install postgresql-16-pg-incremental;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_incremental
扩展:
CREATE EXTENSION pg_incremental CASCADE;
PIGSTY 第三方扩展: pgmq
: 基于Postgres实现类似AWS SQS/RSMQ的消息队列
pgmq
pgmq
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建pgmq
pgmq_$v
1.5.0
postgresql-$v-pgmq
1.5.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pgmq_17 PIGSTY 1.5.0 |
pgmq_16 PIGSTY 1.5.0 |
pgmq_15 PIGSTY 1.5.0 |
pgmq_14 PIGSTY 1.5.0 |
pgmq_13 PIGSTY 1.5.0 |
el8 |
aarch64 |
pgmq_17 PIGSTY 1.5.0 |
pgmq_16 PIGSTY 1.5.0 |
pgmq_15 PIGSTY 1.5.0 |
pgmq_14 PIGSTY 1.5.0 |
pgmq_13 PIGSTY 1.5.0 |
el9 |
x86_64 |
pgmq_17 PIGSTY 1.5.0 |
pgmq_16 PIGSTY 1.5.0 |
pgmq_15 PIGSTY 1.5.0 |
pgmq_14 PIGSTY 1.5.0 |
pgmq_13 PIGSTY 1.5.0 |
el9 |
aarch64 |
pgmq_17 PIGSTY 1.5.0 |
pgmq_16 PIGSTY 1.5.0 |
pgmq_15 PIGSTY 1.5.0 |
pgmq_14 PIGSTY 1.5.0 |
pgmq_13 PIGSTY 1.5.0 |
d12 |
x86_64 |
postgresql-17-pgmq PIGSTY 1.5.0 |
postgresql-16-pgmq PIGSTY 1.5.0 |
postgresql-15-pgmq PIGSTY 1.5.0 |
postgresql-14-pgmq PIGSTY 1.5.0 |
postgresql-13-pgmq PIGSTY 1.5.0 |
d12 |
aarch64 |
postgresql-17-pgmq PIGSTY 1.5.0 |
postgresql-16-pgmq PIGSTY 1.5.0 |
postgresql-15-pgmq PIGSTY 1.5.0 |
postgresql-14-pgmq PIGSTY 1.5.0 |
postgresql-13-pgmq PIGSTY 1.5.0 |
u22 |
x86_64 |
postgresql-17-pgmq PIGSTY 1.5.0 |
postgresql-16-pgmq PIGSTY 1.5.0 |
postgresql-15-pgmq PIGSTY 1.5.0 |
postgresql-14-pgmq PIGSTY 1.5.0 |
postgresql-13-pgmq PIGSTY 1.5.0 |
u22 |
aarch64 |
postgresql-17-pgmq PIGSTY 1.5.0 |
postgresql-16-pgmq PIGSTY 1.5.0 |
postgresql-15-pgmq PIGSTY 1.5.0 |
postgresql-14-pgmq PIGSTY 1.5.0 |
postgresql-13-pgmq PIGSTY 1.5.0 |
u24 |
x86_64 |
postgresql-17-pgmq PIGSTY 1.5.0 |
postgresql-16-pgmq PIGSTY 1.5.0 |
postgresql-15-pgmq PIGSTY 1.5.0 |
postgresql-14-pgmq PIGSTY 1.5.0 |
postgresql-13-pgmq PIGSTY 1.5.0 |
u24 |
aarch64 |
postgresql-17-pgmq PIGSTY 1.5.0 |
postgresql-16-pgmq PIGSTY 1.5.0 |
postgresql-15-pgmq PIGSTY 1.5.0 |
postgresql-14-pgmq PIGSTY 1.5.0 |
postgresql-13-pgmq PIGSTY 1.5.0 |
使用 pig
命令行工具安装 pgmq
扩展:
pig ext install pgmq
使用 Pigsty剧本 安装 pgmq 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgmq"]}' # -l <集群名>
dnf install pgmq_17;
dnf install pgmq_16;
dnf install pgmq_15;
dnf install pgmq_14;
dnf install pgmq_13;
apt install postgresql-17-pgmq;
apt install postgresql-16-pgmq;
apt install postgresql-15-pgmq;
apt install postgresql-14-pgmq;
apt install postgresql-13-pgmq;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgmq
扩展:
CREATE EXTENSION pgmq;
PGDG 第一方扩展: pgq
: 通用队列的PG实现
pgq
pgq
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_catalog
pgq_$v*
3.5.1
postgresql-$v-pgq3
3.5
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pgq_17 PGDG 3.5.1 |
pgq_16 PGDG 3.5.1 |
pgq_15 PGDG 3.5.1 |
pgq_14 PGDG 3.5.1 |
pgq_13 PGDG 3.5.1 |
el8 |
aarch64 |
pgq_17 PGDG 3.5.1 |
pgq_16 PGDG 3.5.1 |
pgq_15 PGDG 3.5.1 |
pgq_14 PGDG 3.5.1 |
pgq_13 PGDG 3.5.1 |
el9 |
x86_64 |
pgq_17 PGDG 3.5.1 |
pgq_16 PGDG 3.5.1 |
pgq_15 PGDG 3.5.1 |
pgq_14 PGDG 3.5.1 |
pgq_13 PGDG 3.5.1 |
el9 |
aarch64 |
pgq_17 PGDG 3.5.1 |
pgq_16 PGDG 3.5.1 |
pgq_15 PGDG 3.5.1 |
pgq_14 PGDG 3.5.1 |
pgq_13 PGDG 3.5.1 |
d12 |
x86_64 |
postgresql-17-pgq3 PGDG 3.5 |
postgresql-16-pgq3 PGDG 3.5 |
postgresql-15-pgq3 PGDG 3.5 |
postgresql-14-pgq3 PGDG 3.5 |
postgresql-13-pgq3 PGDG 3.5 |
d12 |
aarch64 |
postgresql-17-pgq3 PGDG 3.5 |
postgresql-16-pgq3 PGDG 3.5 |
postgresql-15-pgq3 PGDG 3.5 |
postgresql-14-pgq3 PGDG 3.5 |
postgresql-13-pgq3 PGDG 3.5 |
u22 |
x86_64 |
postgresql-17-pgq3 PGDG 3.5 |
postgresql-16-pgq3 PGDG 3.5 |
postgresql-15-pgq3 PGDG 3.5 |
postgresql-14-pgq3 PGDG 3.5 |
postgresql-13-pgq3 PGDG 3.5 |
u22 |
aarch64 |
postgresql-17-pgq3 PGDG 3.5 |
postgresql-16-pgq3 PGDG 3.5 |
postgresql-15-pgq3 PGDG 3.5 |
postgresql-14-pgq3 PGDG 3.5 |
postgresql-13-pgq3 PGDG 3.5 |
u24 |
x86_64 |
postgresql-17-pgq3 PGDG 3.5 |
postgresql-16-pgq3 PGDG 3.5 |
postgresql-15-pgq3 PGDG 3.5 |
postgresql-14-pgq3 PGDG 3.5 |
postgresql-13-pgq3 PGDG 3.5 |
u24 |
aarch64 |
postgresql-17-pgq3 PGDG 3.5 |
postgresql-16-pgq3 PGDG 3.5 |
postgresql-15-pgq3 PGDG 3.5 |
postgresql-14-pgq3 PGDG 3.5 |
postgresql-13-pgq3 PGDG 3.5 |
使用 pig
命令行工具安装 pgq
扩展:
pig ext install pgq
使用 Pigsty剧本 安装 pgq 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgq"]}' # -l <集群名>
dnf install pgq_17*;
dnf install pgq_16*;
dnf install pgq_15*;
dnf install pgq_14*;
dnf install pgq_13*;
apt install postgresql-17-pgq3;
apt install postgresql-16-pgq3;
apt install postgresql-15-pgq3;
apt install postgresql-14-pgq3;
apt install postgresql-13-pgq3;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgq
扩展:
CREATE EXTENSION pgq;
PIGSTY 第三方扩展: pg_cardano
: Cardano相关工具包:加密函数,地址编解码,区块链处理
pg_cardano
pg_cardano
FEAT
pgrx
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_cardano_$v
1.0.3
postgresql-$v-pg-cardano
1.0.3
使用 pig
命令行工具安装 pg_cardano
扩展:
pig ext install pg_cardano
使用 Pigsty剧本 安装 pg_cardano 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_cardano"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_cardano
RPM 包:
dnf install pg_cardano_17;
dnf install pg_cardano_16;
dnf install pg_cardano_15;
dnf install pg_cardano_14;
dnf install pg_cardano_13;
从 APT仓库 手工安装 pg_cardano
DEB 包:
apt install postgresql-17-pg-cardano;
apt install postgresql-16-pg-cardano;
apt install postgresql-15-pg-cardano;
apt install postgresql-14-pg-cardano;
apt install postgresql-13-pg-cardano;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_cardano
扩展:
CREATE EXTENSION pg_cardano;
PGDG 第一方扩展: rdkit
: 在PostgreSQL化学领域数据管理功能
rdkit
rdkit
FEAT
16
,15
,14
,13
CREATE EXTENSION
DDLpostgresql-$v-rdkit
202409.4
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
postgresql-16-rdkit PGDG 202303.3 |
postgresql-15-rdkit PGDG 202303.3 |
postgresql-14-rdkit PGDG 202303.3 |
postgresql-13-rdkit PGDG 202303.3 |
|
d12 |
aarch64 |
postgresql-16-rdkit PGDG 202303.3 |
postgresql-15-rdkit PGDG 202303.3 |
postgresql-14-rdkit PGDG 202303.3 |
postgresql-13-rdkit PGDG 202303.3 |
|
u22 |
x86_64 |
postgresql-16-rdkit PGDG 202303.3 |
postgresql-15-rdkit PGDG 202303.3 |
postgresql-14-rdkit PGDG 202303.3 |
postgresql-13-rdkit PGDG 202303.3 |
|
u22 |
aarch64 |
postgresql-16-rdkit PGDG 202303.3 |
postgresql-15-rdkit PGDG 202303.3 |
postgresql-14-rdkit PGDG 202303.3 |
postgresql-13-rdkit PGDG 202303.3 |
|
u24 |
x86_64 |
postgresql-17-rdkit PGDG 202409.4 |
postgresql-16-rdkit PGDG 202409.4 |
postgresql-15-rdkit PGDG 202409.4 |
postgresql-14-rdkit PGDG 202409.4 |
postgresql-13-rdkit PGDG 202409.4 |
u24 |
aarch64 |
postgresql-17-rdkit PGDG 202409.4 |
postgresql-16-rdkit PGDG 202409.4 |
postgresql-15-rdkit PGDG 202409.4 |
postgresql-14-rdkit PGDG 202409.4 |
postgresql-13-rdkit PGDG 202409.4 |
使用 pig
命令行工具安装 rdkit
扩展:
pig ext install rdkit
使用 Pigsty剧本 安装 rdkit 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["rdkit"]}' # -l <集群名>
apt install postgresql-16-rdkit;
apt install postgresql-15-rdkit;
apt install postgresql-14-rdkit;
apt install postgresql-13-rdkit;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 rdkit
扩展:
CREATE EXTENSION rdkit;
PIGSTY 第三方扩展: omnigres
: PostgreSQL即平台,Omnigres主扩展与加载器
omni
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni
omnigres_$v
0.2.4
postgresql-$v-omnigres
0.2.4
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
扩展 omni
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'omni'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni
扩展:
CREATE EXTENSION omni;
PIGSTY 第三方扩展: omnigres
: Omnigres 基础会话认证管理模块
omni_auth
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_auth
omni_types
, omni_id
, pgcrypto
, btree_gist
, omni_polyfill
omnigres_$v
0.1.2
postgresql-$v-omnigres
0.1.2
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_auth; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_auth
扩展:
CREATE EXTENSION omni_auth CASCADE;
PIGSTY 第三方扩展: omnigres
: Omnigres AWS S3 API封装
omni_aws
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建omni_aws
omni_httpc
, pgcrypto
, omni_xml
, omni_web
omnigres_$v
0.1.2
postgresql-$v-omnigres
0.1.2
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_aws; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_aws
扩展:
CREATE EXTENSION omni_aws CASCADE;
PIGSTY 第三方扩展: omnigres
: Omnigres Docker容器管理模块
omni_containers
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_containers
omni_httpc
, omni_web
omnigres_$v
0.2.0
postgresql-$v-omnigres
0.2.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_containers; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_containers
扩展:
CREATE EXTENSION omni_containers CASCADE;
PIGSTY 第三方扩展: omnigres
: Omnigres 应用密钥管理模块
omni_credentials
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_credentials
pgcrypto
, omni_os
omnigres_$v
0.1.0
postgresql-$v-omnigres
0.1.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_credentials; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_credentials
扩展:
CREATE EXTENSION omni_credentials CASCADE;
PIGSTY 第三方扩展: omnigres
: Omnigres 基本HTTP类型
omni_http
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_http
omnigres_$v
0.1.0
postgresql-$v-omnigres
0.1.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_http; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_http
扩展:
CREATE EXTENSION omni_http;
PIGSTY 第三方扩展: omnigres
: Omnigres HTTP客户端
omni_httpc
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_httpc
omni_http
, omni_types
omnigres_$v
0.1.4
postgresql-$v-omnigres
0.1.4
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_httpc; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_httpc
扩展:
CREATE EXTENSION omni_httpc CASCADE;
PIGSTY 第三方扩展: omnigres
: Omnigres HTTP服务器
omni_httpd
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_httpd
omni_types
, omni_http
omnigres_$v
0.2.9
postgresql-$v-omnigres
0.2.9
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_httpd; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_httpd
扩展:
CREATE EXTENSION omni_httpd CASCADE;
PIGSTY 第三方扩展: omnigres
: Omnigres ID身份数据类型
omni_id
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomnigres_$v
0.4.0
postgresql-$v-omnigres
0.4.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_id; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_id
扩展:
CREATE EXTENSION omni_id;
PIGSTY 第三方扩展: omnigres
: Omnigres JSON工具箱
omni_json
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建omni_json
omnigres_$v
0.1.1
postgresql-$v-omnigres
0.1.1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_json; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_json
扩展:
CREATE EXTENSION omni_json;
PIGSTY 第三方扩展: omnigres
: Omnigres Kubernetes集成模块
omni_kube
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_kube
omni_httpc
, omni_web
, omni_var
, pgcrypto
omnigres_$v
0.1.1
postgresql-$v-omnigres
0.1.1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_kube; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_kube
扩展:
CREATE EXTENSION omni_kube CASCADE;
PIGSTY 第三方扩展: omnigres
: Omnigres 金融账本模块
omni_ledger
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_ledger
omni_id
, omni_polyfill
omnigres_$v
0.1.1
postgresql-$v-omnigres
0.1.1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_ledger; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_ledger
扩展:
CREATE EXTENSION omni_ledger CASCADE;
PIGSTY 第三方扩展: omnigres
: Omnigres 包管理清单模块
omni_manifest
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_manifest
omnigres_$v
0.1.1
postgresql-$v-omnigres
0.1.1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_manifest; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_manifest
扩展:
CREATE EXTENSION omni_manifest;
PIGSTY 第三方扩展: omnigres
: Omnigres MIME数据类型
omni_mimetypes
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_mimetypes
omnigres_$v
0.1.0
postgresql-$v-omnigres
0.1.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_mimetypes; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_mimetypes
扩展:
CREATE EXTENSION omni_mimetypes;
PIGSTY 第三方扩展: omnigres
: Omnigres 操作系统集成模块
omni_os
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_os
omnigres_$v
0.1.1
postgresql-$v-omnigres
0.1.1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_os; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_os
扩展:
CREATE EXTENSION omni_os;
PIGSTY 第三方扩展: omnigres
: Omnigres Postgres多态API
omni_polyfill
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_polyfill
omnigres_$v
0.2.0
postgresql-$v-omnigres
0.2.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_polyfill; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_polyfill
扩展:
CREATE EXTENSION omni_polyfill;
PIGSTY 第三方扩展: omnigres
: Omnigres 第一类Python支持模块
omni_python
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_python
plpython3u
omnigres_$v
0.1.1
postgresql-$v-omnigres
0.1.1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_python; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_python
扩展:
CREATE EXTENSION omni_python CASCADE;
PIGSTY 第三方扩展: omnigres
: Omnigres PCRE兼容正则表达式模块
omni_regex
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomnigres_$v
0.1.0
postgresql-$v-omnigres
0.1.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_regex; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_regex
扩展:
CREATE EXTENSION omni_regex;
PIGSTY 第三方扩展: omnigres
: Omnigres REST API 工具包
omni_rest
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_rest
omni_httpd
, omni_sql
, omni_web
, omni_var
, pgcrypto
omnigres_$v
0.1.0
postgresql-$v-omnigres
0.1.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_rest; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_rest
扩展:
CREATE EXTENSION omni_rest CASCADE;
PIGSTY 第三方扩展: omnigres
: Omnigres 高级模式管理组件
omni_schema
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_schema
omni_sql
, omni_vfs
, dblink
omnigres_$v
0.2.3
postgresql-$v-omnigres
0.2.3
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_schema; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_schema
扩展:
CREATE EXTENSION omni_schema CASCADE;
PIGSTY 第三方扩展: omnigres
: Omnigres 分布式整型序列号
omni_seq
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_seq
omnigres_$v
0.1.1
postgresql-$v-omnigres
0.1.1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_seq; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_seq
扩展:
CREATE EXTENSION omni_seq;
PIGSTY 第三方扩展: omnigres
: Omnigres 服务管理器
omni_service
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_service
omnigres_$v
0.1.0
postgresql-$v-omnigres
0.1.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_service; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_service
扩展:
CREATE EXTENSION omni_service;
PIGSTY 第三方扩展: omnigres
: Omnigres 会话管理器
omni_session
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_session
omni_var
, omni_id
, omni_web
, omni_httpd
, omni_polyfill
omnigres_$v
0.1.1
postgresql-$v-omnigres
0.1.1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_session; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_session
扩展:
CREATE EXTENSION omni_session CASCADE;
PIGSTY 第三方扩展: omnigres
: Omnigres SQL编程组件
omni_sql
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_sql
omnigres_$v
0.5.0
postgresql-$v-omnigres
0.5.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_sql; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_sql
扩展:
CREATE EXTENSION omni_sql;
PIGSTY 第三方扩展: omnigres
: Omnigres 测试框架
omni_test
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_test
dblink
omnigres_$v
0.1.0
postgresql-$v-omnigres
0.1.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_test; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_test
扩展:
CREATE EXTENSION omni_test CASCADE;
PIGSTY 第三方扩展: omnigres
: Omnigres 事务管理器模块
omni_txn
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_txn
omnigres_$v
0.5.0
postgresql-$v-omnigres
0.5.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_txn; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_txn
扩展:
CREATE EXTENSION omni_txn;
PIGSTY 第三方扩展: omnigres
: Omnigres 高级数据类型模块
omni_types
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_types
omnigres_$v
0.2.1
postgresql-$v-omnigres
0.2.1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_types; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_types
扩展:
CREATE EXTENSION omni_types;
PIGSTY 第三方扩展: omnigres
: Omnigres 局部变量模块
omni_var
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_var
omnigres_$v
0.3.0
postgresql-$v-omnigres
0.3.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_var; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_var
扩展:
CREATE EXTENSION omni_var;
PIGSTY 第三方扩展: omnigres
: Omnigres 虚拟文件系统
omni_vfs
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_vfs
omnigres_$v
0.2.0
postgresql-$v-omnigres
0.2.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_vfs; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_vfs
扩展:
CREATE EXTENSION omni_vfs;
PIGSTY 第三方扩展: omnigres
: Omnigres 虚拟文件系统(v1)
omni_vfs_types_v1
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_vfs_types_v1
omni_vfs_types_v1
, dblink
omnigres_$v
0.1.0
postgresql-$v-omnigres
0.1.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_vfs_types_v1; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_vfs_types_v1
扩展:
CREATE EXTENSION omni_vfs_types_v1 CASCADE;
PIGSTY 第三方扩展: omnigres
: Omnigres Web工具箱
omni_web
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_web
omnigres_$v
0.1.1
postgresql-$v-omnigres
0.1.1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_web; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_web
扩展:
CREATE EXTENSION omni_web;
PIGSTY 第三方扩展: omnigres
: Omnigres XML工具包
omni_xml
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_xml
omnigres_$v
0.1.2
postgresql-$v-omnigres
0.1.2
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_xml; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_xml
扩展:
CREATE EXTENSION omni_xml;
PIGSTY 第三方扩展: omnigres
: Omnigres YAML工具包
omni_yaml
omnigres
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomni_yaml
omnigres_$v
0.1.0
postgresql-$v-omnigres
0.1.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el8 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
x86_64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
el9 |
aarch64 |
omnigres_17 PIGSTY 20250120 |
omnigres_16 PIGSTY 20250120 |
omnigres_15 PIGSTY 20250120 |
omnigres_14 PIGSTY 20250120 |
omnigres_13 PIGSTY 20250120 |
d12 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
d12 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u22 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
x86_64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
u24 |
aarch64 |
postgresql-17-omnigres PIGSTY 20250120 |
postgresql-16-omnigres PIGSTY 20250120 |
postgresql-15-omnigres PIGSTY 20250120 |
postgresql-14-omnigres PIGSTY 20250120 |
postgresql-13-omnigres PIGSTY 20250120 |
使用 pig
命令行工具安装 omnigres
扩展:
pig ext install omnigres; # 扩展名称
pig ext install omni_yaml; # 标准包名
使用 Pigsty剧本 安装 omnigres 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnigres"]}' # -l <集群名>
dnf install omnigres_17;
dnf install omnigres_16;
dnf install omnigres_15;
dnf install omnigres_14;
dnf install omnigres_13;
apt install postgresql-17-omnigres;
apt install postgresql-16-omnigres;
apt install postgresql-15-omnigres;
apt install postgresql-14-omnigres;
apt install postgresql-13-omnigres;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omni_yaml
扩展:
CREATE EXTENSION omni_yaml;
CONTRIB 自带扩展: bloom
: bloom 索引-基于指纹的索引
bloom
None
FEAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 bloom
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 bloom
扩展:
CREATE EXTENSION bloom;
LANG 类目共有 31 个可用扩展:
扩展名(详情) | 标准名(官网) | 仓库 | 版本 | 类目 | 许可证 | LOAD |
DDL |
TRUST |
RELOC |
简介 |
---|---|---|---|---|---|---|---|---|---|---|
pg_tle | pg_tle |
PIGSTY | 1.5.0 | LANG |
Apache-2.0 | AWS 可信语言扩展 | ||||
plv8 | plv8 |
PIGSTY | 3.2.3 | LANG |
PostgreSQL | PL/JavaScript (v8) 可信过程程序语言 | ||||
pllua | pllua |
PGDG | 2.0.12 | LANG |
MIT | Lua 程序语言 | ||||
hstore_pllua | pllua |
PGDG | 2.0.12 | LANG |
MIT | Lua 程序语言的Hstore适配扩展 | ||||
plluau | pllua |
PGDG | 2.0.12 | LANG |
MIT | Lua 程序语言(不受信任的) | ||||
hstore_plluau | pllua |
PGDG | 2.0.12 | LANG |
MIT | Lua 程序语言的Hstore适配扩展(不受信任的) | ||||
plprql | plprql |
PIGSTY | 1.0.0 | LANG |
Apache-2.0 | 在PostgreSQL使用PRQL——管线式关系查询语言 | ||||
pldbgapi | pldebugger |
PGDG | 1.8 | LANG |
Artistic | 用于调试 PL/pgSQL 函数的服务器端支持 | ||||
plpgsql_check | plpgsql_check |
PGDG | 2.8.0 | LANG |
MIT | 对 plpgsql 函数进行扩展检查 | ||||
plprofiler | plprofiler |
PGDG | 4.2.5 | LANG |
Artistic | 剖析 PL/pgSQL 函数 | ||||
plsh | plsh |
PGDG | 1.20220917 | LANG |
MIT | PL/sh 程序语言 | ||||
pljava | pljava |
PGDG | 1.6.8 | LANG |
BSD 3 | Java 程序语言 | ||||
plr | plr |
PGDG | 8.4.7 | LANG |
GPLv2 | 从数据库中加载R语言解释器并执行R脚本 | ||||
pgtap | pgtap |
PGDG | 1.3.3 | LANG |
PostgreSQL | PostgreSQL单元测试框架 | ||||
faker | faker |
PGDG | 0.5.3 | LANG |
PostgreSQL | 插入生成的测试伪造数据,Python库的包装 | ||||
dbt2 | dbt2 |
PGDG | 0.45.0 | LANG |
Artistic | OSDL-DBT-2 测试组件 | ||||
pltcl | pltcl |
CONTRIB | 1.0 | LANG |
PostgreSQL | PL/TCL 存储过程语言 | ||||
pltclu | pltcl |
CONTRIB | 1.0 | LANG |
PostgreSQL | PL/TCL 存储过程语言(未受信/高权限) | ||||
plperl | plperl |
CONTRIB | 1.0 | LANG |
PostgreSQL | PL/Perl 存储过程语言 | ||||
bool_plperl | plperl |
CONTRIB | 1.0 | LANG |
PostgreSQL | 在 bool 和 plperl 之间转换 | ||||
hstore_plperl | plperl |
CONTRIB | 1.0 | LANG |
PostgreSQL | 在 hstore 和 plperl 之间转换适配类型 | ||||
jsonb_plperl | plperl |
CONTRIB | 1.0 | LANG |
PostgreSQL | 在 jsonb 和 plperl 之间转换 | ||||
plperlu | plperlu |
CONTRIB | 1.0 | LANG |
PostgreSQL | PL/PerlU 存储过程语言(未受信/高权限) | ||||
bool_plperlu | plperlu |
CONTRIB | 1.0 | LANG |
PostgreSQL | 在 bool 和 plperlu 之间转换 | ||||
jsonb_plperlu | plperlu |
CONTRIB | 1.0 | LANG |
PostgreSQL | 在 jsonb 和 plperlu 之间转换 | ||||
hstore_plperlu | plperlu |
CONTRIB | 1.0 | LANG |
PostgreSQL | 在 hstore 和 plperlu 之间转换适配类型 | ||||
plpgsql | plpgsql |
CONTRIB | 1.0 | LANG |
PostgreSQL | PL/pgSQL 程序设计语言 | ||||
plpython3u | plpython3u |
CONTRIB | 1.0 | LANG |
PostgreSQL | PL/Python3 存储过程语言(未受信/高权限) | ||||
jsonb_plpython3u | plpython3u |
CONTRIB | 1.0 | LANG |
PostgreSQL | 在 jsonb 和 plpython3u 之间转换 | ||||
ltree_plpython3u | plpython3u |
CONTRIB | 1.0 | LANG |
PostgreSQL | 在 ltree 和 plpython3u 之间转换 | ||||
hstore_plpython3u | plpython3u |
CONTRIB | 1.0 | LANG |
PostgreSQL | 在 hstore 和 plpython3u 之间转换 |
PIGSTY 第三方扩展: pg_tle
: AWS 可信语言扩展
pg_tle
pg_tle
LANG
both
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgtle
pg_tle_$v*
1.5.0
postgresql-$v-pg-tle
1.5.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg_tle_17 PIGSTY 1.5.0 |
pg_tle_16 PIGSTY 1.5.0 |
pg_tle_15 PIGSTY 1.5.0 |
pg_tle_14 PIGSTY 1.5.0 |
pg_tle_13 PIGSTY 1.5.0 |
el8 |
aarch64 |
pg_tle_17 PIGSTY 1.5.0 |
pg_tle_16 PIGSTY 1.5.0 |
pg_tle_15 PIGSTY 1.5.0 |
pg_tle_14 PIGSTY 1.5.0 |
pg_tle_13 PIGSTY 1.5.0 |
el9 |
x86_64 |
pg_tle_17 PIGSTY 1.5.0 |
pg_tle_16 PIGSTY 1.5.0 |
pg_tle_15 PIGSTY 1.5.0 |
pg_tle_14 PIGSTY 1.5.0 |
pg_tle_13 PIGSTY 1.5.0 |
el9 |
aarch64 |
pg_tle_17 PIGSTY 1.5.0 |
pg_tle_16 PIGSTY 1.5.0 |
pg_tle_15 PIGSTY 1.5.0 |
pg_tle_14 PIGSTY 1.5.0 |
pg_tle_13 PIGSTY 1.5.0 |
d12 |
x86_64 |
postgresql-17-pg-tle PIGSTY 1.5.0 |
postgresql-16-pg-tle PIGSTY 1.5.0 |
postgresql-15-pg-tle PIGSTY 1.5.0 |
postgresql-14-pg-tle PIGSTY 1.5.0 |
postgresql-13-pg-tle PIGSTY 1.5.0 |
d12 |
aarch64 |
postgresql-17-pg-tle PIGSTY 1.5.0 |
postgresql-16-pg-tle PIGSTY 1.5.0 |
postgresql-15-pg-tle PIGSTY 1.5.0 |
postgresql-14-pg-tle PIGSTY 1.5.0 |
postgresql-13-pg-tle PIGSTY 1.5.0 |
u22 |
x86_64 |
postgresql-17-pg-tle PIGSTY 1.5.0 |
postgresql-16-pg-tle PIGSTY 1.5.0 |
postgresql-15-pg-tle PIGSTY 1.5.0 |
postgresql-14-pg-tle PIGSTY 1.5.0 |
postgresql-13-pg-tle PIGSTY 1.5.0 |
u22 |
aarch64 |
postgresql-17-pg-tle PIGSTY 1.5.0 |
postgresql-16-pg-tle PIGSTY 1.5.0 |
postgresql-15-pg-tle PIGSTY 1.5.0 |
postgresql-14-pg-tle PIGSTY 1.5.0 |
postgresql-13-pg-tle PIGSTY 1.5.0 |
u24 |
x86_64 |
postgresql-17-pg-tle PIGSTY 1.5.0 |
postgresql-16-pg-tle PIGSTY 1.5.0 |
postgresql-15-pg-tle PIGSTY 1.5.0 |
postgresql-14-pg-tle PIGSTY 1.5.0 |
postgresql-13-pg-tle PIGSTY 1.5.0 |
u24 |
aarch64 |
postgresql-17-pg-tle PIGSTY 1.5.0 |
postgresql-16-pg-tle PIGSTY 1.5.0 |
postgresql-15-pg-tle PIGSTY 1.5.0 |
postgresql-14-pg-tle PIGSTY 1.5.0 |
postgresql-13-pg-tle PIGSTY 1.5.0 |
使用 pig
命令行工具安装 pg_tle
扩展:
pig ext install pg_tle
使用 Pigsty剧本 安装 pg_tle 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_tle"]}' # -l <集群名>
dnf install pg_tle_17*;
dnf install pg_tle_16*;
dnf install pg_tle_15*;
dnf install pg_tle_14*;
dnf install pg_tle_13*;
apt install postgresql-17-pg-tle;
apt install postgresql-16-pg-tle;
apt install postgresql-15-pg-tle;
apt install postgresql-14-pg-tle;
apt install postgresql-13-pg-tle;
扩展 pg_tle
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_tle'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_tle
扩展:
CREATE EXTENSION pg_tle;
PIGSTY 第三方扩展: plv8
: PL/JavaScript (v8) 可信过程程序语言
plv8
plv8
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_catalog
plv8_$v*
3.2.3
postgresql-$v-plv8
3.2.3
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
plv8_17 PIGSTY 3.2.3 |
plv8_16 PIGSTY 3.2.3 |
plv8_15 PIGSTY 3.2.3 |
plv8_14 PIGSTY 3.2.3 |
plv8_13 PIGSTY 3.2.3 |
el8 |
aarch64 |
plv8_17 PIGSTY 3.2.3 |
plv8_16 PIGSTY 3.2.3 |
plv8_15 PIGSTY 3.2.3 |
plv8_14 PIGSTY 3.2.3 |
plv8_13 PIGSTY 3.2.3 |
el9 |
x86_64 |
plv8_17 PIGSTY 3.2.3 |
plv8_16 PIGSTY 3.2.3 |
plv8_15 PIGSTY 3.2.3 |
plv8_14 PIGSTY 3.2.3 |
plv8_13 PIGSTY 3.2.3 |
el9 |
aarch64 |
plv8_17 PIGSTY 3.2.3 |
plv8_16 PIGSTY 3.2.3 |
plv8_15 PIGSTY 3.2.3 |
plv8_14 PIGSTY 3.2.3 |
plv8_13 PIGSTY 3.2.3 |
d12 |
x86_64 |
postgresql-17-plv8 PIGSTY 3.2.3 |
postgresql-16-plv8 PIGSTY 3.2.3 |
postgresql-15-plv8 PIGSTY 3.2.3 |
postgresql-14-plv8 PIGSTY 3.2.3 |
postgresql-13-plv8 PIGSTY 3.2.3 |
d12 |
aarch64 |
postgresql-17-plv8 PIGSTY 3.2.3 |
postgresql-16-plv8 PIGSTY 3.2.3 |
postgresql-15-plv8 PIGSTY 3.2.3 |
postgresql-14-plv8 PIGSTY 3.2.3 |
postgresql-13-plv8 PIGSTY 3.2.3 |
u22 |
x86_64 |
postgresql-17-plv8 PIGSTY 3.2.3 |
postgresql-16-plv8 PIGSTY 3.2.3 |
postgresql-15-plv8 PIGSTY 3.2.3 |
postgresql-14-plv8 PIGSTY 3.2.3 |
postgresql-13-plv8 PIGSTY 3.2.3 |
u22 |
aarch64 |
postgresql-17-plv8 PIGSTY 3.2.3 |
postgresql-16-plv8 PIGSTY 3.2.3 |
postgresql-15-plv8 PIGSTY 3.2.3 |
postgresql-14-plv8 PIGSTY 3.2.3 |
postgresql-13-plv8 PIGSTY 3.2.3 |
u24 |
x86_64 |
postgresql-17-plv8 PIGSTY 3.2.3 |
postgresql-16-plv8 PIGSTY 3.2.3 |
postgresql-15-plv8 PIGSTY 3.2.3 |
postgresql-14-plv8 PIGSTY 3.2.3 |
postgresql-13-plv8 PIGSTY 3.2.3 |
u24 |
aarch64 |
postgresql-17-plv8 PIGSTY 3.2.3 |
postgresql-16-plv8 PIGSTY 3.2.3 |
postgresql-15-plv8 PIGSTY 3.2.3 |
postgresql-14-plv8 PIGSTY 3.2.3 |
postgresql-13-plv8 PIGSTY 3.2.3 |
使用 pig
命令行工具安装 plv8
扩展:
pig ext install plv8
使用 Pigsty剧本 安装 plv8 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["plv8"]}' # -l <集群名>
dnf install plv8_17*;
dnf install plv8_16*;
dnf install plv8_15*;
dnf install plv8_14*;
dnf install plv8_13*;
apt install postgresql-17-plv8;
apt install postgresql-16-plv8;
apt install postgresql-15-plv8;
apt install postgresql-14-plv8;
apt install postgresql-13-plv8;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 plv8
扩展:
CREATE EXTENSION plv8;
CREATE EXTENSION plv8;
SELECT plv8_version();
SELECT plv8_info();
DO $$ plv8.elog(NOTICE, plv8.version); $$ LANGUAGE plv8;
Example:
CREATE FUNCTION plv8_test(keys TEXT[], vals TEXT[]) RETURNS JSON AS $$
var o = {};
for(var i=0; i<keys.length; i++){
o[keys[i]] = vals[i];
}
return o;
$$ LANGUAGE plv8 IMMUTABLE STRICT;
SELECT plv8_test(ARRAY['name', 'age'], ARRAY['Tom', '29']);
PGDG 第一方扩展: pllua
: Lua 程序语言
pllua
pllua
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_catalog
pllua_$v*
2.0.12
postgresql-$v-pllua
2.0.12
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pllua_17 PGDG 2.0.12 |
pllua_16 PGDG 2.0.12 |
pllua_15 PGDG 2.0.11 |
pllua_14 PGDG 2.0.11 |
pllua_13 PGDG 2.0.11 |
el8 |
aarch64 |
pllua_17 PGDG 2.0.12 |
pllua_16 PGDG 2.0.12 |
|||
el9 |
x86_64 |
pllua_17 PGDG 2.0.12 |
pllua_16 PGDG 2.0.12 |
pllua_15 PGDG 2.0.11 |
pllua_14 PGDG 2.0.11 |
pllua_13 PGDG 2.0.11 |
el9 |
aarch64 |
pllua_17 PGDG 2.0.12 |
pllua_16 PGDG 2.0.12 |
|||
d12 |
x86_64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
d12 |
aarch64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
u22 |
x86_64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
u22 |
aarch64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
u24 |
x86_64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
u24 |
aarch64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
使用 pig
命令行工具安装 pllua
扩展:
pig ext install pllua
使用 Pigsty剧本 安装 pllua 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pllua"]}' # -l <集群名>
dnf install pllua_17*;
dnf install pllua_16*;
dnf install pllua_15*;
dnf install pllua_14*;
dnf install pllua_13*;
apt install postgresql-17-pllua;
apt install postgresql-16-pllua;
apt install postgresql-15-pllua;
apt install postgresql-14-pllua;
apt install postgresql-13-pllua;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pllua
扩展:
CREATE EXTENSION pllua;
PGDG 第一方扩展: pllua
: Lua 程序语言的Hstore适配扩展
hstore_pllua
pllua
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLhstore
, pllua
postgresql-$v-pllua
2.0.12
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pllua_17 PGDG 2.0.12 |
pllua_16 PGDG 2.0.12 |
pllua_15 PGDG 2.0.11 |
pllua_14 PGDG 2.0.11 |
pllua_13 PGDG 2.0.11 |
el8 |
aarch64 |
pllua_17 PGDG 2.0.12 |
pllua_16 PGDG 2.0.12 |
|||
el9 |
x86_64 |
pllua_17 PGDG 2.0.12 |
pllua_16 PGDG 2.0.12 |
pllua_15 PGDG 2.0.11 |
pllua_14 PGDG 2.0.11 |
pllua_13 PGDG 2.0.11 |
el9 |
aarch64 |
pllua_17 PGDG 2.0.12 |
pllua_16 PGDG 2.0.12 |
|||
d12 |
x86_64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
d12 |
aarch64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
u22 |
x86_64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
u22 |
aarch64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
u24 |
x86_64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
u24 |
aarch64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
使用 pig
命令行工具安装 pllua
扩展:
pig ext install pllua; # 扩展名称
pig ext install hstore_pllua; # 标准包名
使用 Pigsty剧本 安装 pllua 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pllua"]}' # -l <集群名>
apt install postgresql-17-pllua;
apt install postgresql-16-pllua;
apt install postgresql-15-pllua;
apt install postgresql-14-pllua;
apt install postgresql-13-pllua;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hstore_pllua
扩展:
CREATE EXTENSION hstore_pllua CASCADE;
PGDG 第一方扩展: pllua
: Lua 程序语言(不受信任的)
plluau
pllua
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_catalog
pllua_$v*
2.0.12
postgresql-$v-pllua
2.0.12
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pllua_17 PGDG 2.0.12 |
pllua_16 PGDG 2.0.12 |
pllua_15 PGDG 2.0.11 |
pllua_14 PGDG 2.0.11 |
pllua_13 PGDG 2.0.11 |
el8 |
aarch64 |
pllua_17 PGDG 2.0.12 |
pllua_16 PGDG 2.0.12 |
|||
el9 |
x86_64 |
pllua_17 PGDG 2.0.12 |
pllua_16 PGDG 2.0.12 |
pllua_15 PGDG 2.0.11 |
pllua_14 PGDG 2.0.11 |
pllua_13 PGDG 2.0.11 |
el9 |
aarch64 |
pllua_17 PGDG 2.0.12 |
pllua_16 PGDG 2.0.12 |
|||
d12 |
x86_64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
d12 |
aarch64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
u22 |
x86_64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
u22 |
aarch64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
u24 |
x86_64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
u24 |
aarch64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
使用 pig
命令行工具安装 pllua
扩展:
pig ext install pllua; # 扩展名称
pig ext install plluau; # 标准包名
使用 Pigsty剧本 安装 pllua 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pllua"]}' # -l <集群名>
dnf install pllua_17*;
dnf install pllua_16*;
dnf install pllua_15*;
dnf install pllua_14*;
dnf install pllua_13*;
apt install postgresql-17-pllua;
apt install postgresql-16-pllua;
apt install postgresql-15-pllua;
apt install postgresql-14-pllua;
apt install postgresql-13-pllua;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 plluau
扩展:
CREATE EXTENSION plluau;
PGDG 第一方扩展: pllua
: Lua 程序语言的Hstore适配扩展(不受信任的)
hstore_plluau
pllua
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_catalog
hstore
, plluau
postgresql-$v-pllua
2.0.12
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pllua_17 PGDG 2.0.12 |
pllua_16 PGDG 2.0.12 |
pllua_15 PGDG 2.0.11 |
pllua_14 PGDG 2.0.11 |
pllua_13 PGDG 2.0.11 |
el8 |
aarch64 |
pllua_17 PGDG 2.0.12 |
pllua_16 PGDG 2.0.12 |
|||
el9 |
x86_64 |
pllua_17 PGDG 2.0.12 |
pllua_16 PGDG 2.0.12 |
pllua_15 PGDG 2.0.11 |
pllua_14 PGDG 2.0.11 |
pllua_13 PGDG 2.0.11 |
el9 |
aarch64 |
pllua_17 PGDG 2.0.12 |
pllua_16 PGDG 2.0.12 |
|||
d12 |
x86_64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
d12 |
aarch64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
u22 |
x86_64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
u22 |
aarch64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
u24 |
x86_64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
u24 |
aarch64 |
postgresql-17-pllua PGDG 1:2.0.12 |
postgresql-16-pllua PGDG 1:2.0.12 |
postgresql-15-pllua PGDG 1:2.0.12 |
postgresql-14-pllua PGDG 1:2.0.12 |
postgresql-13-pllua PGDG 1:2.0.12 |
使用 pig
命令行工具安装 pllua
扩展:
pig ext install pllua; # 扩展名称
pig ext install hstore_plluau; # 标准包名
使用 Pigsty剧本 安装 pllua 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pllua"]}' # -l <集群名>
apt install postgresql-17-pllua;
apt install postgresql-16-pllua;
apt install postgresql-15-pllua;
apt install postgresql-14-pllua;
apt install postgresql-13-pllua;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hstore_plluau
扩展:
CREATE EXTENSION hstore_plluau CASCADE;
PIGSTY 第三方扩展: plprql
: 在PostgreSQL使用PRQL——管线式关系查询语言
plprql
plprql
LANG
pgrx
16
,15
,14
,13
CREATE EXTENSION
DDLplprql_$v
1.0.0
postgresql-$v-plprql
1.0.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
plprql_16 PIGSTY 1.0.0 |
plprql_15 PIGSTY 1.0.0 |
plprql_14 PIGSTY 1.0.0 |
plprql_13 PIGSTY 1.0.0 |
|
el8 |
aarch64 |
plprql_16 PIGSTY 1.0.0 |
plprql_15 PIGSTY 1.0.0 |
plprql_14 PIGSTY 1.0.0 |
plprql_13 PIGSTY 1.0.0 |
|
el9 |
x86_64 |
plprql_16 PIGSTY 1.0.0 |
plprql_15 PIGSTY 1.0.0 |
plprql_14 PIGSTY 1.0.0 |
plprql_13 PIGSTY 1.0.0 |
|
el9 |
aarch64 |
plprql_16 PIGSTY 1.0.0 |
plprql_15 PIGSTY 1.0.0 |
plprql_14 PIGSTY 1.0.0 |
plprql_13 PIGSTY 1.0.0 |
|
d12 |
x86_64 |
postgresql-16-plprql PIGSTY 1.0.0 |
postgresql-15-plprql PIGSTY 1.0.0 |
postgresql-14-plprql PIGSTY 1.0.0 |
postgresql-13-plprql PIGSTY 1.0.0 |
|
d12 |
aarch64 |
postgresql-16-plprql PIGSTY 1.0.0 |
postgresql-15-plprql PIGSTY 1.0.0 |
postgresql-14-plprql PIGSTY 1.0.0 |
postgresql-13-plprql PIGSTY 1.0.0 |
|
u22 |
x86_64 |
postgresql-16-plprql PIGSTY 1.0.0 |
postgresql-15-plprql PIGSTY 1.0.0 |
postgresql-14-plprql PIGSTY 1.0.0 |
postgresql-13-plprql PIGSTY 1.0.0 |
|
u22 |
aarch64 |
postgresql-16-plprql PIGSTY 1.0.0 |
postgresql-15-plprql PIGSTY 1.0.0 |
postgresql-14-plprql PIGSTY 1.0.0 |
postgresql-13-plprql PIGSTY 1.0.0 |
|
u24 |
x86_64 |
postgresql-16-plprql PIGSTY 1.0.0 |
postgresql-15-plprql PIGSTY 1.0.0 |
postgresql-14-plprql PIGSTY 1.0.0 |
postgresql-13-plprql PIGSTY 1.0.0 |
|
u24 |
aarch64 |
postgresql-16-plprql PIGSTY 1.0.0 |
postgresql-15-plprql PIGSTY 1.0.0 |
postgresql-14-plprql PIGSTY 1.0.0 |
postgresql-13-plprql PIGSTY 1.0.0 |
使用 pig
命令行工具安装 plprql
扩展:
pig ext install plprql
使用 Pigsty剧本 安装 plprql 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["plprql"]}' # -l <集群名>
dnf install plprql_16;
dnf install plprql_15;
dnf install plprql_14;
dnf install plprql_13;
apt install postgresql-16-plprql;
apt install postgresql-15-plprql;
apt install postgresql-14-plprql;
apt install postgresql-13-plprql;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 plprql
扩展:
CREATE EXTENSION plprql;
PGDG 第一方扩展: pldebugger
: 用于调试 PL/pgSQL 函数的服务器端支持
pldbgapi
pldebugger
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpldebugger_$v*
1.8
postgresql-$v-pldebugger
1.8
使用 pig
命令行工具安装 pldebugger
扩展:
pig ext install pldebugger; # 扩展名称
pig ext install pldbgapi; # 标准包名
使用 Pigsty剧本 安装 pldebugger 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pldebugger"]}' # -l <集群名>
从 YUM仓库 手工安装 pldebugger
RPM 包:
dnf install pldebugger_17*;
dnf install pldebugger_16*;
dnf install pldebugger_15*;
dnf install pldebugger_14*;
dnf install pldebugger_13*;
从 APT仓库 手工安装 pldebugger
DEB 包:
apt install postgresql-17-pldebugger;
apt install postgresql-16-pldebugger;
apt install postgresql-15-pldebugger;
apt install postgresql-14-pldebugger;
apt install postgresql-13-pldebugger;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pldbgapi
扩展:
CREATE EXTENSION pldbgapi;
PGDG 第一方扩展: plpgsql_check
: 对 plpgsql 函数进行扩展检查
plpgsql_check
plpgsql_check
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLplpgsql
plpgsql_check_$v*
2.7
postgresql-$v-plpgsql-check
2.7
使用 pig
命令行工具安装 plpgsql_check
扩展:
pig ext install plpgsql_check
使用 Pigsty剧本 安装 plpgsql_check 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["plpgsql_check"]}' # -l <集群名>
从 YUM仓库 手工安装 plpgsql_check
RPM 包:
dnf install plpgsql_check_17*;
dnf install plpgsql_check_16*;
dnf install plpgsql_check_15*;
dnf install plpgsql_check_14*;
dnf install plpgsql_check_13*;
从 APT仓库 手工安装 plpgsql_check
DEB 包:
apt install postgresql-17-plpgsql-check;
apt install postgresql-16-plpgsql-check;
apt install postgresql-15-plpgsql-check;
apt install postgresql-14-plpgsql-check;
apt install postgresql-13-plpgsql-check;
扩展 plpgsql_check
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'plpgsql_check'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 plpgsql_check
扩展:
CREATE EXTENSION plpgsql_check CASCADE;
PGDG 第一方扩展: plprofiler
: 剖析 PL/pgSQL 函数
plprofiler
plprofiler
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLplprofiler_$v*
4.2.5
postgresql-$v-plprofiler
4.2.5
使用 pig
命令行工具安装 plprofiler
扩展:
pig ext install plprofiler
使用 Pigsty剧本 安装 plprofiler 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["plprofiler"]}' # -l <集群名>
从 YUM仓库 手工安装 plprofiler
RPM 包:
dnf install plprofiler_17*;
dnf install plprofiler_16*;
dnf install plprofiler_15*;
dnf install plprofiler_14*;
dnf install plprofiler_13*;
从 APT仓库 手工安装 plprofiler
DEB 包:
apt install postgresql-17-plprofiler;
apt install postgresql-16-plprofiler;
apt install postgresql-15-plprofiler;
apt install postgresql-14-plprofiler;
apt install postgresql-13-plprofiler;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 plprofiler
扩展:
CREATE EXTENSION plprofiler;
PGDG 第一方扩展: plsh
: PL/sh 程序语言
plsh
plsh
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLplsh_$v*
1.20220917
postgresql-$v-plsh
1.20220917
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
plsh_17 PGDG 1.20220917 |
plsh_16 PGDG 1.20220917 |
plsh_15 PGDG 1.20220917 |
plsh_14 PGDG 1.20220917 |
plsh_13 PGDG 1.20220917 |
el8 |
aarch64 |
plsh_17 PGDG 1.20220917 |
plsh_16 PGDG 1.20220917 |
plsh_15 PGDG 1.20220917 |
plsh_14 PGDG 1.20220917 |
plsh_13 PGDG 1.20220917 |
el9 |
x86_64 |
plsh_17 PGDG 1.20220917 |
plsh_16 PGDG 1.20220917 |
plsh_15 PGDG 1.20220917 |
plsh_14 PGDG 1.20220917 |
plsh_13 PGDG 1.20220917 |
el9 |
aarch64 |
plsh_17 PGDG 1.20220917 |
plsh_16 PGDG 1.20220917 |
plsh_15 PGDG 1.20220917 |
plsh_14 PGDG 1.20220917 |
plsh_13 PGDG 1.20220917 |
d12 |
x86_64 |
postgresql-17-plsh PGDG 1.20220917 |
postgresql-16-plsh PGDG 1.20220917 |
postgresql-15-plsh PGDG 1.20220917 |
postgresql-14-plsh PGDG 1.20220917 |
postgresql-13-plsh PGDG 1.20220917 |
d12 |
aarch64 |
postgresql-17-plsh PGDG 1.20220917 |
postgresql-16-plsh PGDG 1.20220917 |
postgresql-15-plsh PGDG 1.20220917 |
postgresql-14-plsh PGDG 1.20220917 |
postgresql-13-plsh PGDG 1.20220917 |
u22 |
x86_64 |
postgresql-17-plsh PGDG 1.20220917 |
postgresql-16-plsh PGDG 1.20220917 |
postgresql-15-plsh PGDG 1.20220917 |
postgresql-14-plsh PGDG 1.20220917 |
postgresql-13-plsh PGDG 1.20220917 |
u22 |
aarch64 |
postgresql-17-plsh PGDG 1.20220917 |
postgresql-16-plsh PGDG 1.20220917 |
postgresql-15-plsh PGDG 1.20220917 |
postgresql-14-plsh PGDG 1.20220917 |
postgresql-13-plsh PGDG 1.20220917 |
u24 |
x86_64 |
postgresql-17-plsh PGDG 1.20220917 |
postgresql-16-plsh PGDG 1.20220917 |
postgresql-15-plsh PGDG 1.20220917 |
postgresql-14-plsh PGDG 1.20220917 |
postgresql-13-plsh PGDG 1.20220917 |
u24 |
aarch64 |
postgresql-17-plsh PGDG 1.20220917 |
postgresql-16-plsh PGDG 1.20220917 |
postgresql-15-plsh PGDG 1.20220917 |
postgresql-14-plsh PGDG 1.20220917 |
postgresql-13-plsh PGDG 1.20220917 |
使用 pig
命令行工具安装 plsh
扩展:
pig ext install plsh
使用 Pigsty剧本 安装 plsh 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["plsh"]}' # -l <集群名>
dnf install plsh_17*;
dnf install plsh_16*;
dnf install plsh_15*;
dnf install plsh_14*;
dnf install plsh_13*;
apt install postgresql-17-plsh;
apt install postgresql-16-plsh;
apt install postgresql-15-plsh;
apt install postgresql-14-plsh;
apt install postgresql-13-plsh;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 plsh
扩展:
CREATE EXTENSION plsh;
PGDG 第一方扩展: pljava
: Java 程序语言
pljava
pljava
LANG
big-deps
17
,16
,15
,14
,13
CREATE EXTENSION
DDLsqlj
pljava_$v*
1.6.8
postgresql-$v-pljava
1.6.8
使用 pig
命令行工具安装 pljava
扩展:
pig ext install pljava
使用 Pigsty剧本 安装 pljava 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pljava"]}' # -l <集群名>
dnf install pljava_17*;
dnf install pljava_16*;
dnf install pljava_15*;
dnf install pljava_14*;
dnf install pljava_13*;
apt install postgresql-17-pljava;
apt install postgresql-16-pljava;
apt install postgresql-15-pljava;
apt install postgresql-14-pljava;
apt install postgresql-13-pljava;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pljava
扩展:
CREATE EXTENSION pljava;
PGDG 第一方扩展: plr
: 从数据库中加载R语言解释器并执行R脚本
plr
plr
LANG
big-deps
17
,16
,15
,14
,13
CREATE EXTENSION
DDLplr_$v*
8.4.7
postgresql-$v-plr
8.4.7
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
plr_17 PGDG 8.4.7 |
plr_16 PGDG 8.4.7 |
plr_15 PGDG 8.4.7 |
plr_14 PGDG 8.4.7 |
plr_13 PGDG 8.4.7 |
el8 |
aarch64 |
plr_17 PGDG 8.4.7 |
plr_16 PGDG 8.4.7 |
plr_15 PGDG 8.4.7 |
plr_14 PGDG 8.4.7 |
plr_13 PGDG 8.4.7 |
el9 |
x86_64 |
plr_17 PGDG 8.4.7 |
plr_16 PGDG 8.4.7 |
plr_15 PGDG 8.4.7 |
plr_14 PGDG 8.4.7 |
plr_13 PGDG 8.4.7 |
el9 |
aarch64 |
plr_17 PGDG 8.4.7 |
plr_16 PGDG 8.4.7 |
plr_15 PGDG 8.4.7 |
plr_14 PGDG 8.4.7 |
plr_13 PGDG 8.4.7 |
d12 |
x86_64 |
postgresql-17-plr PGDG 1:8.4.7 |
postgresql-16-plr PGDG 1:8.4.7 |
postgresql-15-plr PGDG 1:8.4.7 |
postgresql-14-plr PGDG 1:8.4.7 |
postgresql-13-plr PGDG 1:8.4.7 |
d12 |
aarch64 |
postgresql-17-plr PGDG 1:8.4.7 |
postgresql-16-plr PGDG 1:8.4.7 |
postgresql-15-plr PGDG 1:8.4.7 |
postgresql-14-plr PGDG 1:8.4.7 |
postgresql-13-plr PGDG 1:8.4.7 |
u22 |
x86_64 |
postgresql-17-plr PGDG 1:8.4.7 |
postgresql-16-plr PGDG 1:8.4.7 |
postgresql-15-plr PGDG 1:8.4.7 |
postgresql-14-plr PGDG 1:8.4.7 |
postgresql-13-plr PGDG 1:8.4.7 |
u22 |
aarch64 |
postgresql-17-plr PGDG 1:8.4.7 |
postgresql-16-plr PGDG 1:8.4.7 |
postgresql-15-plr PGDG 1:8.4.7 |
postgresql-14-plr PGDG 1:8.4.7 |
postgresql-13-plr PGDG 1:8.4.7 |
u24 |
x86_64 |
postgresql-17-plr PGDG 1:8.4.7 |
postgresql-16-plr PGDG 1:8.4.7 |
postgresql-15-plr PGDG 1:8.4.7 |
postgresql-14-plr PGDG 1:8.4.7 |
postgresql-13-plr PGDG 1:8.4.7 |
u24 |
aarch64 |
postgresql-17-plr PGDG 1:8.4.7 |
postgresql-16-plr PGDG 1:8.4.7 |
postgresql-15-plr PGDG 1:8.4.7 |
postgresql-14-plr PGDG 1:8.4.7 |
postgresql-13-plr PGDG 1:8.4.7 |
使用 pig
命令行工具安装 plr
扩展:
pig ext install plr
使用 Pigsty剧本 安装 plr 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["plr"]}' # -l <集群名>
dnf install plr_17*;
dnf install plr_16*;
dnf install plr_15*;
dnf install plr_14*;
dnf install plr_13*;
apt install postgresql-17-plr;
apt install postgresql-16-plr;
apt install postgresql-15-plr;
apt install postgresql-14-plr;
apt install postgresql-13-plr;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 plr
扩展:
CREATE EXTENSION plr;
PGDG 第一方扩展: pgtap
: PostgreSQL单元测试框架
pgtap
pgtap
LANG
test
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgtap_$v*
1.3.3
postgresql-$v-pgtap
1.3.3
使用 pig
命令行工具安装 pgtap
扩展:
pig ext install pgtap
使用 Pigsty剧本 安装 pgtap 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgtap"]}' # -l <集群名>
dnf install pgtap_17*;
dnf install pgtap_16*;
dnf install pgtap_15*;
dnf install pgtap_14*;
dnf install pgtap_13*;
apt install postgresql-17-pgtap;
apt install postgresql-16-pgtap;
apt install postgresql-15-pgtap;
apt install postgresql-14-pgtap;
apt install postgresql-13-pgtap;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgtap
扩展:
CREATE EXTENSION pgtap;
PGDG 第一方扩展: faker
: 插入生成的测试伪造数据,Python库的包装
faker
faker
LANG
test
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpostgresql_faker_$v*
0.5.3
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
postgresql_faker_17 PGDG 0.5.3 |
postgresql_faker_16 PGDG 0.5.3 |
postgresql_faker_15 PGDG 0.5.3 |
postgresql_faker_14 PGDG 0.5.3 |
postgresql_faker_13 PGDG 0.5.3 |
el8 |
aarch64 |
postgresql_faker_17 PGDG 0.5.3 |
postgresql_faker_16 PGDG 0.5.3 |
postgresql_faker_15 PGDG 0.5.3 |
postgresql_faker_14 PGDG 0.5.3 |
postgresql_faker_13 PGDG 0.5.3 |
el9 |
x86_64 |
postgresql_faker_17 PGDG 0.5.3 |
postgresql_faker_16 PGDG 0.5.3 |
postgresql_faker_15 PGDG 0.5.3 |
postgresql_faker_14 PGDG 0.5.3 |
postgresql_faker_13 PGDG 0.5.3 |
el9 |
aarch64 |
postgresql_faker_17 PGDG 0.5.3 |
postgresql_faker_16 PGDG 0.5.3 |
postgresql_faker_15 PGDG 0.5.3 |
postgresql_faker_14 PGDG 0.5.3 |
postgresql_faker_13 PGDG 0.5.3 |
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
使用 pig
命令行工具安装 faker
扩展:
pig ext install faker
使用 Pigsty剧本 安装 faker 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["faker"]}' # -l <集群名>
dnf install postgresql_faker_17*;
dnf install postgresql_faker_16*;
dnf install postgresql_faker_15*;
dnf install postgresql_faker_14*;
dnf install postgresql_faker_13*;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 faker
扩展:
CREATE EXTENSION faker;
PGDG 第一方扩展: dbt2
: OSDL-DBT-2 测试组件
dbt2
dbt2
LANG
test
17
,16
,15
,14
,13
CREATE EXTENSION
DDLdbt2-pg$v-extensions*
0.45.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
使用 pig
命令行工具安装 dbt2
扩展:
pig ext install dbt2
使用 Pigsty剧本 安装 dbt2 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["dbt2"]}' # -l <集群名>
dnf install dbt2-pg17-extensions*;
dnf install dbt2-pg16-extensions*;
dnf install dbt2-pg15-extensions*;
dnf install dbt2-pg14-extensions*;
dnf install dbt2-pg13-extensions*;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 dbt2
扩展:
CREATE EXTENSION dbt2;
CONTRIB 自带扩展: pltcl
: PL/TCL 存储过程语言
pltcl
None
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 pltcl
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pltcl
扩展:
CREATE EXTENSION pltcl;
CONTRIB 自带扩展: pltcl
: PL/TCL 存储过程语言(未受信/高权限)
pltclu
None
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 pltclu
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pltclu
扩展:
CREATE EXTENSION pltclu;
CONTRIB 自带扩展: plperl
: PL/Perl 存储过程语言
plperl
None
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLplperl
PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 plperl
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 plperl
扩展:
CREATE EXTENSION plperl CASCADE;
CONTRIB 自带扩展: plperl
: 在 bool 和 plperl 之间转换
bool_plperl
None
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLplperl
PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 bool_plperl
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 bool_plperl
扩展:
CREATE EXTENSION bool_plperl CASCADE;
CONTRIB 自带扩展: plperl
: 在 hstore 和 plperl 之间转换适配类型
hstore_plperl
None
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLplperl
PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 hstore_plperl
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hstore_plperl
扩展:
CREATE EXTENSION hstore_plperl CASCADE;
CONTRIB 自带扩展: plperl
: 在 jsonb 和 plperl 之间转换
jsonb_plperl
None
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLplperl
PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 jsonb_plperl
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 jsonb_plperl
扩展:
CREATE EXTENSION jsonb_plperl CASCADE;
CONTRIB 自带扩展: plperlu
: PL/PerlU 存储过程语言(未受信/高权限)
plperlu
None
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLplperlu
PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 plperlu
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 plperlu
扩展:
CREATE EXTENSION plperlu CASCADE;
CONTRIB 自带扩展: plperlu
: 在 bool 和 plperlu 之间转换
bool_plperlu
None
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLplperlu
PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 bool_plperlu
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 bool_plperlu
扩展:
CREATE EXTENSION bool_plperlu CASCADE;
CONTRIB 自带扩展: plperlu
: 在 jsonb 和 plperlu 之间转换
jsonb_plperlu
None
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLplperlu
PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 jsonb_plperlu
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 jsonb_plperlu
扩展:
CREATE EXTENSION jsonb_plperlu CASCADE;
CONTRIB 自带扩展: plperlu
: 在 hstore 和 plperlu 之间转换适配类型
hstore_plperlu
None
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLplperlu
PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 hstore_plperlu
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hstore_plperlu
扩展:
CREATE EXTENSION hstore_plperlu CASCADE;
CONTRIB 自带扩展: plpgsql
: PL/pgSQL 程序设计语言
plpgsql
None
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 plpgsql
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 plpgsql
扩展:
CREATE EXTENSION plpgsql;
CONTRIB 自带扩展: plpython3u
: PL/Python3 存储过程语言(未受信/高权限)
plpython3u
None
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_catalog
PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 plpython3u
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 plpython3u
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 plpython3u
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 plpython3u
扩展:
CREATE EXTENSION plpython3u;
CONTRIB 自带扩展: plpython3u
: 在 jsonb 和 plpython3u 之间转换
jsonb_plpython3u
None
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLplpython3u
PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 jsonb_plpython3u
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 plpython3u
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 plpython3u
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 jsonb_plpython3u
扩展:
CREATE EXTENSION jsonb_plpython3u CASCADE;
CONTRIB 自带扩展: plpython3u
: 在 ltree 和 plpython3u 之间转换
ltree_plpython3u
None
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLltree
, plpython3u
PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 ltree_plpython3u
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 plpython3u
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 plpython3u
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 ltree_plpython3u
扩展:
CREATE EXTENSION ltree_plpython3u CASCADE;
CONTRIB 自带扩展: plpython3u
: 在 hstore 和 plpython3u 之间转换
hstore_plpython3u
None
LANG
17
,16
,15
,14
,13
CREATE EXTENSION
DDLhstore
, plpython3u
PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 hstore_plpython3u
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 plpython3u
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 plpython3u
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hstore_plpython3u
扩展:
CREATE EXTENSION hstore_plpython3u CASCADE;
TYPE 类目共有 36 个可用扩展:
扩展名(详情) | 标准名(官网) | 仓库 | 版本 | 类目 | 许可证 | LOAD |
DDL |
TRUST |
RELOC |
简介 |
---|---|---|---|---|---|---|---|---|---|---|
prefix | pg_prefix |
PGDG | 1.2.10 | TYPE |
PostgreSQL | 前缀树数据类型 | ||||
semver | pg_semver |
PGDG | 0.40.0 | TYPE |
PostgreSQL | 语义版本号数据类型 | ||||
unit | pgunit |
PGDG | 7.10 | TYPE |
GPLv2 | SI 国标单位扩展 | ||||
pgpdf | pgpdf |
PIGSTY | 0.1.0 | TYPE |
GPLv3 | PDF数据类型,管理函数与全文检索 | ||||
pglite_fusion | pglite_fusion |
PIGSTY | 0.0.3 | TYPE |
MIT | 在PG表中嵌入SQLite数据库作为数据类型 | ||||
md5hash | md5hash |
PIGSTY | 1.0.1 | TYPE |
BSD 2 | 提供128位MD5的原生数据类型 | ||||
asn1oid | asn1oid |
MIXED | 1.6 | TYPE |
GPLv3 | ASN1OID数据类型支持 | ||||
roaringbitmap | roaringbitmap |
MIXED | 0.5.4 | TYPE |
Apache-2.0 | 支持RoaringBitmap数据类型 | ||||
pgfaceting | pgfaceting |
MIXED | 0.2.0 | TYPE |
BSD 3 | 使用倒排索引的高速切面查询 | ||||
pg_sphere | pgsphere |
MIXED | 1.5.1 | TYPE |
BSD 3 | 球面对象函数、运算符与索引支持 | ||||
country | pg_country |
PIGSTY | 0.0.3 | TYPE |
PostgreSQL | 国家代码数据类型,遵循ISO 3166-1标准 | ||||
pg_xenophile | pg_xenophile |
PIGSTY | 0.8.3 | TYPE |
PostgreSQL | PostgreSQL i8n与l10n工具包 | ||||
currency | pg_currency |
PIGSTY | 0.0.3 | TYPE |
MIT | 使用1字节表示的货币数据类型 | ||||
collection | pg_collection |
PIGSTY | 0.9.1 | TYPE |
Apache-2.0 | 在PlPGSQL中使用的内存优化高性能集合数据结构 | ||||
pgmp | pgmp |
PGDG | 1.0.5 | TYPE |
LGPLv3 | 多精度算术扩展 | ||||
numeral | numeral |
MIXED | 1.3 | TYPE |
GPLv2 | 数值类型扩展 | ||||
pg_rational | pg_rational |
MIXED | 0.0.2 | TYPE |
MIT | 使用BIGINT表示的有理数数据类型 | ||||
uint | pguint |
MIXED | 1.20231206 | TYPE |
PostgreSQL | 无符号整型数据类型 | ||||
uint128 | pg_uint128 |
PIGSTY | 1.0.0 | TYPE |
PostgreSQL | 原生128位无符号整型数据类型 | ||||
hashtypes | hashtypes |
PIGSTY | 0.1.5 | TYPE |
PostgreSQL | 包括SHA1,MD5在内的多种哈希数据类型 | ||||
ip4r | ip4r |
PGDG | 2.4.2 | TYPE |
PostgreSQL | PostgreSQL 的 IPv4/v6 和 IPv4/v6 范围索引类型 | ||||
pg_duration | pg_duration |
PIGSTY | 1.0.2 | TYPE |
MIT | 用于表示时间段的强化数据类型 | ||||
uri | pg_uri |
PIGSTY | 1.20151224 | TYPE |
PostgreSQL | URI数据类型 | ||||
emailaddr | pgemailaddr |
PIGSTY | 0 | TYPE |
PostgreSQL | Email地址数据类型 | ||||
acl | pg_acl |
PIGSTY | 1.0.4 | TYPE |
BSD 2 | ACL数据类型 | ||||
debversion | debversion |
PGDG | 1.2.0 | TYPE |
PostgreSQL | Debian版本号数据类型 | ||||
pg_rrule | pg_rrule |
PGDG | 0.2.0 | TYPE |
MIT | 日历重复规则RRULE数据类型 | ||||
timestamp9 | timestamp9 |
MIXED | 1.4.0 | TYPE |
MIT | 纳秒分辨率时间戳 | ||||
chkpass | chkpass |
PIGSTY | 1.0 | TYPE |
PostgreSQL | 数据类型:自动加密的密码 | ||||
isn | isn |
CONTRIB | 1.2 | TYPE |
PostgreSQL | 用于国际产品编号标准的数据类型 | ||||
seg | seg |
CONTRIB | 1.4 | TYPE |
PostgreSQL | 表示线段或浮点间隔的数据类型 | ||||
cube | cube |
CONTRIB | 1.5 | TYPE |
PostgreSQL | 用于存储多维立方体的数据类型 | ||||
ltree | ltree |
CONTRIB | 1.3 | TYPE |
PostgreSQL | 用于表示分层树状结构的数据类型 | ||||
hstore | hstore |
CONTRIB | 1.8 | TYPE |
PostgreSQL | 用于存储(键,值)对集合的数据类型 | ||||
citext | citext |
CONTRIB | 1.6 | TYPE |
PostgreSQL | 提供大小写不敏感的字符串类型 | ||||
xml2 | xml2 |
CONTRIB | 1.1 | TYPE |
PostgreSQL | XPath 查询和 XSLT |
PGDG 第一方扩展: pg_prefix
: 前缀树数据类型
prefix
pg_prefix
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLprefix_$v*
1.2.10
postgresql-$v-prefix
1.2.10
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
prefix_17 PGDG 1.2.10 |
prefix_16 PGDG 1.2.10 |
prefix_15 PGDG 1.2.10 |
prefix_14 PGDG 1.2.10 |
prefix_13 PGDG 1.2.10 |
el8 |
aarch64 |
prefix_17 PGDG 1.2.10 |
prefix_16 PGDG 1.2.10 |
prefix_15 PGDG 1.2.10 |
prefix_14 PGDG 1.2.10 |
prefix_13 PGDG 1.2.10 |
el9 |
x86_64 |
prefix_17 PGDG 1.2.10 |
prefix_16 PGDG 1.2.10 |
prefix_15 PGDG 1.2.10 |
prefix_14 PGDG 1.2.10 |
prefix_13 PGDG 1.2.10 |
el9 |
aarch64 |
prefix_17 PGDG 1.2.10 |
prefix_16 PGDG 1.2.10 |
prefix_15 PGDG 1.2.10 |
prefix_14 PGDG 1.2.10 |
prefix_13 PGDG 1.2.10 |
d12 |
x86_64 |
postgresql-17-prefix PGDG 1.2.10 |
postgresql-16-prefix PGDG 1.2.10 |
postgresql-15-prefix PGDG 1.2.10 |
postgresql-14-prefix PGDG 1.2.10 |
postgresql-13-prefix PGDG 1.2.10 |
d12 |
aarch64 |
postgresql-17-prefix PGDG 1.2.10 |
postgresql-16-prefix PGDG 1.2.10 |
postgresql-15-prefix PGDG 1.2.10 |
postgresql-14-prefix PGDG 1.2.10 |
postgresql-13-prefix PGDG 1.2.10 |
u22 |
x86_64 |
postgresql-17-prefix PGDG 1.2.10 |
postgresql-16-prefix PGDG 1.2.10 |
postgresql-15-prefix PGDG 1.2.10 |
postgresql-14-prefix PGDG 1.2.10 |
postgresql-13-prefix PGDG 1.2.10 |
u22 |
aarch64 |
postgresql-17-prefix PGDG 1.2.10 |
postgresql-16-prefix PGDG 1.2.10 |
postgresql-15-prefix PGDG 1.2.10 |
postgresql-14-prefix PGDG 1.2.10 |
postgresql-13-prefix PGDG 1.2.10 |
u24 |
x86_64 |
postgresql-17-prefix PGDG 1.2.10 |
postgresql-16-prefix PGDG 1.2.10 |
postgresql-15-prefix PGDG 1.2.10 |
postgresql-14-prefix PGDG 1.2.10 |
postgresql-13-prefix PGDG 1.2.10 |
u24 |
aarch64 |
postgresql-17-prefix PGDG 1.2.10 |
postgresql-16-prefix PGDG 1.2.10 |
postgresql-15-prefix PGDG 1.2.10 |
postgresql-14-prefix PGDG 1.2.10 |
postgresql-13-prefix PGDG 1.2.10 |
使用 pig
命令行工具安装 pg_prefix
扩展:
pig ext install pg_prefix; # 扩展名称
pig ext install prefix; # 标准包名
使用 Pigsty剧本 安装 pg_prefix 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_prefix"]}' # -l <集群名>
dnf install prefix_17*;
dnf install prefix_16*;
dnf install prefix_15*;
dnf install prefix_14*;
dnf install prefix_13*;
apt install postgresql-17-prefix;
apt install postgresql-16-prefix;
apt install postgresql-15-prefix;
apt install postgresql-14-prefix;
apt install postgresql-13-prefix;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 prefix
扩展:
CREATE EXTENSION prefix;
PGDG 第一方扩展: pg_semver
: 语义版本号数据类型
semver
pg_semver
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLsemver_$v*
0.32.1
postgresql-$v-semver
0.40.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
semver_17 PGDG 0.32.1 |
semver_16 PGDG 0.32.1 |
semver_15 PGDG 0.32.1 |
semver_14 PGDG 0.32.1 |
semver_13 PGDG 0.32.1 |
el8 |
aarch64 |
semver_17 PGDG 0.32.1 |
semver_16 PGDG 0.32.1 |
semver_15 PGDG 0.32.1 |
semver_14 PGDG 0.32.1 |
semver_13 PGDG 0.32.1 |
el9 |
x86_64 |
semver_17 PGDG 0.32.1 |
semver_16 PGDG 0.32.1 |
semver_15 PGDG 0.32.1 |
semver_14 PGDG 0.32.1 |
semver_13 PGDG 0.32.1 |
el9 |
aarch64 |
semver_17 PGDG 0.32.1 |
semver_16 PGDG 0.32.1 |
semver_15 PGDG 0.32.1 |
semver_14 PGDG 0.32.1 |
semver_13 PGDG 0.32.1 |
d12 |
x86_64 |
postgresql-17-semver PGDG 0.40.0 |
postgresql-16-semver PGDG 0.40.0 |
postgresql-15-semver PGDG 0.40.0 |
postgresql-14-semver PGDG 0.40.0 |
postgresql-13-semver PGDG 0.40.0 |
d12 |
aarch64 |
postgresql-17-semver PGDG 0.40.0 |
postgresql-16-semver PGDG 0.40.0 |
postgresql-15-semver PGDG 0.40.0 |
postgresql-14-semver PGDG 0.40.0 |
postgresql-13-semver PGDG 0.40.0 |
u22 |
x86_64 |
postgresql-17-semver PGDG 0.40.0 |
postgresql-16-semver PGDG 0.40.0 |
postgresql-15-semver PGDG 0.40.0 |
postgresql-14-semver PGDG 0.40.0 |
postgresql-13-semver PGDG 0.40.0 |
u22 |
aarch64 |
postgresql-17-semver PGDG 0.40.0 |
postgresql-16-semver PGDG 0.40.0 |
postgresql-15-semver PGDG 0.40.0 |
postgresql-14-semver PGDG 0.40.0 |
postgresql-13-semver PGDG 0.40.0 |
u24 |
x86_64 |
postgresql-17-semver PGDG 0.40.0 |
postgresql-16-semver PGDG 0.40.0 |
postgresql-15-semver PGDG 0.40.0 |
postgresql-14-semver PGDG 0.40.0 |
postgresql-13-semver PGDG 0.40.0 |
u24 |
aarch64 |
postgresql-17-semver PGDG 0.40.0 |
postgresql-16-semver PGDG 0.40.0 |
postgresql-15-semver PGDG 0.40.0 |
postgresql-14-semver PGDG 0.40.0 |
postgresql-13-semver PGDG 0.40.0 |
使用 pig
命令行工具安装 pg_semver
扩展:
pig ext install pg_semver; # 扩展名称
pig ext install semver; # 标准包名
使用 Pigsty剧本 安装 pg_semver 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_semver"]}' # -l <集群名>
dnf install semver_17*;
dnf install semver_16*;
dnf install semver_15*;
dnf install semver_14*;
dnf install semver_13*;
apt install postgresql-17-semver;
apt install postgresql-16-semver;
apt install postgresql-15-semver;
apt install postgresql-14-semver;
apt install postgresql-13-semver;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 semver
扩展:
CREATE EXTENSION semver;
PGDG 第一方扩展: pgunit
: SI 国标单位扩展
unit
pgunit
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLplpgsql
postgresql-unit_$v*
7.10
postgresql-$v-unit
7.10
使用 pig
命令行工具安装 pgunit
扩展:
pig ext install pgunit; # 扩展名称
pig ext install unit; # 标准包名
使用 Pigsty剧本 安装 pgunit 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgunit"]}' # -l <集群名>
dnf install postgresql-unit_17*;
dnf install postgresql-unit_16*;
dnf install postgresql-unit_15*;
dnf install postgresql-unit_14*;
dnf install postgresql-unit_13*;
apt install postgresql-17-unit;
apt install postgresql-16-unit;
apt install postgresql-15-unit;
apt install postgresql-14-unit;
apt install postgresql-13-unit;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 unit
扩展:
CREATE EXTENSION unit CASCADE;
PIGSTY 第三方扩展: pgpdf
: PDF数据类型,管理函数与全文检索
pgpdf
pgpdf
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建pgpdf_$v*
0.1.0
postgresql-$v-pgpdf
0.1.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pgpdf_17 PIGSTY 0.1.0 |
pgpdf_16 PIGSTY 0.1.0 |
pgpdf_15 PIGSTY 0.1.0 |
pgpdf_14 PIGSTY 0.1.0 |
pgpdf_13 PIGSTY 0.1.0 |
el8 |
aarch64 |
pgpdf_17 PIGSTY 0.1.0 |
pgpdf_16 PIGSTY 0.1.0 |
pgpdf_15 PIGSTY 0.1.0 |
pgpdf_14 PIGSTY 0.1.0 |
pgpdf_13 PIGSTY 0.1.0 |
el9 |
x86_64 |
pgpdf_17 PIGSTY 0.1.0 |
pgpdf_16 PIGSTY 0.1.0 |
pgpdf_15 PIGSTY 0.1.0 |
pgpdf_14 PIGSTY 0.1.0 |
pgpdf_13 PIGSTY 0.1.0 |
el9 |
aarch64 |
pgpdf_17 PIGSTY 0.1.0 |
pgpdf_16 PIGSTY 0.1.0 |
pgpdf_15 PIGSTY 0.1.0 |
pgpdf_14 PIGSTY 0.1.0 |
pgpdf_13 PIGSTY 0.1.0 |
d12 |
x86_64 |
postgresql-17-pgpdf PIGSTY 0.1.0 |
postgresql-16-pgpdf PIGSTY 0.1.0 |
postgresql-15-pgpdf PIGSTY 0.1.0 |
postgresql-14-pgpdf PIGSTY 0.1.0 |
postgresql-13-pgpdf PIGSTY 0.1.0 |
d12 |
aarch64 |
postgresql-17-pgpdf PIGSTY 0.1.0 |
postgresql-16-pgpdf PIGSTY 0.1.0 |
postgresql-15-pgpdf PIGSTY 0.1.0 |
postgresql-14-pgpdf PIGSTY 0.1.0 |
postgresql-13-pgpdf PIGSTY 0.1.0 |
u22 |
x86_64 |
postgresql-17-pgpdf PIGSTY 0.1.0 |
postgresql-16-pgpdf PIGSTY 0.1.0 |
postgresql-15-pgpdf PIGSTY 0.1.0 |
postgresql-14-pgpdf PIGSTY 0.1.0 |
postgresql-13-pgpdf PIGSTY 0.1.0 |
u22 |
aarch64 |
postgresql-17-pgpdf PIGSTY 0.1.0 |
postgresql-16-pgpdf PIGSTY 0.1.0 |
postgresql-15-pgpdf PIGSTY 0.1.0 |
postgresql-14-pgpdf PIGSTY 0.1.0 |
postgresql-13-pgpdf PIGSTY 0.1.0 |
u24 |
x86_64 |
postgresql-17-pgpdf PIGSTY 0.1.0 |
postgresql-16-pgpdf PIGSTY 0.1.0 |
postgresql-15-pgpdf PIGSTY 0.1.0 |
postgresql-14-pgpdf PIGSTY 0.1.0 |
postgresql-13-pgpdf PIGSTY 0.1.0 |
u24 |
aarch64 |
postgresql-17-pgpdf PIGSTY 0.1.0 |
postgresql-16-pgpdf PIGSTY 0.1.0 |
postgresql-15-pgpdf PIGSTY 0.1.0 |
postgresql-14-pgpdf PIGSTY 0.1.0 |
postgresql-13-pgpdf PIGSTY 0.1.0 |
使用 pig
命令行工具安装 pgpdf
扩展:
pig ext install pgpdf
使用 Pigsty剧本 安装 pgpdf 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgpdf"]}' # -l <集群名>
dnf install pgpdf_17*;
dnf install pgpdf_16*;
dnf install pgpdf_15*;
dnf install pgpdf_14*;
dnf install pgpdf_13*;
apt install postgresql-17-pgpdf;
apt install postgresql-16-pgpdf;
apt install postgresql-15-pgpdf;
apt install postgresql-14-pgpdf;
apt install postgresql-13-pgpdf;
扩展 pgpdf
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pgpdf'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgpdf
扩展:
CREATE EXTENSION pgpdf;
The actual PDF parsing is done by poppler.
This allows you to work with PDFs in an ACID-compliant way. The usual alternative relies on external scripts or services which can easily make your data ingestion pipeline brittle and leave your raw data out-of-sync.
Download some PDFs.
wget https://wiki.postgresql.org/images/e/ea/PostgreSQL_Introduction.pdf -O /tmp/pgintro.pdf
wget https://pdfobject.com/pdf/sample.pdf -O /tmp/sample.pdf
You can create a pdf
type, by casting either a text
filepath or bytea
column.
CREATE EXTENSION pgpdf;
SELECT '/tmp/pgintro.pdf'::pdf;
pdf
----------------------------------------------------------------------------------
PostgreSQL Introduction +
Digoal.Zhou +
7/20/2011Catalog +
PostgreSQL Origin
If you don’t have the PDF file in your filesystem, but have already stored its content in a bytea
column, you can just cast it to pdf
.
SELECT pg_read_binary_file('/tmp/pgintro.pdf')::bytea::pdf;
Create a table with a pdf
column:
CREATE TABLE pdfs(name text primary key, doc pdf);
INSERT INTO pdfs VALUES ('pgintro', '/tmp/pgintro.pdf');
INSERT INTO pdfs VALUES ('pgintro', '/tmp/sample.pdf');
Parsing and validation should happen automatically. The files will be read from the disk only once!
[!NOTE] The filepath should be accessible by the
postgres
process / user! That’s different than the user running psql. If you don’t understand what this means, as your DBA!
Standard Postgres String Functions and Operators should work as usual:
SELECT 'Below is the PDF we received ' || '/tmp/pgintro.pdf'::pdf;
SELECT upper('/tmp/pgintro.pdf'::pdf::text);
SELECT name
FROM pdfs
WHERE doc::text LIKE '%Postgres%';
You can also perform full-text search (FTS), since you can work on a pdf
file like normal text.
SELECT '/tmp/pgintro.pdf'::pdf::text @@ to_tsquery('postgres');
?column?
----------
t
(1 row)
SELECT '/tmp/pgintro.pdf'::pdf::text @@ to_tsquery('oracle');
?column?
----------
f
(1 row)
pg_trgm
You can use pg_trgm to get the similarity between two documents:
CREATE EXTENSION pg_trgm;
SELECT similarity('/tmp/pgintro.pdf'::pdf::text, '/tmp/sample.pdf'::pdf::text);
The following functions are available:
pdf_title(pdf) → text
pdf_author(pdf) → text
pdf_num_pages(pdf) → integer
Total number of pages in the document
pdf_page(pdf, integer) → text
Get the i-th page as text
pdf_creator(pdf) → text
pdf_keywords(pdf) → text
pdf_metadata(pdf) → text
pdf_version(pdf) → text
pdf_subject(pdf) → text
pdf_creation(pdf) → timestamp
pdf_modification(pdf) → timestamp
SELECT pdf_title('/tmp/pgintro.pdf');
pdf_title
-------------------------
PostgreSQL Introduction
(1 row)
SELECT pdf_author('/tmp/pgintro.pdf');
pdf_author
------------
周正中
(1 row)
Getting a subset of pages
SELECT pdf_num_pages('/tmp/pgintro.pdf');
pdf_num_pages
---------------
24
(1 row)
SELECT pdf_page('/tmp/pgintro.pdf', 1);
pdf_page
------------------------------
Catalog +
PostgreSQL Origin +
Layout +
Features +
Enterprise Class Attribute+
Case
(1 row)
SELECT pdf_subject('/tmp/pgintro.pdf');
pdf_subject
-------------
(1 row)
SELECT pdf_creation('/tmp/pgintro.pdf');
pdf_creation
--------------------------
Wed Jul 20 11:13:37 2011
(1 row)
SELECT pdf_modification('/tmp/pgintro.pdf');
pdf_modification
--------------------------
Wed Jul 20 11:13:37 2011
(1 row)
SELECT pdf_creator('/tmp/pgintro.pdf');
pdf_creator
------------------------------------
Microsoft® Office PowerPoint® 2007
(1 row)
SELECT pdf_metadata('/tmp/pgintro.pdf');
pdf_metadata
--------------
(1 row)
SELECT pdf_version('/tmp/pgintro.pdf');
pdf_version
-------------
PDF-1.5
(1 row)
Install poppler dependencies
Linux
sudo apt install -y libpoppler-glib-dev pkg-config
Homebrew/MacOS
brew install poppler pkgconf
cd /tmp
git clone https://github.com/Florents-Tselai/pgpdf.git
cd pgpdf
make
make install # may need sudo
After the installation, in a session:
CREATE EXTENSION pgpdf;
Get the Docker image with:
docker pull florents/pgpdf:pg17
This adds pgpdf to the Postgres image (replace 17
with your Postgres server version, and run it the same way).
Run the image in a container.
docker run --name pgpdf -p 5432:5432 -e POSTGRES_PASSWORD=pass florents/pgpdf:pg17
Through another terminal, connect to the running server (container).
PGPASSWORD=pass psql -h localhost -p 5432 -U postgres
[!WARNING] Reading arbitrary binary data (PDF) into your database can pose security risks. Only use this for files you trust.
PIGSTY 第三方扩展: pglite_fusion
: 在PG表中嵌入SQLite数据库作为数据类型
pglite_fusion
pglite_fusion
TYPE
pgrx
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpglite_fusion_$v
0.0.3
postgresql-$v-pglite-fusion
0.0.3
使用 pig
命令行工具安装 pglite_fusion
扩展:
pig ext install pglite_fusion
使用 Pigsty剧本 安装 pglite_fusion 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pglite_fusion"]}' # -l <集群名>
从 YUM仓库 手工安装 pglite_fusion
RPM 包:
dnf install pglite_fusion_17;
dnf install pglite_fusion_16;
dnf install pglite_fusion_15;
dnf install pglite_fusion_14;
dnf install pglite_fusion_13;
从 APT仓库 手工安装 pglite_fusion
DEB 包:
apt install postgresql-17-pglite-fusion;
apt install postgresql-16-pglite-fusion;
apt install postgresql-15-pglite-fusion;
apt install postgresql-14-pglite-fusion;
apt install postgresql-13-pglite-fusion;
扩展 pglite_fusion
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pglite_fusion'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pglite_fusion
扩展:
CREATE EXTENSION pglite_fusion;
https://github.com/frectonz/pglite-fusion/blob/main/README.md
Here’s some demo usage.
-- Load PG extension
CREATE EXTENSION pglite_fusion;
-- Create a table with an SQLite column
CREATE TABLE people (
name TEXT NOT NULL,
database SQLITE DEFAULT init_sqlite('CREATE TABLE todos (task TEXT)')
);
-- Insert a row into the people table
INSERT INTO people VALUES ('frectonz');
-- Create a todo for "frectonz"
UPDATE people
SET database = execute_sqlite(
database,
'INSERT INTO todos VALUES (''solve multitenancy'')'
)
WHERE name = 'frectonz';
-- Create a todo for "frectonz"
UPDATE people
SET database = execute_sqlite(
database,
'INSERT INTO todos VALUES (''buy milk'')'
)
WHERE name = 'frectonz';
-- Fetch frectonz's info
SELECT
name,
(
SELECT json_agg(get_sqlite_text(sqlite_row, 0))
FROM query_sqlite(
database,
'SELECT * FROM todos'
)
) AS todos
FROM
people
WHERE
name = 'frectonz';
empty_sqlite
Creates an empty SQLite database and returns it as a binary object. This can be used to initialize an empty SQLite database in a PostgreSQL column.
SELECT empty_sqlite();
query_sqlite
Executes a SQL query on a SQLite database stored as a binary object and returns the result as a table of JSON-encoded rows. This function is useful for querying SQLite databases stored in PostgreSQL columns.
sqlite
: The SQLite database to query, stored as a binary object.query
: The SQL query string to execute on the SQLite database.SELECT * FROM query_sqlite(
database,
'SELECT * FROM todos'
);
execute_sqlite
Executes a SQL statement (such as INSERT
, UPDATE
, or DELETE
) on a SQLite database stored as a binary object. The updated SQLite database is returned as a binary object, allowing further operations on it.
sqlite
: The SQLite database to execute the SQL query on, stored as a binary object.query
: The SQL statement to execute on the SQLite database.UPDATE people
SET database = execute_sqlite(
database,
'INSERT INTO todos VALUES (''solve multitenancy'')'
)
WHERE name = 'frectonz';
init_sqlite
Creates an SQLite database with an initialization query already applied on it. This can be used to initialize a SQLite database with the expected tables already created.
query
: The SQL statement to execute on the SQLite database.
CREATE TABLE people (
name TEXT NOT NULL,
database SQLITE DEFAULT init_sqlite('CREATE TABLE todos (task TEXT)')
);
get_sqlite_text
Extracts a text value from a specific column in a row returned by query_sqlite
. Use this function to retrieve text values from query results.
sqlite_row
: A row from the results of query_sqlite
.index
: The index of the column to extract from the row.SELECT get_sqlite_text(sqlite_row, 0)
FROM query_sqlite(database, 'SELECT * FROM todos');
get_sqlite_integer
Extracts an integer value from a specific column in a row returned by query_sqlite
. Use this function to retrieve integer values from query results.
sqlite_row
: A row from the results of query_sqlite
.index
: The index of the column to extract from the row.SELECT get_sqlite_integer(sqlite_row, 1)
FROM query_sqlite(database, 'SELECT * FROM todos');
get_sqlite_real
Extracts a real (floating-point) value from a specific column in a row returned by query_sqlite
. Use this function to retrieve real number values from query results.
sqlite_row
: A row from the results of query_sqlite
.index
: The index of the column to extract from the row.SELECT get_sqlite_real(sqlite_row, 2)
FROM query_sqlite(database, 'SELECT * FROM todos');
PIGSTY 第三方扩展: md5hash
: 提供128位MD5的原生数据类型
md5hash
md5hash
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLmd5hash_$v*
1.0.1
postgresql-$v-md5hash
1.0.1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
md5hash_17 PIGSTY 1.0.1 |
md5hash_16 PIGSTY 1.0.1 |
md5hash_15 PIGSTY 1.0.1 |
md5hash_14 PIGSTY 1.0.1 |
md5hash_13 PIGSTY 1.0.1 |
el8 |
aarch64 |
md5hash_17 PIGSTY 1.0.1 |
md5hash_16 PIGSTY 1.0.1 |
md5hash_15 PIGSTY 1.0.1 |
md5hash_14 PIGSTY 1.0.1 |
md5hash_13 PIGSTY 1.0.1 |
el9 |
x86_64 |
md5hash_17 PIGSTY 1.0.1 |
md5hash_16 PIGSTY 1.0.1 |
md5hash_15 PIGSTY 1.0.1 |
md5hash_14 PIGSTY 1.0.1 |
md5hash_13 PIGSTY 1.0.1 |
el9 |
aarch64 |
md5hash_17 PIGSTY 1.0.1 |
md5hash_16 PIGSTY 1.0.1 |
md5hash_15 PIGSTY 1.0.1 |
md5hash_14 PIGSTY 1.0.1 |
md5hash_13 PIGSTY 1.0.1 |
d12 |
x86_64 |
postgresql-17-md5hash PIGSTY 1.0.1 |
postgresql-16-md5hash PIGSTY 1.0.1 |
postgresql-15-md5hash PIGSTY 1.0.1 |
postgresql-14-md5hash PIGSTY 1.0.1 |
postgresql-13-md5hash PIGSTY 1.0.1 |
d12 |
aarch64 |
postgresql-17-md5hash PIGSTY 1.0.1 |
postgresql-16-md5hash PIGSTY 1.0.1 |
postgresql-15-md5hash PIGSTY 1.0.1 |
postgresql-14-md5hash PIGSTY 1.0.1 |
postgresql-13-md5hash PIGSTY 1.0.1 |
u22 |
x86_64 |
postgresql-17-md5hash PIGSTY 1.0.1 |
postgresql-16-md5hash PIGSTY 1.0.1 |
postgresql-15-md5hash PIGSTY 1.0.1 |
postgresql-14-md5hash PIGSTY 1.0.1 |
postgresql-13-md5hash PIGSTY 1.0.1 |
u22 |
aarch64 |
postgresql-17-md5hash PIGSTY 1.0.1 |
postgresql-16-md5hash PIGSTY 1.0.1 |
postgresql-15-md5hash PIGSTY 1.0.1 |
postgresql-14-md5hash PIGSTY 1.0.1 |
postgresql-13-md5hash PIGSTY 1.0.1 |
u24 |
x86_64 |
postgresql-17-md5hash PIGSTY 1.0.1 |
postgresql-16-md5hash PIGSTY 1.0.1 |
postgresql-15-md5hash PIGSTY 1.0.1 |
postgresql-14-md5hash PIGSTY 1.0.1 |
postgresql-13-md5hash PIGSTY 1.0.1 |
u24 |
aarch64 |
postgresql-17-md5hash PIGSTY 1.0.1 |
postgresql-16-md5hash PIGSTY 1.0.1 |
postgresql-15-md5hash PIGSTY 1.0.1 |
postgresql-14-md5hash PIGSTY 1.0.1 |
postgresql-13-md5hash PIGSTY 1.0.1 |
使用 pig
命令行工具安装 md5hash
扩展:
pig ext install md5hash
使用 Pigsty剧本 安装 md5hash 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["md5hash"]}' # -l <集群名>
dnf install md5hash_17*;
dnf install md5hash_16*;
dnf install md5hash_15*;
dnf install md5hash_14*;
dnf install md5hash_13*;
apt install postgresql-17-md5hash;
apt install postgresql-16-md5hash;
apt install postgresql-15-md5hash;
apt install postgresql-14-md5hash;
apt install postgresql-13-md5hash;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 md5hash
扩展:
CREATE EXTENSION md5hash;
MIXED 第三方扩展: asn1oid
: ASN1OID数据类型支持
asn1oid
asn1oid
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLasn1oid_$v*
1.5
postgresql-$v-asn1oid
1.6
使用 pig
命令行工具安装 asn1oid
扩展:
pig ext install asn1oid
使用 Pigsty剧本 安装 asn1oid 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["asn1oid"]}' # -l <集群名>
dnf install asn1oid_17*;
dnf install asn1oid_16*;
dnf install asn1oid_15*;
dnf install asn1oid_14*;
dnf install asn1oid_13*;
apt install postgresql-17-asn1oid;
apt install postgresql-16-asn1oid;
apt install postgresql-15-asn1oid;
apt install postgresql-14-asn1oid;
apt install postgresql-13-asn1oid;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 asn1oid
扩展:
CREATE EXTENSION asn1oid;
MIXED 第三方扩展: roaringbitmap
: 支持RoaringBitmap数据类型
roaringbitmap
roaringbitmap
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_roaringbitmap_$v*
0.5
postgresql-$v-roaringbitmap
0.5
使用 pig
命令行工具安装 roaringbitmap
扩展:
pig ext install roaringbitmap
使用 Pigsty剧本 安装 roaringbitmap 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["roaringbitmap"]}' # -l <集群名>
从 YUM仓库 手工安装 roaringbitmap
RPM 包:
dnf install pg_roaringbitmap_17*;
dnf install pg_roaringbitmap_16*;
dnf install pg_roaringbitmap_15*;
dnf install pg_roaringbitmap_14*;
dnf install pg_roaringbitmap_13*;
从 APT仓库 手工安装 roaringbitmap
DEB 包:
apt install postgresql-17-roaringbitmap;
apt install postgresql-16-roaringbitmap;
apt install postgresql-15-roaringbitmap;
apt install postgresql-14-roaringbitmap;
apt install postgresql-13-roaringbitmap;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 roaringbitmap
扩展:
CREATE EXTENSION roaringbitmap;
MIXED 第三方扩展: pgfaceting
: 使用倒排索引的高速切面查询
pgfaceting
pgfaceting
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建faceting
roaringbitmap
pgfaceting_$v
0.2.0
postgresql-$v-pgfaceting
0.2.0
使用 pig
命令行工具安装 pgfaceting
扩展:
pig ext install pgfaceting
使用 Pigsty剧本 安装 pgfaceting 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgfaceting"]}' # -l <集群名>
从 YUM仓库 手工安装 pgfaceting
RPM 包:
dnf install pgfaceting_17;
dnf install pgfaceting_16;
dnf install pgfaceting_15;
dnf install pgfaceting_14;
dnf install pgfaceting_13;
从 APT仓库 手工安装 pgfaceting
DEB 包:
apt install postgresql-17-pgfaceting;
apt install postgresql-16-pgfaceting;
apt install postgresql-15-pgfaceting;
apt install postgresql-14-pgfaceting;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgfaceting
扩展:
CREATE EXTENSION pgfaceting CASCADE;
MIXED 第三方扩展: pgsphere
: 球面对象函数、运算符与索引支持
pg_sphere
pgsphere
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgsphere_$v*
1.5.1
postgresql-$v-pgsphere
1.5.1
使用 pig
命令行工具安装 pgsphere
扩展:
pig ext install pgsphere; # 扩展名称
pig ext install pg_sphere; # 标准包名
使用 Pigsty剧本 安装 pgsphere 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgsphere"]}' # -l <集群名>
dnf install pgsphere_17*;
dnf install pgsphere_16*;
dnf install pgsphere_15*;
dnf install pgsphere_14*;
dnf install pgsphere_13*;
apt install postgresql-17-pgsphere;
apt install postgresql-16-pgsphere;
apt install postgresql-15-pgsphere;
apt install postgresql-14-pgsphere;
apt install postgresql-13-pgsphere;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_sphere
扩展:
CREATE EXTENSION pg_sphere;
PIGSTY 第三方扩展: pg_country
: 国家代码数据类型,遵循ISO 3166-1标准
country
pg_country
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_country_$v*
0.0.3
postgresql-$v-pg-country
0.0.3
使用 pig
命令行工具安装 pg_country
扩展:
pig ext install pg_country; # 扩展名称
pig ext install country; # 标准包名
使用 Pigsty剧本 安装 pg_country 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_country"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_country
RPM 包:
dnf install pg_country_17*;
dnf install pg_country_16*;
dnf install pg_country_15*;
dnf install pg_country_14*;
dnf install pg_country_13*;
从 APT仓库 手工安装 pg_country
DEB 包:
apt install postgresql-17-pg-country;
apt install postgresql-16-pg-country;
apt install postgresql-15-pg-country;
apt install postgresql-14-pg-country;
apt install postgresql-13-pg-country;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 country
扩展:
CREATE EXTENSION country;
PIGSTY 第三方扩展: pg_xenophile
: PostgreSQL i8n与l10n工具包
pg_xenophile
pg_xenophile
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLxeno
pg_xenophile_$v
0.8.3
postgresql-$v-pg-xenophile
0.8.3
使用 pig
命令行工具安装 pg_xenophile
扩展:
pig ext install pg_xenophile
使用 Pigsty剧本 安装 pg_xenophile 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_xenophile"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_xenophile
RPM 包:
dnf install pg_xenophile_17;
dnf install pg_xenophile_16;
dnf install pg_xenophile_15;
dnf install pg_xenophile_14;
dnf install pg_xenophile_13;
从 APT仓库 手工安装 pg_xenophile
DEB 包:
apt install postgresql-17-pg-xenophile;
apt install postgresql-16-pg-xenophile;
apt install postgresql-15-pg-xenophile;
apt install postgresql-14-pg-xenophile;
apt install postgresql-13-pg-xenophile;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_xenophile
扩展:
CREATE EXTENSION pg_xenophile;
PIGSTY 第三方扩展: pg_currency
: 使用1字节表示的货币数据类型
currency
pg_currency
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_currency_$v*
0.0.3
postgresql-$v-pg-currency
0.0.3
使用 pig
命令行工具安装 pg_currency
扩展:
pig ext install pg_currency; # 扩展名称
pig ext install currency; # 标准包名
使用 Pigsty剧本 安装 pg_currency 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_currency"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_currency
RPM 包:
dnf install pg_currency_17*;
dnf install pg_currency_16*;
dnf install pg_currency_15*;
dnf install pg_currency_14*;
dnf install pg_currency_13*;
从 APT仓库 手工安装 pg_currency
DEB 包:
apt install postgresql-17-pg-currency;
apt install postgresql-16-pg-currency;
apt install postgresql-15-pg-currency;
apt install postgresql-14-pg-currency;
apt install postgresql-13-pg-currency;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 currency
扩展:
CREATE EXTENSION currency;
PIGSTY 第三方扩展: pg_collection
: 在PlPGSQL中使用的内存优化高性能集合数据结构
collection
pg_collection
TYPE
17
,16
,15
,14
CREATE EXTENSION
DDLpgcollection_$v*
0.9.1
postgresql-$v-collection
0.9.1
使用 pig
命令行工具安装 pg_collection
扩展:
pig ext install pg_collection; # 扩展名称
pig ext install collection; # 标准包名
使用 Pigsty剧本 安装 pg_collection 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_collection"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_collection
RPM 包:
dnf install pgcollection_17*;
dnf install pgcollection_16*;
dnf install pgcollection_15*;
dnf install pgcollection_14*;
从 APT仓库 手工安装 pg_collection
DEB 包:
apt install postgresql-17-collection;
apt install postgresql-16-collection;
apt install postgresql-15-collection;
apt install postgresql-14-collection;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 collection
扩展:
CREATE EXTENSION collection;
PGDG 第一方扩展: pgmp
: 多精度算术扩展
pgmp
pgmp
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgmp_$v*
1.0.5
postgresql-$v-pgmp
1.0.5
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pgmp_17 PGDG 1.0.5 |
pgmp_16 PGDG 1.0.5 |
pgmp_15 PGDG 1.0.4 |
pgmp_14 PGDG 1.0.4 |
|
el8 |
aarch64 |
pgmp_17 PGDG 1.0.5 |
pgmp_16 PGDG 1.0.5 |
pgmp_15 PGDG 1.0.4 |
pgmp_14 PGDG 1.0.4 |
pgmp_13 PGDG 1.0.4 |
el9 |
x86_64 |
pgmp_17 PGDG 1.0.5 |
pgmp_16 PGDG 1.0.5 |
pgmp_15 PGDG 1.0.4 |
||
el9 |
aarch64 |
pgmp_17 PGDG 1.0.5 |
pgmp_16 PGDG 1.0.5 |
pgmp_15 PGDG 1.0.4 |
pgmp_14 PGDG 1.0.4 |
pgmp_13 PGDG 1.0.4 |
d12 |
x86_64 |
postgresql-17-pgmp PGDG 1.0.5 |
postgresql-16-pgmp PGDG 1.0.5 |
postgresql-15-pgmp PGDG 1.0.5 |
postgresql-14-pgmp PGDG 1.0.5 |
postgresql-13-pgmp PGDG 1.0.5 |
d12 |
aarch64 |
postgresql-17-pgmp PGDG 1.0.5 |
postgresql-16-pgmp PGDG 1.0.5 |
postgresql-15-pgmp PGDG 1.0.5 |
postgresql-14-pgmp PGDG 1.0.5 |
postgresql-13-pgmp PGDG 1.0.5 |
u22 |
x86_64 |
postgresql-17-pgmp PGDG 1.0.5 |
postgresql-16-pgmp PGDG 1.0.5 |
postgresql-15-pgmp PGDG 1.0.5 |
postgresql-14-pgmp PGDG 1.0.5 |
postgresql-13-pgmp PGDG 1.0.5 |
u22 |
aarch64 |
postgresql-17-pgmp PGDG 1.0.5 |
postgresql-16-pgmp PGDG 1.0.5 |
postgresql-15-pgmp PGDG 1.0.5 |
postgresql-14-pgmp PGDG 1.0.5 |
postgresql-13-pgmp PGDG 1.0.5 |
u24 |
x86_64 |
postgresql-17-pgmp PGDG 1.0.5 |
postgresql-16-pgmp PGDG 1.0.5 |
postgresql-15-pgmp PGDG 1.0.5 |
postgresql-14-pgmp PGDG 1.0.5 |
postgresql-13-pgmp PGDG 1.0.5 |
u24 |
aarch64 |
postgresql-17-pgmp PGDG 1.0.5 |
postgresql-16-pgmp PGDG 1.0.5 |
postgresql-15-pgmp PGDG 1.0.5 |
postgresql-14-pgmp PGDG 1.0.5 |
postgresql-13-pgmp PGDG 1.0.5 |
使用 pig
命令行工具安装 pgmp
扩展:
pig ext install pgmp
使用 Pigsty剧本 安装 pgmp 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgmp"]}' # -l <集群名>
dnf install pgmp_17*;
dnf install pgmp_16*;
dnf install pgmp_15*;
apt install postgresql-17-pgmp;
apt install postgresql-16-pgmp;
apt install postgresql-15-pgmp;
apt install postgresql-14-pgmp;
apt install postgresql-13-pgmp;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgmp
扩展:
CREATE EXTENSION pgmp;
MIXED 第三方扩展: numeral
: 数值类型扩展
numeral
numeral
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLnumeral_$v*
1.3
postgresql-$v-numeral
1.3
使用 pig
命令行工具安装 numeral
扩展:
pig ext install numeral
使用 Pigsty剧本 安装 numeral 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["numeral"]}' # -l <集群名>
dnf install numeral_17*;
dnf install numeral_16*;
dnf install numeral_15*;
dnf install numeral_14*;
dnf install numeral_13*;
apt install postgresql-17-numeral;
apt install postgresql-16-numeral;
apt install postgresql-15-numeral;
apt install postgresql-14-numeral;
apt install postgresql-13-numeral;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 numeral
扩展:
CREATE EXTENSION numeral;
MIXED 第三方扩展: pg_rational
: 使用BIGINT表示的有理数数据类型
pg_rational
pg_rational
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_rational_$v*
0.0.2
postgresql-$v-rational
0.0.1
使用 pig
命令行工具安装 pg_rational
扩展:
pig ext install pg_rational
使用 Pigsty剧本 安装 pg_rational 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_rational"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_rational
RPM 包:
dnf install pg_rational_17*;
dnf install pg_rational_16*;
dnf install pg_rational_15*;
dnf install pg_rational_14*;
dnf install pg_rational_13*;
从 APT仓库 手工安装 pg_rational
DEB 包:
apt install postgresql-17-rational;
apt install postgresql-16-rational;
apt install postgresql-15-rational;
apt install postgresql-14-rational;
apt install postgresql-13-rational;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_rational
扩展:
CREATE EXTENSION pg_rational;
MIXED 第三方扩展: pguint
: 无符号整型数据类型
uint
pguint
TYPE
pgdg-flaw
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpguint_$v*
1.20231206
postgresql-$v-pguint
1.20231206
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pguint_17 PGDG 1.20231206 |
pguint_16 PIGSTY 1.20231206 |
pguint_15 PIGSTY 1.20231206 |
pguint_14 PIGSTY 1.20231206 |
pguint_13 PIGSTY 1.20231206 |
el8 |
aarch64 |
pguint_17 PGDG 1.20231206 |
pguint_16 PIGSTY 1.20231206 |
pguint_15 PIGSTY 1.20231206 |
pguint_14 PIGSTY 1.20231206 |
pguint_13 PIGSTY 1.20231206 |
el9 |
x86_64 |
pguint_17 PGDG 1.20231206 |
pguint_16 PIGSTY 1.20231206 |
pguint_15 PIGSTY 1.20231206 |
pguint_14 PIGSTY 1.20231206 |
pguint_13 PIGSTY 1.20231206 |
el9 |
aarch64 |
pguint_17 PGDG 1.20231206 |
pguint_16 PIGSTY 1.20231206 |
pguint_15 PIGSTY 1.20231206 |
pguint_14 PIGSTY 1.20231206 |
pguint_13 PIGSTY 1.20231206 |
d12 |
x86_64 |
postgresql-17-pguint PIGSTY 1.20231206 |
postgresql-16-pguint PIGSTY 1.20231206 |
postgresql-15-pguint PIGSTY 1.20231206 |
postgresql-14-pguint PIGSTY 1.20231206 |
postgresql-13-pguint PIGSTY 1.20231206 |
d12 |
aarch64 |
postgresql-17-pguint PIGSTY 1.20231206 |
postgresql-16-pguint PIGSTY 1.20231206 |
postgresql-15-pguint PIGSTY 1.20231206 |
postgresql-14-pguint PIGSTY 1.20231206 |
postgresql-13-pguint PIGSTY 1.20231206 |
u22 |
x86_64 |
postgresql-17-pguint PIGSTY 1.20231206 |
postgresql-16-pguint PIGSTY 1.20231206 |
postgresql-15-pguint PIGSTY 1.20231206 |
postgresql-14-pguint PIGSTY 1.20231206 |
postgresql-13-pguint PIGSTY 1.20231206 |
u22 |
aarch64 |
postgresql-17-pguint PIGSTY 1.20231206 |
postgresql-16-pguint PIGSTY 1.20231206 |
postgresql-15-pguint PIGSTY 1.20231206 |
postgresql-14-pguint PIGSTY 1.20231206 |
postgresql-13-pguint PIGSTY 1.20231206 |
u24 |
x86_64 |
postgresql-17-pguint PIGSTY 1.20231206 |
postgresql-16-pguint PIGSTY 1.20231206 |
postgresql-15-pguint PIGSTY 1.20231206 |
postgresql-14-pguint PIGSTY 1.20231206 |
postgresql-13-pguint PIGSTY 1.20231206 |
u24 |
aarch64 |
postgresql-17-pguint PIGSTY 1.20231206 |
postgresql-16-pguint PIGSTY 1.20231206 |
postgresql-15-pguint PIGSTY 1.20231206 |
postgresql-14-pguint PIGSTY 1.20231206 |
postgresql-13-pguint PIGSTY 1.20231206 |
使用 pig
命令行工具安装 pguint
扩展:
pig ext install pguint; # 扩展名称
pig ext install uint; # 标准包名
使用 Pigsty剧本 安装 pguint 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pguint"]}' # -l <集群名>
dnf install pguint_17*;
dnf install pguint_16*;
dnf install pguint_15*;
dnf install pguint_14*;
dnf install pguint_13*;
apt install postgresql-17-pguint;
apt install postgresql-16-pguint;
apt install postgresql-15-pguint;
apt install postgresql-14-pguint;
apt install postgresql-13-pguint;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 uint
扩展:
CREATE EXTENSION uint;
PIGSTY 第三方扩展: pg_uint128
: 原生128位无符号整型数据类型
uint128
pg_uint128
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_uint128_$v*
1.0.0
postgresql-$v-pg-uint128
1.0.0
使用 pig
命令行工具安装 pg_uint128
扩展:
pig ext install pg_uint128; # 扩展名称
pig ext install uint128; # 标准包名
使用 Pigsty剧本 安装 pg_uint128 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_uint128"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_uint128
RPM 包:
dnf install pg_uint128_17*;
dnf install pg_uint128_16*;
dnf install pg_uint128_15*;
dnf install pg_uint128_14*;
dnf install pg_uint128_13*;
从 APT仓库 手工安装 pg_uint128
DEB 包:
apt install postgresql-17-pg-uint128;
apt install postgresql-16-pg-uint128;
apt install postgresql-15-pg-uint128;
apt install postgresql-14-pg-uint128;
apt install postgresql-13-pg-uint128;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 uint128
扩展:
CREATE EXTENSION uint128;
PIGSTY 第三方扩展: hashtypes
: 包括SHA1,MD5在内的多种哈希数据类型
hashtypes
hashtypes
TYPE
17
,16
,15
,14
CREATE EXTENSION
DDLhashtypes_$v*
0.1.5
postgresql-$v-hashtypes
0.1.5
使用 pig
命令行工具安装 hashtypes
扩展:
pig ext install hashtypes
使用 Pigsty剧本 安装 hashtypes 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["hashtypes"]}' # -l <集群名>
dnf install hashtypes_17*;
dnf install hashtypes_16*;
dnf install hashtypes_15*;
dnf install hashtypes_14*;
apt install postgresql-17-hashtypes;
apt install postgresql-16-hashtypes;
apt install postgresql-15-hashtypes;
apt install postgresql-14-hashtypes;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hashtypes
扩展:
CREATE EXTENSION hashtypes;
PGDG 第一方扩展: ip4r
: PostgreSQL 的 IPv4/v6 和 IPv4/v6 范围索引类型
ip4r
ip4r
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLip4r_$v*
2.4.2
postgresql-$v-ip4r
2.4.2
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
ip4r_17 PGDG 2.4.2 |
ip4r_16 PGDG 2.4.2 |
ip4r_15 PGDG 2.4.2 |
ip4r_14 PGDG 2.4.2 |
ip4r_13 PGDG 2.4.2 |
el8 |
aarch64 |
ip4r_17 PGDG 2.4.2 |
ip4r_16 PGDG 2.4.2 |
ip4r_15 PGDG 2.4.2 |
ip4r_14 PGDG 2.4.2 |
ip4r_13 PGDG 2.4.2 |
el9 |
x86_64 |
ip4r_17 PGDG 2.4.2 |
ip4r_16 PGDG 2.4.2 |
ip4r_15 PGDG 2.4.2 |
ip4r_14 PGDG 2.4.2 |
ip4r_13 PGDG 2.4.2 |
el9 |
aarch64 |
ip4r_17 PGDG 2.4.2 |
ip4r_16 PGDG 2.4.2 |
ip4r_15 PGDG 2.4.2 |
ip4r_14 PGDG 2.4.2 |
ip4r_13 PGDG 2.4.2 |
d12 |
x86_64 |
postgresql-17-ip4r PGDG 2.4.2 |
postgresql-16-ip4r PGDG 2.4.2 |
postgresql-15-ip4r PGDG 2.4.2 |
postgresql-14-ip4r PGDG 2.4.2 |
postgresql-13-ip4r PGDG 2.4.2 |
d12 |
aarch64 |
postgresql-17-ip4r PGDG 2.4.2 |
postgresql-16-ip4r PGDG 2.4.2 |
postgresql-15-ip4r PGDG 2.4.2 |
postgresql-14-ip4r PGDG 2.4.2 |
postgresql-13-ip4r PGDG 2.4.2 |
u22 |
x86_64 |
postgresql-17-ip4r PGDG 2.4.2 |
postgresql-16-ip4r PGDG 2.4.2 |
postgresql-15-ip4r PGDG 2.4.2 |
postgresql-14-ip4r PGDG 2.4.2 |
postgresql-13-ip4r PGDG 2.4.2 |
u22 |
aarch64 |
postgresql-17-ip4r PGDG 2.4.2 |
postgresql-16-ip4r PGDG 2.4.2 |
postgresql-15-ip4r PGDG 2.4.2 |
postgresql-14-ip4r PGDG 2.4.2 |
postgresql-13-ip4r PGDG 2.4.2 |
u24 |
x86_64 |
postgresql-17-ip4r PGDG 2.4.2 |
postgresql-16-ip4r PGDG 2.4.2 |
postgresql-15-ip4r PGDG 2.4.2 |
postgresql-14-ip4r PGDG 2.4.2 |
postgresql-13-ip4r PGDG 2.4.2 |
u24 |
aarch64 |
postgresql-17-ip4r PGDG 2.4.2 |
postgresql-16-ip4r PGDG 2.4.2 |
postgresql-15-ip4r PGDG 2.4.2 |
postgresql-14-ip4r PGDG 2.4.2 |
postgresql-13-ip4r PGDG 2.4.2 |
使用 pig
命令行工具安装 ip4r
扩展:
pig ext install ip4r
使用 Pigsty剧本 安装 ip4r 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["ip4r"]}' # -l <集群名>
dnf install ip4r_17*;
dnf install ip4r_16*;
dnf install ip4r_15*;
dnf install ip4r_14*;
dnf install ip4r_13*;
apt install postgresql-17-ip4r;
apt install postgresql-16-ip4r;
apt install postgresql-15-ip4r;
apt install postgresql-14-ip4r;
apt install postgresql-13-ip4r;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 ip4r
扩展:
CREATE EXTENSION ip4r;
PIGSTY 第三方扩展: pg_duration
: 用于表示时间段的强化数据类型
pg_duration
pg_duration
TYPE
17
CREATE EXTENSION
DDLpg_duration_$v*
1.0.2
postgresql-$v-pg-duration
1.0.2
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg_duration_17 PIGSTY 1.0.2 |
||||
el8 |
aarch64 |
pg_duration_17 PIGSTY 1.0.2 |
||||
el9 |
x86_64 |
pg_duration_17 PIGSTY 1.0.2 |
||||
el9 |
aarch64 |
pg_duration_17 PIGSTY 1.0.2 |
||||
d12 |
x86_64 |
postgresql-17-pg-duration PIGSTY 1.0.2 |
||||
d12 |
aarch64 |
postgresql-17-pg-duration PIGSTY 1.0.2 |
||||
u22 |
x86_64 |
postgresql-17-pg-duration PIGSTY 1.0.2 |
||||
u22 |
aarch64 |
postgresql-17-pg-duration PIGSTY 1.0.2 |
||||
u24 |
x86_64 |
postgresql-17-pg-duration PIGSTY 1.0.2 |
||||
u24 |
aarch64 |
postgresql-17-pg-duration PIGSTY 1.0.2 |
使用 pig
命令行工具安装 pg_duration
扩展:
pig ext install pg_duration
使用 Pigsty剧本 安装 pg_duration 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_duration"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_duration
RPM 包:
dnf install pg_duration_17*;
从 APT仓库 手工安装 pg_duration
DEB 包:
apt install postgresql-17-pg-duration;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_duration
扩展:
CREATE EXTENSION pg_duration;
PIGSTY 第三方扩展: pg_uri
: URI数据类型
uri
pg_uri
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_uri_$v*
1.20151224
postgresql-$v-pg-uri
1.20151224
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg_uri_17 PIGSTY 1.20151224 |
pg_uri_16 PIGSTY 1.20151224 |
pg_uri_15 PIGSTY 1.20151224 |
pg_uri_14 PIGSTY 1.20151224 |
pg_uri_13 PIGSTY 1.20151224 |
el8 |
aarch64 |
pg_uri_17 PIGSTY 1.20151224 |
pg_uri_16 PIGSTY 1.20151224 |
pg_uri_15 PIGSTY 1.20151224 |
pg_uri_14 PIGSTY 1.20151224 |
pg_uri_13 PIGSTY 1.20151224 |
el9 |
x86_64 |
pg_uri_17 PIGSTY 1.20151224 |
pg_uri_16 PIGSTY 1.20151224 |
pg_uri_15 PIGSTY 1.20151224 |
pg_uri_14 PIGSTY 1.20151224 |
pg_uri_13 PIGSTY 1.20151224 |
el9 |
aarch64 |
pg_uri_17 PIGSTY 1.20151224 |
pg_uri_16 PIGSTY 1.20151224 |
pg_uri_15 PIGSTY 1.20151224 |
pg_uri_14 PIGSTY 1.20151224 |
pg_uri_13 PIGSTY 1.20151224 |
d12 |
x86_64 |
postgresql-17-pg-uri PIGSTY 1.20151224 |
postgresql-16-pg-uri PIGSTY 1.20151224 |
postgresql-15-pg-uri PIGSTY 1.20151224 |
postgresql-14-pg-uri PIGSTY 1.20151224 |
postgresql-13-pg-uri PIGSTY 1.20151224 |
d12 |
aarch64 |
postgresql-17-pg-uri PIGSTY 1.20151224 |
postgresql-16-pg-uri PIGSTY 1.20151224 |
postgresql-15-pg-uri PIGSTY 1.20151224 |
postgresql-14-pg-uri PIGSTY 1.20151224 |
postgresql-13-pg-uri PIGSTY 1.20151224 |
u22 |
x86_64 |
postgresql-17-pg-uri PIGSTY 1.20151224 |
postgresql-16-pg-uri PIGSTY 1.20151224 |
postgresql-15-pg-uri PIGSTY 1.20151224 |
postgresql-14-pg-uri PIGSTY 1.20151224 |
postgresql-13-pg-uri PIGSTY 1.20151224 |
u22 |
aarch64 |
postgresql-17-pg-uri PIGSTY 1.20151224 |
postgresql-16-pg-uri PIGSTY 1.20151224 |
postgresql-15-pg-uri PIGSTY 1.20151224 |
postgresql-14-pg-uri PIGSTY 1.20151224 |
postgresql-13-pg-uri PIGSTY 1.20151224 |
u24 |
x86_64 |
postgresql-17-pg-uri PIGSTY 1.20151224 |
postgresql-16-pg-uri PIGSTY 1.20151224 |
postgresql-15-pg-uri PIGSTY 1.20151224 |
postgresql-14-pg-uri PIGSTY 1.20151224 |
postgresql-13-pg-uri PIGSTY 1.20151224 |
u24 |
aarch64 |
postgresql-17-pg-uri PIGSTY 1.20151224 |
postgresql-16-pg-uri PIGSTY 1.20151224 |
postgresql-15-pg-uri PIGSTY 1.20151224 |
postgresql-14-pg-uri PIGSTY 1.20151224 |
postgresql-13-pg-uri PIGSTY 1.20151224 |
使用 pig
命令行工具安装 pg_uri
扩展:
pig ext install pg_uri; # 扩展名称
pig ext install uri; # 标准包名
使用 Pigsty剧本 安装 pg_uri 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_uri"]}' # -l <集群名>
dnf install pg_uri_17*;
dnf install pg_uri_16*;
dnf install pg_uri_15*;
dnf install pg_uri_14*;
dnf install pg_uri_13*;
apt install postgresql-17-pg-uri;
apt install postgresql-16-pg-uri;
apt install postgresql-15-pg-uri;
apt install postgresql-14-pg-uri;
apt install postgresql-13-pg-uri;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 uri
扩展:
CREATE EXTENSION uri;
PIGSTY 第三方扩展: pgemailaddr
: Email地址数据类型
emailaddr
pgemailaddr
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_emailaddr_$v*
0
postgresql-$v-pg-emailaddr
0
使用 pig
命令行工具安装 pgemailaddr
扩展:
pig ext install pgemailaddr; # 扩展名称
pig ext install emailaddr; # 标准包名
使用 Pigsty剧本 安装 pgemailaddr 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgemailaddr"]}' # -l <集群名>
从 YUM仓库 手工安装 pgemailaddr
RPM 包:
dnf install pg_emailaddr_17*;
dnf install pg_emailaddr_16*;
dnf install pg_emailaddr_15*;
dnf install pg_emailaddr_14*;
dnf install pg_emailaddr_13*;
从 APT仓库 手工安装 pgemailaddr
DEB 包:
apt install postgresql-17-pg-emailaddr;
apt install postgresql-16-pg-emailaddr;
apt install postgresql-15-pg-emailaddr;
apt install postgresql-14-pg-emailaddr;
apt install postgresql-13-pg-emailaddr;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 emailaddr
扩展:
CREATE EXTENSION emailaddr;
PIGSTY 第三方扩展: pg_acl
: ACL数据类型
acl
pg_acl
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLacl_$v*
1.0.4
postgresql-$v-acl
1.0.4
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
acl_17 PIGSTY 1.0.4 |
acl_16 PIGSTY 1.0.4 |
acl_15 PIGSTY 1.0.4 |
acl_14 PIGSTY 1.0.4 |
acl_13 PIGSTY 1.0.4 |
el8 |
aarch64 |
acl_17 PIGSTY 1.0.4 |
acl_16 PIGSTY 1.0.4 |
acl_15 PIGSTY 1.0.4 |
acl_14 PIGSTY 1.0.4 |
acl_13 PIGSTY 1.0.4 |
el9 |
x86_64 |
acl_17 PIGSTY 1.0.4 |
acl_16 PIGSTY 1.0.4 |
acl_15 PIGSTY 1.0.4 |
acl_14 PIGSTY 1.0.4 |
acl_13 PIGSTY 1.0.4 |
el9 |
aarch64 |
acl_17 PIGSTY 1.0.4 |
acl_16 PIGSTY 1.0.4 |
acl_15 PIGSTY 1.0.4 |
acl_14 PIGSTY 1.0.4 |
acl_13 PIGSTY 1.0.4 |
d12 |
x86_64 |
postgresql-17-acl PIGSTY 1.0.4 |
postgresql-16-acl PIGSTY 1.0.4 |
postgresql-15-acl PIGSTY 1.0.4 |
postgresql-14-acl PIGSTY 1.0.4 |
postgresql-13-acl PIGSTY 1.0.4 |
d12 |
aarch64 |
postgresql-17-acl PIGSTY 1.0.4 |
postgresql-16-acl PIGSTY 1.0.4 |
postgresql-15-acl PIGSTY 1.0.4 |
postgresql-14-acl PIGSTY 1.0.4 |
postgresql-13-acl PIGSTY 1.0.4 |
u22 |
x86_64 |
postgresql-17-acl PIGSTY 1.0.4 |
postgresql-16-acl PIGSTY 1.0.4 |
postgresql-15-acl PIGSTY 1.0.4 |
postgresql-14-acl PIGSTY 1.0.4 |
postgresql-13-acl PIGSTY 1.0.4 |
u22 |
aarch64 |
postgresql-17-acl PIGSTY 1.0.4 |
postgresql-16-acl PIGSTY 1.0.4 |
postgresql-15-acl PIGSTY 1.0.4 |
postgresql-14-acl PIGSTY 1.0.4 |
postgresql-13-acl PIGSTY 1.0.4 |
u24 |
x86_64 |
postgresql-17-acl PIGSTY 1.0.4 |
postgresql-16-acl PIGSTY 1.0.4 |
postgresql-15-acl PIGSTY 1.0.4 |
postgresql-14-acl PIGSTY 1.0.4 |
postgresql-13-acl PIGSTY 1.0.4 |
u24 |
aarch64 |
postgresql-17-acl PIGSTY 1.0.4 |
postgresql-16-acl PIGSTY 1.0.4 |
postgresql-15-acl PIGSTY 1.0.4 |
postgresql-14-acl PIGSTY 1.0.4 |
postgresql-13-acl PIGSTY 1.0.4 |
使用 pig
命令行工具安装 pg_acl
扩展:
pig ext install pg_acl; # 扩展名称
pig ext install acl; # 标准包名
使用 Pigsty剧本 安装 pg_acl 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_acl"]}' # -l <集群名>
dnf install acl_17*;
dnf install acl_16*;
dnf install acl_15*;
dnf install acl_14*;
dnf install acl_13*;
apt install postgresql-17-acl;
apt install postgresql-16-acl;
apt install postgresql-15-acl;
apt install postgresql-14-acl;
apt install postgresql-13-acl;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 acl
扩展:
CREATE EXTENSION acl;
PGDG 第一方扩展: debversion
: Debian版本号数据类型
debversion
debversion
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpostgresql-$v-debversion
1.2.0
使用 pig
命令行工具安装 debversion
扩展:
pig ext install debversion
使用 Pigsty剧本 安装 debversion 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["debversion"]}' # -l <集群名>
从 APT仓库 手工安装 debversion
DEB 包:
apt install postgresql-17-debversion;
apt install postgresql-16-debversion;
apt install postgresql-15-debversion;
apt install postgresql-14-debversion;
apt install postgresql-13-debversion;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 debversion
扩展:
CREATE EXTENSION debversion;
PGDG 第一方扩展: pg_rrule
: 日历重复规则RRULE数据类型
pg_rrule
pg_rrule
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpostgresql-$v-pg-rrule
0.2.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
postgresql-17-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-16-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-15-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-14-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-13-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
d12 |
aarch64 |
postgresql-17-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-16-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-15-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-14-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-13-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
u22 |
x86_64 |
postgresql-17-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-16-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-15-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-14-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-13-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
u22 |
aarch64 |
postgresql-17-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-16-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-15-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-14-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-13-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
u24 |
x86_64 |
postgresql-17-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-16-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-15-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-14-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-13-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
u24 |
aarch64 |
postgresql-17-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-16-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-15-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-14-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
postgresql-13-pg-rrule PGDG 0.2.0+git20211101.d7d10f2 |
使用 pig
命令行工具安装 pg_rrule
扩展:
pig ext install pg_rrule
使用 Pigsty剧本 安装 pg_rrule 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_rrule"]}' # -l <集群名>
apt install postgresql-17-pg-rrule;
apt install postgresql-16-pg-rrule;
apt install postgresql-15-pg-rrule;
apt install postgresql-14-pg-rrule;
apt install postgresql-13-pg-rrule;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_rrule
扩展:
CREATE EXTENSION pg_rrule;
MIXED 第三方扩展: timestamp9
: 纳秒分辨率时间戳
timestamp9
timestamp9
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLtimestamp9_$v*
1.4.0
postgresql-$v-timestamp9
1.4.0
使用 pig
命令行工具安装 timestamp9
扩展:
pig ext install timestamp9
使用 Pigsty剧本 安装 timestamp9 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["timestamp9"]}' # -l <集群名>
从 YUM仓库 手工安装 timestamp9
RPM 包:
dnf install timestamp9_17*;
dnf install timestamp9_16*;
dnf install timestamp9_15*;
dnf install timestamp9_14*;
dnf install timestamp9_13*;
从 APT仓库 手工安装 timestamp9
DEB 包:
apt install postgresql-17-timestamp9;
apt install postgresql-16-timestamp9;
apt install postgresql-15-timestamp9;
apt install postgresql-14-timestamp9;
apt install postgresql-13-timestamp9;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 timestamp9
扩展:
CREATE EXTENSION timestamp9;
PIGSTY 第三方扩展: chkpass
: 数据类型:自动加密的密码
chkpass
chkpass
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLchkpass_$v*
1.0
postgresql-$v-chkpass
1.0
使用 pig
命令行工具安装 chkpass
扩展:
pig ext install chkpass
使用 Pigsty剧本 安装 chkpass 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["chkpass"]}' # -l <集群名>
dnf install chkpass_17*;
dnf install chkpass_16*;
dnf install chkpass_15*;
dnf install chkpass_14*;
dnf install chkpass_13*;
apt install postgresql-17-chkpass;
apt install postgresql-16-chkpass;
apt install postgresql-15-chkpass;
apt install postgresql-14-chkpass;
apt install postgresql-13-chkpass;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 chkpass
扩展:
CREATE EXTENSION chkpass;
CONTRIB 自带扩展: isn
: 用于国际产品编号标准的数据类型
isn
None
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 isn
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 isn
扩展:
CREATE EXTENSION isn;
CONTRIB 自带扩展: seg
: 表示线段或浮点间隔的数据类型
seg
None
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 seg
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 seg
扩展:
CREATE EXTENSION seg;
CONTRIB 自带扩展: cube
: 用于存储多维立方体的数据类型
cube
None
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 cube
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 cube
扩展:
CREATE EXTENSION cube;
CONTRIB 自带扩展: ltree
: 用于表示分层树状结构的数据类型
ltree
None
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 ltree
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 ltree
扩展:
CREATE EXTENSION ltree;
CONTRIB 自带扩展: hstore
: 用于存储(键,值)对集合的数据类型
hstore
None
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 hstore
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hstore
扩展:
CREATE EXTENSION hstore;
CONTRIB 自带扩展: citext
: 提供大小写不敏感的字符串类型
citext
None
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 citext
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 citext
扩展:
CREATE EXTENSION citext;
CONTRIB 自带扩展: xml2
: XPath 查询和 XSLT
xml2
None
TYPE
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 xml2
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 xml2
扩展:
CREATE EXTENSION xml2;
UTIL 类目共有 29 个可用扩展:
扩展名(详情) | 标准名(官网) | 仓库 | 版本 | 类目 | 许可证 | LOAD |
DDL |
TRUST |
RELOC |
简介 |
---|---|---|---|---|---|---|---|---|---|---|
gzip | pg_gzip |
MIXED | 1.0.1 | UTIL |
MIT | 使用SQL执行Gzip压缩与解压缩 | ||||
bzip | pg_bzip |
PIGSTY | 1.0.0 | UTIL |
MIT | BZIP压缩解压缩函数包 | ||||
zstd | pg_zstd |
PIGSTY | 1.1.2 | UTIL |
ISC | ZSTD压缩解压缩函数包 | ||||
http | pg_http |
PGDG | 1.6.3 | UTIL |
MIT | HTTP客户端,允许在数据库内收发HTTP请求 (supabase) | ||||
pg_net | pg_net |
PIGSTY | 0.9.2 | UTIL |
Apache-2.0 | 用 SQL 进行异步非阻塞HTTP/HTTPS 请求的扩展 (supabase) | ||||
pg_curl | pg_curl |
PIGSTY | 2.4 | UTIL |
MIT | 封装CURL,执行各种用URL传输数据的操作 | ||||
pgjq | pgjq |
PIGSTY | 0.1.0 | UTIL |
MIT | 在Postgres中使用jq查询JSON | ||||
pgjwt | pgjwt |
PIGSTY | 0.2.0 | UTIL |
MIT | JSON Web Token API 的PG实现 (supabase) | ||||
pg_smtp_client | pg_smtp_client |
PIGSTY | 0.2.0 | UTIL |
MIT | 使用SMTP从PostgreSQL内发送邮件的客户端扩展 | ||||
pg_html5_email_address | pg_html5_email_address |
PIGSTY | 1.2.3 | UTIL |
PostgreSQL | 验证Email是否符合HTML5规范的扩展 | ||||
url_encode | url_encode |
PIGSTY | 1.2.5 | UTIL |
PostgreSQL | 提供URL编码解码函数 | ||||
pgsql_tweaks | pgsql_tweaks |
MIXED | 0.11.1 | UTIL |
PostgreSQL | 一些日常会用到的便利函数与视图 | ||||
pg_extra_time | pg_extra_time |
MIXED | 2.0.0 | UTIL |
PostgreSQL | 一些关于日期与时间的扩展函数 | ||||
pgpcre | pgpcre |
MIXED | 1 | UTIL |
PostgreSQL | PCRE/Perl风格的正则表达式支持 | ||||
icu_ext | icu_ext |
MIXED | 1.9.0 | UTIL |
PostgreSQL | 访问ICU库提供的函数 | ||||
pgqr | pgqr |
PIGSTY | 1.0 | UTIL |
BSD 3 | 从数据库中直接生成QR二维码 | ||||
pg_protobuf | pg_protobuf |
PIGSTY | 1.0 | UTIL |
MIT | 提供Protobuf函数支持 | ||||
envvar | envvar |
PIGSTY | 1.0.0 | UTIL |
PostgreSQL | 获取环境变量的函数 | ||||
floatfile | floatfile |
PIGSTY | 1.3.1 | UTIL |
MIT | 将浮点数组存储到文件中而不是堆表中 | ||||
pg_readme | pg_readme |
MIXED | 0.7.0 | UTIL |
PostgreSQL | 为模式与扩展生成Markdown文档 | ||||
ddl_historization | ddl_historization |
PIGSTY | 0.0.7 | UTIL |
GPLv2 | 用SQL将所有DDL变更写入到数据库表中 | ||||
data_historization | data_historization |
PIGSTY | 1.1.0 | UTIL |
PostgreSQL | 用SQL将数据变更历史保存到分区表中 | ||||
schedoc | pg_schedoc |
PIGSTY | 0.0.1 | UTIL |
GPLv3 | 在Django与DBT之间通过注释文档交换元数据 | ||||
hashlib | pg_hashlib |
PIGSTY | 1.1 | UTIL |
PostgreSQL | 稳定哈希函数包 | ||||
xxhash | pg_xxhash |
PIGSTY | 0.0.1 | UTIL |
BSD 2 | xxhash哈希函数包 | ||||
shacrypt | shacrypt |
PIGSTY | 1.1 | UTIL |
PostgreSQL | 实现SHA256-CRYPT与SHA512-CRYPT密钥加密算法 | ||||
cryptint | cryptint |
PIGSTY | 1.0.0 | UTIL |
PostgreSQL | 加密INT与BIGINT类型 | ||||
pguecc | pg_ecdsa |
PIGSTY | 1.0 | UTIL |
BSD 2 | PostgreSQL的uECC绑定,椭圆曲线加解密函数包 | ||||
sparql | pgsparql |
PIGSTY | 1.0 | UTIL |
Apache-2.0 | 使用SQL查询SPARQL数据源 |
MIXED 第三方扩展: pg_gzip
: 使用SQL执行Gzip压缩与解压缩
gzip
pg_gzip
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgsql_gzip_$v*
1.0.0
postgresql-$v-gzip
1.0.1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pgsql_gzip_17 PGDG 1.0.0 |
pgsql_gzip_16 PGDG 1.0.0 |
pgsql_gzip_15 PGDG 1.0.0 |
pgsql_gzip_14 PGDG 1.0.0 |
pgsql_gzip_13 PGDG 1.0.0 |
el8 |
aarch64 |
pgsql_gzip_17 PIGSTY 1.0.0 |
pgsql_gzip_16 PIGSTY 1.0.0 |
pgsql_gzip_15 PIGSTY 1.0.0 |
pgsql_gzip_14 PIGSTY 1.0.0 |
pgsql_gzip_13 PIGSTY 1.0.0 |
el9 |
x86_64 |
pgsql_gzip_17 PGDG 1.0.0 |
pgsql_gzip_16 PGDG 1.0.0 |
pgsql_gzip_15 PGDG 1.0.0 |
pgsql_gzip_14 PGDG 1.0.0 |
pgsql_gzip_13 PGDG 1.0.0 |
el9 |
aarch64 |
pgsql_gzip_17 PIGSTY 1.0.0 |
pgsql_gzip_16 PIGSTY 1.0.0 |
pgsql_gzip_15 PIGSTY 1.0.0 |
pgsql_gzip_14 PIGSTY 1.0.0 |
pgsql_gzip_13 PIGSTY 1.0.0 |
d12 |
x86_64 |
postgresql-17-gzip PIGSTY 1.0.1 |
postgresql-16-gzip PIGSTY 1.0.1 |
postgresql-15-gzip PIGSTY 1.0.1 |
postgresql-14-gzip PIGSTY 1.0.1 |
postgresql-13-gzip PIGSTY 1.0.1 |
d12 |
aarch64 |
postgresql-17-gzip PIGSTY 1.0.1 |
postgresql-16-gzip PIGSTY 1.0.1 |
postgresql-15-gzip PIGSTY 1.0.1 |
postgresql-14-gzip PIGSTY 1.0.1 |
postgresql-13-gzip PIGSTY 1.0.1 |
u22 |
x86_64 |
postgresql-17-gzip PIGSTY 1.0.1 |
postgresql-16-gzip PIGSTY 1.0.1 |
postgresql-15-gzip PIGSTY 1.0.1 |
postgresql-14-gzip PIGSTY 1.0.1 |
postgresql-13-gzip PIGSTY 1.0.1 |
u22 |
aarch64 |
postgresql-17-gzip PIGSTY 1.0.1 |
postgresql-16-gzip PIGSTY 1.0.1 |
postgresql-15-gzip PIGSTY 1.0.1 |
postgresql-14-gzip PIGSTY 1.0.1 |
postgresql-13-gzip PIGSTY 1.0.1 |
u24 |
x86_64 |
postgresql-17-gzip PIGSTY 1.0.1 |
postgresql-16-gzip PIGSTY 1.0.1 |
postgresql-15-gzip PIGSTY 1.0.1 |
postgresql-14-gzip PIGSTY 1.0.1 |
postgresql-13-gzip PIGSTY 1.0.1 |
u24 |
aarch64 |
postgresql-17-gzip PIGSTY 1.0.1 |
postgresql-16-gzip PIGSTY 1.0.1 |
postgresql-15-gzip PIGSTY 1.0.1 |
postgresql-14-gzip PIGSTY 1.0.1 |
postgresql-13-gzip PIGSTY 1.0.1 |
使用 pig
命令行工具安装 pg_gzip
扩展:
pig ext install pg_gzip; # 扩展名称
pig ext install gzip; # 标准包名
使用 Pigsty剧本 安装 pg_gzip 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_gzip"]}' # -l <集群名>
dnf install pgsql_gzip_17*;
dnf install pgsql_gzip_16*;
dnf install pgsql_gzip_15*;
dnf install pgsql_gzip_14*;
dnf install pgsql_gzip_13*;
apt install postgresql-17-gzip;
apt install postgresql-16-gzip;
apt install postgresql-15-gzip;
apt install postgresql-14-gzip;
apt install postgresql-13-gzip;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 gzip
扩展:
CREATE EXTENSION gzip;
Sometimes you just need to compress your bytea
object before you return it to the client.
Sometimes you receive a compressed bytea
from the client, and you have to uncompress it before you can work with it.
This extension is for that.
This extension is not for storage compression. PostgreSQL already does tuple compression on the fly if your tuple gets large enough, manually pre-compressing your data using this function won’t make things smaller.
gzip(uncompressed BYTEA, [compression_level INTEGER])
returns BYTEA
gzip(uncompressed TEXT, [compression_level INTEGER])
returns BYTEA
gunzip(compressed BYTEA)
returns BYTEA
> SELECT gzip('this is my this is my this is my this is my text');
gzip
--------------------------------------------------------------------------
\x1f8b08000000000000132bc9c82c5600a2dc4a851282ccd48a12002e7a22ff30000000
Wait, what, the compressed output is longer?!? No, it only looks that way, because in hex every byte is represented with two hex digits. The original string looks like this in hex:
> SELECT 'this is my this is my this is my this is my text'::bytea;
bytea
----------------------------------------------------------------------------------------------------
\x74686973206973206d792074686973206973206d792074686973206973206d792074686973206973206d792074657874
For really long, repetitive things, compression naturally works like a charm:
> SELECT gzip(repeat('this is my ', 100));
bytea
----------------------------------------------------------------------------------------------------
\x1f8b08000000000000132bc9c82c5600a2dc4a859251e628739439ca24970900d1341c5c4c040000
To convert a bytea
back into an equivalent text
you must use the encode()
function with the escape
encoding.
> SELECT encode('test text'::bytea, 'escape');
encode
-----------
test text
> SELECT encode(gunzip(gzip('this text has been compressed and then decompressed')), 'escape')
encode
-----------------------------------------------------
this text has been compressed and then decompressed
PIGSTY 第三方扩展: pg_bzip
: BZIP压缩解压缩函数包
bzip
pg_bzip
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_bzip_$v*
1.0.0
postgresql-$v-bzip
1.0.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg_bzip_17 PIGSTY 1.0.0 |
pg_bzip_16 PIGSTY 1.0.0 |
pg_bzip_15 PIGSTY 1.0.0 |
pg_bzip_14 PIGSTY 1.0.0 |
pg_bzip_13 PIGSTY 1.0.0 |
el8 |
aarch64 |
pg_bzip_17 PIGSTY 1.0.0 |
pg_bzip_16 PIGSTY 1.0.0 |
pg_bzip_15 PIGSTY 1.0.0 |
pg_bzip_14 PIGSTY 1.0.0 |
pg_bzip_13 PIGSTY 1.0.0 |
el9 |
x86_64 |
pg_bzip_17 PIGSTY 1.0.0 |
pg_bzip_16 PIGSTY 1.0.0 |
pg_bzip_15 PIGSTY 1.0.0 |
pg_bzip_14 PIGSTY 1.0.0 |
pg_bzip_13 PIGSTY 1.0.0 |
el9 |
aarch64 |
pg_bzip_17 PIGSTY 1.0.0 |
pg_bzip_16 PIGSTY 1.0.0 |
pg_bzip_15 PIGSTY 1.0.0 |
pg_bzip_14 PIGSTY 1.0.0 |
pg_bzip_13 PIGSTY 1.0.0 |
d12 |
x86_64 |
postgresql-17-bzip PIGSTY 1.0.0 |
postgresql-16-bzip PIGSTY 1.0.0 |
postgresql-15-bzip PIGSTY 1.0.0 |
postgresql-14-bzip PIGSTY 1.0.0 |
postgresql-13-bzip PIGSTY 1.0.0 |
d12 |
aarch64 |
postgresql-17-bzip PIGSTY 1.0.0 |
postgresql-16-bzip PIGSTY 1.0.0 |
postgresql-15-bzip PIGSTY 1.0.0 |
postgresql-14-bzip PIGSTY 1.0.0 |
postgresql-13-bzip PIGSTY 1.0.0 |
u22 |
x86_64 |
postgresql-17-bzip PIGSTY 1.0.0 |
postgresql-16-bzip PIGSTY 1.0.0 |
postgresql-15-bzip PIGSTY 1.0.0 |
postgresql-14-bzip PIGSTY 1.0.0 |
postgresql-13-bzip PIGSTY 1.0.0 |
u22 |
aarch64 |
postgresql-17-bzip PIGSTY 1.0.0 |
postgresql-16-bzip PIGSTY 1.0.0 |
postgresql-15-bzip PIGSTY 1.0.0 |
postgresql-14-bzip PIGSTY 1.0.0 |
postgresql-13-bzip PIGSTY 1.0.0 |
u24 |
x86_64 |
postgresql-17-bzip PIGSTY 1.0.0 |
postgresql-16-bzip PIGSTY 1.0.0 |
postgresql-15-bzip PIGSTY 1.0.0 |
postgresql-14-bzip PIGSTY 1.0.0 |
postgresql-13-bzip PIGSTY 1.0.0 |
u24 |
aarch64 |
postgresql-17-bzip PIGSTY 1.0.0 |
postgresql-16-bzip PIGSTY 1.0.0 |
postgresql-15-bzip PIGSTY 1.0.0 |
postgresql-14-bzip PIGSTY 1.0.0 |
postgresql-13-bzip PIGSTY 1.0.0 |
使用 pig
命令行工具安装 pg_bzip
扩展:
pig ext install pg_bzip; # 扩展名称
pig ext install bzip; # 标准包名
使用 Pigsty剧本 安装 pg_bzip 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_bzip"]}' # -l <集群名>
dnf install pg_bzip_17*;
dnf install pg_bzip_16*;
dnf install pg_bzip_15*;
dnf install pg_bzip_14*;
dnf install pg_bzip_13*;
apt install postgresql-17-bzip;
apt install postgresql-16-bzip;
apt install postgresql-15-bzip;
apt install postgresql-14-bzip;
apt install postgresql-13-bzip;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 bzip
扩展:
CREATE EXTENSION bzip;
PIGSTY 第三方扩展: pg_zstd
: ZSTD压缩解压缩函数包
zstd
pg_zstd
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_zstd_$v*
1.1.2
postgresql-$v-zstd
1.1.2
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg_zstd_17 PIGSTY 1.1.2 |
pg_zstd_16 PIGSTY 1.1.2 |
pg_zstd_15 PIGSTY 1.1.2 |
pg_zstd_14 PIGSTY 1.1.2 |
pg_zstd_13 PIGSTY 1.1.2 |
el8 |
aarch64 |
pg_zstd_17 PIGSTY 1.1.2 |
pg_zstd_16 PIGSTY 1.1.2 |
pg_zstd_15 PIGSTY 1.1.2 |
pg_zstd_14 PIGSTY 1.1.2 |
pg_zstd_13 PIGSTY 1.1.2 |
el9 |
x86_64 |
pg_zstd_17 PIGSTY 1.1.2 |
pg_zstd_16 PIGSTY 1.1.2 |
pg_zstd_15 PIGSTY 1.1.2 |
pg_zstd_14 PIGSTY 1.1.2 |
pg_zstd_13 PIGSTY 1.1.2 |
el9 |
aarch64 |
pg_zstd_17 PIGSTY 1.1.2 |
pg_zstd_16 PIGSTY 1.1.2 |
pg_zstd_15 PIGSTY 1.1.2 |
pg_zstd_14 PIGSTY 1.1.2 |
pg_zstd_13 PIGSTY 1.1.2 |
d12 |
x86_64 |
postgresql-17-zstd PIGSTY 1.1.2 |
postgresql-16-zstd PIGSTY 1.1.2 |
postgresql-15-zstd PIGSTY 1.1.2 |
postgresql-14-zstd PIGSTY 1.1.2 |
postgresql-13-zstd PIGSTY 1.1.2 |
d12 |
aarch64 |
postgresql-17-zstd PIGSTY 1.1.2 |
postgresql-16-zstd PIGSTY 1.1.2 |
postgresql-15-zstd PIGSTY 1.1.2 |
postgresql-14-zstd PIGSTY 1.1.2 |
postgresql-13-zstd PIGSTY 1.1.2 |
u22 |
x86_64 |
postgresql-17-zstd PIGSTY 1.1.2 |
postgresql-16-zstd PIGSTY 1.1.2 |
postgresql-15-zstd PIGSTY 1.1.2 |
postgresql-14-zstd PIGSTY 1.1.2 |
postgresql-13-zstd PIGSTY 1.1.2 |
u22 |
aarch64 |
postgresql-17-zstd PIGSTY 1.1.2 |
postgresql-16-zstd PIGSTY 1.1.2 |
postgresql-15-zstd PIGSTY 1.1.2 |
postgresql-14-zstd PIGSTY 1.1.2 |
postgresql-13-zstd PIGSTY 1.1.2 |
u24 |
x86_64 |
postgresql-17-zstd PIGSTY 1.1.2 |
postgresql-16-zstd PIGSTY 1.1.2 |
postgresql-15-zstd PIGSTY 1.1.2 |
postgresql-14-zstd PIGSTY 1.1.2 |
postgresql-13-zstd PIGSTY 1.1.2 |
u24 |
aarch64 |
postgresql-17-zstd PIGSTY 1.1.2 |
postgresql-16-zstd PIGSTY 1.1.2 |
postgresql-15-zstd PIGSTY 1.1.2 |
postgresql-14-zstd PIGSTY 1.1.2 |
postgresql-13-zstd PIGSTY 1.1.2 |
使用 pig
命令行工具安装 pg_zstd
扩展:
pig ext install pg_zstd; # 扩展名称
pig ext install zstd; # 标准包名
使用 Pigsty剧本 安装 pg_zstd 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_zstd"]}' # -l <集群名>
dnf install pg_zstd_17*;
dnf install pg_zstd_16*;
dnf install pg_zstd_15*;
dnf install pg_zstd_14*;
dnf install pg_zstd_13*;
apt install postgresql-17-zstd;
apt install postgresql-16-zstd;
apt install postgresql-15-zstd;
apt install postgresql-14-zstd;
apt install postgresql-13-zstd;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 zstd
扩展:
CREATE EXTENSION zstd;
Function | Return Type |
---|---|
zstd_compress(data bytea [, dictionary bytea [, level integer ]]) |
bytea |
zstd_decompress(data bytea [, dictionary bytea ]) |
bytea |
zstd_length(data bytea) |
integer |
zstd_compress
compresses the provided data
and returns a Zstandard frame. A
preset dictionary
may also be provided. The default compression level
may
also be overriden, valid values range from 1
(best speed) to 22
(best
compression). The default level is 3
.
If you want to override the compression level without using a dictionary, set
dictionary
to NULL
.
zstd_decompress
decompresses the provided Zstandard frame in data
and
returns the uncompressed data. A preset dictionary
, matching the dictionary
used to compress the data, may also be provided.
zstd_length
returns the decompressed length of the provided Zstandard frame.
If ZSTD_getFrameContentSize()
is available it returns NULL
if the length is
unknown. If unavailable, it isn’t possible to distinguish the error, unknown
decompressed length and zero decompressed length cases.
Basic compress/decompress example:
CREATE EXTENSION zstd;
SELECT zstd_compress('hello world');
-- zstd_compress
-- --------------------------------------------
-- \x28b52ffd200b59000068656c6c6f20776f726c64
SELECT convert_from(zstd_decompress('\x28b52ffd200b59000068656c6c6f20776f726c64'), 'utf-8');
-- convert_from
-- --------------
-- hello world
Compress with level (1
for best speed, 22
for best compression, default to 3
)
CREATE EXTENSION zstd;
SELECT zstd_compress('hello world', NULL, 10);
-- zstd_compress
-- --------------------------------------------
-- \x28b52ffd200b59000068656c6c6f20776f726c64
SELECT convert_from(zstd_decompress('\x28b52ffd200b59000068656c6c6f20776f726c64'), 'utf-8');
-- convert_from
-- --------------
-- hello world
PGDG 第一方扩展: pg_http
: HTTP客户端,允许在数据库内收发HTTP请求 (supabase)
http
pg_http
UTIL
supabase
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgsql_http_$v*
1.6.3
postgresql-$v-http
1.6.3
使用 pig
命令行工具安装 pg_http
扩展:
pig ext install pg_http; # 扩展名称
pig ext install http; # 标准包名
使用 Pigsty剧本 安装 pg_http 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_http"]}' # -l <集群名>
dnf install pgsql_http_17*;
dnf install pgsql_http_16*;
dnf install pgsql_http_15*;
dnf install pgsql_http_14*;
dnf install pgsql_http_13*;
apt install postgresql-17-http;
apt install postgresql-16-http;
apt install postgresql-15-http;
apt install postgresql-14-http;
apt install postgresql-13-http;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 http
扩展:
CREATE EXTENSION http;
https://github.com/pramsey/pgsql-http
请求与响应的模式:
Composite type "public.http_request"
Column | Type | Modifiers
--------------+-------------------+-----------
method | http_method |
uri | character varying |
headers | http_header[] |
content_type | character varying |
content | character varying |
Composite type "public.http_response"
Column | Type | Modifiers
--------------+-------------------+-----------
status | integer |
content_type | character varying |
headers | http_header[] |
content | character varying |
Sending HTTP GET requests with SQL
CREATE EXTENSION http;
-- get content
SELECT content FROM http_get('http://httpbun.com/');
-- get status and content_type
SELECT status, content_type FROM http_get('http://httpbun.com/');
-- status | content_type
-- --------+--------------------------
-- 200 | text/html; charset=utf-8
-- get headers
SELECT (unnest(headers)).* FROM http_get('http://httpbun.com/');
-- field | value
-- ---------------------------+--------------------------------------------------
-- Location | https://httpbun.com/
-- Date | Mon, 04 Nov 2024 09:00:36 GMT
-- Content-Length | 0
-- Connection | close
-- alt-svc | h3=":443"; ma=2592000
-- content-security-policy | frame-ancestors 'none'
-- content-type | text/html
-- date | Mon, 04 Nov 2024 09:00:37 GMT
-- strict-transport-security | max-age=31536000; includeSubDomains; preload
-- x-content-type-options | nosniff
-- x-powered-by | httpbun/af040d24038613575a85f74c2283ae79f8169927
-- (11 rows)
SELECT status, content::json->'form' AS form FROM http_post('http://httpbun.com/post', jsonb_build_object('myvar','myval','foo','bar'));
Issue http put requests:
SELECT status, content_type, content::json->>'data' AS data
FROM http_put('http://httpbun.com/put', 'some text', 'text/plain');
-- status | content_type | data
-- --------+------------------+-----------
-- 200 | application/json | some text
Issue http post request:
PIGSTY 第三方扩展: pg_net
: 用 SQL 进行异步非阻塞HTTP/HTTPS 请求的扩展 (supabase)
pg_net
pg_net
UTIL
supabase
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_net_$v*
0.9.2
postgresql-$v-pg-net
0.9.2
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg_net_17 PIGSTY 0.9.2 |
pg_net_16 PIGSTY 0.9.2 |
pg_net_15 PIGSTY 0.9.2 |
pg_net_14 PIGSTY 0.9.2 |
pg_net_13 PIGSTY 0.9.2 |
el8 |
aarch64 |
pg_net_17 PIGSTY 0.9.2 |
pg_net_16 PIGSTY 0.9.2 |
pg_net_15 PIGSTY 0.9.2 |
pg_net_14 PIGSTY 0.9.2 |
pg_net_13 PIGSTY 0.9.2 |
el9 |
x86_64 |
pg_net_17 PIGSTY 0.9.2 |
pg_net_16 PIGSTY 0.9.2 |
pg_net_15 PIGSTY 0.9.2 |
pg_net_14 PIGSTY 0.9.2 |
pg_net_13 PIGSTY 0.9.2 |
el9 |
aarch64 |
pg_net_17 PIGSTY 0.9.2 |
pg_net_16 PIGSTY 0.9.2 |
pg_net_15 PIGSTY 0.9.2 |
pg_net_14 PIGSTY 0.9.2 |
pg_net_13 PIGSTY 0.9.2 |
d12 |
x86_64 |
postgresql-17-pg-net PIGSTY 0.14.0 |
postgresql-16-pg-net PIGSTY 0.14.0 |
postgresql-15-pg-net PIGSTY 0.14.0 |
postgresql-14-pg-net PIGSTY 0.14.0 |
postgresql-13-pg-net PIGSTY 0.14.0 |
d12 |
aarch64 |
postgresql-17-pg-net PIGSTY 0.14.0 |
postgresql-16-pg-net PIGSTY 0.14.0 |
postgresql-15-pg-net PIGSTY 0.14.0 |
postgresql-14-pg-net PIGSTY 0.14.0 |
postgresql-13-pg-net PIGSTY 0.14.0 |
u22 |
x86_64 |
postgresql-17-pg-net PIGSTY 0.9.2 |
postgresql-16-pg-net PIGSTY 0.9.2 |
postgresql-15-pg-net PIGSTY 0.9.2 |
postgresql-14-pg-net PIGSTY 0.9.2 |
postgresql-13-pg-net PIGSTY 0.9.2 |
u22 |
aarch64 |
postgresql-17-pg-net PIGSTY 0.9.2 |
postgresql-16-pg-net PIGSTY 0.9.2 |
postgresql-15-pg-net PIGSTY 0.9.2 |
postgresql-14-pg-net PIGSTY 0.9.2 |
postgresql-13-pg-net PIGSTY 0.9.2 |
u24 |
x86_64 |
postgresql-17-pg-net PIGSTY 0.14.0 |
postgresql-16-pg-net PIGSTY 0.14.0 |
postgresql-15-pg-net PIGSTY 0.14.0 |
postgresql-14-pg-net PIGSTY 0.14.0 |
postgresql-13-pg-net PIGSTY 0.14.0 |
u24 |
aarch64 |
postgresql-17-pg-net PIGSTY 0.14.0 |
postgresql-16-pg-net PIGSTY 0.14.0 |
postgresql-15-pg-net PIGSTY 0.14.0 |
postgresql-14-pg-net PIGSTY 0.14.0 |
postgresql-13-pg-net PIGSTY 0.14.0 |
使用 pig
命令行工具安装 pg_net
扩展:
pig ext install pg_net
使用 Pigsty剧本 安装 pg_net 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_net"]}' # -l <集群名>
dnf install pg_net_17*;
dnf install pg_net_16*;
dnf install pg_net_15*;
dnf install pg_net_14*;
dnf install pg_net_13*;
apt install postgresql-17-pg-net;
apt install postgresql-16-pg-net;
apt install postgresql-15-pg-net;
apt install postgresql-14-pg-net;
apt install postgresql-13-pg-net;
扩展 pg_net
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_net'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_net
扩展:
CREATE EXTENSION pg_net;
PIGSTY 第三方扩展: pg_curl
: 封装CURL,执行各种用URL传输数据的操作
pg_curl
pg_curl
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_curl_$v*
2.4
postgresql-$v-pg-curl
2.4
使用 pig
命令行工具安装 pg_curl
扩展:
pig ext install pg_curl
使用 Pigsty剧本 安装 pg_curl 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_curl"]}' # -l <集群名>
dnf install pg_curl_17*;
dnf install pg_curl_16*;
dnf install pg_curl_15*;
dnf install pg_curl_14*;
dnf install pg_curl_13*;
apt install postgresql-17-pg-curl;
apt install postgresql-16-pg-curl;
apt install postgresql-15-pg-curl;
apt install postgresql-14-pg-curl;
apt install postgresql-13-pg-curl;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_curl
扩展:
CREATE EXTENSION pg_curl;
CREATE EXTENSION pg_curl;
Perform HTTP Get:
-- wrap curl http get
CREATE OR REPLACE FUNCTION get(url TEXT) RETURNS TEXT LANGUAGE SQL AS $BODY$
WITH s AS (SELECT
curl_easy_reset(),
curl_easy_setopt_url(url),
curl_easy_perform(),
curl_easy_getinfo_data_in()
) SELECT convert_from(curl_easy_getinfo_data_in, 'utf-8') FROM s;
$BODY$;
SELECT get('https://www.postgresql.org/');
Perform Email SMTP:
CREATE OR REPLACE FUNCTION email(url TEXT, username TEXT, password TEXT, subject TEXT, sender TEXT, recipient TEXT, body TEXT, type TEXT) RETURNS TEXT LANGUAGE SQL AS $BODY$
WITH s AS (SELECT
curl_easy_reset(),
curl_easy_setopt_mail_from(sender),
curl_easy_setopt_password(password),
curl_easy_setopt_url(url),
curl_easy_setopt_username(username),
curl_header_append('From', sender),
curl_header_append('Subject', subject),
curl_header_append('To', recipient),
curl_mime_data(body, type:=type),
curl_recipient_append(recipient),
curl_easy_perform(),
curl_easy_getinfo_header_in()
) SELECT curl_easy_getinfo_header_in FROM s;
$BODY$;
Perform FTP download:
CREATE OR REPLACE FUNCTION download(url TEXT, username TEXT, password TEXT) RETURNS BYTEA LANGUAGE SQL AS $BODY$
WITH s AS (SELECT
curl_easy_reset(),
curl_easy_setopt_password(password),
curl_easy_setopt_url(url),
curl_easy_setopt_username(username),
curl_easy_perform(),
curl_easy_getinfo_data_in()
) SELECT curl_easy_getinfo_data_in FROM s;
$BODY$;
PIGSTY 第三方扩展: pgjq
: 在Postgres中使用jq查询JSON
pgjq
pgjq
UTIL
17
,16
,15
,14
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建pgjq_$v*
0.1.0
postgresql-$v-pgjq
0.1.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pgjq_17 PIGSTY 0.1.0 |
pgjq_16 PIGSTY 0.1.0 |
pgjq_15 PIGSTY 0.1.0 |
pgjq_14 PIGSTY 0.1.0 |
|
el8 |
aarch64 |
pgjq_17 PIGSTY 0.1.0 |
pgjq_16 PIGSTY 0.1.0 |
pgjq_15 PIGSTY 0.1.0 |
pgjq_14 PIGSTY 0.1.0 |
|
el9 |
x86_64 |
pgjq_17 PIGSTY 0.1.0 |
pgjq_16 PIGSTY 0.1.0 |
pgjq_15 PIGSTY 0.1.0 |
pgjq_14 PIGSTY 0.1.0 |
|
el9 |
aarch64 |
pgjq_17 PIGSTY 0.1.0 |
pgjq_16 PIGSTY 0.1.0 |
pgjq_15 PIGSTY 0.1.0 |
pgjq_14 PIGSTY 0.1.0 |
|
d12 |
x86_64 |
postgresql-17-pgjq PIGSTY 0.1.0 |
postgresql-16-pgjq PIGSTY 0.1.0 |
postgresql-15-pgjq PIGSTY 0.1.0 |
postgresql-14-pgjq PIGSTY 0.1.0 |
|
d12 |
aarch64 |
postgresql-17-pgjq PIGSTY 0.1.0 |
postgresql-16-pgjq PIGSTY 0.1.0 |
postgresql-15-pgjq PIGSTY 0.1.0 |
postgresql-14-pgjq PIGSTY 0.1.0 |
|
u22 |
x86_64 |
postgresql-17-pgjq PIGSTY 0.1.0 |
postgresql-16-pgjq PIGSTY 0.1.0 |
postgresql-15-pgjq PIGSTY 0.1.0 |
postgresql-14-pgjq PIGSTY 0.1.0 |
|
u22 |
aarch64 |
postgresql-17-pgjq PIGSTY 0.1.0 |
postgresql-16-pgjq PIGSTY 0.1.0 |
postgresql-15-pgjq PIGSTY 0.1.0 |
postgresql-14-pgjq PIGSTY 0.1.0 |
|
u24 |
x86_64 |
postgresql-17-pgjq PIGSTY 0.1.0 |
postgresql-16-pgjq PIGSTY 0.1.0 |
postgresql-15-pgjq PIGSTY 0.1.0 |
postgresql-14-pgjq PIGSTY 0.1.0 |
|
u24 |
aarch64 |
postgresql-17-pgjq PIGSTY 0.1.0 |
postgresql-16-pgjq PIGSTY 0.1.0 |
postgresql-15-pgjq PIGSTY 0.1.0 |
postgresql-14-pgjq PIGSTY 0.1.0 |
使用 pig
命令行工具安装 pgjq
扩展:
pig ext install pgjq
使用 Pigsty剧本 安装 pgjq 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgjq"]}' # -l <集群名>
dnf install pgjq_17*;
dnf install pgjq_16*;
dnf install pgjq_15*;
dnf install pgjq_14*;
apt install postgresql-17-pgjq;
apt install postgresql-16-pgjq;
apt install postgresql-15-pgjq;
apt install postgresql-14-pgjq;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgjq
扩展:
CREATE EXTENSION pgjq;
PIGSTY 第三方扩展: pgjwt
: JSON Web Token API 的PG实现 (supabase)
pgjwt
pgjwt
UTIL
supabase
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgjwt_$v
0.2.0
postgresql-$v-pgjwt
0.2.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pgjwt_17 PIGSTY 0.2.0 |
pgjwt_16 PIGSTY 0.2.0 |
pgjwt_15 PIGSTY 0.2.0 |
pgjwt_14 PIGSTY 0.2.0 |
pgjwt_13 PIGSTY 0.2.0 |
el8 |
aarch64 |
pgjwt_17 PIGSTY 0.2.0 |
pgjwt_16 PIGSTY 0.2.0 |
pgjwt_15 PIGSTY 0.2.0 |
pgjwt_14 PIGSTY 0.2.0 |
pgjwt_13 PIGSTY 0.2.0 |
el9 |
x86_64 |
pgjwt_17 PIGSTY 0.2.0 |
pgjwt_16 PIGSTY 0.2.0 |
pgjwt_15 PIGSTY 0.2.0 |
pgjwt_14 PIGSTY 0.2.0 |
pgjwt_13 PIGSTY 0.2.0 |
el9 |
aarch64 |
pgjwt_17 PIGSTY 0.2.0 |
pgjwt_16 PIGSTY 0.2.0 |
pgjwt_15 PIGSTY 0.2.0 |
pgjwt_14 PIGSTY 0.2.0 |
pgjwt_13 PIGSTY 0.2.0 |
d12 |
x86_64 |
postgresql-17-pgjwt PIGSTY 0.2.0 |
postgresql-16-pgjwt PIGSTY 0.2.0 |
postgresql-15-pgjwt PIGSTY 0.2.0 |
postgresql-14-pgjwt PIGSTY 0.2.0 |
postgresql-13-pgjwt PIGSTY 0.2.0 |
d12 |
aarch64 |
postgresql-17-pgjwt PIGSTY 0.2.0 |
postgresql-16-pgjwt PIGSTY 0.2.0 |
postgresql-15-pgjwt PIGSTY 0.2.0 |
postgresql-14-pgjwt PIGSTY 0.2.0 |
postgresql-13-pgjwt PIGSTY 0.2.0 |
u22 |
x86_64 |
postgresql-17-pgjwt PIGSTY 0.2.0 |
postgresql-16-pgjwt PIGSTY 0.2.0 |
postgresql-15-pgjwt PIGSTY 0.2.0 |
postgresql-14-pgjwt PIGSTY 0.2.0 |
postgresql-13-pgjwt PIGSTY 0.2.0 |
u22 |
aarch64 |
postgresql-17-pgjwt PIGSTY 0.2.0 |
postgresql-16-pgjwt PIGSTY 0.2.0 |
postgresql-15-pgjwt PIGSTY 0.2.0 |
postgresql-14-pgjwt PIGSTY 0.2.0 |
postgresql-13-pgjwt PIGSTY 0.2.0 |
u24 |
x86_64 |
postgresql-17-pgjwt PIGSTY 0.2.0 |
postgresql-16-pgjwt PIGSTY 0.2.0 |
postgresql-15-pgjwt PIGSTY 0.2.0 |
postgresql-14-pgjwt PIGSTY 0.2.0 |
postgresql-13-pgjwt PIGSTY 0.2.0 |
u24 |
aarch64 |
postgresql-17-pgjwt PIGSTY 0.2.0 |
postgresql-16-pgjwt PIGSTY 0.2.0 |
postgresql-15-pgjwt PIGSTY 0.2.0 |
postgresql-14-pgjwt PIGSTY 0.2.0 |
postgresql-13-pgjwt PIGSTY 0.2.0 |
使用 pig
命令行工具安装 pgjwt
扩展:
pig ext install pgjwt
使用 Pigsty剧本 安装 pgjwt 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgjwt"]}' # -l <集群名>
dnf install pgjwt_17;
dnf install pgjwt_16;
dnf install pgjwt_15;
dnf install pgjwt_14;
dnf install pgjwt_13;
apt install postgresql-17-pgjwt;
apt install postgresql-16-pgjwt;
apt install postgresql-15-pgjwt;
apt install postgresql-14-pgjwt;
apt install postgresql-13-pgjwt;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgjwt
扩展:
CREATE EXTENSION pgjwt;
PIGSTY 第三方扩展: pg_smtp_client
: 使用SMTP从PostgreSQL内发送邮件的客户端扩展
pg_smtp_client
pg_smtp_client
UTIL
pgrx
17
,16
,15
,14
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建smtp_client
pg_smtp_client_$v
0.2.0
postgresql-$v-pg-smtp-client
0.2.0
使用 pig
命令行工具安装 pg_smtp_client
扩展:
pig ext install pg_smtp_client
使用 Pigsty剧本 安装 pg_smtp_client 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_smtp_client"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_smtp_client
RPM 包:
dnf install pg_smtp_client_17;
dnf install pg_smtp_client_16;
dnf install pg_smtp_client_15;
dnf install pg_smtp_client_14;
从 APT仓库 手工安装 pg_smtp_client
DEB 包:
apt install postgresql-17-pg-smtp-client;
apt install postgresql-16-pg-smtp-client;
apt install postgresql-15-pg-smtp-client;
apt install postgresql-14-pg-smtp-client;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_smtp_client
扩展:
CREATE EXTENSION pg_smtp_client;
https://github.com/frectonz/pglite-fusion/blob/main/README.md
Connect to postgres and run the following command.
CREATE EXTENSION IF NOT EXISTS pg_smtp_client CASCADE;
Use the smtp_client.send_email()
function to send an email.
Parameter | Type | Description | System Configuration (Optional) |
---|---|---|---|
subject | text | The subject of the email | |
body | text | The body of the email | |
html | boolean | Whether the body is HTML (true) or plain text (false) | |
from_address | text | The from email address | smtp_client.from_address |
recipients | text[] | The email addresses of the recipients | |
ccs | text[] | The email addresses to CCs | |
bccs | text[] | The email addresses to BCCs | |
smtp_server | text | The SMTP server to use | smtp_client.server |
smtp_port | integer | The port of the SMTP server | smtp_client.port |
smtp_tls | boolean | Whether to use TLS | smtp_client.tls |
smtp_username | text | The username for the SMTP server | smtp_client.username |
smtp_password | text | The password for the SMTP server | smtp_client.password |
You can configure the following system-wide default values for some of the parameters (as indiciated in the table above) like this:
ALTER SYSTEM SET smtp_client.server TO 'smtp.example.com';
ALTER SYSTEM SET smtp_client.port TO 587;
ALTER SYSTEM SET smtp_client.tls TO true;
ALTER SYSTEM SET smtp_client.username TO 'MySmtpUsername';
ALTER SYSTEM SET smtp_client.password TO 'MySmtpPassword';
ALTER SYSTEM SET smtp_client.from_address TO 'from@example.com';
SELECT pg_reload_conf();
Send an email:
SELECT smtp_client.send_email('test subject', 'test body', false, 'from@example.com', array['to@example.com'], null, null, 'smtp.example.com', 587, true, 'username', 'password');
Send an email using configured default values:
SELECT smtp_client.send_email('test subject', 'test body', false, null, array['to@example.com']);
Or, using named arguments:
SELECT smtp_client.send_email('test subject', 'test body', recipients => array['to@example.com']);
PIGSTY 第三方扩展: pg_html5_email_address
: 验证Email是否符合HTML5规范的扩展
pg_html5_email_address
pg_html5_email_address
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_html5_email_address_$v
1.2.3
postgresql-$v-pg-html5-email-address
1.2.3
使用 pig
命令行工具安装 pg_html5_email_address
扩展:
pig ext install pg_html5_email_address
使用 Pigsty剧本 安装 pg_html5_email_address 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_html5_email_address"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_html5_email_address
RPM 包:
dnf install pg_html5_email_address_17;
dnf install pg_html5_email_address_16;
dnf install pg_html5_email_address_15;
dnf install pg_html5_email_address_14;
dnf install pg_html5_email_address_13;
从 APT仓库 手工安装 pg_html5_email_address
DEB 包:
apt install postgresql-17-pg-html5-email-address;
apt install postgresql-16-pg-html5-email-address;
apt install postgresql-15-pg-html5-email-address;
apt install postgresql-14-pg-html5-email-address;
apt install postgresql-13-pg-html5-email-address;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_html5_email_address
扩展:
CREATE EXTENSION pg_html5_email_address;
PIGSTY 第三方扩展: url_encode
: 提供URL编码解码函数
url_encode
url_encode
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLurl_encode_$v*
1.2.5
postgresql-$v-url-encode
1.2.5
使用 pig
命令行工具安装 url_encode
扩展:
pig ext install url_encode
使用 Pigsty剧本 安装 url_encode 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["url_encode"]}' # -l <集群名>
从 YUM仓库 手工安装 url_encode
RPM 包:
dnf install url_encode_17*;
dnf install url_encode_16*;
dnf install url_encode_15*;
dnf install url_encode_14*;
dnf install url_encode_13*;
从 APT仓库 手工安装 url_encode
DEB 包:
apt install postgresql-17-url-encode;
apt install postgresql-16-url-encode;
apt install postgresql-15-url-encode;
apt install postgresql-14-url-encode;
apt install postgresql-13-url-encode;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 url_encode
扩展:
CREATE EXTENSION url_encode;
MIXED 第三方扩展: pgsql_tweaks
: 一些日常会用到的便利函数与视图
pgsql_tweaks
pgsql_tweaks
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgsql_tweaks_$v
0.11.0
postgresql-$v-pgsql-tweaks
0.11.1
使用 pig
命令行工具安装 pgsql_tweaks
扩展:
pig ext install pgsql_tweaks
使用 Pigsty剧本 安装 pgsql_tweaks 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgsql_tweaks"]}' # -l <集群名>
从 YUM仓库 手工安装 pgsql_tweaks
RPM 包:
dnf install pgsql_tweaks_17;
dnf install pgsql_tweaks_16;
dnf install pgsql_tweaks_15;
dnf install pgsql_tweaks_14;
dnf install pgsql_tweaks_13;
从 APT仓库 手工安装 pgsql_tweaks
DEB 包:
apt install postgresql-17-pgsql-tweaks;
apt install postgresql-16-pgsql-tweaks;
apt install postgresql-15-pgsql-tweaks;
apt install postgresql-14-pgsql-tweaks;
apt install postgresql-13-pgsql-tweaks;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgsql_tweaks
扩展:
CREATE EXTENSION pgsql_tweaks;
MIXED 第三方扩展: pg_extra_time
: 一些关于日期与时间的扩展函数
pg_extra_time
pg_extra_time
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建pg_extra_time_$v
2.0.0
postgresql-$v-pg-extra-time
2.0.0
使用 pig
命令行工具安装 pg_extra_time
扩展:
pig ext install pg_extra_time
使用 Pigsty剧本 安装 pg_extra_time 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_extra_time"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_extra_time
RPM 包:
dnf install pg_extra_time_17;
dnf install pg_extra_time_16;
dnf install pg_extra_time_15;
dnf install pg_extra_time_14;
dnf install pg_extra_time_13;
从 APT仓库 手工安装 pg_extra_time
DEB 包:
apt install postgresql-17-pg-extra-time;
apt install postgresql-16-pg-extra-time;
apt install postgresql-15-pg-extra-time;
apt install postgresql-14-pg-extra-time;
apt install postgresql-13-pg-extra-time;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_extra_time
扩展:
CREATE EXTENSION pg_extra_time;
MIXED 第三方扩展: pgpcre
: PCRE/Perl风格的正则表达式支持
pgpcre
pgpcre
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgpcre_$v
1
postgresql-$v-pgpcre
1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pgpcre_17 PIGSTY 1 |
pgpcre_16 PIGSTY 1 |
pgpcre_15 PIGSTY 1 |
pgpcre_14 PIGSTY 1 |
pgpcre_13 PIGSTY 1 |
el8 |
aarch64 |
pgpcre_17 PIGSTY 1 |
pgpcre_16 PIGSTY 1 |
pgpcre_15 PIGSTY 1 |
pgpcre_14 PIGSTY 1 |
pgpcre_13 PIGSTY 1 |
el9 |
x86_64 |
pgpcre_17 PIGSTY 1 |
pgpcre_16 PIGSTY 1 |
pgpcre_15 PIGSTY 1 |
pgpcre_14 PIGSTY 1 |
pgpcre_13 PIGSTY 1 |
el9 |
aarch64 |
pgpcre_17 PIGSTY 1 |
pgpcre_16 PIGSTY 1 |
pgpcre_15 PIGSTY 1 |
pgpcre_14 PIGSTY 1 |
pgpcre_13 PIGSTY 1 |
d12 |
x86_64 |
postgresql-17-pgpcre PGDG 0.20190509 |
postgresql-16-pgpcre PGDG 0.20190509 |
postgresql-15-pgpcre PGDG 0.20190509 |
postgresql-14-pgpcre PGDG 0.20190509 |
postgresql-13-pgpcre PGDG 0.20190509 |
d12 |
aarch64 |
postgresql-17-pgpcre PGDG 0.20190509 |
postgresql-16-pgpcre PGDG 0.20190509 |
postgresql-15-pgpcre PGDG 0.20190509 |
postgresql-14-pgpcre PGDG 0.20190509 |
postgresql-13-pgpcre PGDG 0.20190509 |
u22 |
x86_64 |
postgresql-17-pgpcre PGDG 0.20190509 |
postgresql-16-pgpcre PGDG 0.20190509 |
postgresql-15-pgpcre PGDG 0.20190509 |
postgresql-14-pgpcre PGDG 0.20190509 |
postgresql-13-pgpcre PGDG 0.20190509 |
u22 |
aarch64 |
postgresql-17-pgpcre PGDG 0.20190509 |
postgresql-16-pgpcre PGDG 0.20190509 |
postgresql-15-pgpcre PGDG 0.20190509 |
postgresql-14-pgpcre PGDG 0.20190509 |
postgresql-13-pgpcre PGDG 0.20190509 |
u24 |
x86_64 |
postgresql-17-pgpcre PGDG 0.20190509 |
postgresql-16-pgpcre PGDG 0.20190509 |
postgresql-15-pgpcre PGDG 0.20190509 |
postgresql-14-pgpcre PGDG 0.20190509 |
postgresql-13-pgpcre PGDG 0.20190509 |
u24 |
aarch64 |
postgresql-17-pgpcre PGDG 0.20190509 |
postgresql-16-pgpcre PGDG 0.20190509 |
postgresql-15-pgpcre PGDG 0.20190509 |
postgresql-14-pgpcre PGDG 0.20190509 |
postgresql-13-pgpcre PGDG 0.20190509 |
使用 pig
命令行工具安装 pgpcre
扩展:
pig ext install pgpcre
使用 Pigsty剧本 安装 pgpcre 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgpcre"]}' # -l <集群名>
dnf install pgpcre_17;
dnf install pgpcre_16;
dnf install pgpcre_15;
dnf install pgpcre_14;
dnf install pgpcre_13;
apt install postgresql-17-pgpcre;
apt install postgresql-16-pgpcre;
apt install postgresql-15-pgpcre;
apt install postgresql-14-pgpcre;
apt install postgresql-13-pgpcre;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgpcre
扩展:
CREATE EXTENSION pgpcre;
MIXED 第三方扩展: icu_ext
: 访问ICU库提供的函数
icu_ext
icu_ext
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLicu_ext_$v*
1.9.0
postgresql-$v-icu-ext
1.9.0
使用 pig
命令行工具安装 icu_ext
扩展:
pig ext install icu_ext
使用 Pigsty剧本 安装 icu_ext 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["icu_ext"]}' # -l <集群名>
dnf install icu_ext_17*;
dnf install icu_ext_16*;
dnf install icu_ext_15*;
dnf install icu_ext_14*;
dnf install icu_ext_13*;
apt install postgresql-17-icu-ext;
apt install postgresql-16-icu-ext;
apt install postgresql-15-icu-ext;
apt install postgresql-14-icu-ext;
apt install postgresql-13-icu-ext;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 icu_ext
扩展:
CREATE EXTENSION icu_ext;
PIGSTY 第三方扩展: pgqr
: 从数据库中直接生成QR二维码
pgqr
pgqr
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgqr_$v*
1.0
postgresql-$v-pgqr
1.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pgqr_17 PIGSTY 1.0 |
pgqr_16 PIGSTY 1.0 |
pgqr_15 PIGSTY 1.0 |
pgqr_14 PIGSTY 1.0 |
pgqr_13 PIGSTY 1.0 |
el8 |
aarch64 |
pgqr_17 PIGSTY 1.0 |
pgqr_16 PIGSTY 1.0 |
pgqr_15 PIGSTY 1.0 |
pgqr_14 PIGSTY 1.0 |
pgqr_13 PIGSTY 1.0 |
el9 |
x86_64 |
pgqr_17 PIGSTY 1.0 |
pgqr_16 PIGSTY 1.0 |
pgqr_15 PIGSTY 1.0 |
pgqr_14 PIGSTY 1.0 |
pgqr_13 PIGSTY 1.0 |
el9 |
aarch64 |
pgqr_17 PIGSTY 1.0 |
pgqr_16 PIGSTY 1.0 |
pgqr_15 PIGSTY 1.0 |
pgqr_14 PIGSTY 1.0 |
pgqr_13 PIGSTY 1.0 |
d12 |
x86_64 |
postgresql-17-pgqr PIGSTY 1.0 |
postgresql-16-pgqr PIGSTY 1.0 |
postgresql-15-pgqr PIGSTY 1.0 |
postgresql-14-pgqr PIGSTY 1.0 |
postgresql-13-pgqr PIGSTY 1.0 |
d12 |
aarch64 |
postgresql-17-pgqr PIGSTY 1.0 |
postgresql-16-pgqr PIGSTY 1.0 |
postgresql-15-pgqr PIGSTY 1.0 |
postgresql-14-pgqr PIGSTY 1.0 |
postgresql-13-pgqr PIGSTY 1.0 |
u22 |
x86_64 |
postgresql-17-pgqr PIGSTY 1.0 |
postgresql-16-pgqr PIGSTY 1.0 |
postgresql-15-pgqr PIGSTY 1.0 |
postgresql-14-pgqr PIGSTY 1.0 |
postgresql-13-pgqr PIGSTY 1.0 |
u22 |
aarch64 |
postgresql-17-pgqr PIGSTY 1.0 |
postgresql-16-pgqr PIGSTY 1.0 |
postgresql-15-pgqr PIGSTY 1.0 |
postgresql-14-pgqr PIGSTY 1.0 |
postgresql-13-pgqr PIGSTY 1.0 |
u24 |
x86_64 |
postgresql-17-pgqr PIGSTY 1.0 |
postgresql-16-pgqr PIGSTY 1.0 |
postgresql-15-pgqr PIGSTY 1.0 |
postgresql-14-pgqr PIGSTY 1.0 |
postgresql-13-pgqr PIGSTY 1.0 |
u24 |
aarch64 |
postgresql-17-pgqr PIGSTY 1.0 |
postgresql-16-pgqr PIGSTY 1.0 |
postgresql-15-pgqr PIGSTY 1.0 |
postgresql-14-pgqr PIGSTY 1.0 |
postgresql-13-pgqr PIGSTY 1.0 |
使用 pig
命令行工具安装 pgqr
扩展:
pig ext install pgqr
使用 Pigsty剧本 安装 pgqr 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgqr"]}' # -l <集群名>
dnf install pgqr_17*;
dnf install pgqr_16*;
dnf install pgqr_15*;
dnf install pgqr_14*;
dnf install pgqr_13*;
apt install postgresql-17-pgqr;
apt install postgresql-16-pgqr;
apt install postgresql-15-pgqr;
apt install postgresql-14-pgqr;
apt install postgresql-13-pgqr;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgqr
扩展:
CREATE EXTENSION pgqr;
PIGSTY 第三方扩展: pg_protobuf
: 提供Protobuf函数支持
pg_protobuf
pg_protobuf
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_protobuf_$v
1.0
postgresql-$v-pg-protobuf
1.0
使用 pig
命令行工具安装 pg_protobuf
扩展:
pig ext install pg_protobuf
使用 Pigsty剧本 安装 pg_protobuf 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_protobuf"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_protobuf
RPM 包:
dnf install pg_protobuf_17;
dnf install pg_protobuf_16;
dnf install pg_protobuf_15;
dnf install pg_protobuf_14;
dnf install pg_protobuf_13;
从 APT仓库 手工安装 pg_protobuf
DEB 包:
apt install postgresql-17-pg-protobuf;
apt install postgresql-16-pg-protobuf;
apt install postgresql-15-pg-protobuf;
apt install postgresql-14-pg-protobuf;
apt install postgresql-13-pg-protobuf;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_protobuf
扩展:
CREATE EXTENSION pg_protobuf;
PIGSTY 第三方扩展: envvar
: 获取环境变量的函数
envvar
envvar
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_envvar_$v*
1.0.0
postgresql-$v-pg-envvar
1.0.0
使用 pig
命令行工具安装 envvar
扩展:
pig ext install envvar
使用 Pigsty剧本 安装 envvar 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["envvar"]}' # -l <集群名>
dnf install pg_envvar_17*;
dnf install pg_envvar_16*;
dnf install pg_envvar_15*;
dnf install pg_envvar_14*;
dnf install pg_envvar_13*;
apt install postgresql-17-pg-envvar;
apt install postgresql-16-pg-envvar;
apt install postgresql-15-pg-envvar;
apt install postgresql-14-pg-envvar;
apt install postgresql-13-pg-envvar;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 envvar
扩展:
CREATE EXTENSION envvar;
PIGSTY 第三方扩展: floatfile
: 将浮点数组存储到文件中而不是堆表中
floatfile
floatfile
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLfloatfile_$v*
1.3.1
postgresql-$v-floatfile
1.3.1
使用 pig
命令行工具安装 floatfile
扩展:
pig ext install floatfile
使用 Pigsty剧本 安装 floatfile 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["floatfile"]}' # -l <集群名>
dnf install floatfile_17*;
dnf install floatfile_16*;
dnf install floatfile_15*;
dnf install floatfile_14*;
dnf install floatfile_13*;
apt install postgresql-17-floatfile;
apt install postgresql-16-floatfile;
apt install postgresql-15-floatfile;
apt install postgresql-14-floatfile;
apt install postgresql-13-floatfile;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 floatfile
扩展:
CREATE EXTENSION floatfile;
MIXED 第三方扩展: pg_readme
: 为模式与扩展生成Markdown文档
pg_readme
pg_readme
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建hstore
pg_readme_$v
0.7.0
postgresql-$v-pg-readme
0.7.0
使用 pig
命令行工具安装 pg_readme
扩展:
pig ext install pg_readme
使用 Pigsty剧本 安装 pg_readme 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_readme"]}' # -l <集群名>
dnf install pg_readme_17;
dnf install pg_readme_16;
dnf install pg_readme_15;
dnf install pg_readme_14;
dnf install pg_readme_13;
apt install postgresql-17-pg-readme;
apt install postgresql-16-pg-readme;
apt install postgresql-15-pg-readme;
apt install postgresql-14-pg-readme;
apt install postgresql-13-pg-readme;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_readme
扩展:
CREATE EXTENSION pg_readme CASCADE;
PIGSTY 第三方扩展: ddl_historization
: 用SQL将所有DDL变更写入到数据库表中
ddl_historization
ddl_historization
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLplpgsql
ddl_historization_$v
0.0.7
postgresql-$v-ddl-historization
0.0.7
使用 pig
命令行工具安装 ddl_historization
扩展:
pig ext install ddl_historization
使用 Pigsty剧本 安装 ddl_historization 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["ddl_historization"]}' # -l <集群名>
从 YUM仓库 手工安装 ddl_historization
RPM 包:
dnf install ddl_historization_17;
dnf install ddl_historization_16;
dnf install ddl_historization_15;
dnf install ddl_historization_14;
dnf install ddl_historization_13;
从 APT仓库 手工安装 ddl_historization
DEB 包:
apt install postgresql-17-ddl-historization;
apt install postgresql-16-ddl-historization;
apt install postgresql-15-ddl-historization;
apt install postgresql-14-ddl-historization;
apt install postgresql-13-ddl-historization;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 ddl_historization
扩展:
CREATE EXTENSION ddl_historization CASCADE;
PIGSTY 第三方扩展: data_historization
: 用SQL将数据变更历史保存到分区表中
data_historization
data_historization
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建plpgsql
data_historization_$v
1.1.0
postgresql-$v-data-historization
1.1.0
使用 pig
命令行工具安装 data_historization
扩展:
pig ext install data_historization
使用 Pigsty剧本 安装 data_historization 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["data_historization"]}' # -l <集群名>
从 YUM仓库 手工安装 data_historization
RPM 包:
dnf install data_historization_17;
dnf install data_historization_16;
dnf install data_historization_15;
dnf install data_historization_14;
dnf install data_historization_13;
从 APT仓库 手工安装 data_historization
DEB 包:
apt install postgresql-17-data-historization;
apt install postgresql-16-data-historization;
apt install postgresql-15-data-historization;
apt install postgresql-14-data-historization;
apt install postgresql-13-data-historization;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 data_historization
扩展:
CREATE EXTENSION data_historization CASCADE;
PIGSTY 第三方扩展: pg_schedoc
: 在Django与DBT之间通过注释文档交换元数据
schedoc
pg_schedoc
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLddl_historization
pg_schedoc_$v
0.0.1
ddl_historization_$v
postgresql-$v-pg-schedoc
0.0.1
postgresql-$v-ddl-historization
使用 pig
命令行工具安装 pg_schedoc
扩展:
pig ext install pg_schedoc; # 扩展名称
pig ext install schedoc; # 标准包名
使用 Pigsty剧本 安装 pg_schedoc 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_schedoc"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_schedoc
RPM 包:
dnf install pg_schedoc_17;
dnf install pg_schedoc_16;
dnf install pg_schedoc_15;
dnf install pg_schedoc_14;
dnf install pg_schedoc_13;
从 APT仓库 手工安装 pg_schedoc
DEB 包:
apt install postgresql-17-pg-schedoc;
apt install postgresql-16-pg-schedoc;
apt install postgresql-15-pg-schedoc;
apt install postgresql-14-pg-schedoc;
apt install postgresql-13-pg-schedoc;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 schedoc
扩展:
CREATE EXTENSION schedoc CASCADE;
PIGSTY 第三方扩展: pg_hashlib
: 稳定哈希函数包
hashlib
pg_hashlib
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建pg_hashlib_$v
1.1
postgresql-$v-pg-hashlib
1.1
使用 pig
命令行工具安装 pg_hashlib
扩展:
pig ext install pg_hashlib; # 扩展名称
pig ext install hashlib; # 标准包名
使用 Pigsty剧本 安装 pg_hashlib 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_hashlib"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_hashlib
RPM 包:
dnf install pg_hashlib_17;
dnf install pg_hashlib_16;
dnf install pg_hashlib_15;
dnf install pg_hashlib_14;
dnf install pg_hashlib_13;
从 APT仓库 手工安装 pg_hashlib
DEB 包:
apt install postgresql-17-pg-hashlib;
apt install postgresql-16-pg-hashlib;
apt install postgresql-15-pg-hashlib;
apt install postgresql-14-pg-hashlib;
apt install postgresql-13-pg-hashlib;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hashlib
扩展:
CREATE EXTENSION hashlib;
PIGSTY 第三方扩展: pg_xxhash
: xxhash哈希函数包
xxhash
pg_xxhash
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建pg_xxhash_$v*
0.0.1
postgresql-$v-pg-xxhash
0.0.1
使用 pig
命令行工具安装 pg_xxhash
扩展:
pig ext install pg_xxhash; # 扩展名称
pig ext install xxhash; # 标准包名
使用 Pigsty剧本 安装 pg_xxhash 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_xxhash"]}' # -l <集群名>
dnf install pg_xxhash_17*;
dnf install pg_xxhash_16*;
dnf install pg_xxhash_15*;
dnf install pg_xxhash_14*;
dnf install pg_xxhash_13*;
apt install postgresql-17-pg-xxhash;
apt install postgresql-16-pg-xxhash;
apt install postgresql-15-pg-xxhash;
apt install postgresql-14-pg-xxhash;
apt install postgresql-13-pg-xxhash;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 xxhash
扩展:
CREATE EXTENSION xxhash;
PIGSTY 第三方扩展: shacrypt
: 实现SHA256-CRYPT与SHA512-CRYPT密钥加密算法
shacrypt
shacrypt
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpostgres_shacrypt_$v*
1.1
postgresql-$v-shacrypt
1.1
使用 pig
命令行工具安装 shacrypt
扩展:
pig ext install shacrypt
使用 Pigsty剧本 安装 shacrypt 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["shacrypt"]}' # -l <集群名>
dnf install postgres_shacrypt_17*;
dnf install postgres_shacrypt_16*;
dnf install postgres_shacrypt_15*;
dnf install postgres_shacrypt_14*;
dnf install postgres_shacrypt_13*;
apt install postgresql-17-shacrypt;
apt install postgresql-16-shacrypt;
apt install postgresql-15-shacrypt;
apt install postgresql-14-shacrypt;
apt install postgresql-13-shacrypt;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 shacrypt
扩展:
CREATE EXTENSION shacrypt;
PIGSTY 第三方扩展: cryptint
: 加密INT与BIGINT类型
cryptint
cryptint
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLcryptint_$v*
1.0.0
postgresql-$v-cryptint
1.0.0
使用 pig
命令行工具安装 cryptint
扩展:
pig ext install cryptint
使用 Pigsty剧本 安装 cryptint 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["cryptint"]}' # -l <集群名>
dnf install cryptint_17*;
dnf install cryptint_16*;
dnf install cryptint_15*;
dnf install cryptint_14*;
dnf install cryptint_13*;
apt install postgresql-17-cryptint;
apt install postgresql-16-cryptint;
apt install postgresql-15-cryptint;
apt install postgresql-14-cryptint;
apt install postgresql-13-cryptint;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 cryptint
扩展:
CREATE EXTENSION cryptint;
PIGSTY 第三方扩展: pg_ecdsa
: PostgreSQL的uECC绑定,椭圆曲线加解密函数包
pguecc
pg_ecdsa
UTIL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_ecdsa_$v*
1.0
postgresql-$v-pg-ecdsa
1.0
使用 pig
命令行工具安装 pg_ecdsa
扩展:
pig ext install pg_ecdsa; # 扩展名称
pig ext install pguecc; # 标准包名
使用 Pigsty剧本 安装 pg_ecdsa 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_ecdsa"]}' # -l <集群名>
dnf install pg_ecdsa_17*;
dnf install pg_ecdsa_16*;
dnf install pg_ecdsa_15*;
dnf install pg_ecdsa_14*;
dnf install pg_ecdsa_13*;
apt install postgresql-17-pg-ecdsa;
apt install postgresql-16-pg-ecdsa;
apt install postgresql-15-pg-ecdsa;
apt install postgresql-14-pg-ecdsa;
apt install postgresql-13-pg-ecdsa;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pguecc
扩展:
CREATE EXTENSION pguecc;
PIGSTY 第三方扩展: pgsparql
: 使用SQL查询SPARQL数据源
sparql
pgsparql
UTIL
supabase
17
,16
,15
,14
,13
CREATE EXTENSION
DDLsparql
plperl
, plperlu
pgsparql_$v
1.0
postgresql-$v-pgsparql
1.0
使用 pig
命令行工具安装 pgsparql
扩展:
pig ext install pgsparql; # 扩展名称
pig ext install sparql; # 标准包名
使用 Pigsty剧本 安装 pgsparql 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgsparql"]}' # -l <集群名>
dnf install pgsparql_17;
dnf install pgsparql_16;
dnf install pgsparql_15;
dnf install pgsparql_14;
dnf install pgsparql_13;
apt install postgresql-17-pgsparql;
apt install postgresql-16-pgsparql;
apt install postgresql-15-pgsparql;
apt install postgresql-14-pgsparql;
apt install postgresql-13-pgsparql;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 sparql
扩展:
CREATE EXTENSION sparql CASCADE;
FUNC 类目共有 41 个可用扩展:
扩展名(详情) | 标准名(官网) | 仓库 | 版本 | 类目 | 许可证 | LOAD |
DDL |
TRUST |
RELOC |
简介 |
---|---|---|---|---|---|---|---|---|---|---|
pg_idkit | pg_idkit |
PIGSTY | 0.2.4 | FUNC |
Apache-2.0 | 生成各式各样的唯一标识符:UUIDv6, ULID, KSUID | ||||
pg_uuidv7 | pg_uuidv7 |
MIXED | 1.6.0 | FUNC |
MPLv2 | UUIDv7 支持 | ||||
permuteseq | permuteseq |
PIGSTY | 1.2.2 | FUNC |
PostgreSQL | 伪随机数ID置换生成器 | ||||
pg_hashids | pg_hashids |
PIGSTY | 1.3 | FUNC |
MIT | 加盐将整型ID转为短字符串ID | ||||
sequential_uuids | sequential_uuids |
MIXED | 1.0.3 | FUNC |
MIT | 生成连续生成的UUID | ||||
topn | topn |
PGDG | 2.7.0 | FUNC |
AGPLv3 | top-n JSONB 的类型 | ||||
quantile | quantile |
PIGSTY | 1.1.8 | FUNC |
BSD 2 | Quantile聚合函数 | ||||
lower_quantile | lower_quantile |
PIGSTY | 1.0.3 | FUNC |
BSD 2 | Lower Quantile 聚合函数 | ||||
count_distinct | count_distinct |
MIXED | 3.0.2 | FUNC |
BSD 2 | COUNT(DISTINCT …) 聚合的替代方案 | ||||
omnisketch | omnisketch |
PIGSTY | 1.0.2 | FUNC |
PostgreSQL | 实现OmniSketch数据结构,实现近似摘要聚合 | ||||
ddsketch | ddsketch |
PIGSTY | 1.0.1 | FUNC |
PostgreSQL | 实现DDSketch数据结构,实现在线的Quantile聚合 | ||||
vasco | vasco |
PIGSTY | 0.1.0 | FUNC |
GPLv3 | 使用MIC发现数据中隐含的关联 | ||||
xicor | pgxicor |
PIGSTY | 0.1.0 | FUNC |
GPLv3 | 在PG中计算XI相关系数 | ||||
tdigest | tdigest |
PGDG | 1.4.3 | FUNC |
Apache-2.0 | tdigest 聚合函数 | ||||
first_last_agg | first_last_agg |
MIXED | 0.1.4 | FUNC |
PostgreSQL | first() 与 last() 聚合函数 | ||||
extra_window_functions | extra_window_functions |
PGDG | 1.0 | FUNC |
PostgreSQL | 额外的窗口函数 | ||||
floatvec | floatvec |
PIGSTY | 1.1.1 | FUNC |
MIT | 数组类型数学运算扩展 | ||||
aggs_for_vecs | aggs_for_vecs |
PIGSTY | 1.3.2 | FUNC |
MIT | 针对数组类型的聚合函数集合扩展 | ||||
aggs_for_arrays | aggs_for_arrays |
PIGSTY | 1.3.3 | FUNC |
MIT | 计算数组聚合统计值的函数包 | ||||
arraymath | pg_arraymath |
PIGSTY | 1.1 | FUNC |
MIT | 数组逐元素数学运算符包 | ||||
pg_math | pg_math |
PIGSTY | 1.0 | FUNC |
GPLv3 | 使用GSL库的数学统计函数 | ||||
random | pg_random |
PIGSTY | 2.0.0 | FUNC |
PostgreSQL | 随机数生成器 | ||||
base36 | pg_base36 |
PIGSTY | 1.0.0 | FUNC |
MIT | Base36编码解码扩展 | ||||
base62 | pg_base62 |
PIGSTY | 0.0.1 | FUNC |
MIT | Base62编码解码扩展 | ||||
pg_base58 | pg_base58 |
PIGSTY | 0.0.1 | FUNC |
MIT | Base58 编码/解码函数 | ||||
financial | pg_financial |
PIGSTY | 1.0.1 | FUNC |
PostgreSQL | 金融领域聚合函数 | ||||
refint | refint |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 实现引用完整性的函数 | ||||
autoinc | autoinc |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 用于自动递增字段的函数 | ||||
insert_username | insert_username |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 用于跟踪谁更改了表的函数 | ||||
moddatetime | moddatetime |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 跟踪最后修改时间 | ||||
tsm_system_time | tsm_system_time |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 接受毫秒数限制的 TABLESAMPLE 方法 | ||||
dict_xsyn | dict_xsyn |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 用于扩展同义词处理的文本搜索字典模板 | ||||
tsm_system_rows | tsm_system_rows |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 接受行数限制的 TABLESAMPLE 方法 | ||||
tcn | tcn |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 用触发器通知变更 | ||||
uuid-ossp | uuid-ossp |
CONTRIB | 1.1 | FUNC |
PostgreSQL | 生成通用唯一标识符(UUIDs) | ||||
btree_gist | btree_gist |
CONTRIB | 1.7 | FUNC |
PostgreSQL | 用GiST索引常见数据类型 | ||||
btree_gin | btree_gin |
CONTRIB | 1.3 | FUNC |
PostgreSQL | 用GIN索引常见数据类型 | ||||
intarray | intarray |
CONTRIB | 1.5 | FUNC |
PostgreSQL | 1维整数数组的额外函数、运算符和索引支持 | ||||
intagg | intagg |
CONTRIB | 1.1 | FUNC |
PostgreSQL | 整数聚合器和枚举器(过时) | ||||
dict_int | dict_int |
CONTRIB | 1.0 | FUNC |
PostgreSQL | 用于整数的文本搜索字典模板 | ||||
unaccent | unaccent |
CONTRIB | 1.1 | FUNC |
PostgreSQL | 删除重音的文本搜索字典 |
PIGSTY 第三方扩展: pg_idkit
: 生成各式各样的唯一标识符:UUIDv6, ULID, KSUID
pg_idkit
pg_idkit
FUNC
pgrx
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_idkit_$v
0.2.4
postgresql-$v-pg-idkit
0.2.4
使用 pig
命令行工具安装 pg_idkit
扩展:
pig ext install pg_idkit
使用 Pigsty剧本 安装 pg_idkit 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_idkit"]}' # -l <集群名>
dnf install pg_idkit_17;
dnf install pg_idkit_16;
dnf install pg_idkit_15;
dnf install pg_idkit_14;
dnf install pg_idkit_13;
apt install postgresql-17-pg-idkit;
apt install postgresql-16-pg-idkit;
apt install postgresql-15-pg-idkit;
apt install postgresql-14-pg-idkit;
apt install postgresql-13-pg-idkit;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_idkit
扩展:
CREATE EXTENSION pg_idkit;
MIXED 第三方扩展: pg_uuidv7
: UUIDv7 支持
pg_uuidv7
pg_uuidv7
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_uuidv7_$v*
1.6.0
postgresql-$v-pg-uuidv7
1.6.0
使用 pig
命令行工具安装 pg_uuidv7
扩展:
pig ext install pg_uuidv7
使用 Pigsty剧本 安装 pg_uuidv7 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_uuidv7"]}' # -l <集群名>
dnf install pg_uuidv7_17*;
dnf install pg_uuidv7_16*;
dnf install pg_uuidv7_15*;
dnf install pg_uuidv7_14*;
dnf install pg_uuidv7_13*;
apt install postgresql-17-pg-uuidv7;
apt install postgresql-16-pg-uuidv7;
apt install postgresql-15-pg-uuidv7;
apt install postgresql-14-pg-uuidv7;
apt install postgresql-13-pg-uuidv7;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_uuidv7
扩展:
CREATE EXTENSION pg_uuidv7;
PIGSTY 第三方扩展: permuteseq
: 伪随机数ID置换生成器
permuteseq
permuteseq
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpermuteseq_$v*
1.2.2
postgresql-$v-permuteseq
1.2.2
使用 pig
命令行工具安装 permuteseq
扩展:
pig ext install permuteseq
使用 Pigsty剧本 安装 permuteseq 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["permuteseq"]}' # -l <集群名>
从 YUM仓库 手工安装 permuteseq
RPM 包:
dnf install permuteseq_17*;
dnf install permuteseq_16*;
dnf install permuteseq_15*;
dnf install permuteseq_14*;
dnf install permuteseq_13*;
从 APT仓库 手工安装 permuteseq
DEB 包:
apt install postgresql-17-permuteseq;
apt install postgresql-16-permuteseq;
apt install postgresql-15-permuteseq;
apt install postgresql-14-permuteseq;
apt install postgresql-13-permuteseq;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 permuteseq
扩展:
CREATE EXTENSION permuteseq;
PIGSTY 第三方扩展: pg_hashids
: 加盐将整型ID转为短字符串ID
pg_hashids
pg_hashids
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_hashids_$v*
1.3
postgresql-$v-pg-hashids
1.3
使用 pig
命令行工具安装 pg_hashids
扩展:
pig ext install pg_hashids
使用 Pigsty剧本 安装 pg_hashids 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_hashids"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_hashids
RPM 包:
dnf install pg_hashids_17*;
dnf install pg_hashids_16*;
dnf install pg_hashids_15*;
dnf install pg_hashids_14*;
dnf install pg_hashids_13*;
从 APT仓库 手工安装 pg_hashids
DEB 包:
apt install postgresql-17-pg-hashids;
apt install postgresql-16-pg-hashids;
apt install postgresql-15-pg-hashids;
apt install postgresql-14-pg-hashids;
apt install postgresql-13-pg-hashids;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_hashids
扩展:
CREATE EXTENSION pg_hashids;
MIXED 第三方扩展: sequential_uuids
: 生成连续生成的UUID
sequential_uuids
sequential_uuids
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLsequential_uuids_$v
1.0.3
postgresql-$v-sequential-uuids
1.0.3
使用 pig
命令行工具安装 sequential_uuids
扩展:
pig ext install sequential_uuids
使用 Pigsty剧本 安装 sequential_uuids 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["sequential_uuids"]}' # -l <集群名>
从 YUM仓库 手工安装 sequential_uuids
RPM 包:
dnf install sequential_uuids_17;
dnf install sequential_uuids_16;
dnf install sequential_uuids_15;
dnf install sequential_uuids_14;
dnf install sequential_uuids_13;
从 APT仓库 手工安装 sequential_uuids
DEB 包:
apt install postgresql-17-sequential-uuids;
apt install postgresql-16-sequential-uuids;
apt install postgresql-15-sequential-uuids;
apt install postgresql-14-sequential-uuids;
apt install postgresql-13-sequential-uuids;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 sequential_uuids
扩展:
CREATE EXTENSION sequential_uuids;
PGDG 第三方扩展: topn
: top-n JSONB 的类型
topn
topn
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLtopn_$v*
2.7.0
postgresql-$v-topn
2.7.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
topn_17 PGDG 2.7.0 |
topn_16 PGDG 2.7.0 |
topn_15 PGDG 2.7.0 |
topn_14 PGDG 2.7.0 |
topn_13 PGDG 2.7.0 |
el8 |
aarch64 |
topn_17 PGDG 2.7.0 |
topn_16 PGDG 2.7.0 |
topn_15 PGDG 2.7.0 |
topn_14 PGDG 2.7.0 |
topn_13 PGDG 2.7.0 |
el9 |
x86_64 |
topn_17 PGDG 2.7.0 |
topn_16 PGDG 2.7.0 |
topn_15 PGDG 2.7.0 |
topn_14 PGDG 2.7.0 |
topn_13 PGDG 2.7.0 |
el9 |
aarch64 |
topn_17 PGDG 2.7.0 |
topn_16 PGDG 2.7.0 |
topn_15 PGDG 2.7.0 |
topn_14 PGDG 2.7.0 |
topn_13 PGDG 2.7.0 |
d12 |
x86_64 |
postgresql-17-topn PIGSTY 2.7.0 |
postgresql-16-topn PIGSTY 2.7.0 |
postgresql-15-topn PIGSTY 2.7.0 |
postgresql-14-topn PIGSTY 2.7.0 |
postgresql-13-topn PIGSTY 2.7.0 |
d12 |
aarch64 |
postgresql-17-topn PIGSTY 2.7.0 |
postgresql-16-topn PIGSTY 2.7.0 |
postgresql-15-topn PIGSTY 2.7.0 |
postgresql-14-topn PIGSTY 2.7.0 |
postgresql-13-topn PIGSTY 2.7.0 |
u22 |
x86_64 |
postgresql-17-topn PIGSTY 2.7.0 |
postgresql-16-topn PIGSTY 2.7.0 |
postgresql-15-topn PIGSTY 2.7.0 |
postgresql-14-topn PIGSTY 2.7.0 |
postgresql-13-topn PIGSTY 2.7.0 |
u22 |
aarch64 |
postgresql-17-topn PIGSTY 2.7.0 |
postgresql-16-topn PIGSTY 2.7.0 |
postgresql-15-topn PIGSTY 2.7.0 |
postgresql-14-topn PIGSTY 2.7.0 |
postgresql-13-topn PIGSTY 2.7.0 |
u24 |
x86_64 |
postgresql-17-topn PIGSTY 2.7.0 |
postgresql-16-topn PIGSTY 2.7.0 |
postgresql-15-topn PIGSTY 2.7.0 |
postgresql-14-topn PIGSTY 2.7.0 |
postgresql-13-topn PIGSTY 2.7.0 |
u24 |
aarch64 |
postgresql-17-topn PIGSTY 2.7.0 |
postgresql-16-topn PIGSTY 2.7.0 |
postgresql-15-topn PIGSTY 2.7.0 |
postgresql-14-topn PIGSTY 2.7.0 |
postgresql-13-topn PIGSTY 2.7.0 |
使用 pig
命令行工具安装 topn
扩展:
pig ext install topn
使用 Pigsty剧本 安装 topn 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["topn"]}' # -l <集群名>
dnf install topn_17*;
dnf install topn_16*;
dnf install topn_15*;
dnf install topn_14*;
dnf install topn_13*;
apt install postgresql-17-topn;
apt install postgresql-16-topn;
apt install postgresql-15-topn;
apt install postgresql-14-topn;
apt install postgresql-13-topn;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 topn
扩展:
CREATE EXTENSION topn;
PIGSTY 第三方扩展: quantile
: Quantile聚合函数
quantile
quantile
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLquantile_$v*
1.1.8
postgresql-$v-quantile
1.1.8
使用 pig
命令行工具安装 quantile
扩展:
pig ext install quantile
使用 Pigsty剧本 安装 quantile 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["quantile"]}' # -l <集群名>
dnf install quantile_17*;
dnf install quantile_16*;
dnf install quantile_15*;
dnf install quantile_14*;
dnf install quantile_13*;
apt install postgresql-17-quantile;
apt install postgresql-16-quantile;
apt install postgresql-15-quantile;
apt install postgresql-14-quantile;
apt install postgresql-13-quantile;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 quantile
扩展:
CREATE EXTENSION quantile;
PIGSTY 第三方扩展: lower_quantile
: Lower Quantile 聚合函数
lower_quantile
lower_quantile
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLlower_quantile_$v*
1.0.3
postgresql-$v-lower-quantile
1.0.3
使用 pig
命令行工具安装 lower_quantile
扩展:
pig ext install lower_quantile
使用 Pigsty剧本 安装 lower_quantile 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["lower_quantile"]}' # -l <集群名>
从 YUM仓库 手工安装 lower_quantile
RPM 包:
dnf install lower_quantile_17*;
dnf install lower_quantile_16*;
dnf install lower_quantile_15*;
dnf install lower_quantile_14*;
dnf install lower_quantile_13*;
从 APT仓库 手工安装 lower_quantile
DEB 包:
apt install postgresql-17-lower-quantile;
apt install postgresql-16-lower-quantile;
apt install postgresql-15-lower-quantile;
apt install postgresql-14-lower-quantile;
apt install postgresql-13-lower-quantile;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 lower_quantile
扩展:
CREATE EXTENSION lower_quantile;
MIXED 第三方扩展: count_distinct
: COUNT(DISTINCT …) 聚合的替代方案
count_distinct
count_distinct
FUNC
pgdg-flaw
17
,16
,15
,14
,13
CREATE EXTENSION
DDLcount_distinct_$v*
3.0.2
postgresql-$v-count-distinct
3.0.2
使用 pig
命令行工具安装 count_distinct
扩展:
pig ext install count_distinct
使用 Pigsty剧本 安装 count_distinct 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["count_distinct"]}' # -l <集群名>
从 YUM仓库 手工安装 count_distinct
RPM 包:
dnf install count_distinct_17*;
dnf install count_distinct_16*;
dnf install count_distinct_15*;
dnf install count_distinct_14*;
dnf install count_distinct_13*;
从 APT仓库 手工安装 count_distinct
DEB 包:
apt install postgresql-17-count-distinct;
apt install postgresql-16-count-distinct;
apt install postgresql-15-count-distinct;
apt install postgresql-14-count-distinct;
apt install postgresql-13-count-distinct;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 count_distinct
扩展:
CREATE EXTENSION count_distinct;
PIGSTY 第三方扩展: omnisketch
: 实现OmniSketch数据结构,实现近似摘要聚合
omnisketch
omnisketch
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLomnisketch_$v*
1.0.2
postgresql-$v-omnisketch
1.0.2
使用 pig
命令行工具安装 omnisketch
扩展:
pig ext install omnisketch
使用 Pigsty剧本 安装 omnisketch 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["omnisketch"]}' # -l <集群名>
从 YUM仓库 手工安装 omnisketch
RPM 包:
dnf install omnisketch_17*;
dnf install omnisketch_16*;
dnf install omnisketch_15*;
dnf install omnisketch_14*;
dnf install omnisketch_13*;
从 APT仓库 手工安装 omnisketch
DEB 包:
apt install postgresql-17-omnisketch;
apt install postgresql-16-omnisketch;
apt install postgresql-15-omnisketch;
apt install postgresql-14-omnisketch;
apt install postgresql-13-omnisketch;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 omnisketch
扩展:
CREATE EXTENSION omnisketch;
PIGSTY 第三方扩展: ddsketch
: 实现DDSketch数据结构,实现在线的Quantile聚合
ddsketch
ddsketch
FUNC
beta
17
,16
,15
,14
,13
CREATE EXTENSION
DDLddsketch_$v*
1.0.1
postgresql-$v-ddsketch
1.0.1
使用 pig
命令行工具安装 ddsketch
扩展:
pig ext install ddsketch
使用 Pigsty剧本 安装 ddsketch 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["ddsketch"]}' # -l <集群名>
dnf install ddsketch_17*;
dnf install ddsketch_16*;
dnf install ddsketch_15*;
dnf install ddsketch_14*;
dnf install ddsketch_13*;
apt install postgresql-17-ddsketch;
apt install postgresql-16-ddsketch;
apt install postgresql-15-ddsketch;
apt install postgresql-14-ddsketch;
apt install postgresql-13-ddsketch;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 ddsketch
扩展:
CREATE EXTENSION ddsketch;
PIGSTY 第三方扩展: vasco
: 使用MIC发现数据中隐含的关联
vasco
vasco
FUNC
beta
17
,16
,15
,14
,13
CREATE EXTENSION
DDLvasco_$v*
0.1.0
postgresql-$v-vasco
0.1.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
vasco_17 PIGSTY 0.1.0 |
vasco_16 PIGSTY 0.1.0 |
vasco_15 PIGSTY 0.1.0 |
vasco_14 PIGSTY 0.1.0 |
vasco_13 PIGSTY 0.1.0 |
el8 |
aarch64 |
vasco_17 PIGSTY 0.1.0 |
vasco_16 PIGSTY 0.1.0 |
vasco_15 PIGSTY 0.1.0 |
vasco_14 PIGSTY 0.1.0 |
vasco_13 PIGSTY 0.1.0 |
el9 |
x86_64 |
vasco_17 PIGSTY 0.1.0 |
vasco_16 PIGSTY 0.1.0 |
vasco_15 PIGSTY 0.1.0 |
vasco_14 PIGSTY 0.1.0 |
vasco_13 PIGSTY 0.1.0 |
el9 |
aarch64 |
vasco_17 PIGSTY 0.1.0 |
vasco_16 PIGSTY 0.1.0 |
vasco_15 PIGSTY 0.1.0 |
vasco_14 PIGSTY 0.1.0 |
vasco_13 PIGSTY 0.1.0 |
d12 |
x86_64 |
postgresql-17-vasco PIGSTY 0.1.0 |
postgresql-16-vasco PIGSTY 0.1.0 |
postgresql-15-vasco PIGSTY 0.1.0 |
postgresql-14-vasco PIGSTY 0.1.0 |
postgresql-13-vasco PIGSTY 0.1.0 |
d12 |
aarch64 |
postgresql-17-vasco PIGSTY 0.1.0 |
postgresql-16-vasco PIGSTY 0.1.0 |
postgresql-15-vasco PIGSTY 0.1.0 |
postgresql-14-vasco PIGSTY 0.1.0 |
postgresql-13-vasco PIGSTY 0.1.0 |
u22 |
x86_64 |
postgresql-17-vasco PIGSTY 0.1.0 |
postgresql-16-vasco PIGSTY 0.1.0 |
postgresql-15-vasco PIGSTY 0.1.0 |
postgresql-14-vasco PIGSTY 0.1.0 |
postgresql-13-vasco PIGSTY 0.1.0 |
u22 |
aarch64 |
postgresql-17-vasco PIGSTY 0.1.0 |
postgresql-16-vasco PIGSTY 0.1.0 |
postgresql-15-vasco PIGSTY 0.1.0 |
postgresql-14-vasco PIGSTY 0.1.0 |
postgresql-13-vasco PIGSTY 0.1.0 |
u24 |
x86_64 |
postgresql-17-vasco PIGSTY 0.1.0 |
postgresql-16-vasco PIGSTY 0.1.0 |
postgresql-15-vasco PIGSTY 0.1.0 |
postgresql-14-vasco PIGSTY 0.1.0 |
postgresql-13-vasco PIGSTY 0.1.0 |
u24 |
aarch64 |
postgresql-17-vasco PIGSTY 0.1.0 |
postgresql-16-vasco PIGSTY 0.1.0 |
postgresql-15-vasco PIGSTY 0.1.0 |
postgresql-14-vasco PIGSTY 0.1.0 |
postgresql-13-vasco PIGSTY 0.1.0 |
使用 pig
命令行工具安装 vasco
扩展:
pig ext install vasco
使用 Pigsty剧本 安装 vasco 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["vasco"]}' # -l <集群名>
dnf install vasco_17*;
dnf install vasco_16*;
dnf install vasco_15*;
dnf install vasco_14*;
dnf install vasco_13*;
apt install postgresql-17-vasco;
apt install postgresql-16-vasco;
apt install postgresql-15-vasco;
apt install postgresql-14-vasco;
apt install postgresql-13-vasco;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 vasco
扩展:
CREATE EXTENSION vasco;
PIGSTY 第三方扩展: pgxicor
: 在PG中计算XI相关系数
xicor
pgxicor
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建pgxicor_$v*
0.1.0
postgresql-$v-pgxicor
0.1.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pgxicor_17 PIGSTY 0.1.0 |
pgxicor_16 PIGSTY 0.1.0 |
pgxicor_15 PIGSTY 0.1.0 |
pgxicor_14 PIGSTY 0.1.0 |
pgxicor_13 PIGSTY 0.1.0 |
el8 |
aarch64 |
pgxicor_17 PIGSTY 0.1.0 |
pgxicor_16 PIGSTY 0.1.0 |
pgxicor_15 PIGSTY 0.1.0 |
pgxicor_14 PIGSTY 0.1.0 |
pgxicor_13 PIGSTY 0.1.0 |
el9 |
x86_64 |
pgxicor_17 PIGSTY 0.1.0 |
pgxicor_16 PIGSTY 0.1.0 |
pgxicor_15 PIGSTY 0.1.0 |
pgxicor_14 PIGSTY 0.1.0 |
pgxicor_13 PIGSTY 0.1.0 |
el9 |
aarch64 |
pgxicor_17 PIGSTY 0.1.0 |
pgxicor_16 PIGSTY 0.1.0 |
pgxicor_15 PIGSTY 0.1.0 |
pgxicor_14 PIGSTY 0.1.0 |
pgxicor_13 PIGSTY 0.1.0 |
d12 |
x86_64 |
postgresql-17-pgxicor PIGSTY 0.1.0 |
postgresql-16-pgxicor PIGSTY 0.1.0 |
postgresql-15-pgxicor PIGSTY 0.1.0 |
postgresql-14-pgxicor PIGSTY 0.1.0 |
postgresql-13-pgxicor PIGSTY 0.1.0 |
d12 |
aarch64 |
postgresql-17-pgxicor PIGSTY 0.1.0 |
postgresql-16-pgxicor PIGSTY 0.1.0 |
postgresql-15-pgxicor PIGSTY 0.1.0 |
postgresql-14-pgxicor PIGSTY 0.1.0 |
postgresql-13-pgxicor PIGSTY 0.1.0 |
u22 |
x86_64 |
postgresql-17-pgxicor PIGSTY 0.1.0 |
postgresql-16-pgxicor PIGSTY 0.1.0 |
postgresql-15-pgxicor PIGSTY 0.1.0 |
postgresql-14-pgxicor PIGSTY 0.1.0 |
postgresql-13-pgxicor PIGSTY 0.1.0 |
u22 |
aarch64 |
postgresql-17-pgxicor PIGSTY 0.1.0 |
postgresql-16-pgxicor PIGSTY 0.1.0 |
postgresql-15-pgxicor PIGSTY 0.1.0 |
postgresql-14-pgxicor PIGSTY 0.1.0 |
postgresql-13-pgxicor PIGSTY 0.1.0 |
u24 |
x86_64 |
postgresql-17-pgxicor PIGSTY 0.1.0 |
postgresql-16-pgxicor PIGSTY 0.1.0 |
postgresql-15-pgxicor PIGSTY 0.1.0 |
postgresql-14-pgxicor PIGSTY 0.1.0 |
postgresql-13-pgxicor PIGSTY 0.1.0 |
u24 |
aarch64 |
postgresql-17-pgxicor PIGSTY 0.1.0 |
postgresql-16-pgxicor PIGSTY 0.1.0 |
postgresql-15-pgxicor PIGSTY 0.1.0 |
postgresql-14-pgxicor PIGSTY 0.1.0 |
postgresql-13-pgxicor PIGSTY 0.1.0 |
使用 pig
命令行工具安装 pgxicor
扩展:
pig ext install pgxicor; # 扩展名称
pig ext install xicor; # 标准包名
使用 Pigsty剧本 安装 pgxicor 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgxicor"]}' # -l <集群名>
dnf install pgxicor_17*;
dnf install pgxicor_16*;
dnf install pgxicor_15*;
dnf install pgxicor_14*;
dnf install pgxicor_13*;
apt install postgresql-17-pgxicor;
apt install postgresql-16-pgxicor;
apt install postgresql-15-pgxicor;
apt install postgresql-14-pgxicor;
apt install postgresql-13-pgxicor;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 xicor
扩展:
CREATE EXTENSION xicor;
PGDG 第一方扩展: tdigest
: tdigest 聚合函数
tdigest
tdigest
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLtdigest_$v*
1.4.2
postgresql-$v-tdigest
1.4.3
使用 pig
命令行工具安装 tdigest
扩展:
pig ext install tdigest
使用 Pigsty剧本 安装 tdigest 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["tdigest"]}' # -l <集群名>
dnf install tdigest_17*;
dnf install tdigest_16*;
dnf install tdigest_15*;
dnf install tdigest_14*;
dnf install tdigest_13*;
apt install postgresql-17-tdigest;
apt install postgresql-16-tdigest;
apt install postgresql-15-tdigest;
apt install postgresql-14-tdigest;
apt install postgresql-13-tdigest;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 tdigest
扩展:
CREATE EXTENSION tdigest;
MIXED 第三方扩展: first_last_agg
: first() 与 last() 聚合函数
first_last_agg
first_last_agg
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLfirst_last_agg_$v
0.1.4
postgresql-$v-first-last-agg
0.1.4
使用 pig
命令行工具安装 first_last_agg
扩展:
pig ext install first_last_agg
使用 Pigsty剧本 安装 first_last_agg 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["first_last_agg"]}' # -l <集群名>
从 YUM仓库 手工安装 first_last_agg
RPM 包:
dnf install first_last_agg_17;
dnf install first_last_agg_16;
dnf install first_last_agg_15;
dnf install first_last_agg_14;
dnf install first_last_agg_13;
从 APT仓库 手工安装 first_last_agg
DEB 包:
apt install postgresql-17-first-last-agg;
apt install postgresql-16-first-last-agg;
apt install postgresql-15-first-last-agg;
apt install postgresql-14-first-last-agg;
apt install postgresql-13-first-last-agg;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 first_last_agg
扩展:
CREATE EXTENSION first_last_agg;
PGDG 第一方扩展: extra_window_functions
: 额外的窗口函数
extra_window_functions
extra_window_functions
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLextra_window_functions_$v*
1.0
postgresql-$v-extra-window-functions
1.0
使用 pig
命令行工具安装 extra_window_functions
扩展:
pig ext install extra_window_functions
使用 Pigsty剧本 安装 extra_window_functions 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["extra_window_functions"]}' # -l <集群名>
从 YUM仓库 手工安装 extra_window_functions
RPM 包:
dnf install extra_window_functions_17*;
dnf install extra_window_functions_16*;
dnf install extra_window_functions_15*;
从 APT仓库 手工安装 extra_window_functions
DEB 包:
apt install postgresql-17-extra-window-functions;
apt install postgresql-16-extra-window-functions;
apt install postgresql-15-extra-window-functions;
apt install postgresql-14-extra-window-functions;
apt install postgresql-13-extra-window-functions;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 extra_window_functions
扩展:
CREATE EXTENSION extra_window_functions;
PIGSTY 第三方扩展: floatvec
: 数组类型数学运算扩展
floatvec
floatvec
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLfloatvec_$v*
1.1.1
postgresql-$v-floatvec
1.1.1
使用 pig
命令行工具安装 floatvec
扩展:
pig ext install floatvec
使用 Pigsty剧本 安装 floatvec 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["floatvec"]}' # -l <集群名>
dnf install floatvec_17*;
dnf install floatvec_16*;
dnf install floatvec_15*;
dnf install floatvec_14*;
dnf install floatvec_13*;
apt install postgresql-17-floatvec;
apt install postgresql-16-floatvec;
apt install postgresql-15-floatvec;
apt install postgresql-14-floatvec;
apt install postgresql-13-floatvec;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 floatvec
扩展:
CREATE EXTENSION floatvec;
PIGSTY 第三方扩展: aggs_for_vecs
: 针对数组类型的聚合函数集合扩展
aggs_for_vecs
aggs_for_vecs
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLaggs_for_vecs_$v*
1.3.2
postgresql-$v-aggs-for-vecs
1.3.2
使用 pig
命令行工具安装 aggs_for_vecs
扩展:
pig ext install aggs_for_vecs
使用 Pigsty剧本 安装 aggs_for_vecs 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["aggs_for_vecs"]}' # -l <集群名>
从 YUM仓库 手工安装 aggs_for_vecs
RPM 包:
dnf install aggs_for_vecs_17*;
dnf install aggs_for_vecs_16*;
dnf install aggs_for_vecs_15*;
dnf install aggs_for_vecs_14*;
dnf install aggs_for_vecs_13*;
从 APT仓库 手工安装 aggs_for_vecs
DEB 包:
apt install postgresql-17-aggs-for-vecs;
apt install postgresql-16-aggs-for-vecs;
apt install postgresql-15-aggs-for-vecs;
apt install postgresql-14-aggs-for-vecs;
apt install postgresql-13-aggs-for-vecs;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 aggs_for_vecs
扩展:
CREATE EXTENSION aggs_for_vecs;
PIGSTY 第三方扩展: aggs_for_arrays
: 计算数组聚合统计值的函数包
aggs_for_arrays
aggs_for_arrays
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLaggs_for_arrays_$v*
1.3.3
postgresql-$v-aggs-for-arrays
1.3.3
使用 pig
命令行工具安装 aggs_for_arrays
扩展:
pig ext install aggs_for_arrays
使用 Pigsty剧本 安装 aggs_for_arrays 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["aggs_for_arrays"]}' # -l <集群名>
从 YUM仓库 手工安装 aggs_for_arrays
RPM 包:
dnf install aggs_for_arrays_17*;
dnf install aggs_for_arrays_16*;
dnf install aggs_for_arrays_15*;
dnf install aggs_for_arrays_14*;
dnf install aggs_for_arrays_13*;
从 APT仓库 手工安装 aggs_for_arrays
DEB 包:
apt install postgresql-17-aggs-for-arrays;
apt install postgresql-16-aggs-for-arrays;
apt install postgresql-15-aggs-for-arrays;
apt install postgresql-14-aggs-for-arrays;
apt install postgresql-13-aggs-for-arrays;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 aggs_for_arrays
扩展:
CREATE EXTENSION aggs_for_arrays;
PIGSTY 第三方扩展: pg_arraymath
: 数组逐元素数学运算符包
arraymath
pg_arraymath
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_arraymath_$v*
1.1
postgresql-$v-pg-arraymath
1.1
使用 pig
命令行工具安装 pg_arraymath
扩展:
pig ext install pg_arraymath; # 扩展名称
pig ext install arraymath; # 标准包名
使用 Pigsty剧本 安装 pg_arraymath 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_arraymath"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_arraymath
RPM 包:
dnf install pg_arraymath_17*;
dnf install pg_arraymath_16*;
dnf install pg_arraymath_15*;
dnf install pg_arraymath_14*;
dnf install pg_arraymath_13*;
从 APT仓库 手工安装 pg_arraymath
DEB 包:
apt install postgresql-17-pg-arraymath;
apt install postgresql-16-pg-arraymath;
apt install postgresql-15-pg-arraymath;
apt install postgresql-14-pg-arraymath;
apt install postgresql-13-pg-arraymath;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 arraymath
扩展:
CREATE EXTENSION arraymath;
PIGSTY 第三方扩展: pg_math
: 使用GSL库的数学统计函数
pg_math
pg_math
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_math_$v*
1.0
postgresql-$v-pg-math
1.0
使用 pig
命令行工具安装 pg_math
扩展:
pig ext install pg_math
使用 Pigsty剧本 安装 pg_math 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_math"]}' # -l <集群名>
dnf install pg_math_17*;
dnf install pg_math_16*;
dnf install pg_math_15*;
dnf install pg_math_14*;
dnf install pg_math_13*;
apt install postgresql-17-pg-math;
apt install postgresql-16-pg-math;
apt install postgresql-15-pg-math;
apt install postgresql-14-pg-math;
apt install postgresql-13-pg-math;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_math
扩展:
CREATE EXTENSION pg_math;
PIGSTY 第三方扩展: pg_random
: 随机数生成器
random
pg_random
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_random_$v*
2.0.0
postgresql-$v-random
2.0.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg_random_17 PIGSTY 2.0.0 |
pg_random_16 PIGSTY 2.0.0 |
pg_random_15 PIGSTY 2.0.0 |
pg_random_14 PIGSTY 2.0.0 |
pg_random_13 PIGSTY 2.0.0 |
el8 |
aarch64 |
pg_random_17 PIGSTY 2.0.0 |
pg_random_16 PIGSTY 2.0.0 |
pg_random_15 PIGSTY 2.0.0 |
pg_random_14 PIGSTY 2.0.0 |
pg_random_13 PIGSTY 2.0.0 |
el9 |
x86_64 |
pg_random_17 PIGSTY 2.0.0 |
pg_random_16 PIGSTY 2.0.0 |
pg_random_15 PIGSTY 2.0.0 |
pg_random_14 PIGSTY 2.0.0 |
pg_random_13 PIGSTY 2.0.0 |
el9 |
aarch64 |
pg_random_17 PIGSTY 2.0.0 |
pg_random_16 PIGSTY 2.0.0 |
pg_random_15 PIGSTY 2.0.0 |
pg_random_14 PIGSTY 2.0.0 |
pg_random_13 PIGSTY 2.0.0 |
d12 |
x86_64 |
postgresql-17-random PIGSTY 2.0.0 |
postgresql-16-random PIGSTY 2.0.0 |
postgresql-15-random PIGSTY 2.0.0 |
postgresql-14-random PIGSTY 2.0.0 |
postgresql-13-random PIGSTY 2.0.0 |
d12 |
aarch64 |
postgresql-17-random PIGSTY 2.0.0 |
postgresql-16-random PIGSTY 2.0.0 |
postgresql-15-random PIGSTY 2.0.0 |
postgresql-14-random PIGSTY 2.0.0 |
postgresql-13-random PIGSTY 2.0.0 |
u22 |
x86_64 |
postgresql-17-random PIGSTY 2.0.0 |
postgresql-16-random PIGSTY 2.0.0 |
postgresql-15-random PIGSTY 2.0.0 |
postgresql-14-random PIGSTY 2.0.0 |
postgresql-13-random PIGSTY 2.0.0 |
u22 |
aarch64 |
postgresql-17-random PIGSTY 2.0.0 |
postgresql-16-random PIGSTY 2.0.0 |
postgresql-15-random PIGSTY 2.0.0 |
postgresql-14-random PIGSTY 2.0.0 |
postgresql-13-random PIGSTY 2.0.0 |
u24 |
x86_64 |
postgresql-17-random PIGSTY 2.0.0 |
postgresql-16-random PIGSTY 2.0.0 |
postgresql-15-random PIGSTY 2.0.0 |
postgresql-14-random PIGSTY 2.0.0 |
postgresql-13-random PIGSTY 2.0.0 |
u24 |
aarch64 |
postgresql-17-random PIGSTY 2.0.0 |
postgresql-16-random PIGSTY 2.0.0 |
postgresql-15-random PIGSTY 2.0.0 |
postgresql-14-random PIGSTY 2.0.0 |
postgresql-13-random PIGSTY 2.0.0 |
使用 pig
命令行工具安装 pg_random
扩展:
pig ext install pg_random; # 扩展名称
pig ext install random; # 标准包名
使用 Pigsty剧本 安装 pg_random 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_random"]}' # -l <集群名>
dnf install pg_random_17*;
dnf install pg_random_16*;
dnf install pg_random_15*;
dnf install pg_random_14*;
dnf install pg_random_13*;
apt install postgresql-17-random;
apt install postgresql-16-random;
apt install postgresql-15-random;
apt install postgresql-14-random;
apt install postgresql-13-random;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 random
扩展:
CREATE EXTENSION random;
PIGSTY 第三方扩展: pg_base36
: Base36编码解码扩展
base36
pg_base36
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_base36_$v*
1.0.0
postgresql-$v-base36
1.0.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg_base36_17 PIGSTY 1.0.0 |
pg_base36_16 PIGSTY 1.0.0 |
pg_base36_15 PIGSTY 1.0.0 |
pg_base36_14 PIGSTY 1.0.0 |
pg_base36_13 PIGSTY 1.0.0 |
el8 |
aarch64 |
pg_base36_17 PIGSTY 1.0.0 |
pg_base36_16 PIGSTY 1.0.0 |
pg_base36_15 PIGSTY 1.0.0 |
pg_base36_14 PIGSTY 1.0.0 |
pg_base36_13 PIGSTY 1.0.0 |
el9 |
x86_64 |
pg_base36_17 PIGSTY 1.0.0 |
pg_base36_16 PIGSTY 1.0.0 |
pg_base36_15 PIGSTY 1.0.0 |
pg_base36_14 PIGSTY 1.0.0 |
pg_base36_13 PIGSTY 1.0.0 |
el9 |
aarch64 |
pg_base36_17 PIGSTY 1.0.0 |
pg_base36_16 PIGSTY 1.0.0 |
pg_base36_15 PIGSTY 1.0.0 |
pg_base36_14 PIGSTY 1.0.0 |
pg_base36_13 PIGSTY 1.0.0 |
d12 |
x86_64 |
postgresql-17-base36 PIGSTY 1.0.0 |
postgresql-16-base36 PIGSTY 1.0.0 |
postgresql-15-base36 PIGSTY 1.0.0 |
postgresql-14-base36 PIGSTY 1.0.0 |
postgresql-13-base36 PIGSTY 1.0.0 |
d12 |
aarch64 |
postgresql-17-base36 PIGSTY 1.0.0 |
postgresql-16-base36 PIGSTY 1.0.0 |
postgresql-15-base36 PIGSTY 1.0.0 |
postgresql-14-base36 PIGSTY 1.0.0 |
postgresql-13-base36 PIGSTY 1.0.0 |
u22 |
x86_64 |
postgresql-17-base36 PIGSTY 1.0.0 |
postgresql-16-base36 PIGSTY 1.0.0 |
postgresql-15-base36 PIGSTY 1.0.0 |
postgresql-14-base36 PIGSTY 1.0.0 |
postgresql-13-base36 PIGSTY 1.0.0 |
u22 |
aarch64 |
postgresql-17-base36 PIGSTY 1.0.0 |
postgresql-16-base36 PIGSTY 1.0.0 |
postgresql-15-base36 PIGSTY 1.0.0 |
postgresql-14-base36 PIGSTY 1.0.0 |
postgresql-13-base36 PIGSTY 1.0.0 |
u24 |
x86_64 |
postgresql-17-base36 PIGSTY 1.0.0 |
postgresql-16-base36 PIGSTY 1.0.0 |
postgresql-15-base36 PIGSTY 1.0.0 |
postgresql-14-base36 PIGSTY 1.0.0 |
postgresql-13-base36 PIGSTY 1.0.0 |
u24 |
aarch64 |
postgresql-17-base36 PIGSTY 1.0.0 |
postgresql-16-base36 PIGSTY 1.0.0 |
postgresql-15-base36 PIGSTY 1.0.0 |
postgresql-14-base36 PIGSTY 1.0.0 |
postgresql-13-base36 PIGSTY 1.0.0 |
使用 pig
命令行工具安装 pg_base36
扩展:
pig ext install pg_base36; # 扩展名称
pig ext install base36; # 标准包名
使用 Pigsty剧本 安装 pg_base36 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_base36"]}' # -l <集群名>
dnf install pg_base36_17*;
dnf install pg_base36_16*;
dnf install pg_base36_15*;
dnf install pg_base36_14*;
dnf install pg_base36_13*;
apt install postgresql-17-base36;
apt install postgresql-16-base36;
apt install postgresql-15-base36;
apt install postgresql-14-base36;
apt install postgresql-13-base36;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 base36
扩展:
CREATE EXTENSION base36;
PIGSTY 第三方扩展: pg_base62
: Base62编码解码扩展
base62
pg_base62
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_base62_$v*
0.0.1
postgresql-$v-base62
0.0.1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg_base62_17 PIGSTY 0.0.1 |
pg_base62_16 PIGSTY 0.0.1 |
pg_base62_15 PIGSTY 0.0.1 |
pg_base62_14 PIGSTY 0.0.1 |
pg_base62_13 PIGSTY 0.0.1 |
el8 |
aarch64 |
pg_base62_17 PIGSTY 0.0.1 |
pg_base62_16 PIGSTY 0.0.1 |
pg_base62_15 PIGSTY 0.0.1 |
pg_base62_14 PIGSTY 0.0.1 |
pg_base62_13 PIGSTY 0.0.1 |
el9 |
x86_64 |
pg_base62_17 PIGSTY 0.0.1 |
pg_base62_16 PIGSTY 0.0.1 |
pg_base62_15 PIGSTY 0.0.1 |
pg_base62_14 PIGSTY 0.0.1 |
pg_base62_13 PIGSTY 0.0.1 |
el9 |
aarch64 |
pg_base62_17 PIGSTY 0.0.1 |
pg_base62_16 PIGSTY 0.0.1 |
pg_base62_15 PIGSTY 0.0.1 |
pg_base62_14 PIGSTY 0.0.1 |
pg_base62_13 PIGSTY 0.0.1 |
d12 |
x86_64 |
postgresql-17-base62 PIGSTY 0.0.1 |
postgresql-16-base62 PIGSTY 0.0.1 |
postgresql-15-base62 PIGSTY 0.0.1 |
postgresql-14-base62 PIGSTY 0.0.1 |
postgresql-13-base62 PIGSTY 0.0.1 |
d12 |
aarch64 |
postgresql-17-base62 PIGSTY 0.0.1 |
postgresql-16-base62 PIGSTY 0.0.1 |
postgresql-15-base62 PIGSTY 0.0.1 |
postgresql-14-base62 PIGSTY 0.0.1 |
postgresql-13-base62 PIGSTY 0.0.1 |
u22 |
x86_64 |
postgresql-17-base62 PIGSTY 0.0.1 |
postgresql-16-base62 PIGSTY 0.0.1 |
postgresql-15-base62 PIGSTY 0.0.1 |
postgresql-14-base62 PIGSTY 0.0.1 |
postgresql-13-base62 PIGSTY 0.0.1 |
u22 |
aarch64 |
postgresql-17-base62 PIGSTY 0.0.1 |
postgresql-16-base62 PIGSTY 0.0.1 |
postgresql-15-base62 PIGSTY 0.0.1 |
postgresql-14-base62 PIGSTY 0.0.1 |
postgresql-13-base62 PIGSTY 0.0.1 |
u24 |
x86_64 |
postgresql-17-base62 PIGSTY 0.0.1 |
postgresql-16-base62 PIGSTY 0.0.1 |
postgresql-15-base62 PIGSTY 0.0.1 |
postgresql-14-base62 PIGSTY 0.0.1 |
postgresql-13-base62 PIGSTY 0.0.1 |
u24 |
aarch64 |
postgresql-17-base62 PIGSTY 0.0.1 |
postgresql-16-base62 PIGSTY 0.0.1 |
postgresql-15-base62 PIGSTY 0.0.1 |
postgresql-14-base62 PIGSTY 0.0.1 |
postgresql-13-base62 PIGSTY 0.0.1 |
使用 pig
命令行工具安装 pg_base62
扩展:
pig ext install pg_base62; # 扩展名称
pig ext install base62; # 标准包名
使用 Pigsty剧本 安装 pg_base62 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_base62"]}' # -l <集群名>
dnf install pg_base62_17*;
dnf install pg_base62_16*;
dnf install pg_base62_15*;
dnf install pg_base62_14*;
dnf install pg_base62_13*;
apt install postgresql-17-base62;
apt install postgresql-16-base62;
apt install postgresql-15-base62;
apt install postgresql-14-base62;
apt install postgresql-13-base62;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 base62
扩展:
CREATE EXTENSION base62;
PIGSTY 第三方扩展: pg_base58
: Base58 编码/解码函数
pg_base58
pg_base58
FUNC
pgrx
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_base58_$v
0.0.1
postgresql-$v-pg-base58
0.0.1
使用 pig
命令行工具安装 pg_base58
扩展:
pig ext install pg_base58
使用 Pigsty剧本 安装 pg_base58 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_base58"]}' # -l <集群名>
dnf install pg_base58_17;
dnf install pg_base58_16;
dnf install pg_base58_15;
dnf install pg_base58_14;
dnf install pg_base58_13;
apt install postgresql-17-pg-base58;
apt install postgresql-16-pg-base58;
apt install postgresql-15-pg-base58;
apt install postgresql-14-pg-base58;
apt install postgresql-13-pg-base58;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_base58
扩展:
CREATE EXTENSION pg_base58;
PIGSTY 第三方扩展: pg_financial
: 金融领域聚合函数
financial
pg_financial
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_financial_$v*
1.0.1
postgresql-$v-pg-financial
1.0.1
使用 pig
命令行工具安装 pg_financial
扩展:
pig ext install pg_financial; # 扩展名称
pig ext install financial; # 标准包名
使用 Pigsty剧本 安装 pg_financial 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_financial"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_financial
RPM 包:
dnf install pg_financial_17*;
dnf install pg_financial_16*;
dnf install pg_financial_15*;
dnf install pg_financial_14*;
dnf install pg_financial_13*;
从 APT仓库 手工安装 pg_financial
DEB 包:
apt install postgresql-17-pg-financial;
apt install postgresql-16-pg-financial;
apt install postgresql-15-pg-financial;
apt install postgresql-14-pg-financial;
apt install postgresql-13-pg-financial;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 financial
扩展:
CREATE EXTENSION financial;
CONTRIB 自带扩展: refint
: 实现引用完整性的函数
refint
None
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 refint
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 refint
扩展:
CREATE EXTENSION refint;
CONTRIB 自带扩展: autoinc
: 用于自动递增字段的函数
autoinc
None
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 autoinc
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 autoinc
扩展:
CREATE EXTENSION autoinc;
CONTRIB 自带扩展: insert_username
: 用于跟踪谁更改了表的函数
insert_username
None
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 insert_username
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 insert_username
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 insert_username
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 insert_username
扩展:
CREATE EXTENSION insert_username;
CONTRIB 自带扩展: moddatetime
: 跟踪最后修改时间
moddatetime
None
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 moddatetime
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 moddatetime
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 moddatetime
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 moddatetime
扩展:
CREATE EXTENSION moddatetime;
CONTRIB 自带扩展: tsm_system_time
: 接受毫秒数限制的 TABLESAMPLE 方法
tsm_system_time
None
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 tsm_system_time
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 tsm_system_time
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 tsm_system_time
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 tsm_system_time
扩展:
CREATE EXTENSION tsm_system_time;
CONTRIB 自带扩展: dict_xsyn
: 用于扩展同义词处理的文本搜索字典模板
dict_xsyn
None
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 dict_xsyn
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 dict_xsyn
扩展:
CREATE EXTENSION dict_xsyn;
CONTRIB 自带扩展: tsm_system_rows
: 接受行数限制的 TABLESAMPLE 方法
tsm_system_rows
None
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 tsm_system_rows
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 tsm_system_rows
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 tsm_system_rows
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 tsm_system_rows
扩展:
CREATE EXTENSION tsm_system_rows;
CONTRIB 自带扩展: tcn
: 用触发器通知变更
tcn
None
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 tcn
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 tcn
扩展:
CREATE EXTENSION tcn;
CONTRIB 自带扩展: uuid-ossp
: 生成通用唯一标识符(UUIDs)
uuid-ossp
None
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 uuid-ossp
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 uuid-ossp
扩展:
CREATE EXTENSION "uuid-ossp";
CONTRIB 自带扩展: uuid-ossp
: 生成通用唯一标识符(UUIDs)
uuid-ossp
uuid-ossp
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建PostgreSQL 自带 Contrib 扩展模块
CONTRIB 自带扩展: btree_gist
: 用GiST索引常见数据类型
btree_gist
None
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 btree_gist
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 btree_gist
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 btree_gist
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 btree_gist
扩展:
CREATE EXTENSION btree_gist;
CONTRIB 自带扩展: btree_gin
: 用GIN索引常见数据类型
btree_gin
None
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 btree_gin
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 btree_gin
扩展:
CREATE EXTENSION btree_gin;
CONTRIB 自带扩展: intarray
: 1维整数数组的额外函数、运算符和索引支持
intarray
None
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 intarray
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 intarray
扩展:
CREATE EXTENSION intarray;
CONTRIB 自带扩展: intagg
: 整数聚合器和枚举器(过时)
intagg
None
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 intagg
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 intagg
扩展:
CREATE EXTENSION intagg;
CONTRIB 自带扩展: dict_int
: 用于整数的文本搜索字典模板
dict_int
None
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 dict_int
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 dict_int
扩展:
CREATE EXTENSION dict_int;
CONTRIB 自带扩展: unaccent
: 删除重音的文本搜索字典
unaccent
None
FUNC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 unaccent
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 unaccent
扩展:
CREATE EXTENSION unaccent;
ADMIN 类目共有 35 个可用扩展:
扩展名(详情) | 标准名(官网) | 仓库 | 版本 | 类目 | 许可证 | LOAD |
DDL |
TRUST |
RELOC |
简介 |
---|---|---|---|---|---|---|---|---|---|---|
pg_repack | pg_repack |
PGDG | 1.5.2 | ADMIN |
BSD 3 | 在线垃圾清理与表膨胀治理 | ||||
pg_squeeze | pg_squeeze |
PGDG | 1.8.0 | ADMIN |
BSD 2 | 从关系中删除未使用空间 | ||||
pg_dirtyread | pg_dirtyread |
MIXED | 2.7 | ADMIN |
BSD 3 | 从表中读取尚未垃圾回收的行 | ||||
pgfincore | pgfincore |
PGDG | 1.3.1 | ADMIN |
BSD 3 | 检查和管理操作系统缓冲区缓存 | ||||
pg_cooldown | pg_cooldown |
PIGSTY | 0.1 | ADMIN |
Apache-2.0 | 从缓冲区中移除特定关系的页面 | ||||
ddlx | pg_ddlx |
MIXED | 0.29 | ADMIN |
PostgreSQL | 提取数据库对象的DDL | ||||
prioritize | pg_prioritize |
PGDG | 1.0.4 | ADMIN |
PostgreSQL | 获取和设置 PostgreSQL 后端的优先级 | ||||
pg_checksums | pg_checksums |
PGDG | 1.2 | ADMIN |
BSD 2 | 在离线模式下激活/启用/禁用数据库集群的校验和功能 | ||||
pg_readonly | pg_readonly |
PGDG | 1.0.3 | ADMIN |
PostgreSQL | 将集群设置为只读 | ||||
pg_upless | pg_upless |
PIGSTY | 0.0.3 | ADMIN |
PostgreSQL | 检测表上的无用UPDATE | ||||
pg_permissions | pg_permissions |
MIXED | 1.3 | ADMIN |
BSD 2 | 查看对象权限并将其与期望状态进行比较 | ||||
pgautofailover | pgautofailover |
PGDG | 2.1 | ADMIN |
PostgreSQL | PG 自动故障迁移 | ||||
pg_catcheck | pg_catcheck |
PGDG | 1.6.0 | ADMIN |
BSD 3 | 用于诊断系统目录是否损坏的工具 | ||||
pre_prepare | preprepare |
MIXED | 0.9 | ADMIN |
PostgreSQL | 在服务端预先准备好PreparedStatement备用 | ||||
pgcozy | pgcozy |
PIGSTY | 1.0 | ADMIN |
PostgreSQL | 根据先前的pg_buffercache快照预热内存缓冲区 | ||||
pg_orphaned | pg_orphaned |
PIGSTY | 1.0 | ADMIN |
PostgreSQL | 处理孤儿文件的扩展插件 | ||||
pg_crash | pg_crash |
PIGSTY | 1.0 | ADMIN |
BSD 3 | 向数据库进程随机发送信号模拟故障 | ||||
pg_cheat_funcs | pg_cheat_funcs |
PIGSTY | 1.0 | ADMIN |
PostgreSQL | 一些超级实用的作弊函数 | ||||
fio | pg_fio |
PIGSTY | 1.0 | ADMIN |
BSD 3 | PostgreSQL文件IO函数包 | ||||
pg_savior | pg_savior |
PIGSTY | 0.0.1 | ADMIN |
Apache-2.0 | 阻止不带条件的全表更新以避免意外事故 | ||||
safeupdate | safeupdate |
PGDG | 1.5 | ADMIN |
ISC | 强制在 UPDATE 和 DELETE 时提供 Where 条件 | ||||
pg_drop_events | pg_drop_events |
PGDG | 0.1.0 | ADMIN |
PostgreSQL | 记录删表删列删视图的事务号,辅助PITR确定时间点 | ||||
table_log | table_log |
MIXED | 0.6.4 | ADMIN |
PostgreSQL | 记录某张表的修改日志并做表/行级时间点恢复 | ||||
pgagent | pgagent |
PGDG | 4.2.3 | ADMIN |
PostgreSQL | PostgreSQL任务调度工具,与PGADMIN配合使用 | ||||
pg_prewarm | pg_prewarm |
CONTRIB | 1.2 | ADMIN |
PostgreSQL | 预热关系数据 | ||||
pgpool_adm | pgpool |
PGDG | 4.6.0 | ADMIN |
PostgreSQL | PGPool 管理函数 | ||||
pgpool_recovery | pgpool |
PGDG | 4.6.0 | ADMIN |
PostgreSQL | PGPool辅助扩展,从v4.3提供的恢复函数 | ||||
pgpool_regclass | pgpool |
PGDG | 4.6.0 | ADMIN |
PostgreSQL | PGPool辅助扩展,RegClass替代 | ||||
lo | lo |
CONTRIB | 1.1 | ADMIN |
PostgreSQL | 大对象维护 | ||||
basic_archive | basic_archive |
CONTRIB | - | ADMIN |
PostgreSQL | 归档模块样例 | ||||
basebackup_to_shell | basebackup_to_shell |
CONTRIB | - | ADMIN |
PostgreSQL | 添加一种备份到Shell终端到基础备份方式 | ||||
old_snapshot | old_snapshot |
CONTRIB | 1.0 | ADMIN |
PostgreSQL | 支持 old_snapshot_threshold 的实用程序 | ||||
adminpack | adminpack |
CONTRIB | 2.1 | ADMIN |
PostgreSQL | PostgreSQL 管理函数集合 | ||||
amcheck | amcheck |
CONTRIB | 1.4 | ADMIN |
PostgreSQL | 校验关系完整性 | ||||
pg_surgery | pg_surgery |
CONTRIB | 1.0 | ADMIN |
PostgreSQL | 对损坏的关系进行手术 |
PGDG 第一方扩展: pg_repack
: 在线垃圾清理与表膨胀治理
pg_repack
pg_repack
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_repack_$v*
1.5.2
postgresql-$v-repack
1.5.2
使用 pig
命令行工具安装 pg_repack
扩展:
pig ext install pg_repack
使用 Pigsty剧本 安装 pg_repack 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_repack"]}' # -l <集群名>
dnf install pg_repack_17*;
dnf install pg_repack_16*;
dnf install pg_repack_15*;
dnf install pg_repack_14*;
dnf install pg_repack_13*;
apt install postgresql-17-repack;
apt install postgresql-16-repack;
apt install postgresql-15-repack;
apt install postgresql-14-repack;
apt install postgresql-13-repack;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_repack
扩展:
CREATE EXTENSION pg_repack;
PGDG 第一方扩展: pg_squeeze
: 从关系中删除未使用空间
pg_squeeze
pg_squeeze
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLsqueeze
pg_squeeze_$v*
1.8.0
postgresql-$v-squeeze
1.8.0
使用 pig
命令行工具安装 pg_squeeze
扩展:
pig ext install pg_squeeze
使用 Pigsty剧本 安装 pg_squeeze 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_squeeze"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_squeeze
RPM 包:
dnf install pg_squeeze_17*;
dnf install pg_squeeze_16*;
dnf install pg_squeeze_15*;
dnf install pg_squeeze_14*;
dnf install pg_squeeze_13*;
从 APT仓库 手工安装 pg_squeeze
DEB 包:
apt install postgresql-17-squeeze;
apt install postgresql-16-squeeze;
apt install postgresql-15-squeeze;
apt install postgresql-14-squeeze;
apt install postgresql-13-squeeze;
扩展 pg_squeeze
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_squeeze'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_squeeze
扩展:
CREATE EXTENSION pg_squeeze;
MIXED 第三方扩展: pg_dirtyread
: 从表中读取尚未垃圾回收的行
pg_dirtyread
pg_dirtyread
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_dirtyread_$v*
2.7
postgresql-$v-dirtyread
2.7
使用 pig
命令行工具安装 pg_dirtyread
扩展:
pig ext install pg_dirtyread
使用 Pigsty剧本 安装 pg_dirtyread 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_dirtyread"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_dirtyread
RPM 包:
dnf install pg_dirtyread_17*;
dnf install pg_dirtyread_16*;
dnf install pg_dirtyread_15*;
dnf install pg_dirtyread_14*;
dnf install pg_dirtyread_13*;
从 APT仓库 手工安装 pg_dirtyread
DEB 包:
apt install postgresql-17-dirtyread;
apt install postgresql-16-dirtyread;
apt install postgresql-15-dirtyread;
apt install postgresql-14-dirtyread;
apt install postgresql-13-dirtyread;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_dirtyread
扩展:
CREATE EXTENSION pg_dirtyread;
PGDG 第一方扩展: pgfincore
: 检查和管理操作系统缓冲区缓存
pgfincore
pgfincore
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgfincore_$v*
1.3.1
postgresql-$v-pgfincore
1.3.1
使用 pig
命令行工具安装 pgfincore
扩展:
pig ext install pgfincore
使用 Pigsty剧本 安装 pgfincore 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgfincore"]}' # -l <集群名>
dnf install pgfincore_17*;
dnf install pgfincore_16*;
dnf install pgfincore_15*;
dnf install pgfincore_14*;
dnf install pgfincore_13*;
apt install postgresql-17-pgfincore;
apt install postgresql-16-pgfincore;
apt install postgresql-15-pgfincore;
apt install postgresql-14-pgfincore;
apt install postgresql-13-pgfincore;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgfincore
扩展:
CREATE EXTENSION pgfincore;
PIGSTY 第三方扩展: pg_cooldown
: 从缓冲区中移除特定关系的页面
pg_cooldown
pg_cooldown
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_cooldown_$v*
0.1
postgresql-$v-pg-cooldown
0.1
使用 pig
命令行工具安装 pg_cooldown
扩展:
pig ext install pg_cooldown
使用 Pigsty剧本 安装 pg_cooldown 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_cooldown"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_cooldown
RPM 包:
dnf install pg_cooldown_17*;
dnf install pg_cooldown_16*;
dnf install pg_cooldown_15*;
dnf install pg_cooldown_14*;
dnf install pg_cooldown_13*;
从 APT仓库 手工安装 pg_cooldown
DEB 包:
apt install postgresql-17-pg-cooldown;
apt install postgresql-16-pg-cooldown;
apt install postgresql-15-pg-cooldown;
apt install postgresql-14-pg-cooldown;
apt install postgresql-13-pg-cooldown;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_cooldown
扩展:
CREATE EXTENSION pg_cooldown;
MIXED 第三方扩展: pg_ddlx
: 提取数据库对象的DDL
ddlx
pg_ddlx
ADMIN
pgdg-flaw
17
,16
,15
,14
,13
CREATE EXTENSION
DDLddlx_$v
0.29
postgresql-$v-ddlx
0.29
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
ddlx_17 PIGSTY 0.29 |
ddlx_16 PIGSTY 0.29 |
ddlx_15 PIGSTY 0.29 |
ddlx_14 PIGSTY 0.29 |
ddlx_13 PIGSTY 0.29 |
el8 |
aarch64 |
ddlx_17 PIGSTY 0.29 |
ddlx_16 PIGSTY 0.29 |
ddlx_15 PIGSTY 0.29 |
ddlx_14 PIGSTY 0.29 |
ddlx_13 PIGSTY 0.29 |
el9 |
x86_64 |
ddlx_17 PIGSTY 0.29 |
ddlx_16 PIGSTY 0.29 |
ddlx_15 PIGSTY 0.29 |
ddlx_14 PIGSTY 0.29 |
ddlx_13 PIGSTY 0.29 |
el9 |
aarch64 |
ddlx_17 PIGSTY 0.29 |
ddlx_16 PIGSTY 0.29 |
ddlx_15 PIGSTY 0.29 |
ddlx_14 PIGSTY 0.29 |
ddlx_13 PIGSTY 0.29 |
d12 |
x86_64 |
postgresql-17-ddlx PIGSTY 0.29 |
postgresql-16-ddlx PIGSTY 0.29 |
postgresql-15-ddlx PIGSTY 0.29 |
postgresql-14-ddlx PIGSTY 0.29 |
postgresql-13-ddlx PIGSTY 0.29 |
d12 |
aarch64 |
postgresql-17-ddlx PIGSTY 0.29 |
postgresql-16-ddlx PIGSTY 0.29 |
postgresql-15-ddlx PIGSTY 0.29 |
postgresql-14-ddlx PIGSTY 0.29 |
postgresql-13-ddlx PIGSTY 0.29 |
u22 |
x86_64 |
postgresql-17-ddlx PIGSTY 0.29 |
postgresql-16-ddlx PIGSTY 0.29 |
postgresql-15-ddlx PIGSTY 0.29 |
postgresql-14-ddlx PIGSTY 0.29 |
postgresql-13-ddlx PIGSTY 0.29 |
u22 |
aarch64 |
postgresql-17-ddlx PIGSTY 0.29 |
postgresql-16-ddlx PIGSTY 0.29 |
postgresql-15-ddlx PIGSTY 0.29 |
postgresql-14-ddlx PIGSTY 0.29 |
postgresql-13-ddlx PIGSTY 0.29 |
u24 |
x86_64 |
postgresql-17-ddlx PIGSTY 0.29 |
postgresql-16-ddlx PIGSTY 0.29 |
postgresql-15-ddlx PIGSTY 0.29 |
postgresql-14-ddlx PIGSTY 0.29 |
postgresql-13-ddlx PIGSTY 0.29 |
u24 |
aarch64 |
postgresql-17-ddlx PIGSTY 0.29 |
postgresql-16-ddlx PIGSTY 0.29 |
postgresql-15-ddlx PIGSTY 0.29 |
postgresql-14-ddlx PIGSTY 0.29 |
postgresql-13-ddlx PIGSTY 0.29 |
使用 pig
命令行工具安装 pg_ddlx
扩展:
pig ext install pg_ddlx; # 扩展名称
pig ext install ddlx; # 标准包名
使用 Pigsty剧本 安装 pg_ddlx 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_ddlx"]}' # -l <集群名>
dnf install ddlx_17;
dnf install ddlx_16;
dnf install ddlx_15;
dnf install ddlx_14;
dnf install ddlx_13;
apt install postgresql-17-ddlx;
apt install postgresql-16-ddlx;
apt install postgresql-15-ddlx;
apt install postgresql-14-ddlx;
apt install postgresql-13-ddlx;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 ddlx
扩展:
CREATE EXTENSION ddlx;
PGDG 第一方扩展: pg_prioritize
: 获取和设置 PostgreSQL 后端的优先级
prioritize
pg_prioritize
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_prioritize_$v*
1.0.4
postgresql-$v-prioritize
1.0.4
使用 pig
命令行工具安装 pg_prioritize
扩展:
pig ext install pg_prioritize; # 扩展名称
pig ext install prioritize; # 标准包名
使用 Pigsty剧本 安装 pg_prioritize 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_prioritize"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_prioritize
RPM 包:
dnf install pg_prioritize_17*;
dnf install pg_prioritize_16*;
dnf install pg_prioritize_15*;
从 APT仓库 手工安装 pg_prioritize
DEB 包:
apt install postgresql-17-prioritize;
apt install postgresql-16-prioritize;
apt install postgresql-15-prioritize;
apt install postgresql-14-prioritize;
apt install postgresql-13-prioritize;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 prioritize
扩展:
CREATE EXTENSION prioritize;
PGDG 第一方扩展: pg_checksums
: 在离线模式下激活/启用/禁用数据库集群的校验和功能
pg_checksums
pg_checksums
ADMIN
bin
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_checksums_$v*
1.1
postgresql-$v-pg-checksums
1.2
使用 pig
命令行工具安装 pg_checksums
扩展:
pig ext install pg_checksums
使用 Pigsty剧本 安装 pg_checksums 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_checksums"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_checksums
RPM 包:
dnf install pg_checksums_16*;
dnf install pg_checksums_15*;
dnf install pg_checksums_14*;
dnf install pg_checksums_13*;
从 APT仓库 手工安装 pg_checksums
DEB 包:
apt install postgresql-17-pg-checksums;
apt install postgresql-16-pg-checksums;
apt install postgresql-15-pg-checksums;
apt install postgresql-14-pg-checksums;
apt install postgresql-13-pg-checksums;
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
PGDG 第一方扩展: pg_readonly
: 将集群设置为只读
pg_readonly
pg_readonly
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_readonly_$v*
1.0.3
postgresql-$v-pg-readonly
1.0.0
使用 pig
命令行工具安装 pg_readonly
扩展:
pig ext install pg_readonly
使用 Pigsty剧本 安装 pg_readonly 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_readonly"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_readonly
RPM 包:
dnf install pg_readonly_17*;
dnf install pg_readonly_16*;
dnf install pg_readonly_15*;
dnf install pg_readonly_14*;
dnf install pg_readonly_13*;
从 APT仓库 手工安装 pg_readonly
DEB 包:
apt install postgresql-17-pg-readonly;
apt install postgresql-16-pg-readonly;
apt install postgresql-15-pg-readonly;
apt install postgresql-14-pg-readonly;
apt install postgresql-13-pg-readonly;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_readonly
扩展:
CREATE EXTENSION pg_readonly;
PIGSTY 第三方扩展: pg_upless
: 检测表上的无用UPDATE
pg_upless
pg_upless
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建plpgsql
pg_upless_$v
0.0.3
postgresql-$v-pg-upless
0.0.3
使用 pig
命令行工具安装 pg_upless
扩展:
pig ext install pg_upless
使用 Pigsty剧本 安装 pg_upless 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_upless"]}' # -l <集群名>
dnf install pg_upless_17;
dnf install pg_upless_16;
dnf install pg_upless_15;
dnf install pg_upless_14;
dnf install pg_upless_13;
apt install postgresql-17-pg-upless;
apt install postgresql-16-pg-upless;
apt install postgresql-15-pg-upless;
apt install postgresql-14-pg-upless;
apt install postgresql-13-pg-upless;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_upless
扩展:
CREATE EXTENSION pg_upless CASCADE;
MIXED 第三方扩展: pg_permissions
: 查看对象权限并将其与期望状态进行比较
pg_permissions
pg_permissions
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建pg_permissions_$v
1.3
postgresql-$v-pg-permissions
1.3
使用 pig
命令行工具安装 pg_permissions
扩展:
pig ext install pg_permissions
使用 Pigsty剧本 安装 pg_permissions 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_permissions"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_permissions
RPM 包:
dnf install pg_permissions_17;
dnf install pg_permissions_16;
dnf install pg_permissions_15;
dnf install pg_permissions_14;
dnf install pg_permissions_13;
从 APT仓库 手工安装 pg_permissions
DEB 包:
apt install postgresql-17-pg-permissions;
apt install postgresql-16-pg-permissions;
apt install postgresql-15-pg-permissions;
apt install postgresql-14-pg-permissions;
apt install postgresql-13-pg-permissions;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_permissions
扩展:
CREATE EXTENSION pg_permissions;
PGDG 第一方扩展: pgautofailover
: PG 自动故障迁移
pgautofailover
pgautofailover
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLbtree_gist
pg_auto_failover_$v*
2.1
postgresql-$v-auto-failover
2.1
使用 pig
命令行工具安装 pgautofailover
扩展:
pig ext install pgautofailover
使用 Pigsty剧本 安装 pgautofailover 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgautofailover"]}' # -l <集群名>
从 YUM仓库 手工安装 pgautofailover
RPM 包:
dnf install pg_auto_failover_16*;
dnf install pg_auto_failover_15*;
dnf install pg_auto_failover_14*;
dnf install pg_auto_failover_13*;
从 APT仓库 手工安装 pgautofailover
DEB 包:
apt install postgresql-17-auto-failover;
apt install postgresql-16-auto-failover;
apt install postgresql-15-auto-failover;
apt install postgresql-14-auto-failover;
apt install postgresql-13-auto-failover;
扩展 pgautofailover
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pgautofailover'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgautofailover
扩展:
CREATE EXTENSION pgautofailover CASCADE;
PGDG 第一方扩展: pg_catcheck
: 用于诊断系统目录是否损坏的工具
pg_catcheck
pg_catcheck
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_catcheck_$v*
1.6.0
postgresql-$v-pg-catcheck
1.4.0
使用 pig
命令行工具安装 pg_catcheck
扩展:
pig ext install pg_catcheck
使用 Pigsty剧本 安装 pg_catcheck 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_catcheck"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_catcheck
RPM 包:
dnf install pg_catcheck_17*;
dnf install pg_catcheck_16*;
dnf install pg_catcheck_15*;
dnf install pg_catcheck_14*;
dnf install pg_catcheck_13*;
从 APT仓库 手工安装 pg_catcheck
DEB 包:
apt install postgresql-17-pg-catcheck;
apt install postgresql-16-pg-catcheck;
apt install postgresql-15-pg-catcheck;
apt install postgresql-14-pg-catcheck;
apt install postgresql-13-pg-catcheck;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_catcheck
扩展:
CREATE EXTENSION pg_catcheck;
MIXED 第三方扩展: preprepare
: 在服务端预先准备好PreparedStatement备用
pre_prepare
preprepare
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpreprepare_$v*
0.9
postgresql-$v-preprepare
0.9
使用 pig
命令行工具安装 preprepare
扩展:
pig ext install preprepare; # 扩展名称
pig ext install pre_prepare; # 标准包名
使用 Pigsty剧本 安装 preprepare 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["preprepare"]}' # -l <集群名>
从 YUM仓库 手工安装 preprepare
RPM 包:
dnf install preprepare_17*;
dnf install preprepare_16*;
dnf install preprepare_15*;
dnf install preprepare_14*;
dnf install preprepare_13*;
从 APT仓库 手工安装 preprepare
DEB 包:
apt install postgresql-17-preprepare;
apt install postgresql-16-preprepare;
apt install postgresql-15-preprepare;
apt install postgresql-14-preprepare;
apt install postgresql-13-preprepare;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pre_prepare
扩展:
CREATE EXTENSION pre_prepare;
PIGSTY 第三方扩展: pgcozy
: 根据先前的pg_buffercache快照预热内存缓冲区
pgcozy
pgcozy
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgcozy_$v
1.0
postgresql-$v-pgcozy
1.0
使用 pig
命令行工具安装 pgcozy
扩展:
pig ext install pgcozy
使用 Pigsty剧本 安装 pgcozy 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgcozy"]}' # -l <集群名>
dnf install pgcozy_17;
dnf install pgcozy_16;
dnf install pgcozy_15;
dnf install pgcozy_14;
dnf install pgcozy_13;
apt install postgresql-17-pgcozy;
apt install postgresql-16-pgcozy;
apt install postgresql-15-pgcozy;
apt install postgresql-14-pgcozy;
apt install postgresql-13-pgcozy;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgcozy
扩展:
CREATE EXTENSION pgcozy;
PIGSTY 第三方扩展: pg_orphaned
: 处理孤儿文件的扩展插件
pg_orphaned
pg_orphaned
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_orphaned_$v*
1.0
postgresql-$v-pg-orphaned
1.0
使用 pig
命令行工具安装 pg_orphaned
扩展:
pig ext install pg_orphaned
使用 Pigsty剧本 安装 pg_orphaned 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_orphaned"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_orphaned
RPM 包:
dnf install pg_orphaned_17*;
dnf install pg_orphaned_16*;
dnf install pg_orphaned_15*;
dnf install pg_orphaned_14*;
dnf install pg_orphaned_13*;
从 APT仓库 手工安装 pg_orphaned
DEB 包:
apt install postgresql-17-pg-orphaned;
apt install postgresql-16-pg-orphaned;
apt install postgresql-15-pg-orphaned;
apt install postgresql-14-pg-orphaned;
apt install postgresql-13-pg-orphaned;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_orphaned
扩展:
CREATE EXTENSION pg_orphaned;
PIGSTY 第三方扩展: pg_crash
: 向数据库进程随机发送信号模拟故障
pg_crash
pg_crash
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_crash_$v*
1.0
postgresql-$v-pg-crash
1.0
使用 pig
命令行工具安装 pg_crash
扩展:
pig ext install pg_crash
使用 Pigsty剧本 安装 pg_crash 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_crash"]}' # -l <集群名>
dnf install pg_crash_17*;
dnf install pg_crash_16*;
dnf install pg_crash_15*;
dnf install pg_crash_14*;
dnf install pg_crash_13*;
apt install postgresql-17-pg-crash;
apt install postgresql-16-pg-crash;
apt install postgresql-15-pg-crash;
apt install postgresql-14-pg-crash;
apt install postgresql-13-pg-crash;
扩展 pg_crash
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_crash'; # 修改 PG 集群配置
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
PIGSTY 第三方扩展: pg_cheat_funcs
: 一些超级实用的作弊函数
pg_cheat_funcs
pg_cheat_funcs
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_cheat_funcs_$v*
1.0
postgresql-$v-pg-cheat-funcs
1.0
使用 pig
命令行工具安装 pg_cheat_funcs
扩展:
pig ext install pg_cheat_funcs
使用 Pigsty剧本 安装 pg_cheat_funcs 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_cheat_funcs"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_cheat_funcs
RPM 包:
dnf install pg_cheat_funcs_17*;
dnf install pg_cheat_funcs_16*;
dnf install pg_cheat_funcs_15*;
dnf install pg_cheat_funcs_14*;
dnf install pg_cheat_funcs_13*;
从 APT仓库 手工安装 pg_cheat_funcs
DEB 包:
apt install postgresql-17-pg-cheat-funcs;
apt install postgresql-16-pg-cheat-funcs;
apt install postgresql-15-pg-cheat-funcs;
apt install postgresql-14-pg-cheat-funcs;
apt install postgresql-13-pg-cheat-funcs;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_cheat_funcs
扩展:
CREATE EXTENSION pg_cheat_funcs;
PIGSTY 第三方扩展: pg_fio
: PostgreSQL文件IO函数包
fio
pg_fio
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_fio_$v
1.0
postgresql-$v-pg-fio
1.0
使用 pig
命令行工具安装 pg_fio
扩展:
pig ext install pg_fio; # 扩展名称
pig ext install fio; # 标准包名
使用 Pigsty剧本 安装 pg_fio 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_fio"]}' # -l <集群名>
dnf install pg_fio_17;
dnf install pg_fio_16;
dnf install pg_fio_15;
dnf install pg_fio_14;
dnf install pg_fio_13;
apt install postgresql-17-pg-fio;
apt install postgresql-16-pg-fio;
apt install postgresql-15-pg-fio;
apt install postgresql-14-pg-fio;
apt install postgresql-13-pg-fio;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 fio
扩展:
CREATE EXTENSION fio;
PIGSTY 第三方扩展: pg_savior
: 阻止不带条件的全表更新以避免意外事故
pg_savior
pg_savior
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_savior_$v*
0.0.1
postgresql-$v-pg-savior
0.0.1
使用 pig
命令行工具安装 pg_savior
扩展:
pig ext install pg_savior
使用 Pigsty剧本 安装 pg_savior 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_savior"]}' # -l <集群名>
dnf install pg_savior_17*;
dnf install pg_savior_16*;
dnf install pg_savior_15*;
dnf install pg_savior_14*;
dnf install pg_savior_13*;
apt install postgresql-17-pg-savior;
apt install postgresql-16-pg-savior;
apt install postgresql-15-pg-savior;
apt install postgresql-14-pg-savior;
apt install postgresql-13-pg-savior;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_savior
扩展:
CREATE EXTENSION pg_savior;
PGDG 第一方扩展: safeupdate
: 强制在 UPDATE 和 DELETE 时提供 Where 条件
safeupdate
safeupdate
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLsafeupdate_$v*
1.5
postgresql-$v-pg-safeupdate
1.5
使用 pig
命令行工具安装 safeupdate
扩展:
pig ext install safeupdate
使用 Pigsty剧本 安装 safeupdate 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["safeupdate"]}' # -l <集群名>
从 YUM仓库 手工安装 safeupdate
RPM 包:
dnf install safeupdate_17*;
dnf install safeupdate_16*;
dnf install safeupdate_15*;
dnf install safeupdate_14*;
dnf install safeupdate_13*;
从 APT仓库 手工安装 safeupdate
DEB 包:
apt install postgresql-17-pg-safeupdate;
apt install postgresql-16-pg-safeupdate;
apt install postgresql-15-pg-safeupdate;
apt install postgresql-14-pg-safeupdate;
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
PGDG 第三方扩展: pg_drop_events
: 记录删表删列删视图的事务号,辅助PITR确定时间点
pg_drop_events
pg_drop_events
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpublic
plpgsql
pg_drop_events_$v
0.1.0
postgresql-$v-pg-drop-events
0.1.0
使用 pig
命令行工具安装 pg_drop_events
扩展:
pig ext install pg_drop_events
使用 Pigsty剧本 安装 pg_drop_events 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_drop_events"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_drop_events
RPM 包:
dnf install pg_drop_events_17;
dnf install pg_drop_events_16;
dnf install pg_drop_events_15;
dnf install pg_drop_events_14;
dnf install pg_drop_events_13;
从 APT仓库 手工安装 pg_drop_events
DEB 包:
apt install postgresql-17-pg-drop-events;
apt install postgresql-16-pg-drop-events;
apt install postgresql-15-pg-drop-events;
apt install postgresql-14-pg-drop-events;
apt install postgresql-13-pg-drop-events;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_drop_events
扩展:
CREATE EXTENSION pg_drop_events CASCADE;
MIXED 第三方扩展: table_log
: 记录某张表的修改日志并做表/行级时间点恢复
table_log
table_log
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLtable_log_$v
0.6.4
postgresql-$v-tablelog
0.6.4
使用 pig
命令行工具安装 table_log
扩展:
pig ext install table_log
使用 Pigsty剧本 安装 table_log 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["table_log"]}' # -l <集群名>
dnf install table_log_17;
dnf install table_log_16;
dnf install table_log_15;
dnf install table_log_14;
dnf install table_log_13;
apt install postgresql-17-tablelog;
apt install postgresql-16-tablelog;
apt install postgresql-15-tablelog;
apt install postgresql-14-tablelog;
apt install postgresql-13-tablelog;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 table_log
扩展:
CREATE EXTENSION table_log;
PGDG 第一方扩展: pgagent
: PostgreSQL任务调度工具,与PGADMIN配合使用
pgagent
pgagent
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgagent_$v*
4.2.3
pgagent
4.2.3
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pgagent_17 PGDG 4.2.3 |
pgagent_16 PGDG 4.2.3 |
pgagent_15 PGDG 4.2.3 |
pgagent_14 PGDG 4.2.3 |
pgagent_13 PGDG 4.2.3 |
el8 |
aarch64 |
pgagent_17 PGDG 4.2.3 |
pgagent_16 PGDG 4.2.3 |
pgagent_15 PGDG 4.2.3 |
pgagent_14 PGDG 4.2.3 |
pgagent_13 PGDG 4.2.3 |
el9 |
x86_64 |
pgagent_17 PGDG 4.2.3 |
pgagent_16 PGDG 4.2.3 |
pgagent_15 PGDG 4.2.3 |
pgagent_14 PGDG 4.2.3 |
pgagent_13 PGDG 4.2.3 |
el9 |
aarch64 |
pgagent_17 PGDG 4.2.3 |
pgagent_16 PGDG 4.2.3 |
pgagent_15 PGDG 4.2.3 |
pgagent_14 PGDG 4.2.3 |
pgagent_13 PGDG 4.2.3 |
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
使用 pig
命令行工具安装 pgagent
扩展:
pig ext install pgagent
使用 Pigsty剧本 安装 pgagent 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgagent"]}' # -l <集群名>
dnf install pgagent_17*;
dnf install pgagent_16*;
dnf install pgagent_15*;
dnf install pgagent_14*;
dnf install pgagent_13*;
apt install pgagent;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgagent
扩展:
CREATE EXTENSION pgagent;
CONTRIB 自带扩展: pg_prewarm
: 预热关系数据
pg_prewarm
None
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 pg_prewarm
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 pg_prewarm
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 pg_prewarm
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
扩展 pg_prewarm
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_prewarm'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_prewarm
扩展:
CREATE EXTENSION pg_prewarm;
PGDG 第一方扩展: pgpool
: PGPool 管理函数
pgpool_adm
pgpool
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgpool-II-pg$v-extensions
4.6.0
postgresql-$v-pgpool2
4.6.0
使用 pig
命令行工具安装 pgpool
扩展:
pig ext install pgpool; # 扩展名称
pig ext install pgpool_adm; # 标准包名
使用 Pigsty剧本 安装 pgpool 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgpool"]}' # -l <集群名>
dnf install pgpool-II-pg17-extensions;
dnf install pgpool-II-pg16-extensions;
dnf install pgpool-II-pg15-extensions;
dnf install pgpool-II-pg14-extensions;
dnf install pgpool-II-pg13-extensions;
apt install postgresql-17-pgpool2;
apt install postgresql-16-pgpool2;
apt install postgresql-15-pgpool2;
apt install postgresql-14-pgpool2;
apt install postgresql-13-pgpool2;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgpool_adm
扩展:
CREATE EXTENSION pgpool_adm;
PGDG 第一方扩展: pgpool
: PGPool辅助扩展,从v4.3提供的恢复函数
pgpool_recovery
pgpool
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgpool-II-pg$v-extensions
4.6.0
postgresql-$v-pgpool2
4.6.0
使用 pig
命令行工具安装 pgpool
扩展:
pig ext install pgpool; # 扩展名称
pig ext install pgpool_recovery; # 标准包名
使用 Pigsty剧本 安装 pgpool 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgpool"]}' # -l <集群名>
dnf install pgpool-II-pg17-extensions;
dnf install pgpool-II-pg16-extensions;
dnf install pgpool-II-pg15-extensions;
dnf install pgpool-II-pg14-extensions;
dnf install pgpool-II-pg13-extensions;
apt install postgresql-17-pgpool2;
apt install postgresql-16-pgpool2;
apt install postgresql-15-pgpool2;
apt install postgresql-14-pgpool2;
apt install postgresql-13-pgpool2;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgpool_recovery
扩展:
CREATE EXTENSION pgpool_recovery;
PGDG 第一方扩展: pgpool
: PGPool辅助扩展,RegClass替代
pgpool_regclass
pgpool
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgpool-II-pg$v-extensions
4.6.0
postgresql-$v-pgpool2
4.6.0
使用 pig
命令行工具安装 pgpool
扩展:
pig ext install pgpool; # 扩展名称
pig ext install pgpool_regclass; # 标准包名
使用 Pigsty剧本 安装 pgpool 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgpool"]}' # -l <集群名>
dnf install pgpool-II-pg17-extensions;
dnf install pgpool-II-pg16-extensions;
dnf install pgpool-II-pg15-extensions;
dnf install pgpool-II-pg14-extensions;
dnf install pgpool-II-pg13-extensions;
apt install postgresql-17-pgpool2;
apt install postgresql-16-pgpool2;
apt install postgresql-15-pgpool2;
apt install postgresql-14-pgpool2;
apt install postgresql-13-pgpool2;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgpool_regclass
扩展:
CREATE EXTENSION pgpool_regclass;
CONTRIB 自带扩展: lo
: 大对象维护
lo
None
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 lo
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 lo
扩展:
CREATE EXTENSION lo;
CONTRIB 自带扩展: basic_archive
: 归档模块样例
basic_archive
None
ADMIN
17
,16
,15
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 basic_archive
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 basic_archive
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
从 APT仓库 手工安装 basic_archive
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
CONTRIB 自带扩展: basebackup_to_shell
: 添加一种备份到Shell终端到基础备份方式
basebackup_to_shell
None
ADMIN
17
,16
,15
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 basebackup_to_shell
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 basebackup_to_shell
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
从 APT仓库 手工安装 basebackup_to_shell
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
CONTRIB 自带扩展: old_snapshot
: 支持 old_snapshot_threshold 的实用程序
old_snapshot
None
ADMIN
16
,15
,14
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 old_snapshot
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 old_snapshot
RPM 包:
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
从 APT仓库 手工安装 old_snapshot
DEB 包:
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 old_snapshot
扩展:
CREATE EXTENSION old_snapshot;
CONTRIB 自带扩展: adminpack
: PostgreSQL 管理函数集合
adminpack
None
ADMIN
16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 adminpack
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 adminpack
扩展:
CREATE EXTENSION adminpack;
CONTRIB 自带扩展: amcheck
: 校验关系完整性
amcheck
None
ADMIN
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 amcheck
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 amcheck
扩展:
CREATE EXTENSION amcheck;
CONTRIB 自带扩展: pg_surgery
: 对损坏的关系进行手术
pg_surgery
None
ADMIN
17
,16
,15
,14
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 pg_surgery
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 pg_surgery
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
从 APT仓库 手工安装 pg_surgery
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_surgery
扩展:
CREATE EXTENSION pg_surgery;
STAT 类目共有 31 个可用扩展:
扩展名(详情) | 标准名(官网) | 仓库 | 版本 | 类目 | 许可证 | LOAD |
DDL |
TRUST |
RELOC |
简介 |
---|---|---|---|---|---|---|---|---|---|---|
pg_profile | pg_profile |
MIXED | 4.8 | STAT |
BSD 2 | PostgreSQL 数据库负载记录与AWR报表工具 | ||||
pg_tracing | pg_tracing |
PIGSTY | 0.1.2 | STAT |
MIT | PostgreSQL分布式Tracing | ||||
pg_show_plans | pg_show_plans |
PGDG | 2.1.2 | STAT |
PostgreSQL | 打印所有当前正在运行查询的执行计划 | ||||
pg_stat_kcache | pg_stat_kcache |
PGDG | 2.3.0 | STAT |
BSD 3 | 内核统计信息收集 | ||||
pg_stat_monitor | pg_stat_monitor |
MIXED | 2.1.1 | STAT |
BSD 3 | 提供查询聚合统计、客户端信息、执行计划详细信息和直方图 | ||||
pg_qualstats | pg_qualstats |
PGDG | 2.1.1 | STAT |
BSD 3 | 收集有关 quals 的统计信息的扩展 | ||||
pg_store_plans | pg_store_plans |
MIXED | 1.8 | STAT |
BSD 3 | 跟踪所有执行的 SQL 语句的计划统计信息 | ||||
pg_track_settings | pg_track_settings |
PGDG | 2.1.2 | STAT |
PostgreSQL | 跟踪设置更改 | ||||
pg_wait_sampling | pg_wait_sampling |
PGDG | 1.1.8 | STAT |
PostgreSQL | 基于采样的等待事件统计 | ||||
system_stats | system_stats |
MIXED | 3.2 | STAT |
PostgreSQL | PostgreSQL 的系统统计函数 | ||||
meta | pg_meta |
PIGSTY | 0.4.0 | STAT |
BSD 2 | 标准化,更友好的PostgreSQL系统目录视图 | ||||
pgnodemx | pgnodemx |
PIGSTY | 1.7 | STAT |
Apache-2.0 | 使用SQL查询获取操作系统指标 | ||||
pg_proctab | pgnodemx |
PIGSTY | 1.7 | STAT |
BSD 3 | 通过SQL接口访问操作系统进程表 | ||||
pg_sqlog | pg_sqlog |
PIGSTY | 1.6 | STAT |
BSD 3 | 提供访问PostgreSQL日志的SQL接口 | ||||
bgw_replstatus | bgw_replstatus |
PGDG | 1.0.7 | STAT |
PostgreSQL | 用于汇报本机主从状态的后台工作进程 | ||||
pgmeminfo | pgmeminfo |
MIXED | 1.0.0 | STAT |
MIT | 显示内存使用情况 | ||||
toastinfo | toastinfo |
PIGSTY | 1.5 | STAT |
PostgreSQL | 显示TOAST字段的详细信息 | ||||
explain_ui | pg_explain_ui |
PIGSTY | 0.0.1 | STAT |
PostgreSQL | 快速跳转至PEV查阅可视化执行计划 | ||||
pg_relusage | pg_relusage |
PIGSTY | 0.0.1 | STAT |
PostgreSQL | 打印查询引用的表与列 | ||||
pagevis | pagevis |
PIGSTY | 0.1 | STAT |
MIT | 使用ASCII字符可视化数据库物理页面布局 | ||||
powa | powa |
PGDG | 5.0.1 | STAT |
PostgreSQL | PostgreSQL 工作负载分析器-核心 | ||||
pageinspect | pageinspect |
CONTRIB | 1.12 | STAT |
PostgreSQL | 检查数据库页面二进制内容 | ||||
pgrowlocks | pgrowlocks |
CONTRIB | 1.2 | STAT |
PostgreSQL | 显示行级锁信息 | ||||
sslinfo | sslinfo |
CONTRIB | 1.2 | STAT |
PostgreSQL | 关于 SSL 证书的信息 | ||||
pg_buffercache | pg_buffercache |
CONTRIB | 1.5 | STAT |
PostgreSQL | 检查共享缓冲区缓存 | ||||
pg_walinspect | pg_walinspect |
CONTRIB | 1.1 | STAT |
PostgreSQL | 用于检查 PostgreSQL WAL 日志内容的函数 | ||||
pg_freespacemap | pg_freespacemap |
CONTRIB | 1.2 | STAT |
PostgreSQL | 检查自由空间映射的内容(FSM) | ||||
pg_visibility | pg_visibility |
CONTRIB | 1.2 | STAT |
PostgreSQL | 检查可见性图(VM)和页面级可见性信息 | ||||
pgstattuple | pgstattuple |
CONTRIB | 1.5 | STAT |
PostgreSQL | 显示元组级统计信息 | ||||
auto_explain | auto_explain |
CONTRIB | - | STAT |
PostgreSQL | 提供一种自动记录执行计划的手段 | ||||
pg_stat_statements | pg_stat_statements |
CONTRIB | 1.11 | STAT |
PostgreSQL | 跟踪所有执行的 SQL 语句的计划和执行统计信息 |
MIXED 第三方扩展: pg_profile
: PostgreSQL 数据库负载记录与AWR报表工具
pg_profile
pg_profile
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLdblink
, plpgsql
pg_profile_$v*
4.8
postgresql-$v-pg-profile
4.7
使用 pig
命令行工具安装 pg_profile
扩展:
pig ext install pg_profile
使用 Pigsty剧本 安装 pg_profile 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_profile"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_profile
RPM 包:
dnf install pg_profile_17*;
dnf install pg_profile_16*;
dnf install pg_profile_15*;
dnf install pg_profile_14*;
dnf install pg_profile_13*;
从 APT仓库 手工安装 pg_profile
DEB 包:
apt install postgresql-17-pg-profile;
apt install postgresql-16-pg-profile;
apt install postgresql-15-pg-profile;
apt install postgresql-14-pg-profile;
apt install postgresql-13-pg-profile;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_profile
扩展:
CREATE EXTENSION pg_profile CASCADE;
PIGSTY 第三方扩展: pg_tracing
: PostgreSQL分布式Tracing
pg_tracing
pg_tracing
STAT
17
,16
,15
CREATE EXTENSION
DDLpg_tracing_$v*
0.1.2
postgresql-$v-pg-tracing
0.1.2
使用 pig
命令行工具安装 pg_tracing
扩展:
pig ext install pg_tracing
使用 Pigsty剧本 安装 pg_tracing 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_tracing"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_tracing
RPM 包:
dnf install pg_tracing_17*;
dnf install pg_tracing_16*;
dnf install pg_tracing_15*;
从 APT仓库 手工安装 pg_tracing
DEB 包:
apt install postgresql-17-pg-tracing;
apt install postgresql-16-pg-tracing;
apt install postgresql-15-pg-tracing;
扩展 pg_tracing
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_tracing'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_tracing
扩展:
CREATE EXTENSION pg_tracing;
PGDG 第一方扩展: pg_show_plans
: 打印所有当前正在运行查询的执行计划
pg_show_plans
pg_show_plans
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_show_plans_$v*
2.1.2
postgresql-$v-show-plans
2.1.2
使用 pig
命令行工具安装 pg_show_plans
扩展:
pig ext install pg_show_plans
使用 Pigsty剧本 安装 pg_show_plans 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_show_plans"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_show_plans
RPM 包:
dnf install pg_show_plans_17*;
dnf install pg_show_plans_16*;
dnf install pg_show_plans_15*;
dnf install pg_show_plans_14*;
dnf install pg_show_plans_13*;
从 APT仓库 手工安装 pg_show_plans
DEB 包:
apt install postgresql-17-show-plans;
apt install postgresql-16-show-plans;
apt install postgresql-15-show-plans;
apt install postgresql-14-show-plans;
apt install postgresql-13-show-plans;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_show_plans
扩展:
CREATE EXTENSION pg_show_plans;
PGDG 第一方扩展: pg_stat_kcache
: 内核统计信息收集
pg_stat_kcache
pg_stat_kcache
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_stat_statements
pg_stat_kcache_$v*
2.3.0
postgresql-$v-pg-stat-kcache
2.3.0
使用 pig
命令行工具安装 pg_stat_kcache
扩展:
pig ext install pg_stat_kcache
使用 Pigsty剧本 安装 pg_stat_kcache 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_stat_kcache"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_stat_kcache
RPM 包:
dnf install pg_stat_kcache_17*;
dnf install pg_stat_kcache_16*;
dnf install pg_stat_kcache_15*;
dnf install pg_stat_kcache_14*;
dnf install pg_stat_kcache_13*;
从 APT仓库 手工安装 pg_stat_kcache
DEB 包:
apt install postgresql-17-pg-stat-kcache;
apt install postgresql-16-pg-stat-kcache;
apt install postgresql-15-pg-stat-kcache;
apt install postgresql-14-pg-stat-kcache;
apt install postgresql-13-pg-stat-kcache;
扩展 pg_stat_kcache
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_stat_kcache'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_stat_kcache
扩展:
CREATE EXTENSION pg_stat_kcache CASCADE;
MIXED 第三方扩展: pg_stat_monitor
: 提供查询聚合统计、客户端信息、执行计划详细信息和直方图
pg_stat_monitor
pg_stat_monitor
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_stat_monitor_$v*
2.1.1
postgresql-$v-pg-stat-monitor
2.1.1
使用 pig
命令行工具安装 pg_stat_monitor
扩展:
pig ext install pg_stat_monitor
使用 Pigsty剧本 安装 pg_stat_monitor 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_stat_monitor"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_stat_monitor
RPM 包:
dnf install pg_stat_monitor_17*;
dnf install pg_stat_monitor_16*;
dnf install pg_stat_monitor_15*;
dnf install pg_stat_monitor_14*;
dnf install pg_stat_monitor_13*;
从 APT仓库 手工安装 pg_stat_monitor
DEB 包:
apt install postgresql-17-pg-stat-monitor;
apt install postgresql-16-pg-stat-monitor;
apt install postgresql-15-pg-stat-monitor;
apt install postgresql-14-pg-stat-monitor;
apt install postgresql-13-pg-stat-monitor;
扩展 pg_stat_monitor
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_stat_monitor'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_stat_monitor
扩展:
CREATE EXTENSION pg_stat_monitor;
PGDG 第一方扩展: pg_qualstats
: 收集有关 quals 的统计信息的扩展
pg_qualstats
pg_qualstats
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_qualstats_$v*
2.1.1
postgresql-$v-pg-qualstats
2.1.1
使用 pig
命令行工具安装 pg_qualstats
扩展:
pig ext install pg_qualstats
使用 Pigsty剧本 安装 pg_qualstats 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_qualstats"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_qualstats
RPM 包:
dnf install pg_qualstats_17*;
dnf install pg_qualstats_16*;
dnf install pg_qualstats_15*;
dnf install pg_qualstats_14*;
dnf install pg_qualstats_13*;
从 APT仓库 手工安装 pg_qualstats
DEB 包:
apt install postgresql-17-pg-qualstats;
apt install postgresql-16-pg-qualstats;
apt install postgresql-15-pg-qualstats;
apt install postgresql-14-pg-qualstats;
apt install postgresql-13-pg-qualstats;
扩展 pg_qualstats
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_qualstats'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_qualstats
扩展:
CREATE EXTENSION pg_qualstats;
MIXED 第三方扩展: pg_store_plans
: 跟踪所有执行的 SQL 语句的计划统计信息
pg_store_plans
pg_store_plans
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_store_plans_$v*
1.8
postgresql-$v-pg-store-plan
1.8
使用 pig
命令行工具安装 pg_store_plans
扩展:
pig ext install pg_store_plans
使用 Pigsty剧本 安装 pg_store_plans 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_store_plans"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_store_plans
RPM 包:
dnf install pg_store_plans_17*;
dnf install pg_store_plans_16*;
dnf install pg_store_plans_15*;
dnf install pg_store_plans_14*;
dnf install pg_store_plans_13*;
从 APT仓库 手工安装 pg_store_plans
DEB 包:
apt install postgresql-17-pg-store-plan;
apt install postgresql-16-pg-store-plan;
apt install postgresql-15-pg-store-plan;
apt install postgresql-14-pg-store-plan;
apt install postgresql-13-pg-store-plan;
扩展 pg_store_plans
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_store_plans'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_store_plans
扩展:
CREATE EXTENSION pg_store_plans;
PGDG 第一方扩展: pg_track_settings
: 跟踪设置更改
pg_track_settings
pg_track_settings
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建pg_track_settings_$v
2.1.2
postgresql-$v-pg-track-settings
2.1.2
使用 pig
命令行工具安装 pg_track_settings
扩展:
pig ext install pg_track_settings
使用 Pigsty剧本 安装 pg_track_settings 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_track_settings"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_track_settings
RPM 包:
dnf install pg_track_settings_17;
dnf install pg_track_settings_16;
dnf install pg_track_settings_15;
dnf install pg_track_settings_14;
dnf install pg_track_settings_13;
从 APT仓库 手工安装 pg_track_settings
DEB 包:
apt install postgresql-17-pg-track-settings;
apt install postgresql-16-pg-track-settings;
apt install postgresql-15-pg-track-settings;
apt install postgresql-14-pg-track-settings;
apt install postgresql-13-pg-track-settings;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_track_settings
扩展:
CREATE EXTENSION pg_track_settings;
PGDG 第一方扩展: pg_wait_sampling
: 基于采样的等待事件统计
pg_wait_sampling
pg_wait_sampling
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_wait_sampling_$v*
1.1.8
postgresql-$v-pg-wait-sampling
1.1.8
使用 pig
命令行工具安装 pg_wait_sampling
扩展:
pig ext install pg_wait_sampling
使用 Pigsty剧本 安装 pg_wait_sampling 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_wait_sampling"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_wait_sampling
RPM 包:
dnf install pg_wait_sampling_17*;
dnf install pg_wait_sampling_16*;
dnf install pg_wait_sampling_15*;
dnf install pg_wait_sampling_14*;
dnf install pg_wait_sampling_13*;
从 APT仓库 手工安装 pg_wait_sampling
DEB 包:
apt install postgresql-17-pg-wait-sampling;
apt install postgresql-16-pg-wait-sampling;
apt install postgresql-15-pg-wait-sampling;
apt install postgresql-14-pg-wait-sampling;
apt install postgresql-13-pg-wait-sampling;
扩展 pg_wait_sampling
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_wait_sampling'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_wait_sampling
扩展:
CREATE EXTENSION pg_wait_sampling;
MIXED 第三方扩展: system_stats
: PostgreSQL 的系统统计函数
system_stats
system_stats
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLsystem_stats_$v*
3.2
postgresql-$v-system-stats
3.2
使用 pig
命令行工具安装 system_stats
扩展:
pig ext install system_stats
使用 Pigsty剧本 安装 system_stats 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["system_stats"]}' # -l <集群名>
从 YUM仓库 手工安装 system_stats
RPM 包:
dnf install system_stats_17*;
dnf install system_stats_16*;
dnf install system_stats_15*;
dnf install system_stats_14*;
dnf install system_stats_13*;
从 APT仓库 手工安装 system_stats
DEB 包:
apt install postgresql-17-system-stats;
apt install postgresql-16-system-stats;
apt install postgresql-15-system-stats;
apt install postgresql-14-system-stats;
apt install postgresql-13-system-stats;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 system_stats
扩展:
CREATE EXTENSION system_stats;
PIGSTY 第三方扩展: pg_meta
: 标准化,更友好的PostgreSQL系统目录视图
meta
pg_meta
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_meta_$v
0.4.0
postgresql-$v-pg-meta
0.4.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg_meta_17 PIGSTY 0.4.0 |
pg_meta_16 PIGSTY 0.4.0 |
pg_meta_15 PIGSTY 0.4.0 |
pg_meta_14 PIGSTY 0.4.0 |
pg_meta_13 PIGSTY 0.4.0 |
el8 |
aarch64 |
pg_meta_17 PIGSTY 0.4.0 |
pg_meta_16 PIGSTY 0.4.0 |
pg_meta_15 PIGSTY 0.4.0 |
pg_meta_14 PIGSTY 0.4.0 |
pg_meta_13 PIGSTY 0.4.0 |
el9 |
x86_64 |
pg_meta_17 PIGSTY 0.4.0 |
pg_meta_16 PIGSTY 0.4.0 |
pg_meta_15 PIGSTY 0.4.0 |
pg_meta_14 PIGSTY 0.4.0 |
pg_meta_13 PIGSTY 0.4.0 |
el9 |
aarch64 |
pg_meta_17 PIGSTY 0.4.0 |
pg_meta_16 PIGSTY 0.4.0 |
pg_meta_15 PIGSTY 0.4.0 |
pg_meta_14 PIGSTY 0.4.0 |
pg_meta_13 PIGSTY 0.4.0 |
d12 |
x86_64 |
postgresql-17-pg-meta PIGSTY 0.4.0 |
postgresql-16-pg-meta PIGSTY 0.4.0 |
postgresql-15-pg-meta PIGSTY 0.4.0 |
postgresql-14-pg-meta PIGSTY 0.4.0 |
postgresql-13-pg-meta PIGSTY 0.4.0 |
d12 |
aarch64 |
postgresql-17-pg-meta PIGSTY 0.4.0 |
postgresql-16-pg-meta PIGSTY 0.4.0 |
postgresql-15-pg-meta PIGSTY 0.4.0 |
postgresql-14-pg-meta PIGSTY 0.4.0 |
postgresql-13-pg-meta PIGSTY 0.4.0 |
u22 |
x86_64 |
postgresql-17-pg-meta PIGSTY 0.4.0 |
postgresql-16-pg-meta PIGSTY 0.4.0 |
postgresql-15-pg-meta PIGSTY 0.4.0 |
postgresql-14-pg-meta PIGSTY 0.4.0 |
postgresql-13-pg-meta PIGSTY 0.4.0 |
u22 |
aarch64 |
postgresql-17-pg-meta PIGSTY 0.4.0 |
postgresql-16-pg-meta PIGSTY 0.4.0 |
postgresql-15-pg-meta PIGSTY 0.4.0 |
postgresql-14-pg-meta PIGSTY 0.4.0 |
postgresql-13-pg-meta PIGSTY 0.4.0 |
u24 |
x86_64 |
postgresql-17-pg-meta PIGSTY 0.4.0 |
postgresql-16-pg-meta PIGSTY 0.4.0 |
postgresql-15-pg-meta PIGSTY 0.4.0 |
postgresql-14-pg-meta PIGSTY 0.4.0 |
postgresql-13-pg-meta PIGSTY 0.4.0 |
u24 |
aarch64 |
postgresql-17-pg-meta PIGSTY 0.4.0 |
postgresql-16-pg-meta PIGSTY 0.4.0 |
postgresql-15-pg-meta PIGSTY 0.4.0 |
postgresql-14-pg-meta PIGSTY 0.4.0 |
postgresql-13-pg-meta PIGSTY 0.4.0 |
使用 pig
命令行工具安装 pg_meta
扩展:
pig ext install pg_meta; # 扩展名称
pig ext install meta; # 标准包名
使用 Pigsty剧本 安装 pg_meta 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_meta"]}' # -l <集群名>
dnf install pg_meta_17;
dnf install pg_meta_16;
dnf install pg_meta_15;
dnf install pg_meta_14;
dnf install pg_meta_13;
apt install postgresql-17-pg-meta;
apt install postgresql-16-pg-meta;
apt install postgresql-15-pg-meta;
apt install postgresql-14-pg-meta;
apt install postgresql-13-pg-meta;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 meta
扩展:
CREATE EXTENSION meta;
PIGSTY 第三方扩展: pgnodemx
: 使用SQL查询获取操作系统指标
pgnodemx
pgnodemx
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgnodemx_$v
1.7
postgresql-$v-pgnodemx
1.7
使用 pig
命令行工具安装 pgnodemx
扩展:
pig ext install pgnodemx
使用 Pigsty剧本 安装 pgnodemx 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgnodemx"]}' # -l <集群名>
dnf install pgnodemx_17;
dnf install pgnodemx_16;
dnf install pgnodemx_15;
dnf install pgnodemx_14;
dnf install pgnodemx_13;
apt install postgresql-17-pgnodemx;
apt install postgresql-16-pgnodemx;
apt install postgresql-15-pgnodemx;
apt install postgresql-14-pgnodemx;
apt install postgresql-13-pgnodemx;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgnodemx
扩展:
CREATE EXTENSION pgnodemx;
PIGSTY 第三方扩展: pgnodemx
: 通过SQL接口访问操作系统进程表
pg_proctab
pgnodemx
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgnodemx_$v
1.7
postgresql-$v-pgnodemx
1.7
使用 pig
命令行工具安装 pgnodemx
扩展:
pig ext install pgnodemx; # 扩展名称
pig ext install pg_proctab; # 标准包名
使用 Pigsty剧本 安装 pgnodemx 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgnodemx"]}' # -l <集群名>
dnf install pgnodemx_17;
dnf install pgnodemx_16;
dnf install pgnodemx_15;
dnf install pgnodemx_14;
dnf install pgnodemx_13;
apt install postgresql-17-pgnodemx;
apt install postgresql-16-pgnodemx;
apt install postgresql-15-pgnodemx;
apt install postgresql-14-pgnodemx;
apt install postgresql-13-pgnodemx;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_proctab
扩展:
CREATE EXTENSION pg_proctab;
PIGSTY 第三方扩展: pg_sqlog
: 提供访问PostgreSQL日志的SQL接口
pg_sqlog
pg_sqlog
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLsqlog
file_fdw
pg_sqlog_$v
1.6
postgresql-$v-pg-sqlog
1.6
使用 pig
命令行工具安装 pg_sqlog
扩展:
pig ext install pg_sqlog
使用 Pigsty剧本 安装 pg_sqlog 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_sqlog"]}' # -l <集群名>
dnf install pg_sqlog_17;
dnf install pg_sqlog_16;
dnf install pg_sqlog_15;
dnf install pg_sqlog_14;
dnf install pg_sqlog_13;
apt install postgresql-17-pg-sqlog;
apt install postgresql-16-pg-sqlog;
apt install postgresql-15-pg-sqlog;
apt install postgresql-14-pg-sqlog;
apt install postgresql-13-pg-sqlog;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_sqlog
扩展:
CREATE EXTENSION pg_sqlog CASCADE;
PGDG 第一方扩展: bgw_replstatus
: 用于汇报本机主从状态的后台工作进程
bgw_replstatus
bgw_replstatus
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLbgw_replstatus_$v*
1.0.6
postgresql-$v-bgw-replstatus
1.0.7
使用 pig
命令行工具安装 bgw_replstatus
扩展:
pig ext install bgw_replstatus
使用 Pigsty剧本 安装 bgw_replstatus 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["bgw_replstatus"]}' # -l <集群名>
从 YUM仓库 手工安装 bgw_replstatus
RPM 包:
dnf install bgw_replstatus_17*;
dnf install bgw_replstatus_16*;
dnf install bgw_replstatus_15*;
dnf install bgw_replstatus_14*;
dnf install bgw_replstatus_13*;
从 APT仓库 手工安装 bgw_replstatus
DEB 包:
apt install postgresql-17-bgw-replstatus;
apt install postgresql-16-bgw-replstatus;
apt install postgresql-15-bgw-replstatus;
apt install postgresql-14-bgw-replstatus;
apt install postgresql-13-bgw-replstatus;
扩展 bgw_replstatus
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'bgw_replstatus'; # 修改 PG 集群配置
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
MIXED 第三方扩展: pgmeminfo
: 显示内存使用情况
pgmeminfo
pgmeminfo
STAT
pgdg-flaw
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgmeminfo_$v*
1.0.0
postgresql-$v-pgmeminfo
1.0.0
使用 pig
命令行工具安装 pgmeminfo
扩展:
pig ext install pgmeminfo
使用 Pigsty剧本 安装 pgmeminfo 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgmeminfo"]}' # -l <集群名>
dnf install pgmeminfo_17*;
dnf install pgmeminfo_16*;
dnf install pgmeminfo_15*;
dnf install pgmeminfo_14*;
dnf install pgmeminfo_13*;
apt install postgresql-17-pgmeminfo;
apt install postgresql-16-pgmeminfo;
apt install postgresql-15-pgmeminfo;
apt install postgresql-14-pgmeminfo;
apt install postgresql-13-pgmeminfo;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgmeminfo
扩展:
CREATE EXTENSION pgmeminfo;
PIGSTY 第三方扩展: toastinfo
: 显示TOAST字段的详细信息
toastinfo
toastinfo
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLtoastinfo_$v*
1.4
postgresql-$v-toastinfo
1.5
使用 pig
命令行工具安装 toastinfo
扩展:
pig ext install toastinfo
使用 Pigsty剧本 安装 toastinfo 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["toastinfo"]}' # -l <集群名>
dnf install toastinfo_17*;
dnf install toastinfo_16*;
dnf install toastinfo_15*;
dnf install toastinfo_14*;
dnf install toastinfo_13*;
apt install postgresql-17-toastinfo;
apt install postgresql-16-toastinfo;
apt install postgresql-15-toastinfo;
apt install postgresql-14-toastinfo;
apt install postgresql-13-toastinfo;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 toastinfo
扩展:
CREATE EXTENSION toastinfo;
PIGSTY 第三方扩展: pg_explain_ui
: 快速跳转至PEV查阅可视化执行计划
explain_ui
pg_explain_ui
STAT
pgrx
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建pg_explain_ui_$v
0.0.1
postgresql-$v-pg-explain-ui
0.0.1
使用 pig
命令行工具安装 pg_explain_ui
扩展:
pig ext install pg_explain_ui; # 扩展名称
pig ext install explain_ui; # 标准包名
使用 Pigsty剧本 安装 pg_explain_ui 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_explain_ui"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_explain_ui
RPM 包:
dnf install pg_explain_ui_17;
dnf install pg_explain_ui_16;
dnf install pg_explain_ui_15;
dnf install pg_explain_ui_14;
dnf install pg_explain_ui_13;
从 APT仓库 手工安装 pg_explain_ui
DEB 包:
apt install postgresql-17-pg-explain-ui;
apt install postgresql-16-pg-explain-ui;
apt install postgresql-15-pg-explain-ui;
apt install postgresql-14-pg-explain-ui;
apt install postgresql-13-pg-explain-ui;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 explain_ui
扩展:
CREATE EXTENSION explain_ui;
PIGSTY 第三方扩展: pg_relusage
: 打印查询引用的表与列
pg_relusage
pg_relusage
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_relusage_$v
0.0.1
postgresql-$v-pg-relusage
0.0.1
使用 pig
命令行工具安装 pg_relusage
扩展:
pig ext install pg_relusage
使用 Pigsty剧本 安装 pg_relusage 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_relusage"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_relusage
RPM 包:
dnf install pg_relusage_17;
dnf install pg_relusage_16;
dnf install pg_relusage_15;
dnf install pg_relusage_14;
dnf install pg_relusage_13;
从 APT仓库 手工安装 pg_relusage
DEB 包:
apt install postgresql-17-pg-relusage;
apt install postgresql-16-pg-relusage;
apt install postgresql-15-pg-relusage;
apt install postgresql-14-pg-relusage;
apt install postgresql-13-pg-relusage;
扩展 pg_relusage
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_relusage'; # 修改 PG 集群配置
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
PIGSTY 第三方扩展: pagevis
: 使用ASCII字符可视化数据库物理页面布局
pagevis
pagevis
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpagevis_$v
0.1
postgresql-$v-pagevis
0.1
使用 pig
命令行工具安装 pagevis
扩展:
pig ext install pagevis
使用 Pigsty剧本 安装 pagevis 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pagevis"]}' # -l <集群名>
dnf install pagevis_17;
dnf install pagevis_16;
dnf install pagevis_15;
dnf install pagevis_14;
dnf install pagevis_13;
apt install postgresql-17-pagevis;
apt install postgresql-16-pagevis;
apt install postgresql-15-pagevis;
apt install postgresql-14-pagevis;
apt install postgresql-13-pagevis;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pagevis
扩展:
CREATE EXTENSION pagevis;
PGDG 第一方扩展: powa
: PostgreSQL 工作负载分析器-核心
powa
powa
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpublic
plpgsql
, pg_stat_statements
, btree_gist
powa_$v*
5.0.1
postgresql-$v-powa
5.0.1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
powa_17 PGDG 5.0.1 |
powa_16 PGDG 5.0.1 |
powa_15 PGDG 5.0.1 |
powa_14 PGDG 5.0.1 |
powa_13 PGDG 5.0.1 |
el8 |
aarch64 |
powa_17 PGDG 5.0.1 |
powa_16 PGDG 5.0.1 |
powa_15 PGDG 5.0.1 |
powa_14 PGDG 5.0.1 |
powa_13 PGDG 5.0.1 |
el9 |
x86_64 |
powa_17 PGDG 5.0.1 |
powa_16 PGDG 5.0.1 |
powa_15 PGDG 5.0.1 |
powa_14 PGDG 5.0.1 |
powa_13 PGDG 5.0.1 |
el9 |
aarch64 |
powa_17 PGDG 5.0.1 |
powa_16 PGDG 5.0.1 |
powa_15 PGDG 5.0.1 |
powa_14 PGDG 5.0.1 |
powa_13 PGDG 5.0.1 |
d12 |
x86_64 |
postgresql-17-powa PGDG 5.0.1 |
postgresql-16-powa PGDG 5.0.1 |
postgresql-15-powa PGDG 5.0.1 |
postgresql-14-powa PGDG 5.0.1 |
postgresql-13-powa PGDG 5.0.1 |
d12 |
aarch64 |
postgresql-17-powa PGDG 5.0.1 |
postgresql-16-powa PGDG 5.0.1 |
postgresql-15-powa PGDG 5.0.1 |
postgresql-14-powa PGDG 5.0.1 |
postgresql-13-powa PGDG 5.0.1 |
u22 |
x86_64 |
postgresql-17-powa PGDG 5.0.1 |
postgresql-16-powa PGDG 5.0.1 |
postgresql-15-powa PGDG 5.0.1 |
postgresql-14-powa PGDG 5.0.1 |
postgresql-13-powa PGDG 5.0.1 |
u22 |
aarch64 |
postgresql-17-powa PGDG 5.0.1 |
postgresql-16-powa PGDG 5.0.1 |
postgresql-15-powa PGDG 5.0.1 |
postgresql-14-powa PGDG 5.0.1 |
postgresql-13-powa PGDG 5.0.1 |
u24 |
x86_64 |
postgresql-17-powa PGDG 5.0.1 |
postgresql-16-powa PGDG 5.0.1 |
postgresql-15-powa PGDG 5.0.1 |
postgresql-14-powa PGDG 5.0.1 |
postgresql-13-powa PGDG 5.0.1 |
u24 |
aarch64 |
postgresql-17-powa PGDG 5.0.1 |
postgresql-16-powa PGDG 5.0.1 |
postgresql-15-powa PGDG 5.0.1 |
postgresql-14-powa PGDG 5.0.1 |
postgresql-13-powa PGDG 5.0.1 |
使用 pig
命令行工具安装 powa
扩展:
pig ext install powa
使用 Pigsty剧本 安装 powa 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["powa"]}' # -l <集群名>
dnf install powa_17*;
dnf install powa_16*;
dnf install powa_15*;
dnf install powa_14*;
dnf install powa_13*;
apt install postgresql-17-powa;
apt install postgresql-16-powa;
apt install postgresql-15-powa;
apt install postgresql-14-powa;
apt install postgresql-13-powa;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 powa
扩展:
CREATE EXTENSION powa CASCADE;
CONTRIB 自带扩展: pageinspect
: 检查数据库页面二进制内容
pageinspect
None
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 pageinspect
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 pageinspect
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 pageinspect
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pageinspect
扩展:
CREATE EXTENSION pageinspect;
CONTRIB 自带扩展: pgrowlocks
: 显示行级锁信息
pgrowlocks
None
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 pgrowlocks
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 pgrowlocks
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 pgrowlocks
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgrowlocks
扩展:
CREATE EXTENSION pgrowlocks;
CONTRIB 自带扩展: sslinfo
: 关于 SSL 证书的信息
sslinfo
None
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 sslinfo
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 sslinfo
扩展:
CREATE EXTENSION sslinfo;
CONTRIB 自带扩展: pg_buffercache
: 检查共享缓冲区缓存
pg_buffercache
None
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 pg_buffercache
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 pg_buffercache
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 pg_buffercache
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_buffercache
扩展:
CREATE EXTENSION pg_buffercache;
CONTRIB 自带扩展: pg_walinspect
: 用于检查 PostgreSQL WAL 日志内容的函数
pg_walinspect
None
STAT
17
,16
,15
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 pg_walinspect
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 pg_walinspect
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
从 APT仓库 手工安装 pg_walinspect
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_walinspect
扩展:
CREATE EXTENSION pg_walinspect;
CONTRIB 自带扩展: pg_freespacemap
: 检查自由空间映射的内容(FSM)
pg_freespacemap
None
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 pg_freespacemap
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 pg_freespacemap
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 pg_freespacemap
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_freespacemap
扩展:
CREATE EXTENSION pg_freespacemap;
CONTRIB 自带扩展: pg_visibility
: 检查可见性图(VM)和页面级可见性信息
pg_visibility
None
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 pg_visibility
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 pg_visibility
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 pg_visibility
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_visibility
扩展:
CREATE EXTENSION pg_visibility;
CONTRIB 自带扩展: pgstattuple
: 显示元组级统计信息
pgstattuple
None
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 pgstattuple
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 pgstattuple
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 pgstattuple
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgstattuple
扩展:
CREATE EXTENSION pgstattuple;
CONTRIB 自带扩展: auto_explain
: 提供一种自动记录执行计划的手段
auto_explain
None
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 auto_explain
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 auto_explain
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 auto_explain
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
扩展 auto_explain
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'auto_explain'; # 修改 PG 集群配置
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
CONTRIB 自带扩展: pg_stat_statements
: 跟踪所有执行的 SQL 语句的计划和执行统计信息
pg_stat_statements
None
STAT
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 pg_stat_statements
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 pg_stat_statements
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 pg_stat_statements
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
扩展 pg_stat_statements
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_stat_statements'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_stat_statements
扩展:
CREATE EXTENSION pg_stat_statements;
SEC 类目共有 26 个可用扩展:
扩展名(详情) | 标准名(官网) | 仓库 | 版本 | 类目 | 许可证 | LOAD |
DDL |
TRUST |
RELOC |
简介 |
---|---|---|---|---|---|---|---|---|---|---|
passwordcheck_cracklib | passwordcheck |
MIXED | 3.1.0 | SEC |
LGPLv2 | 使用cracklib加固PG用户密码 | ||||
supautils | supautils |
PIGSTY | 2.6.0 | SEC |
Apache-2.0 | 用于在云环境中确保数据库集群的安全 | ||||
pgsodium | pgsodium |
PIGSTY | 3.1.9 | SEC |
BSD 3 | 表数据加密存储 TDE | ||||
supabase_vault | pg_vault |
PIGSTY | 0.3.1 | SEC |
Apache-2.0 | 在 Vault 中存储加密凭证的扩展 (supabase) | ||||
pg_session_jwt | pg_session_jwt |
PIGSTY | 0.2.0 | SEC |
Apache-2.0 | 使用JWT进行会话认证 | ||||
anon | pg_anon |
PIGSTY | 2.0.0 | SEC |
PostgreSQL | 数据匿名化处理工具 | ||||
pg_tde | pg_tde |
PIGSTY | 1.0 | SEC |
MIT | 试点性质的加密存储引擎 | ||||
pgsmcrypto | pgsmcrypto |
PIGSTY | 0.1.0 | SEC |
MIT | 为PostgreSQL提供商密算法支持:SM2,SM3,SM4 | ||||
pgaudit | pgaudit |
PGDG | 17.1 | SEC |
PostgreSQL | 提供审计功能 | ||||
pgauditlogtofile | pgauditlogtofile |
PGDG | 1.6.4 | SEC |
PostgreSQL | pgAudit 子扩展,将审计日志写入单独的文件中 | ||||
pg_auth_mon | pg_auth_mon |
MIXED | 3.0 | SEC |
MIT | 监控每个用户的连接尝试 | ||||
credcheck | credcheck |
PGDG | 3.0 | SEC |
MIT | 明文凭证检查器 | ||||
pgcryptokey | pgcryptokey |
MIXED | 0.85 | SEC |
PostgreSQL | PG密钥管理 | ||||
pg_jobmon | pg_jobmon |
MIXED | 1.4.1 | SEC |
PostgreSQL | 记录和监控函数 | ||||
logerrors | logerrors |
MIXED | 2.1.3 | SEC |
BSD 3 | 用于收集日志文件中消息统计信息的函数 | ||||
login_hook | login_hook |
MIXED | 1.6 | SEC |
GPLv3 | 在用户登陆时执行login_hook.login()函数 | ||||
set_user | set_user |
PGDG | 4.1.0 | SEC |
PostgreSQL | 增加了日志记录的 SET ROLE | ||||
pg_snakeoil | pg_snakeoil |
MIXED | 1.4 | SEC |
PostgreSQL | PostgreSQL动态链接库反病毒功能 | ||||
pgextwlist | pgextwlist |
PIGSTY | 1.17 | SEC |
PostgreSQL | PostgreSQL扩展白名单功能 | ||||
pg_auditor | pg_auditor |
PIGSTY | 0.2 | SEC |
BSD 3 | 审计数据变更并提供闪回能力 | ||||
sslutils | sslutils |
PIGSTY | 1.4 | SEC |
PostgreSQL | 使用SQL管理SSL证书 | ||||
noset | pg_noset |
PIGSTY | 0.3.0 | SEC |
AGPLv3 | 阻止非超级用户使用SET/RESET设置变量 | ||||
sepgsql | sepgsql |
CONTRIB | - | SEC |
PostgreSQL | 基于SELinux标签的强制访问控制 | ||||
auth_delay | auth_delay |
CONTRIB | - | SEC |
PostgreSQL | 在返回认证失败前暂停一会,避免爆破 | ||||
pgcrypto | pgcrypto |
CONTRIB | 1.3 | SEC |
PostgreSQL | 实用加解密函数 | ||||
passwordcheck | passwordcheck |
CONTRIB | - | SEC |
PostgreSQL | 用于强制拒绝修改弱密码的扩展 |
MIXED 第三方扩展: passwordcheck
: 使用cracklib加固PG用户密码
passwordcheck_cracklib
passwordcheck
SEC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpasswordcheck_cracklib_$v*
3.1.0
postgresql-$v-passwordcheck-cracklib
3.1.0
使用 pig
命令行工具安装 passwordcheck
扩展:
pig ext install passwordcheck; # 扩展名称
pig ext install passwordcheck_cracklib; # 标准包名
使用 Pigsty剧本 安装 passwordcheck 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["passwordcheck"]}' # -l <集群名>
从 YUM仓库 手工安装 passwordcheck
RPM 包:
dnf install passwordcheck_cracklib_17*;
dnf install passwordcheck_cracklib_16*;
dnf install passwordcheck_cracklib_15*;
dnf install passwordcheck_cracklib_14*;
dnf install passwordcheck_cracklib_13*;
从 APT仓库 手工安装 passwordcheck
DEB 包:
apt install postgresql-17-passwordcheck-cracklib;
apt install postgresql-16-passwordcheck-cracklib;
apt install postgresql-15-passwordcheck-cracklib;
apt install postgresql-14-passwordcheck-cracklib;
apt install postgresql-13-passwordcheck-cracklib;
扩展 passwordcheck_cracklib
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'passwordcheck_cracklib'; # 修改 PG 集群配置
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
PIGSTY 第三方扩展: supautils
: 用于在云环境中确保数据库集群的安全
supautils
supautils
SEC
supabase
17
,16
,15
,14
,13
CREATE EXTENSION
DDLsupautils_$v*
2.6.0
postgresql-$v-supautils
2.6.0
使用 pig
命令行工具安装 supautils
扩展:
pig ext install supautils
使用 Pigsty剧本 安装 supautils 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["supautils"]}' # -l <集群名>
dnf install supautils_17*;
dnf install supautils_16*;
dnf install supautils_15*;
dnf install supautils_14*;
dnf install supautils_13*;
apt install postgresql-17-supautils;
apt install postgresql-16-supautils;
apt install postgresql-15-supautils;
apt install postgresql-14-supautils;
apt install postgresql-13-supautils;
扩展 supautils
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'supautils'; # 修改 PG 集群配置
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
PIGSTY 第三方扩展: pgsodium
: 表数据加密存储 TDE
pgsodium
pgsodium
SEC
supabase
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgsodium
pgsodium_$v*
3.1.9
postgresql-$v-pgsodium
3.1.9
使用 pig
命令行工具安装 pgsodium
扩展:
pig ext install pgsodium
使用 Pigsty剧本 安装 pgsodium 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgsodium"]}' # -l <集群名>
dnf install pgsodium_17*;
dnf install pgsodium_16*;
dnf install pgsodium_15*;
dnf install pgsodium_14*;
dnf install pgsodium_13*;
apt install postgresql-17-pgsodium;
apt install postgresql-16-pgsodium;
apt install postgresql-15-pgsodium;
apt install postgresql-14-pgsodium;
apt install postgresql-13-pgsodium;
扩展 pgsodium
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pgsodium'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgsodium
扩展:
CREATE EXTENSION pgsodium;
PIGSTY 第三方扩展: pg_vault
: 在 Vault 中存储加密凭证的扩展 (supabase)
supabase_vault
pg_vault
SEC
supabase
17
,16
,15
,14
,13
CREATE EXTENSION
DDLvault
pgsodium
vault_$v*
0.3.1
postgresql-$v-vault
0.3.1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
vault_17 PIGSTY 0.3.1 |
vault_16 PIGSTY 0.3.1 |
vault_15 PIGSTY 0.3.1 |
vault_14 PIGSTY 0.3.1 |
vault_13 PIGSTY 0.3.1 |
el8 |
aarch64 |
vault_17 PIGSTY 0.3.1 |
vault_16 PIGSTY 0.3.1 |
vault_15 PIGSTY 0.3.1 |
vault_14 PIGSTY 0.3.1 |
vault_13 PIGSTY 0.3.1 |
el9 |
x86_64 |
vault_17 PIGSTY 0.3.1 |
vault_16 PIGSTY 0.3.1 |
vault_15 PIGSTY 0.3.1 |
vault_14 PIGSTY 0.3.1 |
vault_13 PIGSTY 0.3.1 |
el9 |
aarch64 |
vault_17 PIGSTY 0.3.1 |
vault_16 PIGSTY 0.3.1 |
vault_15 PIGSTY 0.3.1 |
vault_14 PIGSTY 0.3.1 |
vault_13 PIGSTY 0.3.1 |
d12 |
x86_64 |
postgresql-17-vault PIGSTY 0.3.1 |
postgresql-16-vault PIGSTY 0.3.1 |
postgresql-15-vault PIGSTY 0.3.1 |
postgresql-14-vault PIGSTY 0.3.1 |
postgresql-13-vault PIGSTY 0.3.1 |
d12 |
aarch64 |
postgresql-17-vault PIGSTY 0.3.1 |
postgresql-16-vault PIGSTY 0.3.1 |
postgresql-15-vault PIGSTY 0.3.1 |
postgresql-14-vault PIGSTY 0.3.1 |
postgresql-13-vault PIGSTY 0.3.1 |
u22 |
x86_64 |
postgresql-17-vault PIGSTY 0.3.1 |
postgresql-16-vault PIGSTY 0.3.1 |
postgresql-15-vault PIGSTY 0.3.1 |
postgresql-14-vault PIGSTY 0.3.1 |
postgresql-13-vault PIGSTY 0.3.1 |
u22 |
aarch64 |
postgresql-17-vault PIGSTY 0.3.1 |
postgresql-16-vault PIGSTY 0.3.1 |
postgresql-15-vault PIGSTY 0.3.1 |
postgresql-14-vault PIGSTY 0.3.1 |
postgresql-13-vault PIGSTY 0.3.1 |
u24 |
x86_64 |
postgresql-17-vault PIGSTY 0.3.1 |
postgresql-16-vault PIGSTY 0.3.1 |
postgresql-15-vault PIGSTY 0.3.1 |
postgresql-14-vault PIGSTY 0.3.1 |
postgresql-13-vault PIGSTY 0.3.1 |
u24 |
aarch64 |
postgresql-17-vault PIGSTY 0.3.1 |
postgresql-16-vault PIGSTY 0.3.1 |
postgresql-15-vault PIGSTY 0.3.1 |
postgresql-14-vault PIGSTY 0.3.1 |
postgresql-13-vault PIGSTY 0.3.1 |
使用 pig
命令行工具安装 pg_vault
扩展:
pig ext install pg_vault; # 扩展名称
pig ext install supabase_vault; # 标准包名
使用 Pigsty剧本 安装 pg_vault 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_vault"]}' # -l <集群名>
dnf install vault_17*;
dnf install vault_16*;
dnf install vault_15*;
dnf install vault_14*;
dnf install vault_13*;
apt install postgresql-17-vault;
apt install postgresql-16-vault;
apt install postgresql-15-vault;
apt install postgresql-14-vault;
apt install postgresql-13-vault;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 supabase_vault
扩展:
CREATE EXTENSION supabase_vault CASCADE;
PIGSTY 第三方扩展: pg_session_jwt
: 使用JWT进行会话认证
pg_session_jwt
pg_session_jwt
SEC
neon
, pgrx
17
,16
,15
,14
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建auth
pg_session_jwt_$v
0.1.2
postgresql-$v-pg-session-jwt
0.1.2
使用 pig
命令行工具安装 pg_session_jwt
扩展:
pig ext install pg_session_jwt
使用 Pigsty剧本 安装 pg_session_jwt 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_session_jwt"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_session_jwt
RPM 包:
dnf install pg_session_jwt_17;
dnf install pg_session_jwt_16;
dnf install pg_session_jwt_15;
dnf install pg_session_jwt_14;
从 APT仓库 手工安装 pg_session_jwt
DEB 包:
apt install postgresql-17-pg-session-jwt;
apt install postgresql-16-pg-session-jwt;
apt install postgresql-15-pg-session-jwt;
apt install postgresql-14-pg-session-jwt;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_session_jwt
扩展:
CREATE EXTENSION pg_session_jwt;
PIGSTY 第三方扩展: pg_anon
: 数据匿名化处理工具
anon
pg_anon
SEC
pgrx
17
,16
,15
,14
,13
CREATE EXTENSION
DDLanon
pg_anon_$v
2.0.0
postgresql-$v-pg-anon
2.0.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg_anon_17 PIGSTY 2.0.0 |
pg_anon_16 PIGSTY 2.0.0 |
pg_anon_15 PIGSTY 2.0.0 |
pg_anon_14 PIGSTY 2.0.0 |
pg_anon_13 PIGSTY 2.0.0 |
el8 |
aarch64 |
pg_anon_17 PIGSTY 2.0.0 |
pg_anon_16 PIGSTY 2.0.0 |
pg_anon_15 PIGSTY 2.0.0 |
pg_anon_14 PIGSTY 2.0.0 |
pg_anon_13 PIGSTY 2.0.0 |
el9 |
x86_64 |
pg_anon_17 PIGSTY 2.0.0 |
pg_anon_16 PIGSTY 2.0.0 |
pg_anon_15 PIGSTY 2.0.0 |
pg_anon_14 PIGSTY 2.0.0 |
pg_anon_13 PIGSTY 2.0.0 |
el9 |
aarch64 |
pg_anon_17 PIGSTY 2.0.0 |
pg_anon_16 PIGSTY 2.0.0 |
pg_anon_15 PIGSTY 2.0.0 |
pg_anon_14 PIGSTY 2.0.0 |
pg_anon_13 PIGSTY 2.0.0 |
d12 |
x86_64 |
postgresql-17-pg-anon PIGSTY 2.0.0 |
postgresql-16-pg-anon PIGSTY 2.0.0 |
postgresql-15-pg-anon PIGSTY 2.0.0 |
postgresql-14-pg-anon PIGSTY 2.0.0 |
postgresql-13-pg-anon PIGSTY 2.0.0 |
d12 |
aarch64 |
postgresql-17-pg-anon PIGSTY 2.0.0 |
postgresql-16-pg-anon PIGSTY 2.0.0 |
postgresql-15-pg-anon PIGSTY 2.0.0 |
postgresql-14-pg-anon PIGSTY 2.0.0 |
postgresql-13-pg-anon PIGSTY 2.0.0 |
u22 |
x86_64 |
postgresql-17-pg-anon PIGSTY 2.0.0 |
postgresql-16-pg-anon PIGSTY 2.0.0 |
postgresql-15-pg-anon PIGSTY 2.0.0 |
postgresql-14-pg-anon PIGSTY 2.0.0 |
postgresql-13-pg-anon PIGSTY 2.0.0 |
u22 |
aarch64 |
postgresql-17-pg-anon PIGSTY 2.0.0 |
postgresql-16-pg-anon PIGSTY 2.0.0 |
postgresql-15-pg-anon PIGSTY 2.0.0 |
postgresql-14-pg-anon PIGSTY 2.0.0 |
postgresql-13-pg-anon PIGSTY 2.0.0 |
u24 |
x86_64 |
postgresql-17-pg-anon PIGSTY 2.0.0 |
postgresql-16-pg-anon PIGSTY 2.0.0 |
postgresql-15-pg-anon PIGSTY 2.0.0 |
postgresql-14-pg-anon PIGSTY 2.0.0 |
postgresql-13-pg-anon PIGSTY 2.0.0 |
u24 |
aarch64 |
postgresql-17-pg-anon PIGSTY 2.0.0 |
postgresql-16-pg-anon PIGSTY 2.0.0 |
postgresql-15-pg-anon PIGSTY 2.0.0 |
postgresql-14-pg-anon PIGSTY 2.0.0 |
postgresql-13-pg-anon PIGSTY 2.0.0 |
使用 pig
命令行工具安装 pg_anon
扩展:
pig ext install pg_anon; # 扩展名称
pig ext install anon; # 标准包名
使用 Pigsty剧本 安装 pg_anon 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_anon"]}' # -l <集群名>
dnf install pg_anon_17;
dnf install pg_anon_16;
dnf install pg_anon_15;
dnf install pg_anon_14;
dnf install pg_anon_13;
apt install postgresql-17-pg-anon;
apt install postgresql-16-pg-anon;
apt install postgresql-15-pg-anon;
apt install postgresql-14-pg-anon;
apt install postgresql-13-pg-anon;
扩展 anon
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'anon'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 anon
扩展:
CREATE EXTENSION anon;
PIGSTY 第三方扩展: pg_tde
: 试点性质的加密存储引擎
pg_tde
pg_tde
SEC
beta
16
CREATE EXTENSION
DDLpg_tde_$v*
1.0
postgresql-$v-pg-tde
1.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg_tde_16 PIGSTY 1.0.0 |
||||
el8 |
aarch64 |
pg_tde_16 PIGSTY 1.0.0 |
||||
el9 |
x86_64 |
pg_tde_16 PIGSTY 1.0.0 |
||||
el9 |
aarch64 |
pg_tde_16 PIGSTY 1.0.0 |
||||
d12 |
x86_64 |
postgresql-16-pg-tde PIGSTY 1.0.0 |
||||
d12 |
aarch64 |
postgresql-16-pg-tde PIGSTY 1.0.0 |
||||
u22 |
x86_64 |
postgresql-16-pg-tde PIGSTY 1.0.0 |
||||
u22 |
aarch64 |
postgresql-16-pg-tde PIGSTY 1.0.0 |
||||
u24 |
x86_64 |
postgresql-16-pg-tde PIGSTY 1.0.0 |
||||
u24 |
aarch64 |
postgresql-16-pg-tde PIGSTY 1.0.0 |
使用 pig
命令行工具安装 pg_tde
扩展:
pig ext install pg_tde
使用 Pigsty剧本 安装 pg_tde 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_tde"]}' # -l <集群名>
dnf install pg_tde_16*;
apt install postgresql-16-pg-tde;
扩展 pg_tde
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_tde'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_tde
扩展:
CREATE EXTENSION pg_tde;
PIGSTY 第三方扩展: pgsmcrypto
: 为PostgreSQL提供商密算法支持:SM2,SM3,SM4
pgsmcrypto
pgsmcrypto
SEC
pgrx
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgsmcrypto_$v
0.1.0
postgresql-$v-pgsmcrypto
0.1.0
使用 pig
命令行工具安装 pgsmcrypto
扩展:
pig ext install pgsmcrypto
使用 Pigsty剧本 安装 pgsmcrypto 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgsmcrypto"]}' # -l <集群名>
从 YUM仓库 手工安装 pgsmcrypto
RPM 包:
dnf install pgsmcrypto_17;
dnf install pgsmcrypto_16;
dnf install pgsmcrypto_15;
dnf install pgsmcrypto_14;
dnf install pgsmcrypto_13;
从 APT仓库 手工安装 pgsmcrypto
DEB 包:
apt install postgresql-17-pgsmcrypto;
apt install postgresql-16-pgsmcrypto;
apt install postgresql-15-pgsmcrypto;
apt install postgresql-14-pgsmcrypto;
apt install postgresql-13-pgsmcrypto;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgsmcrypto
扩展:
CREATE EXTENSION pgsmcrypto;
PGDG 第一方扩展: pgaudit
: 提供审计功能
pgaudit
pgaudit
SEC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgaudit_$v*
17.0
postgresql-$v-pgaudit
17.0
使用 pig
命令行工具安装 pgaudit
扩展:
pig ext install pgaudit
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgaudit"]}' # common case
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgaudit17"]}' # pg15 @ el
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgaudit16"]}' # pg14 @ el
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgaudit15"]}' # pg13 @ el
dnf install pgaudit_17*;
dnf install pgaudit_16*;
dnf install pgaudit_15*;
dnf install pgaudit_14*;
dnf install pgaudit_13*;
apt install postgresql-17-pgaudit;
apt install postgresql-16-pgaudit;
apt install postgresql-15-pgaudit;
apt install postgresql-14-pgaudit;
apt install postgresql-13-pgaudit;
扩展 pgaudit
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pgaudit'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgaudit
扩展:
CREATE EXTENSION pgaudit;
PGDG 第一方扩展: pgauditlogtofile
: pgAudit 子扩展,将审计日志写入单独的文件中
pgauditlogtofile
pgauditlogtofile
SEC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgauditlogtofile_$v*
1.6.4
postgresql-$v-pgauditlogtofile
1.6.4
使用 pig
命令行工具安装 pgauditlogtofile
扩展:
pig ext install pgauditlogtofile
使用 Pigsty剧本 安装 pgauditlogtofile 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgauditlogtofile"]}' # -l <集群名>
从 YUM仓库 手工安装 pgauditlogtofile
RPM 包:
dnf install pgauditlogtofile_17*;
dnf install pgauditlogtofile_16*;
dnf install pgauditlogtofile_15*;
dnf install pgauditlogtofile_14*;
dnf install pgauditlogtofile_13*;
从 APT仓库 手工安装 pgauditlogtofile
DEB 包:
apt install postgresql-17-pgauditlogtofile;
apt install postgresql-16-pgauditlogtofile;
apt install postgresql-15-pgauditlogtofile;
apt install postgresql-14-pgauditlogtofile;
apt install postgresql-13-pgauditlogtofile;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgauditlogtofile
扩展:
CREATE EXTENSION pgauditlogtofile;
MIXED 第三方扩展: pg_auth_mon
: 监控每个用户的连接尝试
pg_auth_mon
pg_auth_mon
SEC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_auth_mon_$v*
3.0
postgresql-$v-pg-auth-mon
3.0
使用 pig
命令行工具安装 pg_auth_mon
扩展:
pig ext install pg_auth_mon
使用 Pigsty剧本 安装 pg_auth_mon 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_auth_mon"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_auth_mon
RPM 包:
dnf install pg_auth_mon_17*;
dnf install pg_auth_mon_16*;
dnf install pg_auth_mon_15*;
dnf install pg_auth_mon_14*;
dnf install pg_auth_mon_13*;
从 APT仓库 手工安装 pg_auth_mon
DEB 包:
apt install postgresql-17-pg-auth-mon;
apt install postgresql-16-pg-auth-mon;
apt install postgresql-15-pg-auth-mon;
apt install postgresql-14-pg-auth-mon;
apt install postgresql-13-pg-auth-mon;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_auth_mon
扩展:
CREATE EXTENSION pg_auth_mon;
PGDG 第一方扩展: credcheck
: 明文凭证检查器
credcheck
credcheck
SEC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLcredcheck_$v*
3.0
postgresql-$v-credcheck
3.0
使用 pig
命令行工具安装 credcheck
扩展:
pig ext install credcheck
使用 Pigsty剧本 安装 credcheck 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["credcheck"]}' # -l <集群名>
dnf install credcheck_17*;
dnf install credcheck_16*;
dnf install credcheck_15*;
dnf install credcheck_14*;
dnf install credcheck_13*;
apt install postgresql-17-credcheck;
apt install postgresql-16-credcheck;
apt install postgresql-15-credcheck;
apt install postgresql-14-credcheck;
apt install postgresql-13-credcheck;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 credcheck
扩展:
CREATE EXTENSION credcheck;
MIXED 第三方扩展: pgcryptokey
: PG密钥管理
pgcryptokey
pgcryptokey
SEC
pgdg-flaw
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgcrypto
pgcryptokey_$v
0.85
postgresql-$v-pgcryptokey
0.85
使用 pig
命令行工具安装 pgcryptokey
扩展:
pig ext install pgcryptokey
使用 Pigsty剧本 安装 pgcryptokey 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgcryptokey"]}' # -l <集群名>
从 YUM仓库 手工安装 pgcryptokey
RPM 包:
dnf install pgcryptokey_17;
dnf install pgcryptokey_16;
dnf install pgcryptokey_15;
dnf install pgcryptokey_14;
dnf install pgcryptokey_13;
从 APT仓库 手工安装 pgcryptokey
DEB 包:
apt install postgresql-17-pgcryptokey;
apt install postgresql-16-pgcryptokey;
apt install postgresql-15-pgcryptokey;
apt install postgresql-14-pgcryptokey;
apt install postgresql-13-pgcryptokey;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgcryptokey
扩展:
CREATE EXTENSION pgcryptokey CASCADE;
MIXED 第三方扩展: pg_jobmon
: 记录和监控函数
pg_jobmon
pg_jobmon
SEC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLdblink
pg_jobmon_$v
1.4.1
postgresql-$v-pg-jobmon
1.4.1
使用 pig
命令行工具安装 pg_jobmon
扩展:
pig ext install pg_jobmon
使用 Pigsty剧本 安装 pg_jobmon 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_jobmon"]}' # -l <集群名>
dnf install pg_jobmon_17;
dnf install pg_jobmon_16;
dnf install pg_jobmon_15;
dnf install pg_jobmon_14;
dnf install pg_jobmon_13;
apt install postgresql-17-pg-jobmon;
apt install postgresql-16-pg-jobmon;
apt install postgresql-15-pg-jobmon;
apt install postgresql-14-pg-jobmon;
apt install postgresql-13-pg-jobmon;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_jobmon
扩展:
CREATE EXTENSION pg_jobmon CASCADE;
MIXED 第三方扩展: logerrors
: 用于收集日志文件中消息统计信息的函数
logerrors
logerrors
SEC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLlogerrors_$v*
2.1.3
postgresql-$v-logerrors
2.1.3
使用 pig
命令行工具安装 logerrors
扩展:
pig ext install logerrors
使用 Pigsty剧本 安装 logerrors 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["logerrors"]}' # -l <集群名>
dnf install logerrors_17*;
dnf install logerrors_16*;
dnf install logerrors_15*;
dnf install logerrors_14*;
dnf install logerrors_13*;
apt install postgresql-17-logerrors;
apt install postgresql-16-logerrors;
apt install postgresql-15-logerrors;
apt install postgresql-14-logerrors;
apt install postgresql-13-logerrors;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 logerrors
扩展:
CREATE EXTENSION logerrors;
MIXED 第三方扩展: login_hook
: 在用户登陆时执行login_hook.login()函数
login_hook
login_hook
SEC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLlogin_hook
login_hook_$v*
1.6
postgresql-$v-login-hook
1.6
使用 pig
命令行工具安装 login_hook
扩展:
pig ext install login_hook
使用 Pigsty剧本 安装 login_hook 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["login_hook"]}' # -l <集群名>
从 YUM仓库 手工安装 login_hook
RPM 包:
dnf install login_hook_17*;
dnf install login_hook_16*;
dnf install login_hook_15*;
dnf install login_hook_14*;
dnf install login_hook_13*;
从 APT仓库 手工安装 login_hook
DEB 包:
apt install postgresql-17-login-hook;
apt install postgresql-16-login-hook;
apt install postgresql-15-login-hook;
apt install postgresql-14-login-hook;
apt install postgresql-13-login-hook;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 login_hook
扩展:
CREATE EXTENSION login_hook;
PGDG 第一方扩展: set_user
: 增加了日志记录的 SET ROLE
set_user
set_user
SEC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLset_user_$v*
4.1.0
postgresql-$v-set-user
4.1.0
使用 pig
命令行工具安装 set_user
扩展:
pig ext install set_user
使用 Pigsty剧本 安装 set_user 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["set_user"]}' # -l <集群名>
dnf install set_user_17*;
dnf install set_user_16*;
dnf install set_user_15*;
dnf install set_user_14*;
dnf install set_user_13*;
apt install postgresql-17-set-user;
apt install postgresql-16-set-user;
apt install postgresql-15-set-user;
apt install postgresql-14-set-user;
apt install postgresql-13-set-user;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 set_user
扩展:
CREATE EXTENSION set_user;
MIXED 第三方扩展: pg_snakeoil
: PostgreSQL动态链接库反病毒功能
pg_snakeoil
pg_snakeoil
SEC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_snakeoil_$v*
1.4
postgresql-$v-snakeoil
1.4
使用 pig
命令行工具安装 pg_snakeoil
扩展:
pig ext install pg_snakeoil
使用 Pigsty剧本 安装 pg_snakeoil 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_snakeoil"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_snakeoil
RPM 包:
dnf install pg_snakeoil_17*;
dnf install pg_snakeoil_16*;
dnf install pg_snakeoil_15*;
dnf install pg_snakeoil_14*;
dnf install pg_snakeoil_13*;
从 APT仓库 手工安装 pg_snakeoil
DEB 包:
apt install postgresql-17-snakeoil;
apt install postgresql-16-snakeoil;
apt install postgresql-15-snakeoil;
apt install postgresql-14-snakeoil;
apt install postgresql-13-snakeoil;
扩展 pg_snakeoil
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_snakeoil'; # 修改 PG 集群配置
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
PIGSTY 第三方扩展: pgextwlist
: PostgreSQL扩展白名单功能
pgextwlist
pgextwlist
SEC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgextwlist_$v*
1.17
postgresql-$v-pgextwlist
1.17
使用 pig
命令行工具安装 pgextwlist
扩展:
pig ext install pgextwlist
使用 Pigsty剧本 安装 pgextwlist 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgextwlist"]}' # -l <集群名>
从 YUM仓库 手工安装 pgextwlist
RPM 包:
dnf install pgextwlist_17*;
dnf install pgextwlist_16*;
dnf install pgextwlist_15*;
dnf install pgextwlist_14*;
dnf install pgextwlist_13*;
从 APT仓库 手工安装 pgextwlist
DEB 包:
apt install postgresql-17-pgextwlist;
apt install postgresql-16-pgextwlist;
apt install postgresql-15-pgextwlist;
apt install postgresql-14-pgextwlist;
apt install postgresql-13-pgextwlist;
扩展 pgextwlist
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pgextwlist'; # 修改 PG 集群配置
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
PIGSTY 第三方扩展: pg_auditor
: 审计数据变更并提供闪回能力
pg_auditor
pg_auditor
SEC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_auditor_$v
0.2
postgresql-$v-pg-auditor
0.2
使用 pig
命令行工具安装 pg_auditor
扩展:
pig ext install pg_auditor
使用 Pigsty剧本 安装 pg_auditor 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_auditor"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_auditor
RPM 包:
dnf install pg_auditor_17;
dnf install pg_auditor_16;
dnf install pg_auditor_15;
dnf install pg_auditor_14;
dnf install pg_auditor_13;
从 APT仓库 手工安装 pg_auditor
DEB 包:
apt install postgresql-17-pg-auditor;
apt install postgresql-16-pg-auditor;
apt install postgresql-15-pg-auditor;
apt install postgresql-14-pg-auditor;
apt install postgresql-13-pg-auditor;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_auditor
扩展:
CREATE EXTENSION pg_auditor;
PIGSTY 第三方扩展: sslutils
: 使用SQL管理SSL证书
sslutils
sslutils
SEC
pgdg-flaw
17
,16
,15
,14
,13
CREATE EXTENSION
DDLsslutils_$v*
1.4
postgresql-$v-sslutils
1.4
使用 pig
命令行工具安装 sslutils
扩展:
pig ext install sslutils
使用 Pigsty剧本 安装 sslutils 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["sslutils"]}' # -l <集群名>
dnf install sslutils_17*;
dnf install sslutils_16*;
dnf install sslutils_15*;
dnf install sslutils_14*;
dnf install sslutils_13*;
apt install postgresql-17-sslutils;
apt install postgresql-16-sslutils;
apt install postgresql-15-sslutils;
apt install postgresql-14-sslutils;
apt install postgresql-13-sslutils;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 sslutils
扩展:
CREATE EXTENSION sslutils;
PIGSTY 第三方扩展: pg_noset
: 阻止非超级用户使用SET/RESET设置变量
noset
pg_noset
SEC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLnoset_$v*
0.3.0
postgresql-$v-noset
0.3.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
noset_17 PIGSTY 0.3.0 |
noset_16 PIGSTY 0.3.0 |
noset_15 PIGSTY 0.3.0 |
noset_14 PIGSTY 0.3.0 |
noset_13 PIGSTY 0.3.0 |
el8 |
aarch64 |
noset_17 PIGSTY 0.3.0 |
noset_16 PIGSTY 0.3.0 |
noset_15 PIGSTY 0.3.0 |
noset_14 PIGSTY 0.3.0 |
noset_13 PIGSTY 0.3.0 |
el9 |
x86_64 |
noset_17 PIGSTY 0.3.0 |
noset_16 PIGSTY 0.3.0 |
noset_15 PIGSTY 0.3.0 |
noset_14 PIGSTY 0.3.0 |
noset_13 PIGSTY 0.3.0 |
el9 |
aarch64 |
noset_17 PIGSTY 0.3.0 |
noset_16 PIGSTY 0.3.0 |
noset_15 PIGSTY 0.3.0 |
noset_14 PIGSTY 0.3.0 |
noset_13 PIGSTY 0.3.0 |
d12 |
x86_64 |
postgresql-17-noset PIGSTY 0.3.0 |
postgresql-16-noset PIGSTY 0.3.0 |
postgresql-15-noset PIGSTY 0.3.0 |
postgresql-14-noset PIGSTY 0.3.0 |
postgresql-13-noset PIGSTY 0.3.0 |
d12 |
aarch64 |
postgresql-17-noset PIGSTY 0.3.0 |
postgresql-16-noset PIGSTY 0.3.0 |
postgresql-15-noset PIGSTY 0.3.0 |
postgresql-14-noset PIGSTY 0.3.0 |
postgresql-13-noset PIGSTY 0.3.0 |
u22 |
x86_64 |
postgresql-17-noset PIGSTY 0.3.0 |
postgresql-16-noset PIGSTY 0.3.0 |
postgresql-15-noset PIGSTY 0.3.0 |
postgresql-14-noset PIGSTY 0.3.0 |
postgresql-13-noset PIGSTY 0.3.0 |
u22 |
aarch64 |
postgresql-17-noset PIGSTY 0.3.0 |
postgresql-16-noset PIGSTY 0.3.0 |
postgresql-15-noset PIGSTY 0.3.0 |
postgresql-14-noset PIGSTY 0.3.0 |
postgresql-13-noset PIGSTY 0.3.0 |
u24 |
x86_64 |
postgresql-17-noset PIGSTY 0.3.0 |
postgresql-16-noset PIGSTY 0.3.0 |
postgresql-15-noset PIGSTY 0.3.0 |
postgresql-14-noset PIGSTY 0.3.0 |
postgresql-13-noset PIGSTY 0.3.0 |
u24 |
aarch64 |
postgresql-17-noset PIGSTY 0.3.0 |
postgresql-16-noset PIGSTY 0.3.0 |
postgresql-15-noset PIGSTY 0.3.0 |
postgresql-14-noset PIGSTY 0.3.0 |
postgresql-13-noset PIGSTY 0.3.0 |
使用 pig
命令行工具安装 pg_noset
扩展:
pig ext install pg_noset; # 扩展名称
pig ext install noset; # 标准包名
使用 Pigsty剧本 安装 pg_noset 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_noset"]}' # -l <集群名>
dnf install noset_17*;
dnf install noset_16*;
dnf install noset_15*;
dnf install noset_14*;
dnf install noset_13*;
apt install postgresql-17-noset;
apt install postgresql-16-noset;
apt install postgresql-15-noset;
apt install postgresql-14-noset;
apt install postgresql-13-noset;
扩展 noset
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'noset'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 noset
扩展:
CREATE EXTENSION noset;
CONTRIB 自带扩展: sepgsql
: 基于SELinux标签的强制访问控制
sepgsql
None
SEC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 sepgsql
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
扩展 sepgsql
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'sepgsql'; # 修改 PG 集群配置
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
CONTRIB 自带扩展: auth_delay
: 在返回认证失败前暂停一会,避免爆破
auth_delay
None
SEC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 auth_delay
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 auth_delay
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 auth_delay
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
扩展 auth_delay
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'auth_delay'; # 修改 PG 集群配置
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
CONTRIB 自带扩展: pgcrypto
: 实用加解密函数
pgcrypto
None
SEC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建PostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 pgcrypto
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgcrypto
扩展:
CREATE EXTENSION pgcrypto;
CONTRIB 自带扩展: passwordcheck
: 用于强制拒绝修改弱密码的扩展
passwordcheck
None
SEC
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 passwordcheck
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 passwordcheck
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 passwordcheck
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
扩展 passwordcheck
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'passwordcheck'; # 修改 PG 集群配置
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
FDW 类目共有 22 个可用扩展:
扩展名(详情) | 标准名(官网) | 仓库 | 版本 | 类目 | 许可证 | LOAD |
DDL |
TRUST |
RELOC |
简介 |
---|---|---|---|---|---|---|---|---|---|---|
wrappers | wrappers |
PIGSTY | 0.4.5 | FDW |
Apache-2.0 | Supabase提供的外部数据源包装器捆绑包 | ||||
multicorn | multicorn |
PGDG | 3.0 | FDW |
PostgreSQL | 用Python编写自定义的外部数据源包装器 | ||||
odbc_fdw | odbc_fdw |
PGDG | 0.5.1 | FDW |
PostgreSQL | 访问ODBC可访问的任何外部数据源 | ||||
jdbc_fdw | jdbc_fdw |
PGDG | 1.2 | FDW |
PostgreSQL | 访问JDBC可访问的任何外部数据源 | ||||
pgspider_ext | pgspider_ext |
PGDG | 1.3.0 | FDW |
PostgreSQL | 使用多种FDW访问远程数据库服务器 | ||||
mysql_fdw | mysql_fdw |
PGDG | 2.9.2 | FDW |
BSD 3 | MySQL外部数据包装器 | ||||
oracle_fdw | oracle_fdw |
PGDG | 2.7.0 | FDW |
PostgreSQL | 提供对Oracle的外部数据源包装器 | ||||
tds_fdw | tds_fdw |
PGDG | 2.0.4 | FDW |
PostgreSQL | TDS 数据库(Sybase/SQL Server)外部数据包装器 | ||||
db2_fdw | db2_fdw |
PGDG | 6.0.1 | FDW |
PostgreSQL | 提供对DB2的外部数据源包装器 | ||||
sqlite_fdw | sqlite_fdw |
PGDG | 2.5.0 | FDW |
PostgreSQL | SQLite 外部数据包装器 | ||||
pgbouncer_fdw | pgbouncer_fdw |
PGDG | 1.3.0 | FDW |
PostgreSQL | 用SQL查询pgbouncer统计信息,并执行pgbouncer命令 | ||||
mongo_fdw | mongo_fdw |
PGDG | 1.1 | FDW |
LGPLv3 | MongoDB 外部数据包装器 | ||||
redis_fdw | redis_fdw |
PIGSTY | 1.0 | FDW |
PostgreSQL | 查询外部Redis数据源 | ||||
redis | pg_redis_pubsub |
PIGSTY | 0.0.1 | FDW |
MIT | 从PG向Redis发送Pub/Sub消息 | ||||
kafka_fdw | kafka_fdw |
PIGSTY | 0.0.3 | FDW |
PostgreSQL | Kafka外部数据源包装器 | ||||
hdfs_fdw | hdfs_fdw |
PGDG | 2.3.2 | FDW |
BSD 3 | hdfs 外部数据包装器 | ||||
firebird_fdw | firebird_fdw |
PIGSTY | 1.4.0 | FDW |
PostgreSQL | Firebird外部数据源包装器 | ||||
aws_s3 | aws_s3 |
PIGSTY | 0.0.1 | FDW |
Apache-2.0 | 从S3导入导出数据的外部数据源包装器 | ||||
log_fdw | log_fdw |
PIGSTY | 1.4 | FDW |
Apache-2.0 | 访问PostgreSQL日志文件的FDW | ||||
dblink | dblink |
CONTRIB | 1.2 | FDW |
PostgreSQL | 从数据库内连接到其他 PostgreSQL 数据库 | ||||
file_fdw | file_fdw |
CONTRIB | 1.0 | FDW |
PostgreSQL | 访问外部文件的外部数据包装器 | ||||
postgres_fdw | postgres_fdw |
CONTRIB | 1.1 | FDW |
PostgreSQL | 用于远程 PostgreSQL 服务器的外部数据包装器 |
PIGSTY 第三方扩展: wrappers
: Supabase提供的外部数据源包装器捆绑包
wrappers
wrappers
FDW
pgrx
, supabase
17
,16
,15
,14
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建wrappers_$v
0.4.4
postgresql-$v-wrappers
0.4.4
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
wrappers_17 PIGSTY 0.4.5 |
wrappers_16 PIGSTY 0.4.5 |
wrappers_15 PIGSTY 0.4.5 |
wrappers_14 PIGSTY 0.4.5 |
|
el8 |
aarch64 |
wrappers_17 PIGSTY 0.4.5 |
wrappers_16 PIGSTY 0.4.5 |
wrappers_15 PIGSTY 0.4.5 |
wrappers_14 PIGSTY 0.4.5 |
|
el9 |
x86_64 |
wrappers_17 PIGSTY 0.4.5 |
wrappers_16 PIGSTY 0.4.5 |
wrappers_15 PIGSTY 0.4.5 |
wrappers_14 PIGSTY 0.4.5 |
|
el9 |
aarch64 |
wrappers_17 PIGSTY 0.4.5 |
wrappers_16 PIGSTY 0.4.5 |
wrappers_15 PIGSTY 0.4.5 |
wrappers_14 PIGSTY 0.4.5 |
|
d12 |
x86_64 |
postgresql-17-wrappers PIGSTY 0.4.5 |
postgresql-16-wrappers PIGSTY 0.4.5 |
postgresql-15-wrappers PIGSTY 0.4.5 |
postgresql-14-wrappers PIGSTY 0.4.5 |
|
d12 |
aarch64 |
postgresql-17-wrappers PIGSTY 0.4.5 |
postgresql-16-wrappers PIGSTY 0.4.5 |
postgresql-15-wrappers PIGSTY 0.4.5 |
postgresql-14-wrappers PIGSTY 0.4.5 |
|
u22 |
x86_64 |
postgresql-17-wrappers PIGSTY 0.4.5 |
postgresql-16-wrappers PIGSTY 0.4.5 |
postgresql-15-wrappers PIGSTY 0.4.5 |
postgresql-14-wrappers PIGSTY 0.4.5 |
|
u22 |
aarch64 |
postgresql-17-wrappers PIGSTY 0.4.5 |
postgresql-16-wrappers PIGSTY 0.4.5 |
postgresql-15-wrappers PIGSTY 0.4.5 |
postgresql-14-wrappers PIGSTY 0.4.5 |
|
u24 |
x86_64 |
postgresql-17-wrappers PIGSTY 0.4.5 |
postgresql-16-wrappers PIGSTY 0.4.5 |
postgresql-15-wrappers PIGSTY 0.4.5 |
postgresql-14-wrappers PIGSTY 0.4.5 |
|
u24 |
aarch64 |
postgresql-17-wrappers PIGSTY 0.4.5 |
postgresql-16-wrappers PIGSTY 0.4.5 |
postgresql-15-wrappers PIGSTY 0.4.5 |
postgresql-14-wrappers PIGSTY 0.4.5 |
使用 pig
命令行工具安装 wrappers
扩展:
pig ext install wrappers
使用 Pigsty剧本 安装 wrappers 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["wrappers"]}' # -l <集群名>
dnf install wrappers_17;
dnf install wrappers_16;
dnf install wrappers_15;
dnf install wrappers_14;
apt install postgresql-17-wrappers;
apt install postgresql-16-wrappers;
apt install postgresql-15-wrappers;
apt install postgresql-14-wrappers;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 wrappers
扩展:
CREATE EXTENSION wrappers;
PGDG 第一方扩展: multicorn
: 用Python编写自定义的外部数据源包装器
multicorn
multicorn
FDW
17
,16
,15
,14
,13
CREATE EXTENSION
DDLmulticorn2_$v*
3.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
multicorn2_17 PGDG 3.0 |
multicorn2_16 PGDG 3.0 |
multicorn2_15 PGDG 3.0 |
multicorn2_14 PGDG 3.0 |
multicorn2_13 PGDG 3.0 |
el8 |
aarch64 |
multicorn2_17 PGDG 3.0 |
multicorn2_16 PGDG 3.0 |
multicorn2_15 PGDG 3.0 |
multicorn2_14 PGDG 3.0 |
multicorn2_13 PGDG 3.0 |
el9 |
x86_64 |
multicorn2_17 PGDG 3.0 |
multicorn2_16 PGDG 3.0 |
multicorn2_15 PGDG 3.0 |
multicorn2_14 PGDG 3.0 |
multicorn2_13 PGDG 3.0 |
el9 |
aarch64 |
multicorn2_17 PGDG 3.0 |
multicorn2_16 PGDG 3.0 |
multicorn2_15 PGDG 3.0 |
multicorn2_14 PGDG 3.0 |
multicorn2_13 PGDG 3.0 |
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
使用 pig
命令行工具安装 multicorn
扩展:
pig ext install multicorn
使用 Pigsty剧本 安装 multicorn 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["multicorn"]}' # -l <集群名>
dnf install multicorn2_17*;
dnf install multicorn2_16*;
dnf install multicorn2_15*;
dnf install multicorn2_14*;
dnf install multicorn2_13*;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 multicorn
扩展:
CREATE EXTENSION multicorn;
PGDG 第一方扩展: odbc_fdw
: 访问ODBC可访问的任何外部数据源
odbc_fdw
odbc_fdw
FDW
17
,16
,15
,14
,13
CREATE EXTENSION
DDLodbc_fdw_$v*
0.5.1
unixODBC
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
odbc_fdw_17 PGDG 0.5.1 |
odbc_fdw_16 PGDG 0.5.1 |
odbc_fdw_15 PGDG 0.5.1 |
odbc_fdw_14 PGDG 0.5.1 |
odbc_fdw_13 PGDG 0.5.1 |
el8 |
aarch64 |
odbc_fdw_17 PGDG 0.5.1 |
odbc_fdw_16 PGDG 0.5.1 |
odbc_fdw_15 PGDG 0.5.1 |
odbc_fdw_14 PGDG 0.5.1 |
odbc_fdw_13 PGDG 0.5.1 |
el9 |
x86_64 |
odbc_fdw_17 PGDG 0.5.1 |
odbc_fdw_16 PGDG 0.5.1 |
odbc_fdw_15 PGDG 0.5.1 |
odbc_fdw_14 PGDG 0.5.1 |
odbc_fdw_13 PGDG 0.5.1 |
el9 |
aarch64 |
odbc_fdw_17 PGDG 0.5.1 |
odbc_fdw_16 PGDG 0.5.1 |
odbc_fdw_15 PGDG 0.5.1 |
odbc_fdw_14 PGDG 0.5.1 |
odbc_fdw_13 PGDG 0.5.1 |
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
使用 pig
命令行工具安装 odbc_fdw
扩展:
pig ext install odbc_fdw
使用 Pigsty剧本 安装 odbc_fdw 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["odbc_fdw"]}' # -l <集群名>
dnf install odbc_fdw_17*;
dnf install odbc_fdw_16*;
dnf install odbc_fdw_15*;
dnf install odbc_fdw_14*;
dnf install odbc_fdw_13*;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 odbc_fdw
扩展:
CREATE EXTENSION odbc_fdw;
PGDG 第一方扩展: jdbc_fdw
: 访问JDBC可访问的任何外部数据源
jdbc_fdw
jdbc_fdw
FDW
16
,15
,14
,13
CREATE EXTENSION
DDLjdbc_fdw_$v*
1.2
java-11-openjdk-headless
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
jdbc_fdw_16 PGDG 0.4.0 |
jdbc_fdw_15 PGDG 0.4.0 |
jdbc_fdw_14 PGDG 0.4.0 |
jdbc_fdw_13 PGDG 0.4.0 |
|
el8 |
aarch64 |
|||||
el9 |
x86_64 |
jdbc_fdw_16 PGDG 0.4.0 |
jdbc_fdw_15 PGDG 0.4.0 |
jdbc_fdw_14 PGDG 0.4.0 |
jdbc_fdw_13 PGDG 0.4.0 |
|
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
使用 pig
命令行工具安装 jdbc_fdw
扩展:
pig ext install jdbc_fdw
使用 Pigsty剧本 安装 jdbc_fdw 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["jdbc_fdw"]}' # -l <集群名>
dnf install jdbc_fdw_16*;
dnf install jdbc_fdw_15*;
dnf install jdbc_fdw_14*;
dnf install jdbc_fdw_13*;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 jdbc_fdw
扩展:
CREATE EXTENSION jdbc_fdw;
PGDG 第三方扩展: pgspider_ext
: 使用多种FDW访问远程数据库服务器
pgspider_ext
pgspider_ext
FDW
17
,16
,15
CREATE EXTENSION
DDLpgspider_ext_$v*
1.3.0
postgresql-$v-pgspider-ext
1.3.0
使用 pig
命令行工具安装 pgspider_ext
扩展:
pig ext install pgspider_ext
使用 Pigsty剧本 安装 pgspider_ext 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgspider_ext"]}' # -l <集群名>
从 YUM仓库 手工安装 pgspider_ext
RPM 包:
dnf install pgspider_ext_17*;
dnf install pgspider_ext_16*;
dnf install pgspider_ext_15*;
从 APT仓库 手工安装 pgspider_ext
DEB 包:
apt install postgresql-17-pgspider-ext;
apt install postgresql-16-pgspider-ext;
apt install postgresql-15-pgspider-ext;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgspider_ext
扩展:
CREATE EXTENSION pgspider_ext;
PGDG 第一方扩展: mysql_fdw
: MySQL外部数据包装器
mysql_fdw
mysql_fdw
FDW
17
,16
,15
,14
,13
CREATE EXTENSION
DDLmysql_fdw_$v*
2.9.2
postgresql-$v-mysql-fdw
2.9.2
使用 pig
命令行工具安装 mysql_fdw
扩展:
pig ext install mysql_fdw
使用 Pigsty剧本 安装 mysql_fdw 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["mysql_fdw"]}' # -l <集群名>
dnf install mysql_fdw_17*;
dnf install mysql_fdw_16*;
dnf install mysql_fdw_15*;
dnf install mysql_fdw_14*;
dnf install mysql_fdw_13*;
apt install postgresql-17-mysql-fdw;
apt install postgresql-16-mysql-fdw;
apt install postgresql-15-mysql-fdw;
apt install postgresql-14-mysql-fdw;
apt install postgresql-13-mysql-fdw;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 mysql_fdw
扩展:
CREATE EXTENSION mysql_fdw;
PGDG 第一方扩展: oracle_fdw
: 提供对Oracle的外部数据源包装器
oracle_fdw
oracle_fdw
FDW
non-free
17
,16
,15
,14
,13
CREATE EXTENSION
DDLoracle_fdw_$v*
2.7.0
postgresql-$v-oracle-fdw
2.7.0
使用 pig
命令行工具安装 oracle_fdw
扩展:
pig ext install oracle_fdw
使用 Pigsty剧本 安装 oracle_fdw 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["oracle_fdw"]}' # -l <集群名>
从 YUM仓库 手工安装 oracle_fdw
RPM 包:
dnf install oracle_fdw_17*;
dnf install oracle_fdw_16*;
dnf install oracle_fdw_15*;
dnf install oracle_fdw_14*;
dnf install oracle_fdw_13*;
从 APT仓库 手工安装 oracle_fdw
DEB 包:
apt install postgresql-17-oracle-fdw;
apt install postgresql-16-oracle-fdw;
apt install postgresql-15-oracle-fdw;
apt install postgresql-14-oracle-fdw;
apt install postgresql-13-oracle-fdw;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 oracle_fdw
扩展:
CREATE EXTENSION oracle_fdw;
PGDG 第一方扩展: tds_fdw
: TDS 数据库(Sybase/SQL Server)外部数据包装器
tds_fdw
tds_fdw
FDW
17
,16
,15
,14
,13
CREATE EXTENSION
DDLtds_fdw_$v*
2.0.4
postgresql-$v-tds-fdw
2.0.4
使用 pig
命令行工具安装 tds_fdw
扩展:
pig ext install tds_fdw
使用 Pigsty剧本 安装 tds_fdw 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["tds_fdw"]}' # -l <集群名>
dnf install tds_fdw_17*;
dnf install tds_fdw_16*;
dnf install tds_fdw_15*;
dnf install tds_fdw_14*;
dnf install tds_fdw_13*;
apt install postgresql-17-tds-fdw;
apt install postgresql-16-tds-fdw;
apt install postgresql-15-tds-fdw;
apt install postgresql-14-tds-fdw;
apt install postgresql-13-tds-fdw;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 tds_fdw
扩展:
CREATE EXTENSION tds_fdw;
PGDG 第一方扩展: db2_fdw
: 提供对DB2的外部数据源包装器
db2_fdw
db2_fdw
FDW
non-free
16
,15
,14
,13
CREATE EXTENSION
DDLdb2_fdw_$v*
6.0.1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
db2_fdw_16 PGDG 6.0.1 |
db2_fdw_15 PGDG 6.0.1 |
db2_fdw_14 PGDG 6.0.1 |
db2_fdw_13 PGDG 6.0.1 |
|
el8 |
aarch64 |
|||||
el9 |
x86_64 |
db2_fdw_16 PGDG 6.0.1 |
db2_fdw_15 PGDG 6.0.1 |
db2_fdw_14 PGDG 6.0.1 |
db2_fdw_13 PGDG 6.0.1 |
|
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
使用 pig
命令行工具安装 db2_fdw
扩展:
pig ext install db2_fdw
使用 Pigsty剧本 安装 db2_fdw 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["db2_fdw"]}' # -l <集群名>
dnf install db2_fdw_16*;
dnf install db2_fdw_15*;
dnf install db2_fdw_14*;
dnf install db2_fdw_13*;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 db2_fdw
扩展:
CREATE EXTENSION db2_fdw;
PGDG 第一方扩展: sqlite_fdw
: SQLite 外部数据包装器
sqlite_fdw
sqlite_fdw
FDW
17
,16
,15
,14
,13
CREATE EXTENSION
DDLsqlite_fdw_$v*
2.5.0
postgresql-$v-sqlite-fdw
2.5.0
使用 pig
命令行工具安装 sqlite_fdw
扩展:
pig ext install sqlite_fdw
使用 Pigsty剧本 安装 sqlite_fdw 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["sqlite_fdw"]}' # -l <集群名>
从 YUM仓库 手工安装 sqlite_fdw
RPM 包:
dnf install sqlite_fdw_17*;
dnf install sqlite_fdw_16*;
dnf install sqlite_fdw_15*;
dnf install sqlite_fdw_14*;
dnf install sqlite_fdw_13*;
从 APT仓库 手工安装 sqlite_fdw
DEB 包:
apt install postgresql-16-sqlite-fdw;
apt install postgresql-15-sqlite-fdw;
apt install postgresql-14-sqlite-fdw;
apt install postgresql-13-sqlite-fdw;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 sqlite_fdw
扩展:
CREATE EXTENSION sqlite_fdw;
PGDG 第一方扩展: pgbouncer_fdw
: 用SQL查询pgbouncer统计信息,并执行pgbouncer命令
pgbouncer_fdw
pgbouncer_fdw
FDW
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgbouncer_fdw_$v
1.3.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pgbouncer_fdw_17 PGDG 1.3.0 |
pgbouncer_fdw_16 PGDG 1.3.0 |
pgbouncer_fdw_15 PGDG 1.3.0 |
pgbouncer_fdw_14 PGDG 1.3.0 |
pgbouncer_fdw_13 PGDG 1.3.0 |
el8 |
aarch64 |
pgbouncer_fdw_17 PGDG 1.3.0 |
pgbouncer_fdw_16 PGDG 1.3.0 |
pgbouncer_fdw_15 PGDG 1.3.0 |
pgbouncer_fdw_14 PGDG 1.3.0 |
pgbouncer_fdw_13 PGDG 1.3.0 |
el9 |
x86_64 |
pgbouncer_fdw_17 PGDG 1.3.0 |
pgbouncer_fdw_16 PGDG 1.3.0 |
pgbouncer_fdw_15 PGDG 1.3.0 |
pgbouncer_fdw_14 PGDG 1.3.0 |
pgbouncer_fdw_13 PGDG 1.3.0 |
el9 |
aarch64 |
pgbouncer_fdw_17 PGDG 1.3.0 |
pgbouncer_fdw_16 PGDG 1.3.0 |
pgbouncer_fdw_15 PGDG 1.3.0 |
pgbouncer_fdw_14 PGDG 1.3.0 |
pgbouncer_fdw_13 PGDG 1.3.0 |
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
使用 pig
命令行工具安装 pgbouncer_fdw
扩展:
pig ext install pgbouncer_fdw
使用 Pigsty剧本 安装 pgbouncer_fdw 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgbouncer_fdw"]}' # -l <集群名>
从 YUM仓库 手工安装 pgbouncer_fdw
RPM 包:
dnf install pgbouncer_fdw_17;
dnf install pgbouncer_fdw_16;
dnf install pgbouncer_fdw_15;
dnf install pgbouncer_fdw_14;
dnf install pgbouncer_fdw_13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgbouncer_fdw
扩展:
CREATE EXTENSION pgbouncer_fdw;
PGDG 第一方扩展: mongo_fdw
: MongoDB 外部数据包装器
mongo_fdw
mongo_fdw
FDW
16
,15
,14
,13
CREATE EXTENSION
DDLmongo_fdw_$v*
1.1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
mongo_fdw_16 PGDG 5.5.1 |
mongo_fdw_15 PGDG 5.5.1 |
mongo_fdw_14 PGDG 5.5.1 |
mongo_fdw_13 PGDG 5.5.1 |
|
el8 |
aarch64 |
mongo_fdw_16 PGDG 5.5.1 |
mongo_fdw_15 PGDG 5.5.1 |
mongo_fdw_14 PGDG 5.5.1 |
mongo_fdw_13 PGDG 5.5.1 |
|
el9 |
x86_64 |
mongo_fdw_16 PGDG 5.5.1 |
mongo_fdw_15 PGDG 5.5.1 |
mongo_fdw_14 PGDG 5.5.1 |
mongo_fdw_13 PGDG 5.5.1 |
|
el9 |
aarch64 |
mongo_fdw_16 PGDG 5.5.1 |
mongo_fdw_15 PGDG 5.5.1 |
mongo_fdw_14 PGDG 5.5.1 |
mongo_fdw_13 PGDG 5.5.1 |
|
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
使用 pig
命令行工具安装 mongo_fdw
扩展:
pig ext install mongo_fdw
使用 Pigsty剧本 安装 mongo_fdw 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["mongo_fdw"]}' # -l <集群名>
dnf install mongo_fdw_16*;
dnf install mongo_fdw_15*;
dnf install mongo_fdw_14*;
dnf install mongo_fdw_13*;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 mongo_fdw
扩展:
CREATE EXTENSION mongo_fdw;
PIGSTY 第三方扩展: redis_fdw
: 查询外部Redis数据源
redis_fdw
redis_fdw
FDW
17
,16
,15
,14
,13
CREATE EXTENSION
DDLredis_fdw_$v*
1.0
postgresql-$v-redis-fdw
1.0
使用 pig
命令行工具安装 redis_fdw
扩展:
pig ext install redis_fdw
使用 Pigsty剧本 安装 redis_fdw 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["redis_fdw"]}' # -l <集群名>
dnf install redis_fdw_17*;
dnf install redis_fdw_16*;
dnf install redis_fdw_15*;
dnf install redis_fdw_14*;
dnf install redis_fdw_13*;
apt install postgresql-17-redis-fdw;
apt install postgresql-16-redis-fdw;
apt install postgresql-15-redis-fdw;
apt install postgresql-14-redis-fdw;
apt install postgresql-13-redis-fdw;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 redis_fdw
扩展:
CREATE EXTENSION redis_fdw;
PIGSTY 第三方扩展: pg_redis_pubsub
: 从PG向Redis发送Pub/Sub消息
redis
pg_redis_pubsub
FDW
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_redis_pubsub_$v*
0.0.1
postgresql-$v-pg-redis-pubsub
0.0.1
使用 pig
命令行工具安装 pg_redis_pubsub
扩展:
pig ext install pg_redis_pubsub; # 扩展名称
pig ext install redis; # 标准包名
使用 Pigsty剧本 安装 pg_redis_pubsub 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_redis_pubsub"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_redis_pubsub
RPM 包:
dnf install pg_redis_pubsub_17*;
dnf install pg_redis_pubsub_16*;
dnf install pg_redis_pubsub_15*;
dnf install pg_redis_pubsub_14*;
dnf install pg_redis_pubsub_13*;
从 APT仓库 手工安装 pg_redis_pubsub
DEB 包:
apt install postgresql-17-pg-redis-pubsub;
apt install postgresql-16-pg-redis-pubsub;
apt install postgresql-15-pg-redis-pubsub;
apt install postgresql-14-pg-redis-pubsub;
apt install postgresql-13-pg-redis-pubsub;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 redis
扩展:
CREATE EXTENSION redis;
PIGSTY 第三方扩展: kafka_fdw
: Kafka外部数据源包装器
kafka_fdw
kafka_fdw
FDW
16
,15
,14
,13
CREATE EXTENSION
DDLkafka_fdw_$v
0.0.3
postgresql-$v-kafka-fdw
0.0.3
使用 pig
命令行工具安装 kafka_fdw
扩展:
pig ext install kafka_fdw
使用 Pigsty剧本 安装 kafka_fdw 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["kafka_fdw"]}' # -l <集群名>
dnf install kafka_fdw_16;
dnf install kafka_fdw_15;
dnf install kafka_fdw_14;
dnf install kafka_fdw_13;
apt install postgresql-16-kafka-fdw;
apt install postgresql-15-kafka-fdw;
apt install postgresql-14-kafka-fdw;
apt install postgresql-13-kafka-fdw;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 kafka_fdw
扩展:
CREATE EXTENSION kafka_fdw;
PGDG 第一方扩展: hdfs_fdw
: hdfs 外部数据包装器
hdfs_fdw
hdfs_fdw
FDW
17
,16
,15
,14
,13
CREATE EXTENSION
DDLhdfs_fdw_$v*
2.3.2
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
hdfs_fdw_17 PGDG 2.3.2 |
hdfs_fdw_16 PGDG 2.3.1 |
hdfs_fdw_15 PGDG 2.3.2 |
hdfs_fdw_14 PGDG 2.3.2 |
hdfs_fdw_13 PGDG 2.3.2 |
el8 |
aarch64 |
hdfs_fdw_17 PGDG 2.3.2 |
hdfs_fdw_16 PGDG 2.3.1 |
hdfs_fdw_15 PGDG 2.3.2 |
hdfs_fdw_14 PGDG 2.3.2 |
hdfs_fdw_13 PGDG 2.3.2 |
el9 |
x86_64 |
hdfs_fdw_17 PGDG 2.3.2 |
hdfs_fdw_16 PGDG 2.3.1 |
hdfs_fdw_15 PGDG 2.3.2 |
hdfs_fdw_14 PGDG 2.3.2 |
hdfs_fdw_13 PGDG 2.3.2 |
el9 |
aarch64 |
hdfs_fdw_17 PGDG 2.3.2 |
hdfs_fdw_16 PGDG 2.3.1 |
hdfs_fdw_15 PGDG 2.3.2 |
hdfs_fdw_14 PGDG 2.3.2 |
hdfs_fdw_13 PGDG 2.3.2 |
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
使用 pig
命令行工具安装 hdfs_fdw
扩展:
pig ext install hdfs_fdw
使用 Pigsty剧本 安装 hdfs_fdw 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["hdfs_fdw"]}' # -l <集群名>
dnf install hdfs_fdw_17*;
dnf install hdfs_fdw_16*;
dnf install hdfs_fdw_15*;
dnf install hdfs_fdw_14*;
dnf install hdfs_fdw_13*;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hdfs_fdw
扩展:
CREATE EXTENSION hdfs_fdw;
PIGSTY 第三方扩展: firebird_fdw
: Firebird外部数据源包装器
firebird_fdw
firebird_fdw
FDW
17
,16
,15
,14
,13
CREATE EXTENSION
DDLfirebird_fdw_$v
1.4.0
libfq
postgresql-$v-firebird-fdw
1.4.0
libfq
使用 pig
命令行工具安装 firebird_fdw
扩展:
pig ext install firebird_fdw
使用 Pigsty剧本 安装 firebird_fdw 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["firebird_fdw"]}' # -l <集群名>
从 YUM仓库 手工安装 firebird_fdw
RPM 包:
dnf install firebird_fdw_17;
dnf install firebird_fdw_16;
dnf install firebird_fdw_15;
dnf install firebird_fdw_14;
dnf install firebird_fdw_13;
从 APT仓库 手工安装 firebird_fdw
DEB 包:
apt install postgresql-17-firebird-fdw;
apt install postgresql-16-firebird-fdw;
apt install postgresql-15-firebird-fdw;
apt install postgresql-14-firebird-fdw;
apt install postgresql-13-firebird-fdw;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 firebird_fdw
扩展:
CREATE EXTENSION firebird_fdw;
PIGSTY 第三方扩展: aws_s3
: 从S3导入导出数据的外部数据源包装器
aws_s3
aws_s3
FDW
17
,16
,15
,14
,13
CREATE EXTENSION
DDLaws_s3_$v
0.0.1
postgresql-$v-aws-s3
0.0.1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
aws_s3_17 PIGSTY 0.0.1 |
aws_s3_16 PIGSTY 0.0.1 |
aws_s3_15 PIGSTY 0.0.1 |
aws_s3_14 PIGSTY 0.0.1 |
aws_s3_13 PIGSTY 0.0.1 |
el8 |
aarch64 |
aws_s3_17 PIGSTY 0.0.1 |
aws_s3_16 PIGSTY 0.0.1 |
aws_s3_15 PIGSTY 0.0.1 |
aws_s3_14 PIGSTY 0.0.1 |
aws_s3_13 PIGSTY 0.0.1 |
el9 |
x86_64 |
aws_s3_17 PIGSTY 0.0.1 |
aws_s3_16 PIGSTY 0.0.1 |
aws_s3_15 PIGSTY 0.0.1 |
aws_s3_14 PIGSTY 0.0.1 |
aws_s3_13 PIGSTY 0.0.1 |
el9 |
aarch64 |
aws_s3_17 PIGSTY 0.0.1 |
aws_s3_16 PIGSTY 0.0.1 |
aws_s3_15 PIGSTY 0.0.1 |
aws_s3_14 PIGSTY 0.0.1 |
aws_s3_13 PIGSTY 0.0.1 |
d12 |
x86_64 |
postgresql-17-aws-s3 PIGSTY 0.0.1 |
postgresql-16-aws-s3 PIGSTY 0.0.1 |
postgresql-15-aws-s3 PIGSTY 0.0.1 |
postgresql-14-aws-s3 PIGSTY 0.0.1 |
postgresql-13-aws-s3 PIGSTY 0.0.1 |
d12 |
aarch64 |
postgresql-17-aws-s3 PIGSTY 0.0.1 |
postgresql-16-aws-s3 PIGSTY 0.0.1 |
postgresql-15-aws-s3 PIGSTY 0.0.1 |
postgresql-14-aws-s3 PIGSTY 0.0.1 |
postgresql-13-aws-s3 PIGSTY 0.0.1 |
u22 |
x86_64 |
postgresql-17-aws-s3 PIGSTY 0.0.1 |
postgresql-16-aws-s3 PIGSTY 0.0.1 |
postgresql-15-aws-s3 PIGSTY 0.0.1 |
postgresql-14-aws-s3 PIGSTY 0.0.1 |
postgresql-13-aws-s3 PIGSTY 0.0.1 |
u22 |
aarch64 |
postgresql-17-aws-s3 PIGSTY 0.0.1 |
postgresql-16-aws-s3 PIGSTY 0.0.1 |
postgresql-15-aws-s3 PIGSTY 0.0.1 |
postgresql-14-aws-s3 PIGSTY 0.0.1 |
postgresql-13-aws-s3 PIGSTY 0.0.1 |
u24 |
x86_64 |
postgresql-17-aws-s3 PIGSTY 0.0.1 |
postgresql-16-aws-s3 PIGSTY 0.0.1 |
postgresql-15-aws-s3 PIGSTY 0.0.1 |
postgresql-14-aws-s3 PIGSTY 0.0.1 |
postgresql-13-aws-s3 PIGSTY 0.0.1 |
u24 |
aarch64 |
postgresql-17-aws-s3 PIGSTY 0.0.1 |
postgresql-16-aws-s3 PIGSTY 0.0.1 |
postgresql-15-aws-s3 PIGSTY 0.0.1 |
postgresql-14-aws-s3 PIGSTY 0.0.1 |
postgresql-13-aws-s3 PIGSTY 0.0.1 |
使用 pig
命令行工具安装 aws_s3
扩展:
pig ext install aws_s3
使用 Pigsty剧本 安装 aws_s3 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["aws_s3"]}' # -l <集群名>
dnf install aws_s3_17;
dnf install aws_s3_16;
dnf install aws_s3_15;
dnf install aws_s3_14;
dnf install aws_s3_13;
apt install postgresql-17-aws-s3;
apt install postgresql-16-aws-s3;
apt install postgresql-15-aws-s3;
apt install postgresql-14-aws-s3;
apt install postgresql-13-aws-s3;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 aws_s3
扩展:
CREATE EXTENSION aws_s3;
PIGSTY 第三方扩展: log_fdw
: 访问PostgreSQL日志文件的FDW
log_fdw
log_fdw
FDW
17
,16
,15
,14
CREATE EXTENSION
DDLlog_fdw_$v*
1.4
postgresql-$v-log-fdw
1.4
使用 pig
命令行工具安装 log_fdw
扩展:
pig ext install log_fdw
使用 Pigsty剧本 安装 log_fdw 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["log_fdw"]}' # -l <集群名>
dnf install log_fdw_17*;
dnf install log_fdw_16*;
dnf install log_fdw_15*;
dnf install log_fdw_14*;
apt install postgresql-17-log-fdw;
apt install postgresql-16-log-fdw;
apt install postgresql-15-log-fdw;
apt install postgresql-14-log-fdw;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 log_fdw
扩展:
CREATE EXTENSION log_fdw;
CONTRIB 自带扩展: dblink
: 从数据库内连接到其他 PostgreSQL 数据库
dblink
None
FDW
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 dblink
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 dblink
扩展:
CREATE EXTENSION dblink;
CONTRIB 自带扩展: file_fdw
: 访问外部文件的外部数据包装器
file_fdw
None
FDW
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 file_fdw
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 file_fdw
扩展:
CREATE EXTENSION file_fdw;
CONTRIB 自带扩展: postgres_fdw
: 用于远程 PostgreSQL 服务器的外部数据包装器
postgres_fdw
None
FDW
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 postgres_fdw
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 postgres_fdw
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 postgres_fdw
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 postgres_fdw
扩展:
CREATE EXTENSION postgres_fdw;
SIM 类目共有 15 个可用扩展:
扩展名(详情) | 标准名(官网) | 仓库 | 版本 | 类目 | 许可证 | LOAD |
DDL |
TRUST |
RELOC |
简介 |
---|---|---|---|---|---|---|---|---|---|---|
documentdb | documentdb |
PIGSTY | 0.102 | SIM |
MIT | 微软DocumentDB的API层 | ||||
documentdb_core | documentdb |
PIGSTY | 0.102 | SIM |
MIT | 微软DocumentDB的核心API层实现 | ||||
documentdb_distributed | documentdb |
PIGSTY | 0.102 | SIM |
MIT | DocumentDB多节点模式的API层 | ||||
orafce | orafce |
PGDG | 4.14.2 | SIM |
BSD 0 | 模拟 Oracle RDBMS 的一部分函数和包的函数和运算符 | ||||
pgtt | pgtt |
PGDG | 4.0 | SIM |
ISC | 类似Oracle的全局临时表功能 | ||||
session_variable | session_variable |
PIGSTY | 3.4 | SIM |
GPLv3 | Oracle兼容的会话变量/常量操作函数 | ||||
pg_statement_rollback | pg_statement_rollback |
MIXED | 1.4 | SIM |
ISC | 在服务端提供类似Oracle/DB2的语句级回滚能力 | ||||
pg_dbms_metadata | pg_dbms_metadata |
PGDG | 1.0.0 | SIM |
PostgreSQL | 添加 Oracle DBMS_METADATA 兼容性支持的扩展 | ||||
pg_dbms_lock | pg_dbms_lock |
PGDG | 1.0 | SIM |
PostgreSQL | 为PG添加对 Oracle DBMS_LOCK 的完整兼容性支持 | ||||
pg_dbms_job | pg_dbms_job |
PGDG | 1.5 | SIM |
PostgreSQL | 添加 Oracle DBMS_JOB 兼容性支持的扩展 | ||||
babelfishpg_common | babelfishpg_common |
WILTON | 3.3.3 | SIM |
Apache-2.0 | SQL Server 数据类型兼容扩展 | ||||
babelfishpg_tsql | babelfishpg_tsql |
WILTON | 3.3.1 | SIM |
Apache-2.0 | SQL Server SQL语法兼容性扩展 | ||||
babelfishpg_tds | babelfishpg_tds |
WILTON | 1.0.0 | SIM |
Apache-2.0 | SQL Server TDS线缆协议兼容扩展 | ||||
babelfishpg_money | babelfishpg_money |
WILTON | 1.1.0 | SIM |
Apache-2.0 | SQL Server 货币数据类型兼容扩展 | ||||
pgmemcache | pgmemcache |
PGDG | 2.3.0 | SIM |
MIT | 为PG提供memcached兼容接口 |
PIGSTY 第三方扩展: documentdb
: 微软DocumentDB的API层
documentdb
documentdb
SIM
17
,16
,15
CREATE EXTENSION
DDLdocumentdb_core
, pg_cron
, tsm_system_rows
, vector
, postgis
, rum
documentdb_$v*
0.102
postgresql$v-contrib
, pg_cron_$v
, pgvector_$v
, rum_$v
postgresql-$v-documentdb
0.102
postgresql-$v-cron
, postgresql-$v-pgvector
, postgresql-$v-rum
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
documentdb_17 PIGSTY 0.102 |
documentdb_16 PIGSTY 0.102 |
documentdb_15 PIGSTY 0.102 |
||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
documentdb_17 PIGSTY 0.102 |
documentdb_16 PIGSTY 0.102 |
documentdb_15 PIGSTY 0.102 |
||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
postgresql-17-documentdb PIGSTY 0.102 |
postgresql-16-documentdb PIGSTY 0.102 |
postgresql-15-documentdb PIGSTY 0.102 |
||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
postgresql-17-documentdb PIGSTY 0.102 |
postgresql-16-documentdb PIGSTY 0.102 |
postgresql-15-documentdb PIGSTY 0.102 |
||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
postgresql-17-documentdb PIGSTY 0.102 |
postgresql-16-documentdb PIGSTY 0.102 |
postgresql-15-documentdb PIGSTY 0.102 |
||
u24 |
aarch64 |
使用 pig
命令行工具安装 documentdb
扩展:
pig ext install documentdb
使用 Pigsty剧本 安装 documentdb 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["documentdb"]}' # -l <集群名>
从 YUM仓库 手工安装 documentdb
RPM 包:
dnf install documentdb_17*;
dnf install documentdb_16*;
dnf install documentdb_15*;
从 APT仓库 手工安装 documentdb
DEB 包:
apt install postgresql-17-documentdb;
apt install postgresql-16-documentdb;
apt install postgresql-15-documentdb;
扩展 documentdb
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'documentdb'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 documentdb
扩展:
CREATE EXTENSION documentdb CASCADE;
PIGSTY 第三方扩展: documentdb
: 微软DocumentDB的核心API层实现
documentdb_core
documentdb
SIM
17
,16
,15
CREATE EXTENSION
DDLdocumentdb_$v*
0.102
postgresql$v-contrib
, pg_cron_$v
, pgvector_$v
, rum_$v
postgresql-$v-documentdb
0.102
postgresql-$v-cron
, postgresql-$v-pgvector
, postgresql-$v-rum
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
documentdb_17 PIGSTY 0.102 |
documentdb_16 PIGSTY 0.102 |
documentdb_15 PIGSTY 0.102 |
||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
documentdb_17 PIGSTY 0.102 |
documentdb_16 PIGSTY 0.102 |
documentdb_15 PIGSTY 0.102 |
||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
postgresql-17-documentdb PIGSTY 0.102 |
postgresql-16-documentdb PIGSTY 0.102 |
postgresql-15-documentdb PIGSTY 0.102 |
||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
postgresql-17-documentdb PIGSTY 0.102 |
postgresql-16-documentdb PIGSTY 0.102 |
postgresql-15-documentdb PIGSTY 0.102 |
||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
postgresql-17-documentdb PIGSTY 0.102 |
postgresql-16-documentdb PIGSTY 0.102 |
postgresql-15-documentdb PIGSTY 0.102 |
||
u24 |
aarch64 |
使用 pig
命令行工具安装 documentdb
扩展:
pig ext install documentdb; # 扩展名称
pig ext install documentdb_core; # 标准包名
使用 Pigsty剧本 安装 documentdb 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["documentdb"]}' # -l <集群名>
从 YUM仓库 手工安装 documentdb
RPM 包:
dnf install documentdb_17*;
dnf install documentdb_16*;
dnf install documentdb_15*;
从 APT仓库 手工安装 documentdb
DEB 包:
apt install postgresql-17-documentdb;
apt install postgresql-16-documentdb;
apt install postgresql-15-documentdb;
扩展 documentdb_core
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_documentdb_core'; # 修改集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 documentdb_core
扩展:
CREATE EXTENSION documentdb_core;
Add to shared_preload_libraries first:
- shared_preload_libraries: documentdb_core, pg_stat_statements, auto_explain
+ shared_preload_libraries: pg_documentdb_core, pg_stat_statements, auto_explain
Example, create extension and perform DDL & CRUD
CREATE EXTENSION documentdb_core ;
Currently we only have documentdb_core extension, It can be used with the FerretDB 2.0+
PIGSTY 第三方扩展: documentdb
: DocumentDB多节点模式的API层
documentdb_distributed
documentdb
SIM
17
,16
,15
CREATE EXTENSION
DDLdocumentdb_$v*
0.102
postgresql$v-contrib
, pg_cron_$v
, pgvector_$v
, rum_$v
postgresql-$v-documentdb
0.102
postgresql-$v-cron
, postgresql-$v-pgvector
, postgresql-$v-rum
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
documentdb_17 PIGSTY 0.102 |
documentdb_16 PIGSTY 0.102 |
documentdb_15 PIGSTY 0.102 |
||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
documentdb_17 PIGSTY 0.102 |
documentdb_16 PIGSTY 0.102 |
documentdb_15 PIGSTY 0.102 |
||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
postgresql-17-documentdb PIGSTY 0.102 |
postgresql-16-documentdb PIGSTY 0.102 |
postgresql-15-documentdb PIGSTY 0.102 |
||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
postgresql-17-documentdb PIGSTY 0.102 |
postgresql-16-documentdb PIGSTY 0.102 |
postgresql-15-documentdb PIGSTY 0.102 |
||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
postgresql-17-documentdb PIGSTY 0.102 |
postgresql-16-documentdb PIGSTY 0.102 |
postgresql-15-documentdb PIGSTY 0.102 |
||
u24 |
aarch64 |
使用 pig
命令行工具安装 documentdb
扩展:
pig ext install documentdb; # 扩展名称
pig ext install documentdb_distributed; # 标准包名
使用 Pigsty剧本 安装 documentdb 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["documentdb"]}' # -l <集群名>
从 YUM仓库 手工安装 documentdb
RPM 包:
dnf install documentdb_17*;
dnf install documentdb_16*;
dnf install documentdb_15*;
从 APT仓库 手工安装 documentdb
DEB 包:
apt install postgresql-17-documentdb;
apt install postgresql-16-documentdb;
apt install postgresql-15-documentdb;
扩展 documentdb_distributed
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'documentdb_distributed'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 documentdb_distributed
扩展:
CREATE EXTENSION documentdb_distributed;
PGDG 第一方扩展: orafce
: 模拟 Oracle RDBMS 的一部分函数和包的函数和运算符
orafce
orafce
SIM
oracle
17
,16
,15
,14
,13
CREATE EXTENSION
DDLorafce_$v
4.14.2
postgresql-$v-orafce
4.14.2
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
orafce_17 PGDG 4.14.2 |
orafce_16 PGDG 4.14.2 |
orafce_15 PGDG 4.14.2 |
orafce_14 PGDG 4.14.2 |
orafce_13 PGDG 4.14.2 |
el8 |
aarch64 |
orafce_17 PGDG 4.14.2 |
orafce_16 PGDG 4.14.2 |
orafce_15 PGDG 4.14.2 |
orafce_14 PGDG 4.14.2 |
orafce_13 PGDG 4.14.2 |
el9 |
x86_64 |
orafce_17 PGDG 4.14.2 |
orafce_16 PGDG 4.14.2 |
orafce_15 PGDG 4.14.2 |
orafce_14 PGDG 4.14.2 |
orafce_13 PGDG 4.14.2 |
el9 |
aarch64 |
orafce_17 PGDG 4.14.2 |
orafce_16 PGDG 4.14.2 |
orafce_15 PGDG 4.14.2 |
orafce_14 PGDG 4.14.2 |
orafce_13 PGDG 4.14.2 |
d12 |
x86_64 |
postgresql-17-orafce PGDG 4.14.2 |
postgresql-16-orafce PGDG 4.14.2 |
postgresql-15-orafce PGDG 4.14.2 |
postgresql-14-orafce PGDG 4.14.2 |
postgresql-13-orafce PGDG 4.14.2 |
d12 |
aarch64 |
postgresql-17-orafce PGDG 4.14.2 |
postgresql-16-orafce PGDG 4.14.2 |
postgresql-15-orafce PGDG 4.14.2 |
postgresql-14-orafce PGDG 4.14.2 |
postgresql-13-orafce PGDG 4.14.2 |
u22 |
x86_64 |
postgresql-17-orafce PGDG 4.14.2 |
postgresql-16-orafce PGDG 4.14.2 |
postgresql-15-orafce PGDG 4.14.2 |
postgresql-14-orafce PGDG 4.14.2 |
postgresql-13-orafce PGDG 4.14.2 |
u22 |
aarch64 |
postgresql-17-orafce PGDG 4.14.2 |
postgresql-16-orafce PGDG 4.14.2 |
postgresql-15-orafce PGDG 4.14.2 |
postgresql-14-orafce PGDG 4.14.2 |
postgresql-13-orafce PGDG 4.14.2 |
u24 |
x86_64 |
postgresql-17-orafce PGDG 4.14.2 |
postgresql-16-orafce PGDG 4.14.2 |
postgresql-15-orafce PGDG 4.14.2 |
postgresql-14-orafce PGDG 4.14.2 |
postgresql-13-orafce PGDG 4.14.2 |
u24 |
aarch64 |
postgresql-17-orafce PGDG 4.14.2 |
postgresql-16-orafce PGDG 4.14.2 |
postgresql-15-orafce PGDG 4.14.2 |
postgresql-14-orafce PGDG 4.14.2 |
postgresql-13-orafce PGDG 4.14.2 |
使用 pig
命令行工具安装 orafce
扩展:
pig ext install orafce
使用 Pigsty剧本 安装 orafce 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["orafce"]}' # -l <集群名>
dnf install orafce_17;
dnf install orafce_16;
dnf install orafce_15;
dnf install orafce_14;
dnf install orafce_13;
apt install postgresql-17-orafce;
apt install postgresql-16-orafce;
apt install postgresql-15-orafce;
apt install postgresql-14-orafce;
apt install postgresql-13-orafce;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 orafce
扩展:
CREATE EXTENSION orafce;
PGDG 第一方扩展: pgtt
: 类似Oracle的全局临时表功能
pgtt
pgtt
SIM
oracle
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgtt_$v*
4.0
postgresql-$v-pgtt
4.0
使用 pig
命令行工具安装 pgtt
扩展:
pig ext install pgtt
使用 Pigsty剧本 安装 pgtt 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgtt"]}' # -l <集群名>
dnf install pgtt_17*;
dnf install pgtt_16*;
dnf install pgtt_15*;
dnf install pgtt_14*;
dnf install pgtt_13*;
apt install postgresql-17-pgtt;
apt install postgresql-16-pgtt;
apt install postgresql-15-pgtt;
apt install postgresql-14-pgtt;
apt install postgresql-13-pgtt;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgtt
扩展:
CREATE EXTENSION pgtt;
PIGSTY 第三方扩展: session_variable
: Oracle兼容的会话变量/常量操作函数
session_variable
session_variable
SIM
17
,16
,15
,14
,13
CREATE EXTENSION
DDLsession_variable_$v*
3.4
postgresql-$v-session-variable
3.4
使用 pig
命令行工具安装 session_variable
扩展:
pig ext install session_variable
使用 Pigsty剧本 安装 session_variable 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["session_variable"]}' # -l <集群名>
从 YUM仓库 手工安装 session_variable
RPM 包:
dnf install session_variable_17*;
dnf install session_variable_16*;
dnf install session_variable_15*;
dnf install session_variable_14*;
dnf install session_variable_13*;
从 APT仓库 手工安装 session_variable
DEB 包:
apt install postgresql-17-session-variable;
apt install postgresql-16-session-variable;
apt install postgresql-15-session-variable;
apt install postgresql-14-session-variable;
apt install postgresql-13-session-variable;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 session_variable
扩展:
CREATE EXTENSION session_variable;
MIXED 第三方扩展: pg_statement_rollback
: 在服务端提供类似Oracle/DB2的语句级回滚能力
pg_statement_rollback
pg_statement_rollback
SIM
oracle
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_statement_rollback_$v*
1.4
postgresql-$v-pg-statement-rollback
1.4
使用 pig
命令行工具安装 pg_statement_rollback
扩展:
pig ext install pg_statement_rollback
使用 Pigsty剧本 安装 pg_statement_rollback 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_statement_rollback"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_statement_rollback
RPM 包:
dnf install pg_statement_rollback_17*;
dnf install pg_statement_rollback_16*;
dnf install pg_statement_rollback_15*;
dnf install pg_statement_rollback_14*;
dnf install pg_statement_rollback_13*;
从 APT仓库 手工安装 pg_statement_rollback
DEB 包:
apt install postgresql-17-pg-statement-rollback;
apt install postgresql-16-pg-statement-rollback;
apt install postgresql-15-pg-statement-rollback;
apt install postgresql-14-pg-statement-rollback;
apt install postgresql-13-pg-statement-rollback;
扩展 pg_statement_rollback
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_statement_rollback'; # 修改 PG 集群配置
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
PGDG 第一方扩展: pg_dbms_metadata
: 添加 Oracle DBMS_METADATA 兼容性支持的扩展
pg_dbms_metadata
pg_dbms_metadata
SIM
oracle
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_dbms_metadata_$v
1.0.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg_dbms_metadata_17 PGDG 1.0.0 |
pg_dbms_metadata_16 PGDG 1.0.0 |
pg_dbms_metadata_15 PGDG 1.0.0 |
pg_dbms_metadata_14 PGDG 1.0.0 |
pg_dbms_metadata_13 PGDG 1.0.0 |
el8 |
aarch64 |
pg_dbms_metadata_17 PGDG 1.0.0 |
pg_dbms_metadata_16 PGDG 1.0.0 |
pg_dbms_metadata_14 PGDG 1.0.0 |
pg_dbms_metadata_13 PGDG 1.0.0 |
|
el9 |
x86_64 |
pg_dbms_metadata_17 PGDG 1.0.0 |
pg_dbms_metadata_16 PGDG 1.0.0 |
pg_dbms_metadata_15 PGDG 1.0.0 |
pg_dbms_metadata_14 PGDG 1.0.0 |
pg_dbms_metadata_13 PGDG 1.0.0 |
el9 |
aarch64 |
pg_dbms_metadata_17 PGDG 1.0.0 |
pg_dbms_metadata_16 PGDG 1.0.0 |
pg_dbms_metadata_15 PGDG 1.0.0 |
pg_dbms_metadata_14 PGDG 1.0.0 |
pg_dbms_metadata_13 PGDG 1.0.0 |
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
使用 pig
命令行工具安装 pg_dbms_metadata
扩展:
pig ext install pg_dbms_metadata
使用 Pigsty剧本 安装 pg_dbms_metadata 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_dbms_metadata"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_dbms_metadata
RPM 包:
dnf install pg_dbms_metadata_17;
dnf install pg_dbms_metadata_16;
dnf install pg_dbms_metadata_15;
dnf install pg_dbms_metadata_14;
dnf install pg_dbms_metadata_13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_dbms_metadata
扩展:
CREATE EXTENSION pg_dbms_metadata;
PGDG 第一方扩展: pg_dbms_lock
: 为PG添加对 Oracle DBMS_LOCK 的完整兼容性支持
pg_dbms_lock
pg_dbms_lock
SIM
oracle
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_dbms_lock_$v
1.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg_dbms_lock_17 PGDG 1.0 |
pg_dbms_lock_16 PGDG 1.0 |
pg_dbms_lock_15 PGDG 1.0 |
pg_dbms_lock_14 PGDG 1.0 |
pg_dbms_lock_13 PGDG 1.0 |
el8 |
aarch64 |
pg_dbms_lock_17 PGDG 1.0 |
pg_dbms_lock_16 PGDG 1.0 |
pg_dbms_lock_15 PGDG 1.0 |
pg_dbms_lock_14 PGDG 1.0 |
pg_dbms_lock_13 PGDG 1.0 |
el9 |
x86_64 |
pg_dbms_lock_17 PGDG 1.0 |
pg_dbms_lock_16 PGDG 1.0 |
pg_dbms_lock_15 PGDG 1.0 |
pg_dbms_lock_14 PGDG 1.0 |
pg_dbms_lock_13 PGDG 1.0 |
el9 |
aarch64 |
pg_dbms_lock_17 PGDG 1.0 |
pg_dbms_lock_16 PGDG 1.0 |
pg_dbms_lock_15 PGDG 1.0 |
pg_dbms_lock_14 PGDG 1.0 |
pg_dbms_lock_13 PGDG 1.0 |
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
使用 pig
命令行工具安装 pg_dbms_lock
扩展:
pig ext install pg_dbms_lock
使用 Pigsty剧本 安装 pg_dbms_lock 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_dbms_lock"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_dbms_lock
RPM 包:
dnf install pg_dbms_lock_17;
dnf install pg_dbms_lock_16;
dnf install pg_dbms_lock_15;
dnf install pg_dbms_lock_14;
dnf install pg_dbms_lock_13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_dbms_lock
扩展:
CREATE EXTENSION pg_dbms_lock;
PGDG 第一方扩展: pg_dbms_job
: 添加 Oracle DBMS_JOB 兼容性支持的扩展
pg_dbms_job
pg_dbms_job
SIM
oracle
, dep-break
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_dbms_job_$v
1.5
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
pg_dbms_job_17 PGDG 1.5 |
pg_dbms_job_16 PGDG 1.5 |
pg_dbms_job_15 PGDG 1.5 |
pg_dbms_job_14 PGDG 1.5 |
pg_dbms_job_13 PGDG 1.5 |
el8 |
aarch64 |
pg_dbms_job_17 PGDG 1.5 |
pg_dbms_job_16 PGDG 1.5 |
pg_dbms_job_15 PGDG 1.5 |
pg_dbms_job_14 PGDG 1.5 |
pg_dbms_job_13 PGDG 1.5 |
el9 |
x86_64 |
pg_dbms_job_17 PGDG 1.5 |
pg_dbms_job_16 PGDG 1.5 |
pg_dbms_job_15 PGDG 1.5 |
pg_dbms_job_14 PGDG 1.5 |
pg_dbms_job_13 PGDG 1.5 |
el9 |
aarch64 |
pg_dbms_job_17 PGDG 1.5 |
pg_dbms_job_16 PGDG 1.5 |
pg_dbms_job_15 PGDG 1.5 |
pg_dbms_job_14 PGDG 1.5 |
pg_dbms_job_13 PGDG 1.5 |
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
使用 pig
命令行工具安装 pg_dbms_job
扩展:
pig ext install pg_dbms_job
使用 Pigsty剧本 安装 pg_dbms_job 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_dbms_job"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_dbms_job
RPM 包:
dnf install pg_dbms_job_17;
dnf install pg_dbms_job_16;
dnf install pg_dbms_job_15;
dnf install pg_dbms_job_14;
dnf install pg_dbms_job_13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_dbms_job
扩展:
CREATE EXTENSION pg_dbms_job;
扩展: babelfishpg_common
: SQL Server 数据类型兼容扩展
babelfishpg_common
wiltondb
SIM
mssql
15
CREATE EXTENSION
DDLbabelfishpg-common*
3.3.3
babelfishpg-common
3.3.3
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
使用 pig
命令行工具安装 babelfishpg_common
扩展:
pig ext install babelfishpg_common
使用 Pigsty剧本 安装 babelfishpg_common 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["babelfishpg_common"]}' # -l <集群名>
从 YUM仓库 手工安装 babelfishpg_common
RPM 包:
dnf install babelfishpg-common*;
从 APT仓库 手工安装 babelfishpg_common
DEB 包:
apt install babelfishpg-common;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 babelfishpg_common
扩展:
CREATE EXTENSION babelfishpg_common;
扩展: babelfishpg_tsql
: SQL Server SQL语法兼容性扩展
babelfishpg_tsql
wiltondb
SIM
mssql
15
CREATE EXTENSION
DDLbabelfishpg_common
, uuid-ossp
babelfishpg-tsql*
3.3.1
babelfishpg-common
, libantlr4-runtime
babelfishpg-tsql
3.3.1
babelfishpg-common
, libantlr4-runtime4.9.3
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
使用 pig
命令行工具安装 babelfishpg_tsql
扩展:
pig ext install babelfishpg_tsql
使用 Pigsty剧本 安装 babelfishpg_tsql 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["babelfishpg_tsql"]}' # -l <集群名>
从 YUM仓库 手工安装 babelfishpg_tsql
RPM 包:
dnf install babelfishpg-tsql*;
从 APT仓库 手工安装 babelfishpg_tsql
DEB 包:
apt install babelfishpg-tsql;
扩展 babelfishpg_tsql
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'babelfishpg_tsql'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 babelfishpg_tsql
扩展:
CREATE EXTENSION babelfishpg_tsql CASCADE;
扩展: babelfishpg_tds
: SQL Server TDS线缆协议兼容扩展
babelfishpg_tds
wiltondb
SIM
mssql
15
CREATE EXTENSION
DDLbabelfishpg_tsql
babelfishpg-tds*
1.0.0
babelfishpg-tds
1.0.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
使用 pig
命令行工具安装 babelfishpg_tds
扩展:
pig ext install babelfishpg_tds
使用 Pigsty剧本 安装 babelfishpg_tds 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["babelfishpg_tds"]}' # -l <集群名>
从 YUM仓库 手工安装 babelfishpg_tds
RPM 包:
dnf install babelfishpg-tds*;
从 APT仓库 手工安装 babelfishpg_tds
DEB 包:
apt install babelfishpg-tds;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 babelfishpg_tds
扩展:
CREATE EXTENSION babelfishpg_tds CASCADE;
Install go-sqlcmd
:
curl -LO https://github.com/microsoft/go-sqlcmd/releases/download/v1.4.0/sqlcmd-v1.4.0-linux-amd64.tar.bz2
tar xjvf sqlcmd-v1.4.0-linux-amd64.tar.bz2
sudo mv sqlcmd* /usr/bin/
Try go-sqlcmd
$ sqlcmd -S 10.10.10.10,1433 -U dbuser_mssql -P DBUser.MSSQL
1> select @@version
2> go
version
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Babelfish for PostgreSQL with SQL Server Compatibility - 12.0.2000.8
Oct 22 2023 17:48:32
Copyright (c) Amazon Web Services
PostgreSQL 15.4 (EL 1:15.4.wiltondb3.3_2-2.el8) on x86_64-redhat-linux-gnu (Babelfish 3.3.0)
(1 row affected)
Access pigsty exposed primary/replica service port
sqlcmd -S 10.10.10.11,5433 -U dbuser_mssql -P DBUser.MSSQL
sqlcmd -S 10.10.10.11,5434 -U dbuser_mssql -P DBUser.MSSQL
扩展: babelfishpg_money
: SQL Server 货币数据类型兼容扩展
babelfishpg_money
wiltondb
SIM
mssql
15
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建babelfishpg-money*
1.1.0
babelfishpg-money
1.1.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
使用 pig
命令行工具安装 babelfishpg_money
扩展:
pig ext install babelfishpg_money
使用 Pigsty剧本 安装 babelfishpg_money 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["babelfishpg_money"]}' # -l <集群名>
从 YUM仓库 手工安装 babelfishpg_money
RPM 包:
dnf install babelfishpg-money*;
从 APT仓库 手工安装 babelfishpg_money
DEB 包:
apt install babelfishpg-money;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 babelfishpg_money
扩展:
CREATE EXTENSION babelfishpg_money;
PGDG 第一方扩展: pgmemcache
: 为PG提供memcached兼容接口
pgmemcache
pgmemcache
SIM
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgmemcache_$v*
2.3.0
postgresql-$v-pgmemcache
2.3.0
使用 pig
命令行工具安装 pgmemcache
扩展:
pig ext install pgmemcache
使用 Pigsty剧本 安装 pgmemcache 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgmemcache"]}' # -l <集群名>
从 YUM仓库 手工安装 pgmemcache
RPM 包:
dnf install pgmemcache_17*;
dnf install pgmemcache_16*;
dnf install pgmemcache_15*;
从 APT仓库 手工安装 pgmemcache
DEB 包:
apt install postgresql-17-pgmemcache;
apt install postgresql-16-pgmemcache;
apt install postgresql-15-pgmemcache;
apt install postgresql-14-pgmemcache;
apt install postgresql-13-pgmemcache;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgmemcache
扩展:
CREATE EXTENSION pgmemcache;
ETL 类目共有 16 个可用扩展:
扩展名(详情) | 标准名(官网) | 仓库 | 版本 | 类目 | 许可证 | LOAD |
DDL |
TRUST |
RELOC |
简介 |
---|---|---|---|---|---|---|---|---|---|---|
pglogical | pglogical |
PGDG | 2.4.5 | ETL |
PostgreSQL | PostgreSQL逻辑复制:三方扩展实现 | ||||
pglogical_origin | pglogical |
PGDG | 2.4.5 | ETL |
PostgreSQL | 用于从 Postgres 9.4 升级时的兼容性虚拟扩展 | ||||
pglogical_ticker | pglogical_ticker |
PGDG | 1.4.1 | ETL |
PostgreSQL | pglogical复制延迟以秒计的精确视图 | ||||
pgl_ddl_deploy | pgl_ddl_deploy |
PGDG | 2.2.1 | ETL |
MIT | 使用 pglogical 执行自动 DDL 部署 | ||||
pg_failover_slots | pg_failover_slots |
PIGSTY | 1.1.0 | ETL |
PostgreSQL | 在Failover过程中保留复制槽 | ||||
db_migrator | db_migrator |
PIGSTY | 1.0.0 | ETL |
BSD 3 | 使用FDW从其他DBMS迁移到PostgreSQL | ||||
wal2json | wal2json |
PGDG | 2.6 | ETL |
BSD 3 | 用逻辑解码捕获 JSON 格式的 CDC 变更 | ||||
wal2mongo | wal2mongo |
PIGSTY | 1.0.7 | ETL |
Apache-2.0 | 使用逻辑解码捕获MongoDB JSON格式的CDC变更 | ||||
decoderbufs | decoderbufs |
PGDG | 3.0.7 | ETL |
MIT | 将WAL逻辑解码为ProtocolBuffer协议的消息 | ||||
decoder_raw | decoder_raw |
PIGSTY | 1.0 | ETL |
PostgreSQL | 逻辑复制解码输出插件:RAW SQL格式 | ||||
pgoutput | pgoutput |
CONTRIB | - | ETL |
PostgreSQL | PG内置的逻辑解码输出插件 | ||||
test_decoding | test_decoding |
CONTRIB | - | ETL |
PostgreSQL | 基于SQL的WAL逻辑解码样例 | ||||
mimeo | mimeo |
MIXED | 1.5.1 | ETL |
PostgreSQL | 在PostgreSQL实例间进行表级复制 | ||||
repmgr | repmgr |
PGDG | 5.5.0 | ETL |
GPLv3 | PostgreSQL复制管理组件 | ||||
pg_fact_loader | pg_fact_loader |
PGDG | 2.0.1 | ETL |
MIT | 在 Postgres 中构建事实表 | ||||
pg_bulkload | pg_bulkload |
PIGSTY | 3.1.22 | ETL |
BSD 3 | 向 PostgreSQL 中高速加载数据 |
PGDG 第一方扩展: pglogical
: PostgreSQL逻辑复制:三方扩展实现
pglogical
pglogical
ETL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpglogical
pglogical_$v*
2.4.5
postgresql-$v-pglogical
2.4.5
使用 pig
命令行工具安装 pglogical
扩展:
pig ext install pglogical
使用 Pigsty剧本 安装 pglogical 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pglogical"]}' # -l <集群名>
dnf install pglogical_17*;
dnf install pglogical_16*;
dnf install pglogical_15*;
dnf install pglogical_14*;
dnf install pglogical_13*;
apt install postgresql-17-pglogical;
apt install postgresql-16-pglogical;
apt install postgresql-15-pglogical;
apt install postgresql-14-pglogical;
apt install postgresql-13-pglogical;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pglogical
扩展:
CREATE EXTENSION pglogical;
PGDG 第一方扩展: pglogical
: 用于从 Postgres 9.4 升级时的兼容性虚拟扩展
pglogical_origin
pglogical
ETL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpglogical_origin
pglogical_$v*
2.4.5
postgresql-$v-pglogical
2.4.5
使用 pig
命令行工具安装 pglogical
扩展:
pig ext install pglogical; # 扩展名称
pig ext install pglogical_origin; # 标准包名
使用 Pigsty剧本 安装 pglogical 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pglogical"]}' # -l <集群名>
dnf install pglogical_17*;
dnf install pglogical_16*;
dnf install pglogical_15*;
dnf install pglogical_14*;
dnf install pglogical_13*;
apt install postgresql-17-pglogical;
apt install postgresql-16-pglogical;
apt install postgresql-15-pglogical;
apt install postgresql-14-pglogical;
apt install postgresql-13-pglogical;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pglogical_origin
扩展:
CREATE EXTENSION pglogical_origin;
PGDG 第三方扩展: pglogical_ticker
: pglogical复制延迟以秒计的精确视图
pglogical_ticker
pglogical_ticker
ETL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpglogical_ticker
pglogical
pglogical_ticker_$v*
1.4.1
pglogical_$v
postgresql-$v-pglogical-ticker
1.4.1
postgresql-$v-pglogical
使用 pig
命令行工具安装 pglogical_ticker
扩展:
pig ext install pglogical_ticker
使用 Pigsty剧本 安装 pglogical_ticker 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pglogical_ticker"]}' # -l <集群名>
从 YUM仓库 手工安装 pglogical_ticker
RPM 包:
dnf install pglogical_ticker_17*;
dnf install pglogical_ticker_16*;
dnf install pglogical_ticker_15*;
dnf install pglogical_ticker_14*;
dnf install pglogical_ticker_13*;
从 APT仓库 手工安装 pglogical_ticker
DEB 包:
apt install postgresql-17-pglogical-ticker;
apt install postgresql-16-pglogical-ticker;
apt install postgresql-15-pglogical-ticker;
apt install postgresql-14-pglogical-ticker;
apt install postgresql-13-pglogical-ticker;
扩展 pglogical_ticker
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pglogical_ticker'; # 修改 PG 集群配置
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pglogical_ticker
扩展:
CREATE EXTENSION pglogical_ticker CASCADE;
PGDG 第一方扩展: pgl_ddl_deploy
: 使用 pglogical 执行自动 DDL 部署
pgl_ddl_deploy
pgl_ddl_deploy
ETL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpgl_ddl_deploy
pglogical
pgl_ddl_deploy_$v*
2.2.1
pglogical_$v
postgresql-$v-pgl-ddl-deploy
2.2.1
postgresql-$v-pglogical
使用 pig
命令行工具安装 pgl_ddl_deploy
扩展:
pig ext install pgl_ddl_deploy
使用 Pigsty剧本 安装 pgl_ddl_deploy 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgl_ddl_deploy"]}' # -l <集群名>
从 YUM仓库 手工安装 pgl_ddl_deploy
RPM 包:
dnf install pgl_ddl_deploy_17*;
dnf install pgl_ddl_deploy_16*;
dnf install pgl_ddl_deploy_15*;
dnf install pgl_ddl_deploy_14*;
dnf install pgl_ddl_deploy_13*;
从 APT仓库 手工安装 pgl_ddl_deploy
DEB 包:
apt install postgresql-17-pgl-ddl-deploy;
apt install postgresql-16-pgl-ddl-deploy;
apt install postgresql-15-pgl-ddl-deploy;
apt install postgresql-14-pgl-ddl-deploy;
apt install postgresql-13-pgl-ddl-deploy;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pgl_ddl_deploy
扩展:
CREATE EXTENSION pgl_ddl_deploy CASCADE;
PIGSTY 第三方扩展: pg_failover_slots
: 在Failover过程中保留复制槽
pg_failover_slots
pg_failover_slots
ETL
nil-lic
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_failover_slots_$v*
1.1.0
postgresql-$v-pg-failover-slots
1.1.0
使用 pig
命令行工具安装 pg_failover_slots
扩展:
pig ext install pg_failover_slots
使用 Pigsty剧本 安装 pg_failover_slots 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_failover_slots"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_failover_slots
RPM 包:
dnf install pg_failover_slots_17*;
dnf install pg_failover_slots_16*;
dnf install pg_failover_slots_15*;
dnf install pg_failover_slots_14*;
dnf install pg_failover_slots_13*;
从 APT仓库 手工安装 pg_failover_slots
DEB 包:
apt install postgresql-17-pg-failover-slots;
apt install postgresql-16-pg-failover-slots;
apt install postgresql-15-pg-failover-slots;
apt install postgresql-14-pg-failover-slots;
apt install postgresql-13-pg-failover-slots;
扩展 pg_failover_slots
需要通过 shared_preload_libraries
进行 动态加载:
shared_preload_libraries = 'pg_failover_slots'; # 修改 PG 集群配置
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
PIGSTY 第三方扩展: db_migrator
: 使用FDW从其他DBMS迁移到PostgreSQL
db_migrator
db_migrator
ETL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLCREATE
权限的用户可以直接创建db_migrator_$v
1.0.0
postgresql-$v-db-migrator
1.0.0
使用 pig
命令行工具安装 db_migrator
扩展:
pig ext install db_migrator
使用 Pigsty剧本 安装 db_migrator 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["db_migrator"]}' # -l <集群名>
从 YUM仓库 手工安装 db_migrator
RPM 包:
dnf install db_migrator_17;
dnf install db_migrator_16;
dnf install db_migrator_15;
dnf install db_migrator_14;
dnf install db_migrator_13;
从 APT仓库 手工安装 db_migrator
DEB 包:
apt install postgresql-17-db-migrator;
apt install postgresql-16-db-migrator;
apt install postgresql-15-db-migrator;
apt install postgresql-14-db-migrator;
apt install postgresql-13-db-migrator;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 db_migrator
扩展:
CREATE EXTENSION db_migrator;
PGDG 第一方扩展: wal2json
: 用逻辑解码捕获 JSON 格式的 CDC 变更
wal2json
wal2json
ETL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLwal2json_$v*
2.6
postgresql-$v-wal2json
2.6
使用 pig
命令行工具安装 wal2json
扩展:
pig ext install wal2json
使用 Pigsty剧本 安装 wal2json 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["wal2json"]}' # -l <集群名>
dnf install wal2json_17*;
dnf install wal2json_16*;
dnf install wal2json_15*;
dnf install wal2json_14*;
dnf install wal2json_13*;
apt install postgresql-17-wal2json;
apt install postgresql-16-wal2json;
apt install postgresql-15-wal2json;
apt install postgresql-14-wal2json;
apt install postgresql-13-wal2json;
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
PIGSTY 第三方扩展: wal2mongo
: 使用逻辑解码捕获MongoDB JSON格式的CDC变更
wal2mongo
wal2mongo
ETL
16
,15
,14
,13
CREATE EXTENSION
DDLwal2mongo_$v*
1.0.7
postgresql-$v-wal2mongo
1.0.7
使用 pig
命令行工具安装 wal2mongo
扩展:
pig ext install wal2mongo
使用 Pigsty剧本 安装 wal2mongo 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["wal2mongo"]}' # -l <集群名>
dnf install wal2mongo_16*;
dnf install wal2mongo_15*;
dnf install wal2mongo_14*;
dnf install wal2mongo_13*;
apt install postgresql-16-wal2mongo;
apt install postgresql-15-wal2mongo;
apt install postgresql-14-wal2mongo;
apt install postgresql-13-wal2mongo;
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
PGDG 第一方扩展: decoderbufs
: 将WAL逻辑解码为ProtocolBuffer协议的消息
decoderbufs
decoderbufs
ETL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpostgres-decoderbufs_$v*
3.0.2
postgresql-$v-decoderbufs
3.0.7
使用 pig
命令行工具安装 decoderbufs
扩展:
pig ext install decoderbufs
使用 Pigsty剧本 安装 decoderbufs 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["decoderbufs"]}' # -l <集群名>
从 YUM仓库 手工安装 decoderbufs
RPM 包:
dnf install postgres-decoderbufs_17*;
dnf install postgres-decoderbufs_16*;
dnf install postgres-decoderbufs_15*;
dnf install postgres-decoderbufs_14*;
dnf install postgres-decoderbufs_13*;
从 APT仓库 手工安装 decoderbufs
DEB 包:
apt install postgresql-17-decoderbufs;
apt install postgresql-16-decoderbufs;
apt install postgresql-15-decoderbufs;
apt install postgresql-14-decoderbufs;
apt install postgresql-13-decoderbufs;
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
PIGSTY 第三方扩展: decoder_raw
: 逻辑复制解码输出插件:RAW SQL格式
decoder_raw
decoder_raw
ETL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLdecoder_raw_$v*
1.0
postgresql-$v-decoder-raw
1.0
使用 pig
命令行工具安装 decoder_raw
扩展:
pig ext install decoder_raw
使用 Pigsty剧本 安装 decoder_raw 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["decoder_raw"]}' # -l <集群名>
从 YUM仓库 手工安装 decoder_raw
RPM 包:
dnf install decoder_raw_17*;
dnf install decoder_raw_16*;
dnf install decoder_raw_15*;
dnf install decoder_raw_14*;
dnf install decoder_raw_13*;
从 APT仓库 手工安装 decoder_raw
DEB 包:
apt install postgresql-17-decoder-raw;
apt install postgresql-16-decoder-raw;
apt install postgresql-15-decoder-raw;
apt install postgresql-14-decoder-raw;
apt install postgresql-13-decoder-raw;
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
CONTRIB 自带扩展: pgoutput
: PG内置的逻辑解码输出插件
pgoutput
None
ETL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 pgoutput
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
CONTRIB 自带扩展: test_decoding
: 基于SQL的WAL逻辑解码样例
test_decoding
None
ETL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLPostgreSQL 自带 Contrib 扩展模块
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
|||||
el8 |
aarch64 |
|||||
el9 |
x86_64 |
|||||
el9 |
aarch64 |
|||||
d12 |
x86_64 |
|||||
d12 |
aarch64 |
|||||
u22 |
x86_64 |
|||||
u22 |
aarch64 |
|||||
u24 |
x86_64 |
|||||
u24 |
aarch64 |
扩展 test_decoding
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 test_decoding
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 test_decoding
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
扩展 %s
无需 手工执行 CREATE EXTENSION
命令。
MIXED 第三方扩展: mimeo
: 在PostgreSQL实例间进行表级复制
mimeo
mimeo
ETL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLdblink
mimeo_$v
1.5.1
postgresql-$v-mimeo
1.5.1
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
mimeo_17 PIGSTY 1.5.1 |
mimeo_16 PIGSTY 1.5.1 |
mimeo_15 PIGSTY 1.5.1 |
mimeo_14 PIGSTY 1.5.1 |
mimeo_13 PIGSTY 1.5.1 |
el8 |
aarch64 |
mimeo_17 PIGSTY 1.5.1 |
mimeo_16 PIGSTY 1.5.1 |
mimeo_15 PIGSTY 1.5.1 |
mimeo_14 PIGSTY 1.5.1 |
mimeo_13 PIGSTY 1.5.1 |
el9 |
x86_64 |
mimeo_17 PIGSTY 1.5.1 |
mimeo_16 PIGSTY 1.5.1 |
mimeo_15 PIGSTY 1.5.1 |
mimeo_14 PIGSTY 1.5.1 |
mimeo_13 PIGSTY 1.5.1 |
el9 |
aarch64 |
mimeo_17 PIGSTY 1.5.1 |
mimeo_16 PIGSTY 1.5.1 |
mimeo_15 PIGSTY 1.5.1 |
mimeo_14 PIGSTY 1.5.1 |
mimeo_13 PIGSTY 1.5.1 |
d12 |
x86_64 |
postgresql-17-mimeo PGDG 1.5.1 |
postgresql-16-mimeo PGDG 1.5.1 |
postgresql-15-mimeo PGDG 1.5.1 |
postgresql-14-mimeo PGDG 1.5.1 |
postgresql-13-mimeo PGDG 1.5.1 |
d12 |
aarch64 |
postgresql-17-mimeo PGDG 1.5.1 |
postgresql-16-mimeo PGDG 1.5.1 |
postgresql-15-mimeo PGDG 1.5.1 |
postgresql-14-mimeo PGDG 1.5.1 |
postgresql-13-mimeo PGDG 1.5.1 |
u22 |
x86_64 |
postgresql-17-mimeo PGDG 1.5.1 |
postgresql-16-mimeo PGDG 1.5.1 |
postgresql-15-mimeo PGDG 1.5.1 |
postgresql-14-mimeo PGDG 1.5.1 |
postgresql-13-mimeo PGDG 1.5.1 |
u22 |
aarch64 |
postgresql-17-mimeo PGDG 1.5.1 |
postgresql-16-mimeo PGDG 1.5.1 |
postgresql-15-mimeo PGDG 1.5.1 |
postgresql-14-mimeo PGDG 1.5.1 |
postgresql-13-mimeo PGDG 1.5.1 |
u24 |
x86_64 |
postgresql-17-mimeo PGDG 1.5.1 |
postgresql-16-mimeo PGDG 1.5.1 |
postgresql-15-mimeo PGDG 1.5.1 |
postgresql-14-mimeo PGDG 1.5.1 |
postgresql-13-mimeo PGDG 1.5.1 |
u24 |
aarch64 |
postgresql-17-mimeo PGDG 1.5.1 |
postgresql-16-mimeo PGDG 1.5.1 |
postgresql-15-mimeo PGDG 1.5.1 |
postgresql-14-mimeo PGDG 1.5.1 |
postgresql-13-mimeo PGDG 1.5.1 |
使用 pig
命令行工具安装 mimeo
扩展:
pig ext install mimeo
使用 Pigsty剧本 安装 mimeo 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["mimeo"]}' # -l <集群名>
dnf install mimeo_17;
dnf install mimeo_16;
dnf install mimeo_15;
dnf install mimeo_14;
dnf install mimeo_13;
apt install postgresql-17-mimeo;
apt install postgresql-16-mimeo;
apt install postgresql-15-mimeo;
apt install postgresql-14-mimeo;
apt install postgresql-13-mimeo;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 mimeo
扩展:
CREATE EXTENSION mimeo CASCADE;
PGDG 第一方扩展: repmgr
: PostgreSQL复制管理组件
repmgr
repmgr
ETL
not-used
17
,16
,15
,14
,13
CREATE EXTENSION
DDLrepmgr_$v*
5.5.0
postgresql-$v-repmgr
5.5.0
系统 | 架构 | PG17 | PG16 | PG15 | PG14 | PG13 |
---|---|---|---|---|---|---|
el8 |
x86_64 |
repmgr_17 PGDG 5.5.0 |
repmgr_16 PGDG 5.5.0 |
repmgr_15 PGDG 5.5.0 |
repmgr_14 PGDG 5.5.0 |
repmgr_13 PGDG 5.5.0 |
el8 |
aarch64 |
repmgr_17 PGDG 5.5.0 |
repmgr_16 PGDG 5.5.0 |
repmgr_15 PGDG 5.5.0 |
repmgr_14 PGDG 5.5.0 |
repmgr_13 PGDG 5.5.0 |
el9 |
x86_64 |
repmgr_17 PGDG 5.5.0 |
repmgr_16 PGDG 5.5.0 |
repmgr_15 PGDG 5.5.0 |
repmgr_14 PGDG 5.5.0 |
repmgr_13 PGDG 5.5.0 |
el9 |
aarch64 |
repmgr_17 PGDG 5.5.0 |
repmgr_16 PGDG 5.5.0 |
repmgr_15 PGDG 5.5.0 |
repmgr_14 PGDG 5.5.0 |
repmgr_13 PGDG 5.5.0 |
d12 |
x86_64 |
postgresql-17-repmgr PGDG 5.5.0+debpgdg |
postgresql-16-repmgr PGDG 5.5.0+debpgdg |
postgresql-15-repmgr PGDG 5.5.0+debpgdg |
postgresql-14-repmgr PGDG 5.5.0+debpgdg |
postgresql-13-repmgr PGDG 5.5.0+debpgdg |
d12 |
aarch64 |
postgresql-17-repmgr PGDG 5.5.0+debpgdg |
postgresql-16-repmgr PGDG 5.5.0+debpgdg |
postgresql-15-repmgr PGDG 5.5.0+debpgdg |
postgresql-14-repmgr PGDG 5.5.0+debpgdg |
postgresql-13-repmgr PGDG 5.5.0+debpgdg |
u22 |
x86_64 |
postgresql-17-repmgr PGDG 5.5.0+debpgdg |
postgresql-16-repmgr PGDG 5.5.0+debpgdg |
postgresql-15-repmgr PGDG 5.5.0+debpgdg |
postgresql-14-repmgr PGDG 5.5.0+debpgdg |
postgresql-13-repmgr PGDG 5.5.0+debpgdg |
u22 |
aarch64 |
postgresql-17-repmgr PGDG 5.5.0+debpgdg |
postgresql-16-repmgr PGDG 5.5.0+debpgdg |
postgresql-15-repmgr PGDG 5.5.0+debpgdg |
postgresql-14-repmgr PGDG 5.5.0+debpgdg |
postgresql-13-repmgr PGDG 5.5.0+debpgdg |
u24 |
x86_64 |
postgresql-17-repmgr PGDG 5.5.0+debpgdg |
postgresql-16-repmgr PGDG 5.5.0+debpgdg |
postgresql-15-repmgr PGDG 5.5.0+debpgdg |
postgresql-14-repmgr PGDG 5.5.0+debpgdg |
postgresql-13-repmgr PGDG 5.5.0+debpgdg |
u24 |
aarch64 |
postgresql-17-repmgr PGDG 5.5.0+debpgdg |
postgresql-16-repmgr PGDG 5.5.0+debpgdg |
postgresql-15-repmgr PGDG 5.5.0+debpgdg |
postgresql-14-repmgr PGDG 5.5.0+debpgdg |
postgresql-13-repmgr PGDG 5.5.0+debpgdg |
使用 pig
命令行工具安装 repmgr
扩展:
pig ext install repmgr
使用 Pigsty剧本 安装 repmgr 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["repmgr"]}' # -l <集群名>
dnf install repmgr_16*;
dnf install repmgr_15*;
dnf install repmgr_14*;
dnf install repmgr_13*;
apt install postgresql-17-repmgr;
apt install postgresql-16-repmgr;
apt install postgresql-15-repmgr;
apt install postgresql-14-repmgr;
apt install postgresql-13-repmgr;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 repmgr
扩展:
CREATE EXTENSION repmgr;
PGDG 第一方扩展: pg_fact_loader
: 在 Postgres 中构建事实表
pg_fact_loader
pg_fact_loader
ETL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLfact_loader
pg_fact_loader_$v*
2.0.1
postgresql-$v-pg-fact-loader
2.0.1
使用 pig
命令行工具安装 pg_fact_loader
扩展:
pig ext install pg_fact_loader
使用 Pigsty剧本 安装 pg_fact_loader 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_fact_loader"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_fact_loader
RPM 包:
dnf install pg_fact_loader_17*;
dnf install pg_fact_loader_16*;
dnf install pg_fact_loader_15*;
dnf install pg_fact_loader_14*;
dnf install pg_fact_loader_13*;
从 APT仓库 手工安装 pg_fact_loader
DEB 包:
apt install postgresql-17-pg-fact-loader;
apt install postgresql-16-pg-fact-loader;
apt install postgresql-15-pg-fact-loader;
apt install postgresql-14-pg-fact-loader;
apt install postgresql-13-pg-fact-loader;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_fact_loader
扩展:
CREATE EXTENSION pg_fact_loader;
PIGSTY 第三方扩展: pg_bulkload
: 向 PostgreSQL 中高速加载数据
pg_bulkload
pg_bulkload
ETL
17
,16
,15
,14
,13
CREATE EXTENSION
DDLpg_bulkload_$v*
3.1.22
postgresql-$v-pg-bulkload
3.1.22
使用 pig
命令行工具安装 pg_bulkload
扩展:
pig ext install pg_bulkload
使用 Pigsty剧本 安装 pg_bulkload 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_bulkload"]}' # -l <集群名>
从 YUM仓库 手工安装 pg_bulkload
RPM 包:
dnf install pg_bulkload_17*;
dnf install pg_bulkload_16*;
dnf install pg_bulkload_15*;
dnf install pg_bulkload_14*;
dnf install pg_bulkload_13*;
从 APT仓库 手工安装 pg_bulkload
DEB 包:
apt install postgresql-17-pg-bulkload;
apt install postgresql-16-pg-bulkload;
apt install postgresql-15-pg-bulkload;
apt install postgresql-14-pg-bulkload;
apt install postgresql-13-pg-bulkload;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 pg_bulkload
扩展:
CREATE EXTENSION pg_bulkload;