跳转到主要内容

pgpdf

PDF数据类型,管理函数与全文检索

pgpdf · PDF数据类型,管理函数与全文检索

概览

ID扩展软件包版本类别许可证编程语言
3570pgpdfpgpdf0.1.0TYPEGPL-2.0C
属性可执行文件动态库需要预加载需要建扩展可迁移可信
--s-d-r否是否是是否

软件包

类型仓库版本兼容的 PostgreSQL 大版本包名模式依赖
EXTPIGSTY0.1.019 18 17 16 15pgpdf-
RPMPGDG0.1.019 18 17 16 15pgpdf_$v-
DEBPIGSTY0.1.019 18 17 16 15postgresql-$v-pgpdf-
Linux / PGPG19PG18PG17PG16PG15
el8.x86_64N/APGDG 0.1.0PGDG 0.1.0PGDG 0.1.0PGDG 0.1.0
el8.aarch64N/APGDG 0.1.0PGDG 0.1.0PGDG 0.1.0PGDG 0.1.0
el9.x86_64PGDG 0.1.0PGDG 0.1.0PGDG 0.1.0PGDG 0.1.0PGDG 0.1.0
el9.aarch64PGDG 0.1.0PGDG 0.1.0PGDG 0.1.0PGDG 0.1.0PGDG 0.1.0
el10.x86_64PGDG 0.1.0PGDG 0.1.0PGDG 0.1.0PGDG 0.1.0PGDG 0.1.0
el10.aarch64PGDG 0.1.0PGDG 0.1.0PGDG 0.1.0PGDG 0.1.0PGDG 0.1.0
d12.x86_64PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0
d12.aarch64PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0
d13.x86_64PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0
d13.aarch64PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0
u22.x86_64PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0
u22.aarch64PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0
u24.x86_64PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0
u24.aarch64PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0
u26.x86_64PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0
u26.aarch64PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0PIGSTY 0.1.0
软件包版本平台仓库大小下载
pgpdf_190.1.0el9.x86_64pgdg17.3 KiBpgpdf_19-0.1.0-10PGDG.rhel9.9.x86_64.rpm
pgpdf_190.1.0el9.x86_64pgdg17.3 KiBpgpdf_19-0.1.0-10PGDG.rhel9.8.x86_64.rpm
pgpdf_190.1.0el9.x86_64pgdg17.3 KiBpgpdf_19-0.1.0-10PGDG.rhel9.7.x86_64.rpm
pgpdf_190.1.0el9.aarch64pgdg16.7 KiBpgpdf_19-0.1.0-10PGDG.rhel9.9.aarch64.rpm
pgpdf_190.1.0el9.aarch64pgdg16.7 KiBpgpdf_19-0.1.0-10PGDG.rhel9.8.aarch64.rpm
pgpdf_190.1.0el9.aarch64pgdg16.7 KiBpgpdf_19-0.1.0-10PGDG.rhel9.7.aarch64.rpm
pgpdf_190.1.0el10.x86_64pgdg17.4 KiBpgpdf_19-0.1.0-10PGDG.rhel10.3.x86_64.rpm
pgpdf_190.1.0el10.x86_64pgdg17.4 KiBpgpdf_19-0.1.0-10PGDG.rhel10.2.x86_64.rpm
pgpdf_190.1.0el10.x86_64pgdg17.4 KiBpgpdf_19-0.1.0-10PGDG.rhel10.1.x86_64.rpm
pgpdf_190.1.0el10.aarch64pgdg17.0 KiBpgpdf_19-0.1.0-10PGDG.rhel10.3.aarch64.rpm
pgpdf_190.1.0el10.aarch64pgdg17.0 KiBpgpdf_19-0.1.0-10PGDG.rhel10.2.aarch64.rpm
pgpdf_190.1.0el10.aarch64pgdg17.0 KiBpgpdf_19-0.1.0-10PGDG.rhel10.1.aarch64.rpm
postgresql-19-pgpdf0.1.0d12.x86_64pigsty25.4 KiBpostgresql-19-pgpdf_0.1.0-1PGSTY~bookworm_amd64.deb
postgresql-19-pgpdf0.1.0d12.aarch64pigsty24.8 KiBpostgresql-19-pgpdf_0.1.0-1PGSTY~bookworm_arm64.deb
postgresql-19-pgpdf0.1.0d13.x86_64pigsty25.5 KiBpostgresql-19-pgpdf_0.1.0-1PGSTY~trixie_amd64.deb
postgresql-19-pgpdf0.1.0d13.aarch64pigsty24.9 KiBpostgresql-19-pgpdf_0.1.0-1PGSTY~trixie_arm64.deb
postgresql-19-pgpdf0.1.0u22.x86_64pigsty26.9 KiBpostgresql-19-pgpdf_0.1.0-1PGSTY~jammy_amd64.deb
postgresql-19-pgpdf0.1.0u22.aarch64pigsty26.4 KiBpostgresql-19-pgpdf_0.1.0-1PGSTY~jammy_arm64.deb
postgresql-19-pgpdf0.1.0u24.x86_64pigsty26.7 KiBpostgresql-19-pgpdf_0.1.0-1PGSTY~noble_amd64.deb
postgresql-19-pgpdf0.1.0u24.aarch64pigsty26.0 KiBpostgresql-19-pgpdf_0.1.0-1PGSTY~noble_arm64.deb
postgresql-19-pgpdf0.1.0u26.x86_64pigsty26.4 KiBpostgresql-19-pgpdf_0.1.0-1PGSTY~resolute_amd64.deb
postgresql-19-pgpdf0.1.0u26.aarch64pigsty26.1 KiBpostgresql-19-pgpdf_0.1.0-1PGSTY~resolute_arm64.deb
软件包版本平台仓库大小下载
pgpdf_180.1.0el8.x86_64pgdg16.8 KiBpgpdf_18-0.1.0-9PGDG.rhel8.10.x86_64.rpm
pgpdf_180.1.0el8.x86_64pigsty18.4 KiBpgpdf_18-0.1.0-1PIGSTY.el8.x86_64.rpm
pgpdf_180.1.0el8.x86_64pgdg15.4 KiBpgpdf_18-0.1.0-1PGDG.rhel8.x86_64.rpm
pgpdf_180.1.0el8.aarch64pgdg16.2 KiBpgpdf_18-0.1.0-9PGDG.rhel8.10.aarch64.rpm
pgpdf_180.1.0el8.aarch64pigsty18.0 KiBpgpdf_18-0.1.0-1PIGSTY.el8.aarch64.rpm
pgpdf_180.1.0el8.aarch64pgdg14.8 KiBpgpdf_18-0.1.0-1PGDG.rhel8.aarch64.rpm
pgpdf_180.1.0el9.x86_64pgdg17.0 KiBpgpdf_18-0.1.0-9PGDG.rhel9.9.x86_64.rpm
pgpdf_180.1.0el9.x86_64pgdg17.0 KiBpgpdf_18-0.1.0-9PGDG.rhel9.8.x86_64.rpm
pgpdf_180.1.0el9.x86_64pgdg17.0 KiBpgpdf_18-0.1.0-9PGDG.rhel9.7.x86_64.rpm
pgpdf_180.1.0el9.x86_64pgdg15.9 KiBpgpdf_18-0.1.0-4PGDG.rhel9.8.x86_64.rpm
pgpdf_180.1.0el9.x86_64pigsty18.2 KiBpgpdf_18-0.1.0-1PIGSTY.el9.x86_64.rpm
pgpdf_180.1.0el9.x86_64pgdg15.6 KiBpgpdf_18-0.1.0-1PGDG.rhel9.x86_64.rpm
pgpdf_180.1.0el9.aarch64pgdg16.4 KiBpgpdf_18-0.1.0-9PGDG.rhel9.9.aarch64.rpm
pgpdf_180.1.0el9.aarch64pgdg16.5 KiBpgpdf_18-0.1.0-9PGDG.rhel9.8.aarch64.rpm
pgpdf_180.1.0el9.aarch64pgdg16.5 KiBpgpdf_18-0.1.0-9PGDG.rhel9.7.aarch64.rpm
pgpdf_180.1.0el9.aarch64pgdg15.3 KiBpgpdf_18-0.1.0-4PGDG.rhel9.8.aarch64.rpm
pgpdf_180.1.0el9.aarch64pigsty17.7 KiBpgpdf_18-0.1.0-1PIGSTY.el9.aarch64.rpm
pgpdf_180.1.0el9.aarch64pgdg14.9 KiBpgpdf_18-0.1.0-1PGDG.rhel9.aarch64.rpm
pgpdf_180.1.0el10.x86_64pgdg17.1 KiBpgpdf_18-0.1.0-9PGDG.rhel10.3.x86_64.rpm
pgpdf_180.1.0el10.x86_64pgdg17.1 KiBpgpdf_18-0.1.0-9PGDG.rhel10.2.x86_64.rpm
pgpdf_180.1.0el10.x86_64pgdg17.1 KiBpgpdf_18-0.1.0-9PGDG.rhel10.1.x86_64.rpm
pgpdf_180.1.0el10.x86_64pgdg15.9 KiBpgpdf_18-0.1.0-4PGDG.rhel10.2.x86_64.rpm
pgpdf_180.1.0el10.x86_64pigsty18.2 KiBpgpdf_18-0.1.0-1PIGSTY.el10.x86_64.rpm
pgpdf_180.1.0el10.x86_64pgdg16.0 KiBpgpdf_18-0.1.0-1PGDG.rhel10.x86_64.rpm
pgpdf_180.1.0el10.aarch64pgdg16.7 KiBpgpdf_18-0.1.0-9PGDG.rhel10.3.aarch64.rpm
pgpdf_180.1.0el10.aarch64pgdg16.7 KiBpgpdf_18-0.1.0-9PGDG.rhel10.2.aarch64.rpm
pgpdf_180.1.0el10.aarch64pgdg16.7 KiBpgpdf_18-0.1.0-9PGDG.rhel10.1.aarch64.rpm
pgpdf_180.1.0el10.aarch64pgdg15.5 KiBpgpdf_18-0.1.0-4PGDG.rhel10.2.aarch64.rpm
pgpdf_180.1.0el10.aarch64pigsty17.9 KiBpgpdf_18-0.1.0-1PIGSTY.el10.aarch64.rpm
pgpdf_180.1.0el10.aarch64pgdg15.5 KiBpgpdf_18-0.1.0-1PGDG.rhel10.aarch64.rpm
postgresql-18-pgpdf0.1.0d12.x86_64pigsty25.5 KiBpostgresql-18-pgpdf_0.1.0-1PGSTY~bookworm_amd64.deb
postgresql-18-pgpdf0.1.0d12.aarch64pigsty24.8 KiBpostgresql-18-pgpdf_0.1.0-1PGSTY~bookworm_arm64.deb
postgresql-18-pgpdf0.1.0d13.x86_64pigsty25.5 KiBpostgresql-18-pgpdf_0.1.0-1PGSTY~trixie_amd64.deb
postgresql-18-pgpdf0.1.0d13.aarch64pigsty24.9 KiBpostgresql-18-pgpdf_0.1.0-1PGSTY~trixie_arm64.deb
postgresql-18-pgpdf0.1.0u22.x86_64pigsty26.8 KiBpostgresql-18-pgpdf_0.1.0-1PGSTY~jammy_amd64.deb
postgresql-18-pgpdf0.1.0u22.aarch64pigsty26.4 KiBpostgresql-18-pgpdf_0.1.0-1PGSTY~jammy_arm64.deb
postgresql-18-pgpdf0.1.0u24.x86_64pigsty26.7 KiBpostgresql-18-pgpdf_0.1.0-1PGSTY~noble_amd64.deb
postgresql-18-pgpdf0.1.0u24.aarch64pigsty25.9 KiBpostgresql-18-pgpdf_0.1.0-1PGSTY~noble_arm64.deb
postgresql-18-pgpdf0.1.0u26.x86_64pigsty26.4 KiBpostgresql-18-pgpdf_0.1.0-1PGSTY~resolute_amd64.deb
postgresql-18-pgpdf0.1.0u26.aarch64pigsty26.1 KiBpostgresql-18-pgpdf_0.1.0-1PGSTY~resolute_arm64.deb
软件包版本平台仓库大小下载
pgpdf_170.1.0el8.x86_64pgdg16.8 KiBpgpdf_17-0.1.0-9PGDG.rhel8.10.x86_64.rpm
pgpdf_170.1.0el8.x86_64pigsty18.4 KiBpgpdf_17-0.1.0-1PIGSTY.el8.x86_64.rpm
pgpdf_170.1.0el8.x86_64pgdg15.4 KiBpgpdf_17-0.1.0-1PGDG.rhel8.x86_64.rpm
pgpdf_170.1.0el8.aarch64pgdg16.2 KiBpgpdf_17-0.1.0-9PGDG.rhel8.10.aarch64.rpm
pgpdf_170.1.0el8.aarch64pigsty18.0 KiBpgpdf_17-0.1.0-1PIGSTY.el8.aarch64.rpm
pgpdf_170.1.0el8.aarch64pgdg14.8 KiBpgpdf_17-0.1.0-1PGDG.rhel8.aarch64.rpm
pgpdf_170.1.0el9.x86_64pgdg17.1 KiBpgpdf_17-0.1.0-9PGDG.rhel9.9.x86_64.rpm
pgpdf_170.1.0el9.x86_64pgdg17.0 KiBpgpdf_17-0.1.0-9PGDG.rhel9.8.x86_64.rpm
pgpdf_170.1.0el9.x86_64pgdg17.1 KiBpgpdf_17-0.1.0-9PGDG.rhel9.7.x86_64.rpm
pgpdf_170.1.0el9.x86_64pgdg15.9 KiBpgpdf_17-0.1.0-4PGDG.rhel9.8.x86_64.rpm
pgpdf_170.1.0el9.x86_64pigsty18.2 KiBpgpdf_17-0.1.0-1PIGSTY.el9.x86_64.rpm
pgpdf_170.1.0el9.x86_64pgdg15.6 KiBpgpdf_17-0.1.0-1PGDG.rhel9.x86_64.rpm
pgpdf_170.1.0el9.aarch64pgdg16.5 KiBpgpdf_17-0.1.0-9PGDG.rhel9.9.aarch64.rpm
pgpdf_170.1.0el9.aarch64pgdg16.5 KiBpgpdf_17-0.1.0-9PGDG.rhel9.8.aarch64.rpm
pgpdf_170.1.0el9.aarch64pgdg16.5 KiBpgpdf_17-0.1.0-9PGDG.rhel9.7.aarch64.rpm
pgpdf_170.1.0el9.aarch64pgdg15.3 KiBpgpdf_17-0.1.0-4PGDG.rhel9.8.aarch64.rpm
pgpdf_170.1.0el9.aarch64pigsty17.8 KiBpgpdf_17-0.1.0-1PIGSTY.el9.aarch64.rpm
pgpdf_170.1.0el9.aarch64pgdg15.0 KiBpgpdf_17-0.1.0-1PGDG.rhel9.aarch64.rpm
pgpdf_170.1.0el10.x86_64pgdg17.1 KiBpgpdf_17-0.1.0-9PGDG.rhel10.3.x86_64.rpm
pgpdf_170.1.0el10.x86_64pgdg17.1 KiBpgpdf_17-0.1.0-9PGDG.rhel10.2.x86_64.rpm
pgpdf_170.1.0el10.x86_64pgdg17.1 KiBpgpdf_17-0.1.0-9PGDG.rhel10.1.x86_64.rpm
pgpdf_170.1.0el10.x86_64pgdg16.0 KiBpgpdf_17-0.1.0-4PGDG.rhel10.2.x86_64.rpm
pgpdf_170.1.0el10.x86_64pigsty18.2 KiBpgpdf_17-0.1.0-1PIGSTY.el10.x86_64.rpm
pgpdf_170.1.0el10.x86_64pgdg16.0 KiBpgpdf_17-0.1.0-1PGDG.rhel10.x86_64.rpm
pgpdf_170.1.0el10.aarch64pgdg16.6 KiBpgpdf_17-0.1.0-9PGDG.rhel10.3.aarch64.rpm
pgpdf_170.1.0el10.aarch64pgdg16.6 KiBpgpdf_17-0.1.0-9PGDG.rhel10.2.aarch64.rpm
pgpdf_170.1.0el10.aarch64pgdg16.7 KiBpgpdf_17-0.1.0-9PGDG.rhel10.1.aarch64.rpm
pgpdf_170.1.0el10.aarch64pgdg15.5 KiBpgpdf_17-0.1.0-4PGDG.rhel10.2.aarch64.rpm
pgpdf_170.1.0el10.aarch64pigsty17.9 KiBpgpdf_17-0.1.0-1PIGSTY.el10.aarch64.rpm
pgpdf_170.1.0el10.aarch64pgdg15.5 KiBpgpdf_17-0.1.0-1PGDG.rhel10.aarch64.rpm
postgresql-17-pgpdf0.1.0d12.x86_64pigsty25.4 KiBpostgresql-17-pgpdf_0.1.0-1PGSTY~bookworm_amd64.deb
postgresql-17-pgpdf0.1.0d12.aarch64pigsty24.7 KiBpostgresql-17-pgpdf_0.1.0-1PGSTY~bookworm_arm64.deb
postgresql-17-pgpdf0.1.0d13.x86_64pigsty25.4 KiBpostgresql-17-pgpdf_0.1.0-1PGSTY~trixie_amd64.deb
postgresql-17-pgpdf0.1.0d13.aarch64pigsty24.8 KiBpostgresql-17-pgpdf_0.1.0-1PGSTY~trixie_arm64.deb
postgresql-17-pgpdf0.1.0u22.x86_64pigsty27.6 KiBpostgresql-17-pgpdf_0.1.0-1PGSTY~jammy_amd64.deb
postgresql-17-pgpdf0.1.0u22.aarch64pigsty27.1 KiBpostgresql-17-pgpdf_0.1.0-1PGSTY~jammy_arm64.deb
postgresql-17-pgpdf0.1.0u24.x86_64pigsty26.6 KiBpostgresql-17-pgpdf_0.1.0-1PGSTY~noble_amd64.deb
postgresql-17-pgpdf0.1.0u24.aarch64pigsty25.8 KiBpostgresql-17-pgpdf_0.1.0-1PGSTY~noble_arm64.deb
postgresql-17-pgpdf0.1.0u26.x86_64pigsty26.3 KiBpostgresql-17-pgpdf_0.1.0-1PGSTY~resolute_amd64.deb
postgresql-17-pgpdf0.1.0u26.aarch64pigsty26.1 KiBpostgresql-17-pgpdf_0.1.0-1PGSTY~resolute_arm64.deb
软件包版本平台仓库大小下载
pgpdf_160.1.0el8.x86_64pgdg16.8 KiBpgpdf_16-0.1.0-9PGDG.rhel8.10.x86_64.rpm
pgpdf_160.1.0el8.x86_64pigsty18.4 KiBpgpdf_16-0.1.0-1PIGSTY.el8.x86_64.rpm
pgpdf_160.1.0el8.x86_64pgdg15.4 KiBpgpdf_16-0.1.0-1PGDG.rhel8.x86_64.rpm
pgpdf_160.1.0el8.aarch64pgdg16.2 KiBpgpdf_16-0.1.0-9PGDG.rhel8.10.aarch64.rpm
pgpdf_160.1.0el8.aarch64pigsty18.0 KiBpgpdf_16-0.1.0-1PIGSTY.el8.aarch64.rpm
pgpdf_160.1.0el8.aarch64pgdg14.8 KiBpgpdf_16-0.1.0-1PGDG.rhel8.aarch64.rpm
pgpdf_160.1.0el9.x86_64pgdg17.1 KiBpgpdf_16-0.1.0-9PGDG.rhel9.9.x86_64.rpm
pgpdf_160.1.0el9.x86_64pgdg17.1 KiBpgpdf_16-0.1.0-9PGDG.rhel9.8.x86_64.rpm
pgpdf_160.1.0el9.x86_64pgdg17.1 KiBpgpdf_16-0.1.0-9PGDG.rhel9.7.x86_64.rpm
pgpdf_160.1.0el9.x86_64pgdg15.9 KiBpgpdf_16-0.1.0-4PGDG.rhel9.8.x86_64.rpm
pgpdf_160.1.0el9.x86_64pigsty18.2 KiBpgpdf_16-0.1.0-1PIGSTY.el9.x86_64.rpm
pgpdf_160.1.0el9.x86_64pgdg15.6 KiBpgpdf_16-0.1.0-1PGDG.rhel9.x86_64.rpm
pgpdf_160.1.0el9.aarch64pgdg16.4 KiBpgpdf_16-0.1.0-9PGDG.rhel9.9.aarch64.rpm
pgpdf_160.1.0el9.aarch64pgdg16.5 KiBpgpdf_16-0.1.0-9PGDG.rhel9.8.aarch64.rpm
pgpdf_160.1.0el9.aarch64pgdg16.5 KiBpgpdf_16-0.1.0-9PGDG.rhel9.7.aarch64.rpm
pgpdf_160.1.0el9.aarch64pgdg15.3 KiBpgpdf_16-0.1.0-4PGDG.rhel9.8.aarch64.rpm
pgpdf_160.1.0el9.aarch64pigsty17.8 KiBpgpdf_16-0.1.0-1PIGSTY.el9.aarch64.rpm
pgpdf_160.1.0el9.aarch64pgdg15.0 KiBpgpdf_16-0.1.0-1PGDG.rhel9.aarch64.rpm
pgpdf_160.1.0el10.x86_64pgdg17.1 KiBpgpdf_16-0.1.0-9PGDG.rhel10.3.x86_64.rpm
pgpdf_160.1.0el10.x86_64pgdg17.1 KiBpgpdf_16-0.1.0-9PGDG.rhel10.2.x86_64.rpm
pgpdf_160.1.0el10.x86_64pgdg17.1 KiBpgpdf_16-0.1.0-9PGDG.rhel10.1.x86_64.rpm
pgpdf_160.1.0el10.x86_64pgdg16.0 KiBpgpdf_16-0.1.0-4PGDG.rhel10.2.x86_64.rpm
pgpdf_160.1.0el10.x86_64pigsty18.2 KiBpgpdf_16-0.1.0-1PIGSTY.el10.x86_64.rpm
pgpdf_160.1.0el10.x86_64pgdg16.0 KiBpgpdf_16-0.1.0-1PGDG.rhel10.x86_64.rpm
pgpdf_160.1.0el10.aarch64pgdg16.6 KiBpgpdf_16-0.1.0-9PGDG.rhel10.3.aarch64.rpm
pgpdf_160.1.0el10.aarch64pgdg16.7 KiBpgpdf_16-0.1.0-9PGDG.rhel10.2.aarch64.rpm
pgpdf_160.1.0el10.aarch64pgdg16.7 KiBpgpdf_16-0.1.0-9PGDG.rhel10.1.aarch64.rpm
pgpdf_160.1.0el10.aarch64pgdg15.5 KiBpgpdf_16-0.1.0-4PGDG.rhel10.2.aarch64.rpm
pgpdf_160.1.0el10.aarch64pigsty17.9 KiBpgpdf_16-0.1.0-1PIGSTY.el10.aarch64.rpm
pgpdf_160.1.0el10.aarch64pgdg15.5 KiBpgpdf_16-0.1.0-1PGDG.rhel10.aarch64.rpm
postgresql-16-pgpdf0.1.0d12.x86_64pigsty25.4 KiBpostgresql-16-pgpdf_0.1.0-1PGSTY~bookworm_amd64.deb
postgresql-16-pgpdf0.1.0d12.aarch64pigsty24.7 KiBpostgresql-16-pgpdf_0.1.0-1PGSTY~bookworm_arm64.deb
postgresql-16-pgpdf0.1.0d13.x86_64pigsty25.4 KiBpostgresql-16-pgpdf_0.1.0-1PGSTY~trixie_amd64.deb
postgresql-16-pgpdf0.1.0d13.aarch64pigsty24.8 KiBpostgresql-16-pgpdf_0.1.0-1PGSTY~trixie_arm64.deb
postgresql-16-pgpdf0.1.0u22.x86_64pigsty27.6 KiBpostgresql-16-pgpdf_0.1.0-1PGSTY~jammy_amd64.deb
postgresql-16-pgpdf0.1.0u22.aarch64pigsty27.1 KiBpostgresql-16-pgpdf_0.1.0-1PGSTY~jammy_arm64.deb
postgresql-16-pgpdf0.1.0u24.x86_64pigsty26.6 KiBpostgresql-16-pgpdf_0.1.0-1PGSTY~noble_amd64.deb
postgresql-16-pgpdf0.1.0u24.aarch64pigsty25.8 KiBpostgresql-16-pgpdf_0.1.0-1PGSTY~noble_arm64.deb
postgresql-16-pgpdf0.1.0u26.x86_64pigsty26.3 KiBpostgresql-16-pgpdf_0.1.0-1PGSTY~resolute_amd64.deb
postgresql-16-pgpdf0.1.0u26.aarch64pigsty26.1 KiBpostgresql-16-pgpdf_0.1.0-1PGSTY~resolute_arm64.deb
软件包版本平台仓库大小下载
pgpdf_150.1.0el8.x86_64pgdg16.7 KiBpgpdf_15-0.1.0-9PGDG.rhel8.10.x86_64.rpm
pgpdf_150.1.0el8.x86_64pigsty18.4 KiBpgpdf_15-0.1.0-1PIGSTY.el8.x86_64.rpm
pgpdf_150.1.0el8.x86_64pgdg15.4 KiBpgpdf_15-0.1.0-1PGDG.rhel8.x86_64.rpm
pgpdf_150.1.0el8.aarch64pgdg16.2 KiBpgpdf_15-0.1.0-9PGDG.rhel8.10.aarch64.rpm
pgpdf_150.1.0el8.aarch64pigsty17.9 KiBpgpdf_15-0.1.0-1PIGSTY.el8.aarch64.rpm
pgpdf_150.1.0el8.aarch64pgdg14.8 KiBpgpdf_15-0.1.0-1PGDG.rhel8.aarch64.rpm
pgpdf_150.1.0el9.x86_64pgdg17.0 KiBpgpdf_15-0.1.0-9PGDG.rhel9.9.x86_64.rpm
pgpdf_150.1.0el9.x86_64pgdg17.0 KiBpgpdf_15-0.1.0-9PGDG.rhel9.8.x86_64.rpm
pgpdf_150.1.0el9.x86_64pgdg17.0 KiBpgpdf_15-0.1.0-9PGDG.rhel9.7.x86_64.rpm
pgpdf_150.1.0el9.x86_64pgdg15.9 KiBpgpdf_15-0.1.0-4PGDG.rhel9.8.x86_64.rpm
pgpdf_150.1.0el9.x86_64pigsty18.2 KiBpgpdf_15-0.1.0-1PIGSTY.el9.x86_64.rpm
pgpdf_150.1.0el9.x86_64pgdg15.6 KiBpgpdf_15-0.1.0-1PGDG.rhel9.x86_64.rpm
pgpdf_150.1.0el9.aarch64pgdg16.4 KiBpgpdf_15-0.1.0-9PGDG.rhel9.9.aarch64.rpm
pgpdf_150.1.0el9.aarch64pgdg16.5 KiBpgpdf_15-0.1.0-9PGDG.rhel9.8.aarch64.rpm
pgpdf_150.1.0el9.aarch64pgdg16.5 KiBpgpdf_15-0.1.0-9PGDG.rhel9.7.aarch64.rpm
pgpdf_150.1.0el9.aarch64pgdg15.2 KiBpgpdf_15-0.1.0-4PGDG.rhel9.8.aarch64.rpm
pgpdf_150.1.0el9.aarch64pigsty17.7 KiBpgpdf_15-0.1.0-1PIGSTY.el9.aarch64.rpm
pgpdf_150.1.0el9.aarch64pgdg15.0 KiBpgpdf_15-0.1.0-1PGDG.rhel9.aarch64.rpm
pgpdf_150.1.0el10.x86_64pgdg17.1 KiBpgpdf_15-0.1.0-9PGDG.rhel10.3.x86_64.rpm
pgpdf_150.1.0el10.x86_64pgdg17.1 KiBpgpdf_15-0.1.0-9PGDG.rhel10.2.x86_64.rpm
pgpdf_150.1.0el10.x86_64pgdg17.1 KiBpgpdf_15-0.1.0-9PGDG.rhel10.1.x86_64.rpm
pgpdf_150.1.0el10.x86_64pgdg16.0 KiBpgpdf_15-0.1.0-4PGDG.rhel10.2.x86_64.rpm
pgpdf_150.1.0el10.x86_64pigsty18.2 KiBpgpdf_15-0.1.0-1PIGSTY.el10.x86_64.rpm
pgpdf_150.1.0el10.x86_64pgdg16.0 KiBpgpdf_15-0.1.0-1PGDG.rhel10.x86_64.rpm
pgpdf_150.1.0el10.aarch64pgdg16.6 KiBpgpdf_15-0.1.0-9PGDG.rhel10.3.aarch64.rpm
pgpdf_150.1.0el10.aarch64pgdg16.7 KiBpgpdf_15-0.1.0-9PGDG.rhel10.2.aarch64.rpm
pgpdf_150.1.0el10.aarch64pgdg16.7 KiBpgpdf_15-0.1.0-9PGDG.rhel10.1.aarch64.rpm
pgpdf_150.1.0el10.aarch64pgdg15.5 KiBpgpdf_15-0.1.0-4PGDG.rhel10.2.aarch64.rpm
pgpdf_150.1.0el10.aarch64pigsty17.9 KiBpgpdf_15-0.1.0-1PIGSTY.el10.aarch64.rpm
pgpdf_150.1.0el10.aarch64pgdg15.5 KiBpgpdf_15-0.1.0-1PGDG.rhel10.aarch64.rpm
postgresql-15-pgpdf0.1.0d12.x86_64pigsty25.4 KiBpostgresql-15-pgpdf_0.1.0-1PGSTY~bookworm_amd64.deb
postgresql-15-pgpdf0.1.0d12.aarch64pigsty24.8 KiBpostgresql-15-pgpdf_0.1.0-1PGSTY~bookworm_arm64.deb
postgresql-15-pgpdf0.1.0d13.x86_64pigsty25.4 KiBpostgresql-15-pgpdf_0.1.0-1PGSTY~trixie_amd64.deb
postgresql-15-pgpdf0.1.0d13.aarch64pigsty24.8 KiBpostgresql-15-pgpdf_0.1.0-1PGSTY~trixie_arm64.deb
postgresql-15-pgpdf0.1.0u22.x86_64pigsty27.6 KiBpostgresql-15-pgpdf_0.1.0-1PGSTY~jammy_amd64.deb
postgresql-15-pgpdf0.1.0u22.aarch64pigsty27.2 KiBpostgresql-15-pgpdf_0.1.0-1PGSTY~jammy_arm64.deb
postgresql-15-pgpdf0.1.0u24.x86_64pigsty26.7 KiBpostgresql-15-pgpdf_0.1.0-1PGSTY~noble_amd64.deb
postgresql-15-pgpdf0.1.0u24.aarch64pigsty25.9 KiBpostgresql-15-pgpdf_0.1.0-1PGSTY~noble_arm64.deb
postgresql-15-pgpdf0.1.0u26.x86_64pigsty26.4 KiBpostgresql-15-pgpdf_0.1.0-1PGSTY~resolute_amd64.deb
postgresql-15-pgpdf0.1.0u26.aarch64pigsty26.1 KiBpostgresql-15-pgpdf_0.1.0-1PGSTY~resolute_arm64.deb

