这是本节的多页打印视图。
点击此处打印.
返回本页常规视图.
类目:TYPE
自定义类型扩展:前缀树,语义版本号,SI单位,位图,无符号整型,高精度数值,有理数,哈希值,IP地址段,球面,RRULE等
1 - prefix
前缀树数据类型
扩展总览
PGDG 第一方扩展: pg_prefix
: 前缀树数据类型
基本信息
元数据
- 默认版本: 1.2.10
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 无法安装至任意模式下
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PGDG
- RPM包名:
prefix_$v*
- RPM版本:
1.2.10
- RPM依赖:无
- DEB仓库:PGDG
- DEB包名:
postgresql-$v-prefix
- DEB版本:
1.2.10
- DEB依赖:无
最新版本
扩展安装
使用 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 <集群名>
从 YUM仓库 手工安装 pg_prefix
RPM 包:
dnf install prefix_17*;
dnf install prefix_16*;
dnf install prefix_15*;
dnf install prefix_14*;
dnf install prefix_13*;
从 APT仓库 手工安装 pg_prefix
DEB 包:
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
扩展:
2 - semver
语义版本号数据类型
扩展总览
PGDG 第一方扩展: pg_semver
: 语义版本号数据类型
基本信息
元数据
- 默认版本: 0.40.0
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 无法安装至任意模式下
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PGDG
- RPM包名:
semver_$v*
- RPM版本:
0.32.1
- RPM依赖:无
- DEB仓库:PGDG
- DEB包名:
postgresql-$v-semver
- DEB版本:
0.40.0
- DEB依赖:无
最新版本
扩展安装
使用 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 <集群名>
从 YUM仓库 手工安装 pg_semver
RPM 包:
dnf install semver_17*;
dnf install semver_16*;
dnf install semver_15*;
dnf install semver_14*;
dnf install semver_13*;
从 APT仓库 手工安装 pg_semver
DEB 包:
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
扩展:
3 - unit
SI 国标单位扩展
扩展总览
PGDG 第一方扩展: pgunit
: SI 国标单位扩展
基本信息
元数据
- 默认版本: 7.10
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 可以重定位安装至其他模式下
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展:
plpgsql
软件包
- RPM仓库:PGDG
- RPM包名:
postgresql-unit_$v*
- RPM版本:
7.10
- RPM依赖:无
- DEB仓库:PGDG
- DEB包名:
postgresql-$v-unit
- DEB版本:
7.10
- DEB依赖:无
最新版本
扩展安装
使用 pig
命令行工具安装 pgunit
扩展:
pig ext install pgunit; # 扩展名称
pig ext install unit; # 标准包名
使用 Pigsty剧本 安装 pgunit 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgunit"]}' # -l <集群名>
从 YUM仓库 手工安装 pgunit
RPM 包:
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仓库 手工安装 pgunit
DEB 包:
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;
4 - pgpdf
PDF数据类型,管理函数与全文检索
扩展总览
PIGSTY 第三方扩展: pgpdf
: PDF数据类型,管理函数与全文检索
基本信息
元数据
- 默认版本: 0.1.0
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 需要显式加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 无法安装至任意模式下
- 信任程度: 受信任,无需超级用户,带
CREATE
权限的用户可以直接创建
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PIGSTY
- RPM包名:
pgpdf_$v*
- RPM版本:
0.1.0
- RPM依赖:无
- DEB仓库:PIGSTY
- DEB包名:
postgresql-$v-pgpdf
- DEB版本:
0.1.0
- DEB依赖:无
最新版本
扩展安装
使用 pig
命令行工具安装 pgpdf
扩展:
使用 Pigsty剧本 安装 pgpdf 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgpdf"]}' # -l <集群名>
从 YUM仓库 手工安装 pgpdf
RPM 包:
dnf install pgpdf_17*;
dnf install pgpdf_16*;
dnf install pgpdf_15*;
dnf install pgpdf_14*;
dnf install pgpdf_13*;
从 APT仓库 手工安装 pgpdf
DEB 包:
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
扩展:
使用方法
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;
Examples
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!
String Functions and Operators
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%';
Full-Text Search (FTS)
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)
Document similarity with 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)
Installation
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:
Docker
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.
5 - pglite_fusion
在PG表中嵌入SQLite数据库作为数据类型
扩展总览
PIGSTY 第三方扩展: pglite_fusion
: 在PG表中嵌入SQLite数据库作为数据类型
基本信息
元数据
- 默认版本: 0.0.3
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 需要显式加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 可以重定位安装至其他模式下
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PIGSTY
- RPM包名:
pglite_fusion_$v
- RPM版本:
0.0.3
- RPM依赖:无
- DEB仓库:PIGSTY
- DEB包名:
postgresql-$v-pglite-fusion
- DEB版本:
0.0.3
- DEB依赖:无
最新版本
扩展安装
使用 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';
API Doc
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.
Example Usage:
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.
Parameters:
sqlite
: The SQLite database to query, stored as a binary object.
query
: The SQL query string to execute on the SQLite database.
Example Usage:
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.
Parameters:
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.
Example Usage:
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.
Parameters:
query
: The SQL statement to execute on the SQLite database.
Example Usage:
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.
Parameters:
sqlite_row
: A row from the results of query_sqlite
.
index
: The index of the column to extract from the row.
Example Usage:
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.
Parameters:
sqlite_row
: A row from the results of query_sqlite
.
index
: The index of the column to extract from the row.
Example Usage:
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.
Parameters:
sqlite_row
: A row from the results of query_sqlite
.
index
: The index of the column to extract from the row.
Example Usage:
SELECT get_sqlite_real(sqlite_row, 2)
FROM query_sqlite(database, 'SELECT * FROM todos');
6 - md5hash
提供128位MD5的原生数据类型
扩展总览
PIGSTY 第三方扩展: md5hash
: 提供128位MD5的原生数据类型
基本信息
元数据
- 默认版本: 1.0.1
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 无法安装至任意模式下
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PIGSTY
- RPM包名:
md5hash_$v*
- RPM版本:
1.0.1
- RPM依赖:无
- DEB仓库:PIGSTY
- DEB包名:
postgresql-$v-md5hash
- DEB版本:
1.0.1
- DEB依赖:无
最新版本
扩展安装
使用 pig
命令行工具安装 md5hash
扩展:
使用 Pigsty剧本 安装 md5hash 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["md5hash"]}' # -l <集群名>
从 YUM仓库 手工安装 md5hash
RPM 包:
dnf install md5hash_17*;
dnf install md5hash_16*;
dnf install md5hash_15*;
dnf install md5hash_14*;
dnf install md5hash_13*;
从 APT仓库 手工安装 md5hash
DEB 包:
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;
7 - asn1oid
ASN1OID数据类型支持
扩展总览
MIXED 第三方扩展: asn1oid
: ASN1OID数据类型支持
基本信息
元数据
- 默认版本: 1.6
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 无法安装至任意模式下
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PIGSTY
- RPM包名:
asn1oid_$v*
- RPM版本:
1.5
- RPM依赖:无
- DEB仓库:PGDG
- DEB包名:
postgresql-$v-asn1oid
- DEB版本:
1.6
- DEB依赖:无
最新版本
扩展安装
使用 pig
命令行工具安装 asn1oid
扩展:
使用 Pigsty剧本 安装 asn1oid 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["asn1oid"]}' # -l <集群名>
从 YUM仓库 手工安装 asn1oid
RPM 包:
dnf install asn1oid_17*;
dnf install asn1oid_16*;
dnf install asn1oid_15*;
dnf install asn1oid_14*;
dnf install asn1oid_13*;
从 APT仓库 手工安装 asn1oid
DEB 包:
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;
8 - roaringbitmap
支持RoaringBitmap数据类型
扩展总览
MIXED 第三方扩展: roaringbitmap
: 支持RoaringBitmap数据类型
基本信息
元数据
- 默认版本: 0.5.4
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 无法安装至任意模式下
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PIGSTY
- RPM包名:
pg_roaringbitmap_$v*
- RPM版本:
0.5
- RPM依赖:无
- DEB仓库:PGDG
- DEB包名:
postgresql-$v-roaringbitmap
- DEB版本:
0.5
- DEB依赖:无
最新版本
扩展安装
使用 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;
9 - pgfaceting
使用倒排索引的高速切面查询
扩展总览
MIXED 第三方扩展: pgfaceting
: 使用倒排索引的高速切面查询
基本信息
元数据
- 默认版本: 0.2.0
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 可以重定位安装至其他模式下
- 信任程度: 受信任,无需超级用户,带
CREATE
权限的用户可以直接创建
- 所需模式:
faceting
- 所需扩展:
roaringbitmap
软件包
- RPM仓库:PIGSTY
- RPM包名:
pgfaceting_$v
- RPM版本:
0.2.0
- RPM依赖:无
- DEB仓库:PGDG
- DEB包名:
postgresql-$v-pgfaceting
- DEB版本:
0.2.0
- DEB依赖:无
最新版本
扩展安装
使用 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;
10 - pg_sphere
球面对象函数、运算符与索引支持
扩展总览
MIXED 第三方扩展: pgsphere
: 球面对象函数、运算符与索引支持
基本信息
元数据
- 默认版本: 1.5.1
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 无法安装至任意模式下
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PIGSTY
- RPM包名:
pgsphere_$v*
- RPM版本:
1.5.1
- RPM依赖:无
- DEB仓库:PGDG
- DEB包名:
postgresql-$v-pgsphere
- DEB版本:
1.5.1
- DEB依赖:无
最新版本
扩展安装
使用 pig
命令行工具安装 pgsphere
扩展:
pig ext install pgsphere; # 扩展名称
pig ext install pg_sphere; # 标准包名
使用 Pigsty剧本 安装 pgsphere 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgsphere"]}' # -l <集群名>
从 YUM仓库 手工安装 pgsphere
RPM 包:
dnf install pgsphere_17*;
dnf install pgsphere_16*;
dnf install pgsphere_15*;
dnf install pgsphere_14*;
dnf install pgsphere_13*;
从 APT仓库 手工安装 pgsphere
DEB 包:
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;
11 - country
国家代码数据类型,遵循ISO 3166-1标准
扩展总览
PIGSTY 第三方扩展: pg_country
: 国家代码数据类型,遵循ISO 3166-1标准
基本信息
元数据
- 默认版本: 0.0.3
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 无法安装至任意模式下
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PIGSTY
- RPM包名:
pg_country_$v*
- RPM版本:
0.0.3
- RPM依赖:无
- DEB仓库:PIGSTY
- DEB包名:
postgresql-$v-pg-country
- DEB版本:
0.0.3
- DEB依赖:无
最新版本
扩展安装
使用 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;
12 - pg_xenophile
PostgreSQL i8n与l10n工具包
扩展总览
PIGSTY 第三方扩展: pg_xenophile
: PostgreSQL i8n与l10n工具包
基本信息
元数据
- 默认版本: 0.8.3
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 可以重定位安装至其他模式下
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式:
xeno
- 所需扩展: 无
软件包
- RPM仓库:PIGSTY
- RPM包名:
pg_xenophile_$v
- RPM版本:
0.8.3
- RPM依赖:无
- DEB仓库:PIGSTY
- DEB包名:
postgresql-$v-pg-xenophile
- DEB版本:
0.8.3
- DEB依赖:无
最新版本
扩展安装
使用 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;
13 - currency
使用1字节表示的货币数据类型
扩展总览
PIGSTY 第三方扩展: pg_currency
: 使用1字节表示的货币数据类型
基本信息
元数据
- 默认版本: 0.0.3
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 无法安装至任意模式下
- 信任程度: 未知
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PIGSTY
- RPM包名:
pg_currency_$v*
- RPM版本:
0.0.3
- RPM依赖:无
- DEB仓库:PIGSTY
- DEB包名:
postgresql-$v-pg-currency
- DEB版本:
0.0.3
- DEB依赖:无
最新版本
扩展安装
使用 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;
14 - collection
在PlPGSQL中使用的内存优化高性能集合数据结构
扩展总览
PIGSTY 第三方扩展: pg_collection
: 在PlPGSQL中使用的内存优化高性能集合数据结构
基本信息
元数据
- 默认版本: 0.9.1
- PG大版本:
17
,16
,15
,14
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 无法安装至任意模式下
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PIGSTY
- RPM包名:
pgcollection_$v*
- RPM版本:
0.9.1
- RPM依赖:无
- DEB仓库:PIGSTY
- DEB包名:
postgresql-$v-collection
- DEB版本:
0.9.1
- DEB依赖:无
最新版本
扩展安装
使用 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;
15 - pgmp
多精度算术扩展
扩展总览
PGDG 第一方扩展: pgmp
: 多精度算术扩展
基本信息
元数据
- 默认版本: 1.0.5
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 无法安装至任意模式下
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PGDG
- RPM包名:
pgmp_$v*
- RPM版本:
1.0.5
- RPM依赖:无
- DEB仓库:PGDG
- DEB包名:
postgresql-$v-pgmp
- DEB版本:
1.0.5
- DEB依赖:无
最新版本
扩展安装
使用 pig
命令行工具安装 pgmp
扩展:
使用 Pigsty剧本 安装 pgmp 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgmp"]}' # -l <集群名>
从 YUM仓库 手工安装 pgmp
RPM 包:
dnf install pgmp_17*;
dnf install pgmp_16*;
dnf install pgmp_15*;
从 APT仓库 手工安装 pgmp
DEB 包:
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
扩展:
16 - numeral
数值类型扩展
扩展总览
MIXED 第三方扩展: numeral
: 数值类型扩展
基本信息
元数据
- 默认版本: 1.3
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 无法安装至任意模式下
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PIGSTY
- RPM包名:
numeral_$v*
- RPM版本:
1.3
- RPM依赖:无
- DEB仓库:PGDG
- DEB包名:
postgresql-$v-numeral
- DEB版本:
1.3
- DEB依赖:无
最新版本
扩展安装
使用 pig
命令行工具安装 numeral
扩展:
使用 Pigsty剧本 安装 numeral 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["numeral"]}' # -l <集群名>
从 YUM仓库 手工安装 numeral
RPM 包:
dnf install numeral_17*;
dnf install numeral_16*;
dnf install numeral_15*;
dnf install numeral_14*;
dnf install numeral_13*;
从 APT仓库 手工安装 numeral
DEB 包:
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;
17 - pg_rational
使用BIGINT表示的有理数数据类型
扩展总览
MIXED 第三方扩展: pg_rational
: 使用BIGINT表示的有理数数据类型
基本信息
元数据
- 默认版本: 0.0.2
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 未知
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PIGSTY
- RPM包名:
pg_rational_$v*
- RPM版本:
0.0.2
- RPM依赖:无
- DEB仓库:PGDG
- DEB包名:
postgresql-$v-rational
- DEB版本:
0.0.1
- DEB依赖:无
最新版本
扩展安装
使用 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;
18 - uint
无符号整型数据类型
扩展总览
MIXED 第三方扩展: pguint
: 无符号整型数据类型
基本信息
元数据
- 默认版本: 1.20231206
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 无法安装至任意模式下
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PIGSTY
- RPM包名:
pguint_$v*
- RPM版本:
1.20231206
- RPM依赖:无
- DEB仓库:PIGSTY
- DEB包名:
postgresql-$v-pguint
- DEB版本:
1.20231206
- DEB依赖:无
最新版本
扩展安装
使用 pig
命令行工具安装 pguint
扩展:
pig ext install pguint; # 扩展名称
pig ext install uint; # 标准包名
使用 Pigsty剧本 安装 pguint 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pguint"]}' # -l <集群名>
从 YUM仓库 手工安装 pguint
RPM 包:
dnf install pguint_17*;
dnf install pguint_16*;
dnf install pguint_15*;
dnf install pguint_14*;
dnf install pguint_13*;
从 APT仓库 手工安装 pguint
DEB 包:
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
扩展:
19 - uint128
原生128位无符号整型数据类型
扩展总览
PIGSTY 第三方扩展: pg_uint128
: 原生128位无符号整型数据类型
基本信息
元数据
- 默认版本: 1.0.0
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 无法安装至任意模式下
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PIGSTY
- RPM包名:
pg_uint128_$v*
- RPM版本:
1.0.0
- RPM依赖:无
- DEB仓库:PIGSTY
- DEB包名:
postgresql-$v-pg-uint128
- DEB版本:
1.0.0
- DEB依赖:无
最新版本
扩展安装
使用 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;
20 - hashtypes
包括SHA1,MD5在内的多种哈希数据类型
扩展总览
PIGSTY 第三方扩展: hashtypes
: 包括SHA1,MD5在内的多种哈希数据类型
基本信息
元数据
- 默认版本: 0.1.5
- PG大版本:
17
,16
,15
,14
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 可以重定位安装至其他模式下
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PIGSTY
- RPM包名:
hashtypes_$v*
- RPM版本:
0.1.5
- RPM依赖:无
- DEB仓库:PIGSTY
- DEB包名:
postgresql-$v-hashtypes
- DEB版本:
0.1.5
- DEB依赖:无
最新版本
扩展安装
使用 pig
命令行工具安装 hashtypes
扩展:
pig ext install hashtypes
使用 Pigsty剧本 安装 hashtypes 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["hashtypes"]}' # -l <集群名>
从 YUM仓库 手工安装 hashtypes
RPM 包:
dnf install hashtypes_17*;
dnf install hashtypes_16*;
dnf install hashtypes_15*;
dnf install hashtypes_14*;
从 APT仓库 手工安装 hashtypes
DEB 包:
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;
21 - ip4r
PostgreSQL 的 IPv4/v6 和 IPv4/v6 范围索引类型
扩展总览
PGDG 第一方扩展: ip4r
: PostgreSQL 的 IPv4/v6 和 IPv4/v6 范围索引类型
基本信息
元数据
- 默认版本: 2.4.2
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 无法安装至任意模式下
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PGDG
- RPM包名:
ip4r_$v*
- RPM版本:
2.4.2
- RPM依赖:无
- DEB仓库:PGDG
- DEB包名:
postgresql-$v-ip4r
- DEB版本:
2.4.2
- DEB依赖:无
最新版本
扩展安装
使用 pig
命令行工具安装 ip4r
扩展:
使用 Pigsty剧本 安装 ip4r 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["ip4r"]}' # -l <集群名>
从 YUM仓库 手工安装 ip4r
RPM 包:
dnf install ip4r_17*;
dnf install ip4r_16*;
dnf install ip4r_15*;
dnf install ip4r_14*;
dnf install ip4r_13*;
从 APT仓库 手工安装 ip4r
DEB 包:
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
扩展:
22 - pg_duration
用于表示时间段的强化数据类型
扩展总览
PIGSTY 第三方扩展: pg_duration
: 用于表示时间段的强化数据类型
基本信息
元数据
- 默认版本: 1.0.2
- PG大版本:
17
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 无法安装至任意模式下
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PIGSTY
- RPM包名:
pg_duration_$v*
- RPM版本:
1.0.2
- RPM依赖:无
- DEB仓库:PIGSTY
- DEB包名:
postgresql-$v-pg-duration
- DEB版本:
1.0.2
- DEB依赖:无
最新版本
扩展安装
使用 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;
23 - uri
URI数据类型
扩展总览
PIGSTY 第三方扩展: pg_uri
: URI数据类型
基本信息
元数据
- 默认版本: 1.20151224
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 无法安装至任意模式下
- 信任程度: 未知
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PIGSTY
- RPM包名:
pg_uri_$v*
- RPM版本:
1.20151224
- RPM依赖:无
- DEB仓库:PIGSTY
- DEB包名:
postgresql-$v-pg-uri
- DEB版本:
1.20151224
- DEB依赖:无
最新版本
扩展安装
使用 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 <集群名>
从 YUM仓库 手工安装 pg_uri
RPM 包:
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仓库 手工安装 pg_uri
DEB 包:
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
扩展:
24 - emailaddr
Email地址数据类型
扩展总览
PIGSTY 第三方扩展: pgemailaddr
: Email地址数据类型
基本信息
元数据
- 默认版本: 0
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 未知
- 信任程度: 未知
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PIGSTY
- RPM包名:
pg_emailaddr_$v*
- RPM版本:
0
- RPM依赖:无
- DEB仓库:PIGSTY
- DEB包名:
postgresql-$v-pg-emailaddr
- DEB版本:
0
- DEB依赖:无
最新版本
扩展安装
使用 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;
25 - acl
ACL数据类型
扩展总览
PIGSTY 第三方扩展: pg_acl
: ACL数据类型
基本信息
元数据
- 默认版本: 1.0.4
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 无法安装至任意模式下
- 信任程度: 未知
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PIGSTY
- RPM包名:
acl_$v*
- RPM版本:
1.0.4
- RPM依赖:无
- DEB仓库:PIGSTY
- DEB包名:
postgresql-$v-acl
- DEB版本:
1.0.4
- DEB依赖:无
最新版本
扩展安装
使用 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 <集群名>
从 YUM仓库 手工安装 pg_acl
RPM 包:
dnf install acl_17*;
dnf install acl_16*;
dnf install acl_15*;
dnf install acl_14*;
dnf install acl_13*;
从 APT仓库 手工安装 pg_acl
DEB 包:
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
扩展:
26 - debversion
Debian版本号数据类型
扩展总览
PGDG 第一方扩展: debversion
: Debian版本号数据类型
基本信息
元数据
- 默认版本: 1.2.0
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 无法安装至任意模式下
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:None
- RPM包名:无
- RPM版本:无
- RPM依赖:无
- DEB仓库:PGDG
- DEB包名:
postgresql-$v-debversion
- DEB版本:
1.2.0
- DEB依赖:无
最新版本
扩展安装
使用 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;
27 - pg_rrule
日历重复规则RRULE数据类型
扩展总览
PGDG 第一方扩展: pg_rrule
: 日历重复规则RRULE数据类型
基本信息
元数据
- 默认版本: 0.2.0
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 无法安装至任意模式下
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:None
- RPM包名:无
- RPM版本:无
- RPM依赖:无
- DEB仓库:PGDG
- DEB包名:
postgresql-$v-pg-rrule
- DEB版本:
0.2.0
- DEB依赖:无
最新版本
扩展安装
使用 pig
命令行工具安装 pg_rrule
扩展:
使用 Pigsty剧本 安装 pg_rrule 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_rrule"]}' # -l <集群名>
从 APT仓库 手工安装 pg_rrule
DEB 包:
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;
28 - timestamp9
纳秒分辨率时间戳
扩展总览
MIXED 第三方扩展: timestamp9
: 纳秒分辨率时间戳
基本信息
元数据
- 默认版本: 1.4.0
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 未知
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PGDG
- RPM包名:
timestamp9_$v*
- RPM版本:
1.4.0
- RPM依赖:无
- DEB仓库:PIGSTY
- DEB包名:
postgresql-$v-timestamp9
- DEB版本:
1.4.0
- DEB依赖:无
最新版本
扩展安装
使用 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;
29 - chkpass
数据类型:自动加密的密码
扩展总览
PIGSTY 第三方扩展: chkpass
: 数据类型:自动加密的密码
基本信息
元数据
- 默认版本: 1.0
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 未知
- 信任程度: 未知
- 所需模式: 无
- 所需扩展: 无
软件包
- RPM仓库:PIGSTY
- RPM包名:
chkpass_$v*
- RPM版本:
1.0
- RPM依赖:无
- DEB仓库:PIGSTY
- DEB包名:
postgresql-$v-chkpass
- DEB版本:
1.0
- DEB依赖:无
最新版本
扩展安装
使用 pig
命令行工具安装 chkpass
扩展:
使用 Pigsty剧本 安装 chkpass 扩展:
./pgsql.yml -t pg_extension -e '{"pg_extensions": ["chkpass"]}' # -l <集群名>
从 YUM仓库 手工安装 chkpass
RPM 包:
dnf install chkpass_17*;
dnf install chkpass_16*;
dnf install chkpass_15*;
dnf install chkpass_14*;
dnf install chkpass_13*;
从 APT仓库 手工安装 chkpass
DEB 包:
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;
30 - isn
用于国际产品编号标准的数据类型
扩展总览
CONTRIB 自带扩展: isn
: 用于国际产品编号标准的数据类型
基本信息
元数据
- 默认版本: 1.2
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 未知
- 信任程度: 受信任,无需超级用户,带
CREATE
权限的用户可以直接创建
- 所需模式: 无
- 所需扩展: 无
软件包
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 扩展,无需独立安装。
从 YUM仓库 手工安装 isn
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 isn
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 isn
扩展:
31 - seg
表示线段或浮点间隔的数据类型
扩展总览
CONTRIB 自带扩展: seg
: 表示线段或浮点间隔的数据类型
基本信息
元数据
- 默认版本: 1.4
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 未知
- 信任程度: 受信任,无需超级用户,带
CREATE
权限的用户可以直接创建
- 所需模式: 无
- 所需扩展: 无
软件包
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 扩展,无需独立安装。
从 YUM仓库 手工安装 seg
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 seg
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 seg
扩展:
32 - cube
用于存储多维立方体的数据类型
扩展总览
CONTRIB 自带扩展: cube
: 用于存储多维立方体的数据类型
基本信息
元数据
- 默认版本: 1.5
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 未知
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
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 |
|
|
|
|
|
扩展安装
扩展 cube
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 cube
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 cube
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 cube
扩展:
33 - ltree
用于表示分层树状结构的数据类型
扩展总览
CONTRIB 自带扩展: ltree
: 用于表示分层树状结构的数据类型
基本信息
元数据
- 默认版本: 1.3
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 未知
- 信任程度: 受信任,无需超级用户,带
CREATE
权限的用户可以直接创建
- 所需模式: 无
- 所需扩展: 无
软件包
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 扩展,无需独立安装。
从 YUM仓库 手工安装 ltree
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 ltree
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 ltree
扩展:
34 - hstore
用于存储(键,值)对集合的数据类型
扩展总览
CONTRIB 自带扩展: hstore
: 用于存储(键,值)对集合的数据类型
基本信息
元数据
- 默认版本: 1.8
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 未知
- 信任程度: 受信任,无需超级用户,带
CREATE
权限的用户可以直接创建
- 所需模式: 无
- 所需扩展: 无
软件包
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 扩展,无需独立安装。
从 YUM仓库 手工安装 hstore
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 hstore
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 hstore
扩展:
35 - citext
提供大小写不敏感的字符串类型
扩展总览
CONTRIB 自带扩展: citext
: 提供大小写不敏感的字符串类型
基本信息
元数据
- 默认版本: 1.6
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 未知
- 信任程度: 受信任,无需超级用户,带
CREATE
权限的用户可以直接创建
- 所需模式: 无
- 所需扩展: 无
软件包
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 扩展,无需独立安装。
从 YUM仓库 手工安装 citext
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 citext
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 citext
扩展:
36 - xml2
XPath 查询和 XSLT
扩展总览
CONTRIB 自带扩展: xml2
: XPath 查询和 XSLT
基本信息
元数据
- 默认版本: 1.1
- PG大版本:
17
,16
,15
,14
,13
- 动态加载: 无需动态加载
- 需要DDL: 需要执行
CREATE EXTENSION
DDL
- 可重定位: 未知
- 信任程度: 未受信任,创建扩展需要超级用户权限
- 所需模式: 无
- 所需扩展: 无
软件包
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 |
|
|
|
|
|
扩展安装
扩展 xml2
属于 PostgreSQL 自带的第一方 Contrib 扩展,无需独立安装。
从 YUM仓库 手工安装 xml2
RPM 包:
dnf install postgresql17-contrib;
dnf install postgresql16-contrib;
dnf install postgresql15-contrib;
dnf install postgresql14-contrib;
dnf install postgresql13-contrib;
从 APT仓库 手工安装 xml2
DEB 包:
apt install postgresql-17;
apt install postgresql-16;
apt install postgresql-15;
apt install postgresql-14;
apt install postgresql-13;
使用以下 SQL 命令在已经安装此扩展插件的 PG 集群上 启用 xml2
扩展: