跳转到主要内容

pre_prepare

在服务端预先准备好PreparedStatement备用

preprepare · 在服务端预先准备好PreparedStatement备用

概览

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

软件包

类型仓库版本兼容的 PostgreSQL 大版本包名模式依赖
EXTMIXED0.1019 18 17 16 15preprepare-
RPMPIGSTY0.1019 18 17 16 15preprepare_$v-
DEBPGDG0.1019 18 17 16 15postgresql-$v-preprepare-
Linux / PGPG19PG18PG17PG16PG15
el8.x86_64N/APIGSTY 0.9PIGSTY 0.9PIGSTY 0.9PIGSTY 0.9
el8.aarch64N/APIGSTY 0.9PIGSTY 0.9PIGSTY 0.9PIGSTY 0.9
el9.x86_64PIGSTY 0.10PIGSTY 0.10PIGSTY 0.10PIGSTY 0.10PIGSTY 0.10
el9.aarch64PIGSTY 0.10PIGSTY 0.10PIGSTY 0.10PIGSTY 0.10PIGSTY 0.10
el10.x86_64PIGSTY 0.10PIGSTY 0.10PIGSTY 0.10PIGSTY 0.10PIGSTY 0.10
el10.aarch64PIGSTY 0.10PIGSTY 0.10PIGSTY 0.10PIGSTY 0.10PIGSTY 0.10
d12.x86_64PGDG 0.10PGDG 0.10PGDG 0.10PGDG 0.10PGDG 0.10
d12.aarch64PGDG 0.10PGDG 0.10PGDG 0.10PGDG 0.10PGDG 0.10
d13.x86_64PGDG 0.10PGDG 0.10PGDG 0.10PGDG 0.10PGDG 0.10
d13.aarch64PGDG 0.10PGDG 0.10PGDG 0.10PGDG 0.10PGDG 0.10
u22.x86_64PGDG 0.10PGDG 0.10PGDG 0.10PGDG 0.10PGDG 0.10
u22.aarch64PGDG 0.10PGDG 0.10PGDG 0.10PGDG 0.10PGDG 0.10
u24.x86_64PGDG 0.10PGDG 0.10PGDG 0.10PGDG 0.10PGDG 0.10
u24.aarch64PGDG 0.10PGDG 0.10PGDG 0.10PGDG 0.10PGDG 0.10
u26.x86_64PGDG 0.10PGDG 0.10PGDG 0.10PGDG 0.10PGDG 0.10
u26.aarch64PGDG 0.10PGDG 0.10PGDG 0.10PGDG 0.10PGDG 0.10
软件包版本平台仓库大小下载
preprepare_190.10el9.x86_64pigsty22.1 KiBpreprepare_19-0.10-1PGSTY.el9.x86_64.rpm
preprepare_190.10el9.aarch64pigsty22.1 KiBpreprepare_19-0.10-1PGSTY.el9.aarch64.rpm
preprepare_190.10el10.x86_64pigsty22.2 KiBpreprepare_19-0.10-1PGSTY.el10.x86_64.rpm
preprepare_190.10el10.aarch64pigsty22.3 KiBpreprepare_19-0.10-1PGSTY.el10.aarch64.rpm
postgresql-19-preprepare0.10d12.x86_64pgdg16.6 KiBpostgresql-19-preprepare_0.10-1.pgdg12+1_amd64.deb
postgresql-19-preprepare0.9d12.x86_64pgdg16.9 KiBpostgresql-19-preprepare_0.9-10.pgdg12+2_amd64.deb
postgresql-19-preprepare0.9d12.x86_64pgdg16.8 KiBpostgresql-19-preprepare_0.9-10.pgdg12+1_amd64.deb
postgresql-19-preprepare0.10d12.aarch64pgdg16.6 KiBpostgresql-19-preprepare_0.10-1.pgdg12+1_arm64.deb
postgresql-19-preprepare0.9d12.aarch64pgdg16.9 KiBpostgresql-19-preprepare_0.9-10.pgdg12+2_arm64.deb
postgresql-19-preprepare0.9d12.aarch64pgdg16.9 KiBpostgresql-19-preprepare_0.9-10.pgdg12+1_arm64.deb
postgresql-19-preprepare0.10d13.x86_64pgdg16.5 KiBpostgresql-19-preprepare_0.10-1.pgdg13+1_amd64.deb
postgresql-19-preprepare0.9d13.x86_64pgdg16.9 KiBpostgresql-19-preprepare_0.9-10.pgdg13+2_amd64.deb
postgresql-19-preprepare0.9d13.x86_64pgdg16.8 KiBpostgresql-19-preprepare_0.9-10.pgdg13+1_amd64.deb
postgresql-19-preprepare0.10d13.aarch64pgdg16.6 KiBpostgresql-19-preprepare_0.10-1.pgdg13+1_arm64.deb
postgresql-19-preprepare0.9d13.aarch64pgdg16.9 KiBpostgresql-19-preprepare_0.9-10.pgdg13+2_arm64.deb
postgresql-19-preprepare0.9d13.aarch64pgdg16.9 KiBpostgresql-19-preprepare_0.9-10.pgdg13+1_arm64.deb
postgresql-19-preprepare0.10u22.x86_64pgdg17.0 KiBpostgresql-19-preprepare_0.10-1.pgdg22.04+1_amd64.deb
postgresql-19-preprepare0.9u22.x86_64pgdg17.4 KiBpostgresql-19-preprepare_0.9-10.pgdg22.04+2_amd64.deb
postgresql-19-preprepare0.9u22.x86_64pgdg17.3 KiBpostgresql-19-preprepare_0.9-10.pgdg22.04+1_amd64.deb
postgresql-19-preprepare0.10u22.aarch64pgdg17.0 KiBpostgresql-19-preprepare_0.10-1.pgdg22.04+1_arm64.deb
postgresql-19-preprepare0.9u22.aarch64pgdg17.4 KiBpostgresql-19-preprepare_0.9-10.pgdg22.04+2_arm64.deb
postgresql-19-preprepare0.9u22.aarch64pgdg17.3 KiBpostgresql-19-preprepare_0.9-10.pgdg22.04+1_arm64.deb
postgresql-19-preprepare0.10u24.x86_64pgdg16.1 KiBpostgresql-19-preprepare_0.10-1.pgdg24.04+1_amd64.deb
postgresql-19-preprepare0.9u24.x86_64pgdg16.5 KiBpostgresql-19-preprepare_0.9-10.pgdg24.04+2_amd64.deb
postgresql-19-preprepare0.9u24.x86_64pgdg16.4 KiBpostgresql-19-preprepare_0.9-10.pgdg24.04+1_amd64.deb
postgresql-19-preprepare0.10u24.aarch64pgdg16.1 KiBpostgresql-19-preprepare_0.10-1.pgdg24.04+1_arm64.deb
postgresql-19-preprepare0.9u24.aarch64pgdg16.4 KiBpostgresql-19-preprepare_0.9-10.pgdg24.04+2_arm64.deb
postgresql-19-preprepare0.9u24.aarch64pgdg16.4 KiBpostgresql-19-preprepare_0.9-10.pgdg24.04+1_arm64.deb
postgresql-19-preprepare0.10u26.x86_64pgdg16.0 KiBpostgresql-19-preprepare_0.10-1.pgdg26.04+1_amd64.deb
postgresql-19-preprepare0.9u26.x86_64pgdg16.4 KiBpostgresql-19-preprepare_0.9-10.pgdg26.04+2_amd64.deb
postgresql-19-preprepare0.9u26.x86_64pgdg16.4 KiBpostgresql-19-preprepare_0.9-10.pgdg26.04+1_amd64.deb
postgresql-19-preprepare0.10u26.aarch64pgdg16.0 KiBpostgresql-19-preprepare_0.10-1.pgdg26.04+1_arm64.deb
postgresql-19-preprepare0.9u26.aarch64pgdg16.4 KiBpostgresql-19-preprepare_0.9-10.pgdg26.04+2_arm64.deb
postgresql-19-preprepare0.9u26.aarch64pgdg16.4 KiBpostgresql-19-preprepare_0.9-10.pgdg26.04+1_arm64.deb
软件包版本平台仓库大小下载
preprepare_180.9el8.x86_64pigsty21.8 KiBpreprepare_18-0.9-3PGSTY.el8.x86_64.rpm
preprepare_180.9el8.aarch64pigsty22.1 KiBpreprepare_18-0.9-3PGSTY.el8.aarch64.rpm
preprepare_180.10el9.x86_64pigsty22.1 KiBpreprepare_18-0.10-1PGSTY.el9.x86_64.rpm
preprepare_180.10el9.aarch64pigsty22.0 KiBpreprepare_18-0.10-1PGSTY.el9.aarch64.rpm
preprepare_180.10el10.x86_64pigsty22.2 KiBpreprepare_18-0.10-1PGSTY.el10.x86_64.rpm
preprepare_180.10el10.aarch64pigsty22.3 KiBpreprepare_18-0.10-1PGSTY.el10.aarch64.rpm
postgresql-18-preprepare0.10d12.x86_64pgdg16.5 KiBpostgresql-18-preprepare_0.10-1.pgdg12+1_amd64.deb
postgresql-18-preprepare0.9d12.x86_64pgdg16.9 KiBpostgresql-18-preprepare_0.9-10.pgdg12+2_amd64.deb
postgresql-18-preprepare0.9d12.x86_64pgdg16.8 KiBpostgresql-18-preprepare_0.9-10.pgdg12+1_amd64.deb
postgresql-18-preprepare0.10d12.aarch64pgdg16.6 KiBpostgresql-18-preprepare_0.10-1.pgdg12+1_arm64.deb
postgresql-18-preprepare0.9d12.aarch64pgdg16.9 KiBpostgresql-18-preprepare_0.9-10.pgdg12+2_arm64.deb
postgresql-18-preprepare0.9d12.aarch64pgdg16.8 KiBpostgresql-18-preprepare_0.9-10.pgdg12+1_arm64.deb
postgresql-18-preprepare0.10d13.x86_64pgdg16.5 KiBpostgresql-18-preprepare_0.10-1.pgdg13+1_amd64.deb
postgresql-18-preprepare0.9d13.x86_64pgdg16.8 KiBpostgresql-18-preprepare_0.9-10.pgdg13+2_amd64.deb
postgresql-18-preprepare0.9d13.x86_64pgdg16.8 KiBpostgresql-18-preprepare_0.9-10.pgdg13+1_amd64.deb
postgresql-18-preprepare0.10d13.aarch64pgdg16.6 KiBpostgresql-18-preprepare_0.10-1.pgdg13+1_arm64.deb
postgresql-18-preprepare0.9d13.aarch64pgdg16.9 KiBpostgresql-18-preprepare_0.9-10.pgdg13+2_arm64.deb
postgresql-18-preprepare0.9d13.aarch64pgdg16.9 KiBpostgresql-18-preprepare_0.9-10.pgdg13+1_arm64.deb
postgresql-18-preprepare0.10u22.x86_64pgdg17.0 KiBpostgresql-18-preprepare_0.10-1.pgdg22.04+1_amd64.deb
postgresql-18-preprepare0.9u22.x86_64pgdg17.4 KiBpostgresql-18-preprepare_0.9-10.pgdg22.04+2_amd64.deb
postgresql-18-preprepare0.9u22.x86_64pgdg17.3 KiBpostgresql-18-preprepare_0.9-10.pgdg22.04+1_amd64.deb
postgresql-18-preprepare0.10u22.aarch64pgdg17.0 KiBpostgresql-18-preprepare_0.10-1.pgdg22.04+1_arm64.deb
postgresql-18-preprepare0.9u22.aarch64pgdg17.4 KiBpostgresql-18-preprepare_0.9-10.pgdg22.04+2_arm64.deb
postgresql-18-preprepare0.9u22.aarch64pgdg17.3 KiBpostgresql-18-preprepare_0.9-10.pgdg22.04+1_arm64.deb
postgresql-18-preprepare0.10u24.x86_64pgdg16.0 KiBpostgresql-18-preprepare_0.10-1.pgdg24.04+1_amd64.deb
postgresql-18-preprepare0.9u24.x86_64pgdg16.5 KiBpostgresql-18-preprepare_0.9-10.pgdg24.04+2_amd64.deb
postgresql-18-preprepare0.9u24.x86_64pgdg16.4 KiBpostgresql-18-preprepare_0.9-10.pgdg24.04+1_amd64.deb
postgresql-18-preprepare0.10u24.aarch64pgdg16.0 KiBpostgresql-18-preprepare_0.10-1.pgdg24.04+1_arm64.deb
postgresql-18-preprepare0.9u24.aarch64pgdg16.4 KiBpostgresql-18-preprepare_0.9-10.pgdg24.04+2_arm64.deb
postgresql-18-preprepare0.9u24.aarch64pgdg16.4 KiBpostgresql-18-preprepare_0.9-10.pgdg24.04+1_arm64.deb
postgresql-18-preprepare0.10u26.x86_64pgdg16.0 KiBpostgresql-18-preprepare_0.10-1.pgdg26.04+1_amd64.deb
postgresql-18-preprepare0.9u26.x86_64pgdg16.4 KiBpostgresql-18-preprepare_0.9-10.pgdg26.04+2_amd64.deb
postgresql-18-preprepare0.9u26.x86_64pgdg16.5 KiBpostgresql-18-preprepare_0.9-10.pgdg26.04+1_amd64.deb
postgresql-18-preprepare0.10u26.aarch64pgdg16.0 KiBpostgresql-18-preprepare_0.10-1.pgdg26.04+1_arm64.deb
postgresql-18-preprepare0.9u26.aarch64pgdg16.4 KiBpostgresql-18-preprepare_0.9-10.pgdg26.04+2_arm64.deb
postgresql-18-preprepare0.9u26.aarch64pgdg16.5 KiBpostgresql-18-preprepare_0.9-10.pgdg26.04+1_arm64.deb
软件包版本平台仓库大小下载
preprepare_170.9el8.x86_64pigsty21.8 KiBpreprepare_17-0.9-3PGSTY.el8.x86_64.rpm
preprepare_170.9el8.aarch64pigsty22.1 KiBpreprepare_17-0.9-3PGSTY.el8.aarch64.rpm
preprepare_170.10el9.x86_64pigsty22.1 KiBpreprepare_17-0.10-1PGSTY.el9.x86_64.rpm
preprepare_170.10el9.aarch64pigsty22.1 KiBpreprepare_17-0.10-1PGSTY.el9.aarch64.rpm
preprepare_170.10el10.x86_64pigsty22.2 KiBpreprepare_17-0.10-1PGSTY.el10.x86_64.rpm
preprepare_170.10el10.aarch64pigsty22.3 KiBpreprepare_17-0.10-1PGSTY.el10.aarch64.rpm
postgresql-17-preprepare0.10d12.x86_64pgdg16.5 KiBpostgresql-17-preprepare_0.10-1.pgdg12+1_amd64.deb
postgresql-17-preprepare0.9d12.x86_64pgdg16.9 KiBpostgresql-17-preprepare_0.9-10.pgdg12+2_amd64.deb
postgresql-17-preprepare0.9d12.x86_64pgdg16.8 KiBpostgresql-17-preprepare_0.9-10.pgdg12+1_amd64.deb
postgresql-17-preprepare0.10d12.aarch64pgdg16.5 KiBpostgresql-17-preprepare_0.10-1.pgdg12+1_arm64.deb
postgresql-17-preprepare0.9d12.aarch64pgdg16.9 KiBpostgresql-17-preprepare_0.9-10.pgdg12+2_arm64.deb
postgresql-17-preprepare0.9d12.aarch64pgdg16.8 KiBpostgresql-17-preprepare_0.9-10.pgdg12+1_arm64.deb
postgresql-17-preprepare0.10d13.x86_64pgdg16.5 KiBpostgresql-17-preprepare_0.10-1.pgdg13+1_amd64.deb
postgresql-17-preprepare0.9d13.x86_64pgdg16.8 KiBpostgresql-17-preprepare_0.9-10.pgdg13+2_amd64.deb
postgresql-17-preprepare0.9d13.x86_64pgdg16.8 KiBpostgresql-17-preprepare_0.9-10.pgdg13+1_amd64.deb
postgresql-17-preprepare0.10d13.aarch64pgdg16.6 KiBpostgresql-17-preprepare_0.10-1.pgdg13+1_arm64.deb
postgresql-17-preprepare0.9d13.aarch64pgdg16.9 KiBpostgresql-17-preprepare_0.9-10.pgdg13+2_arm64.deb
postgresql-17-preprepare0.9d13.aarch64pgdg16.9 KiBpostgresql-17-preprepare_0.9-10.pgdg13+1_arm64.deb
postgresql-17-preprepare0.10u22.x86_64pgdg17.8 KiBpostgresql-17-preprepare_0.10-1.pgdg22.04+1_amd64.deb
postgresql-17-preprepare0.9u22.x86_64pgdg18.2 KiBpostgresql-17-preprepare_0.9-10.pgdg22.04+2_amd64.deb
postgresql-17-preprepare0.9u22.x86_64pgdg18.2 KiBpostgresql-17-preprepare_0.9-10.pgdg22.04+1_amd64.deb
postgresql-17-preprepare0.10u22.aarch64pgdg17.8 KiBpostgresql-17-preprepare_0.10-1.pgdg22.04+1_arm64.deb
postgresql-17-preprepare0.9u22.aarch64pgdg18.2 KiBpostgresql-17-preprepare_0.9-10.pgdg22.04+2_arm64.deb
postgresql-17-preprepare0.9u22.aarch64pgdg18.1 KiBpostgresql-17-preprepare_0.9-10.pgdg22.04+1_arm64.deb
postgresql-17-preprepare0.10u24.x86_64pgdg16.1 KiBpostgresql-17-preprepare_0.10-1.pgdg24.04+1_amd64.deb
postgresql-17-preprepare0.9u24.x86_64pgdg16.5 KiBpostgresql-17-preprepare_0.9-10.pgdg24.04+2_amd64.deb
postgresql-17-preprepare0.9u24.x86_64pgdg16.4 KiBpostgresql-17-preprepare_0.9-10.pgdg24.04+1_amd64.deb
postgresql-17-preprepare0.10u24.aarch64pgdg16.0 KiBpostgresql-17-preprepare_0.10-1.pgdg24.04+1_arm64.deb
postgresql-17-preprepare0.9u24.aarch64pgdg16.4 KiBpostgresql-17-preprepare_0.9-10.pgdg24.04+2_arm64.deb
postgresql-17-preprepare0.9u24.aarch64pgdg16.3 KiBpostgresql-17-preprepare_0.9-10.pgdg24.04+1_arm64.deb
postgresql-17-preprepare0.10u26.x86_64pgdg15.9 KiBpostgresql-17-preprepare_0.10-1.pgdg26.04+1_amd64.deb
postgresql-17-preprepare0.9u26.x86_64pgdg16.3 KiBpostgresql-17-preprepare_0.9-10.pgdg26.04+2_amd64.deb
postgresql-17-preprepare0.9u26.x86_64pgdg16.5 KiBpostgresql-17-preprepare_0.9-10.pgdg26.04+1_amd64.deb
postgresql-17-preprepare0.10u26.aarch64pgdg16.0 KiBpostgresql-17-preprepare_0.10-1.pgdg26.04+1_arm64.deb
postgresql-17-preprepare0.9u26.aarch64pgdg16.4 KiBpostgresql-17-preprepare_0.9-10.pgdg26.04+2_arm64.deb
postgresql-17-preprepare0.9u26.aarch64pgdg16.5 KiBpostgresql-17-preprepare_0.9-10.pgdg26.04+1_arm64.deb
软件包版本平台仓库大小下载
preprepare_160.9el8.x86_64pigsty21.8 KiBpreprepare_16-0.9-3PGSTY.el8.x86_64.rpm
preprepare_160.9el8.aarch64pigsty22.1 KiBpreprepare_16-0.9-3PGSTY.el8.aarch64.rpm
preprepare_160.10el9.x86_64pigsty22.1 KiBpreprepare_16-0.10-1PGSTY.el9.x86_64.rpm
preprepare_160.10el9.aarch64pigsty22.1 KiBpreprepare_16-0.10-1PGSTY.el9.aarch64.rpm
preprepare_160.10el10.x86_64pigsty22.2 KiBpreprepare_16-0.10-1PGSTY.el10.x86_64.rpm
preprepare_160.10el10.aarch64pigsty22.3 KiBpreprepare_16-0.10-1PGSTY.el10.aarch64.rpm
postgresql-16-preprepare0.10d12.x86_64pgdg16.6 KiBpostgresql-16-preprepare_0.10-1.pgdg12+1_amd64.deb
postgresql-16-preprepare0.9d12.x86_64pgdg16.9 KiBpostgresql-16-preprepare_0.9-10.pgdg12+2_amd64.deb
postgresql-16-preprepare0.9d12.x86_64pgdg16.8 KiBpostgresql-16-preprepare_0.9-10.pgdg12+1_amd64.deb
postgresql-16-preprepare0.10d12.aarch64pgdg16.6 KiBpostgresql-16-preprepare_0.10-1.pgdg12+1_arm64.deb
postgresql-16-preprepare0.9d12.aarch64pgdg16.8 KiBpostgresql-16-preprepare_0.9-10.pgdg12+2_arm64.deb
postgresql-16-preprepare0.9d12.aarch64pgdg16.8 KiBpostgresql-16-preprepare_0.9-10.pgdg12+1_arm64.deb
postgresql-16-preprepare0.10d13.x86_64pgdg16.5 KiBpostgresql-16-preprepare_0.10-1.pgdg13+1_amd64.deb
postgresql-16-preprepare0.9d13.x86_64pgdg16.9 KiBpostgresql-16-preprepare_0.9-10.pgdg13+2_amd64.deb
postgresql-16-preprepare0.9d13.x86_64pgdg16.8 KiBpostgresql-16-preprepare_0.9-10.pgdg13+1_amd64.deb
postgresql-16-preprepare0.10d13.aarch64pgdg16.6 KiBpostgresql-16-preprepare_0.10-1.pgdg13+1_arm64.deb
postgresql-16-preprepare0.9d13.aarch64pgdg16.9 KiBpostgresql-16-preprepare_0.9-10.pgdg13+2_arm64.deb
postgresql-16-preprepare0.9d13.aarch64pgdg16.8 KiBpostgresql-16-preprepare_0.9-10.pgdg13+1_arm64.deb
postgresql-16-preprepare0.10u22.x86_64pgdg17.8 KiBpostgresql-16-preprepare_0.10-1.pgdg22.04+1_amd64.deb
postgresql-16-preprepare0.9u22.x86_64pgdg18.2 KiBpostgresql-16-preprepare_0.9-10.pgdg22.04+2_amd64.deb
postgresql-16-preprepare0.9u22.x86_64pgdg18.2 KiBpostgresql-16-preprepare_0.9-10.pgdg22.04+1_amd64.deb
postgresql-16-preprepare0.10u22.aarch64pgdg17.8 KiBpostgresql-16-preprepare_0.10-1.pgdg22.04+1_arm64.deb
postgresql-16-preprepare0.9u22.aarch64pgdg18.2 KiBpostgresql-16-preprepare_0.9-10.pgdg22.04+2_arm64.deb
postgresql-16-preprepare0.9u22.aarch64pgdg18.2 KiBpostgresql-16-preprepare_0.9-10.pgdg22.04+1_arm64.deb
postgresql-16-preprepare0.10u24.x86_64pgdg16.1 KiBpostgresql-16-preprepare_0.10-1.pgdg24.04+1_amd64.deb
postgresql-16-preprepare0.9u24.x86_64pgdg16.4 KiBpostgresql-16-preprepare_0.9-10.pgdg24.04+2_amd64.deb
postgresql-16-preprepare0.9u24.x86_64pgdg16.4 KiBpostgresql-16-preprepare_0.9-10.pgdg24.04+1_amd64.deb
postgresql-16-preprepare0.10u24.aarch64pgdg16.0 KiBpostgresql-16-preprepare_0.10-1.pgdg24.04+1_arm64.deb
postgresql-16-preprepare0.9u24.aarch64pgdg16.4 KiBpostgresql-16-preprepare_0.9-10.pgdg24.04+2_arm64.deb
postgresql-16-preprepare0.9u24.aarch64pgdg16.4 KiBpostgresql-16-preprepare_0.9-10.pgdg24.04+1_arm64.deb
postgresql-16-preprepare0.10u26.x86_64pgdg15.9 KiBpostgresql-16-preprepare_0.10-1.pgdg26.04+1_amd64.deb
postgresql-16-preprepare0.9u26.x86_64pgdg16.3 KiBpostgresql-16-preprepare_0.9-10.pgdg26.04+2_amd64.deb
postgresql-16-preprepare0.9u26.x86_64pgdg16.5 KiBpostgresql-16-preprepare_0.9-10.pgdg26.04+1_amd64.deb
postgresql-16-preprepare0.10u26.aarch64pgdg16.0 KiBpostgresql-16-preprepare_0.10-1.pgdg26.04+1_arm64.deb
postgresql-16-preprepare0.9u26.aarch64pgdg16.4 KiBpostgresql-16-preprepare_0.9-10.pgdg26.04+2_arm64.deb
postgresql-16-preprepare0.9u26.aarch64pgdg16.5 KiBpostgresql-16-preprepare_0.9-10.pgdg26.04+1_arm64.deb
软件包版本平台仓库大小下载
preprepare_150.9el8.x86_64pigsty21.8 KiBpreprepare_15-0.9-3PGSTY.el8.x86_64.rpm
preprepare_150.9el8.aarch64pigsty22.1 KiBpreprepare_15-0.9-3PGSTY.el8.aarch64.rpm
preprepare_150.10el9.x86_64pigsty22.1 KiBpreprepare_15-0.10-1PGSTY.el9.x86_64.rpm
preprepare_150.10el9.aarch64pigsty22.0 KiBpreprepare_15-0.10-1PGSTY.el9.aarch64.rpm
preprepare_150.10el10.x86_64pigsty22.2 KiBpreprepare_15-0.10-1PGSTY.el10.x86_64.rpm
preprepare_150.10el10.aarch64pigsty22.3 KiBpreprepare_15-0.10-1PGSTY.el10.aarch64.rpm
postgresql-15-preprepare0.10d12.x86_64pgdg16.6 KiBpostgresql-15-preprepare_0.10-1.pgdg12+1_amd64.deb
postgresql-15-preprepare0.9d12.x86_64pgdg16.8 KiBpostgresql-15-preprepare_0.9-10.pgdg12+2_amd64.deb
postgresql-15-preprepare0.9d12.x86_64pgdg16.8 KiBpostgresql-15-preprepare_0.9-10.pgdg12+1_amd64.deb
postgresql-15-preprepare0.10d12.aarch64pgdg16.6 KiBpostgresql-15-preprepare_0.10-1.pgdg12+1_arm64.deb
postgresql-15-preprepare0.9d12.aarch64pgdg16.9 KiBpostgresql-15-preprepare_0.9-10.pgdg12+2_arm64.deb
postgresql-15-preprepare0.9d12.aarch64pgdg16.8 KiBpostgresql-15-preprepare_0.9-10.pgdg12+1_arm64.deb
postgresql-15-preprepare0.10d13.x86_64pgdg16.6 KiBpostgresql-15-preprepare_0.10-1.pgdg13+1_amd64.deb
postgresql-15-preprepare0.9d13.x86_64pgdg16.8 KiBpostgresql-15-preprepare_0.9-10.pgdg13+2_amd64.deb
postgresql-15-preprepare0.9d13.x86_64pgdg16.8 KiBpostgresql-15-preprepare_0.9-10.pgdg13+1_amd64.deb
postgresql-15-preprepare0.10d13.aarch64pgdg16.7 KiBpostgresql-15-preprepare_0.10-1.pgdg13+1_arm64.deb
postgresql-15-preprepare0.9d13.aarch64pgdg16.9 KiBpostgresql-15-preprepare_0.9-10.pgdg13+2_arm64.deb
postgresql-15-preprepare0.9d13.aarch64pgdg16.9 KiBpostgresql-15-preprepare_0.9-10.pgdg13+1_arm64.deb
postgresql-15-preprepare0.10u22.x86_64pgdg17.8 KiBpostgresql-15-preprepare_0.10-1.pgdg22.04+1_amd64.deb
postgresql-15-preprepare0.9u22.x86_64pgdg18.2 KiBpostgresql-15-preprepare_0.9-10.pgdg22.04+2_amd64.deb
postgresql-15-preprepare0.9u22.x86_64pgdg18.1 KiBpostgresql-15-preprepare_0.9-10.pgdg22.04+1_amd64.deb
postgresql-15-preprepare0.10u22.aarch64pgdg17.9 KiBpostgresql-15-preprepare_0.10-1.pgdg22.04+1_arm64.deb
postgresql-15-preprepare0.9u22.aarch64pgdg18.2 KiBpostgresql-15-preprepare_0.9-10.pgdg22.04+2_arm64.deb
postgresql-15-preprepare0.9u22.aarch64pgdg18.1 KiBpostgresql-15-preprepare_0.9-10.pgdg22.04+1_arm64.deb
postgresql-15-preprepare0.10u24.x86_64pgdg16.1 KiBpostgresql-15-preprepare_0.10-1.pgdg24.04+1_amd64.deb
postgresql-15-preprepare0.9u24.x86_64pgdg16.4 KiBpostgresql-15-preprepare_0.9-10.pgdg24.04+2_amd64.deb
postgresql-15-preprepare0.9u24.x86_64pgdg16.4 KiBpostgresql-15-preprepare_0.9-10.pgdg24.04+1_amd64.deb
postgresql-15-preprepare0.10u24.aarch64pgdg16.0 KiBpostgresql-15-preprepare_0.10-1.pgdg24.04+1_arm64.deb
postgresql-15-preprepare0.9u24.aarch64pgdg16.4 KiBpostgresql-15-preprepare_0.9-10.pgdg24.04+2_arm64.deb
postgresql-15-preprepare0.9u24.aarch64pgdg16.4 KiBpostgresql-15-preprepare_0.9-10.pgdg24.04+1_arm64.deb
postgresql-15-preprepare0.10u26.x86_64pgdg15.9 KiBpostgresql-15-preprepare_0.10-1.pgdg26.04+1_amd64.deb
postgresql-15-preprepare0.9u26.x86_64pgdg16.3 KiBpostgresql-15-preprepare_0.9-10.pgdg26.04+2_amd64.deb
postgresql-15-preprepare0.9u26.x86_64pgdg16.5 KiBpostgresql-15-preprepare_0.9-10.pgdg26.04+1_amd64.deb
postgresql-15-preprepare0.10u26.aarch64pgdg16.0 KiBpostgresql-15-preprepare_0.10-1.pgdg26.04+1_arm64.deb
postgresql-15-preprepare0.9u26.aarch64pgdg16.4 KiBpostgresql-15-preprepare_0.9-10.pgdg26.04+2_arm64.deb
postgresql-15-preprepare0.9u26.aarch64pgdg16.5 KiBpostgresql-15-preprepare_0.9-10.pgdg26.04+1_arm64.deb

源码

pig build pkg preprepare;		# build rpm

安装

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

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

使用 pig 安装扩展。

pig install preprepare;		# install by package name
pig install pre_prepare;		# install by extension name

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

在数据库中创建扩展。

CREATE EXTENSION pre_prepare;

用法

来源:

pre_prepare 在服务端预先准备 SQL 语句,让客户端通过 EXECUTE 重用。上游发行版 0.10 保留 SQL 扩展版本 0.4,并移除了 PostgreSQL 9.2 之前版本的支持。预备语句属于各自的后端会话。

配置

由超级用户创建扩展。显式调用函数无需预加载或重启。创建语句表,并授予需要使用它的调用者读取权限;表中保存完整的 PREPARE 语句。

CREATE EXTENSION pre_prepare;
CREATE SCHEMA preprepare;
CREATE TABLE preprepare.statements (name text PRIMARY KEY, statement text);
INSERT INTO preprepare.statements VALUES ('test', 'prepare test as select 1');
SET preprepare.relation = 'preprepare.statements';
SELECT prepare_all();
EXECUTE test;

函数

prepare_all() – 从配置的关系中准备所有语句:

SELECT prepare_all();

prepare_all('schema.table') – 从指定表准备语句:

SELECT prepare_all('public.expensive_planning');

discard() – 类似 DISCARD ALL 但不执行 DEALLOCATE ALL(保留已准备的语句):

SELECT discard();

配合 PgBouncer 使用

设置 connect_query 在每次服务器连接时自动准备:

[databases]
foo = port=5432 connect_query='SELECT prepare_all();'

避免使用 DISCARD ALL 作为 reset_query(它会释放已准备的语句)。

可选的连接初始化

若要在后端连接时准备语句,在 local_preload_libraries 中加入 pre_prepare,设置 preprepare.relation,并开启 preprepare.at_init。保留原有库列表,重新加载配置后对新会话生效。显式调用 prepare_all 不需要这条初始化路径。

初始化时若存储的语句有误,连接可能以 FATAL 错误失败。关闭 preprepare.at_init 并重新加载配置后再重试。只允许可信维护者修改语句表:模块会直接读取其中的 SQL,并以连接角色的权限准备语句。discard 会保留预备语句,但仍重置其他会话状态;将其用作连接池重置命令前应验证实际行为。

表格阅读器