源码

pig build pkg pgpdf;		# build rpm/deb

安装

启用 PGDG 和 PIGSTY 仓库并更新缓存。

pig repo add pgsql -u   # add both repo and update cache

使用 pig 安装扩展。

pig install pgpdf;		# install by package name

pig install pgpdf -v 19;   # install for PG 19
pig install pgpdf -v 18;   # install for PG 18
pig install pgpdf -v 17;   # install for PG 17
pig install pgpdf -v 16;   # install for PG 16
pig install pgpdf -v 15;   # install for PG 15

在数据库中创建扩展。

CREATE EXTENSION pgpdf;

用法

实际的 PDF 解析由 poppler 完成。

该扩展允许以符合 ACID 事务的方式处理 PDF 文件。常见的替代方案依赖于外部脚本或服务,容易导致数据摄取流程变得脆弱,并使原始数据出现不同步的问题。

下载一些 PDF 文件。

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

通过将 text 类型的文件路径或 bytea 列进行类型转换,即可创建 pdf 类型。

CREATE EXTENSION pgpdf;
SELECT '/tmp/pgintro.pdf'::pdf;
                                       pdf
----------------------------------------------------------------------------------
 PostgreSQL Introduction                                                         +
 Digoal.Zhou                                                                     +
 7/20/2011Catalog                                                                +
  PostgreSQL Origin

如果文件系统中没有 PDF 文件,但已将其内容存储在 bytea 列中,可以直接将其转换为 pdf 类型。

SELECT pg_read_binary_file('/tmp/pgintro.pdf')::bytea::pdf;

示例

创建一个包含 pdf 列的表:

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');

解析和验证会自动进行。文件只会从磁盘读取一次!

说明

文件路径必须是 postgres 进程/用户可访问的! 这与运行 psql 的用户不同。如果不确定此处含义,请咨询 DBA!

字符串函数和运算符

标准的 PostgreSQL 字符串函数和运算符 均可正常使用:

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%';

全文搜索(FTS)

由于 pdf 文件可以像普通文本一样操作,因此也支持全文搜索(FTS)。

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 计算文档相似度

可以使用 pg_trgm 计算两个文档之间的相似度:

CREATE EXTENSION pg_trgm;

SELECT similarity('/tmp/pgintro.pdf'::pdf::text, '/tmp/sample.pdf'::pdf::text);

元数据

以下函数可用:

  • pdf_title(pdf) → text

  • pdf_author(pdf) → text

  • pdf_num_pages(pdf) → integer

    文档的总页数

  • pdf_page(pdf, integer) → text

    获取第 i 页的文本内容

  • 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)

获取部分页面

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)

安装

安装 poppler 依赖

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 # 可能需要 sudo

安装完成后,在数据库会话中执行:

CREATE EXTENSION pgpdf;

Docker

通过以下命令获取 Docker 镜像:

docker pull florents/pgpdf:pg17

此镜像在 Postgres 镜像 基础上添加了 pgpdf(将 17 替换为所需的 Postgres 服务器版本,运行方式相同)。

在容器中运行该镜像。

docker run --name pgpdf -p 5432:5432 -e POSTGRES_PASSWORD=pass florents/pgpdf:pg17

通过另一个终端连接到正在运行的服务器(容器)。

PGPASSWORD=pass psql -h localhost -p 5432 -U postgres
警告

将任意二进制数据(PDF)读入数据库可能存在安全风险。请仅对可信的文件使用此功能。

表格阅读器