跳转到主要内容

pg_store_plans

跟踪所有执行的 SQL 语句的计划统计信息

pg_store_plans · 跟踪所有执行的 SQL 语句的计划统计信息

概览

ID扩展软件包版本类别许可证编程语言
6260pg_store_planspg_store_plans1.10STATBSD-3-ClauseC
属性可执行文件动态库需要预加载需要建扩展可迁移可信
--sLd-r否是是是是否

软件包

类型仓库版本兼容的 PostgreSQL 大版本包名模式依赖
EXTMIXED1.1019 18 17 16 15pg_store_plans-
RPMPIGSTY1.1019 18 17 16 15pg_store_plans_$v-
DEBPIGSTY1.1019 18 17 16 15postgresql-$v-pg-store-plan-
Linux / PGPG19PG18PG17PG16PG15
el8.x86_64N/APGDG 1.10PGDG 1.10PGDG 1.10PGDG 1.10
el8.aarch64N/APGDG 1.10PGDG 1.10PGDG 1.10PGDG 1.10
el9.x86_64N/APGDG 1.10PGDG 1.10PGDG 1.10PGDG 1.10
el9.aarch64N/APGDG 1.10PGDG 1.10PGDG 1.10PGDG 1.10
el10.x86_64N/APGDG 1.10PGDG 1.10PGDG 1.10PGDG 1.10
el10.aarch64N/APGDG 1.10PGDG 1.10PGDG 1.10PGDG 1.10
d12.x86_64N/APIGSTY 1.10PIGSTY 1.10PIGSTY 1.10PIGSTY 1.10
d12.aarch64N/APIGSTY 1.10PIGSTY 1.10PIGSTY 1.10PIGSTY 1.10
d13.x86_64N/APIGSTY 1.10PIGSTY 1.10PIGSTY 1.10PIGSTY 1.10
d13.aarch64N/APIGSTY 1.10PIGSTY 1.10PIGSTY 1.10PIGSTY 1.10
u22.x86_64N/APIGSTY 1.10PIGSTY 1.10PIGSTY 1.10PIGSTY 1.10
u22.aarch64N/APIGSTY 1.10PIGSTY 1.10PIGSTY 1.10PIGSTY 1.10
u24.x86_64N/APIGSTY 1.10PIGSTY 1.10PIGSTY 1.10PIGSTY 1.10
u24.aarch64N/APIGSTY 1.10PIGSTY 1.10PIGSTY 1.10PIGSTY 1.10
u26.x86_64N/APIGSTY 1.10PIGSTY 1.10PIGSTY 1.10PIGSTY 1.10
u26.aarch64N/APIGSTY 1.10PIGSTY 1.10PIGSTY 1.10PIGSTY 1.10
软件包版本平台仓库大小下载
pg_store_plans_181.10el8.x86_64pgdg46.8 KiBpg_store_plans_18-1.10-5PGDG.rhel8.10.x86_64.rpm
pg_store_plans_181.10el8.x86_64pigsty119.9 KiBpg_store_plans_18-1.10-1PGSTY.el8.x86_64.rpm
pg_store_plans_181.10el8.x86_64pgdg45.9 KiBpg_store_plans_18-1.10-1PGDG.rhel8.10.x86_64.rpm
pg_store_plans_181.10el8.aarch64pgdg45.5 KiBpg_store_plans_18-1.10-5PGDG.rhel8.10.aarch64.rpm
pg_store_plans_181.10el8.aarch64pigsty117.4 KiBpg_store_plans_18-1.10-1PGSTY.el8.aarch64.rpm
pg_store_plans_181.10el8.aarch64pgdg44.6 KiBpg_store_plans_18-1.10-1PGDG.rhel8.10.aarch64.rpm
pg_store_plans_181.10el9.x86_64pgdg47.1 KiBpg_store_plans_18-1.10-5PGDG.rhel9.9.x86_64.rpm
pg_store_plans_181.10el9.x86_64pgdg47.1 KiBpg_store_plans_18-1.10-5PGDG.rhel9.8.x86_64.rpm
pg_store_plans_181.10el9.x86_64pgdg47.1 KiBpg_store_plans_18-1.10-5PGDG.rhel9.7.x86_64.rpm
pg_store_plans_181.10el9.x86_64pigsty122.9 KiBpg_store_plans_18-1.10-1PGSTY.el9.x86_64.rpm
pg_store_plans_181.10el9.x86_64pgdg46.1 KiBpg_store_plans_18-1.10-1PGDG.rhel9.8.x86_64.rpm
pg_store_plans_181.10el9.x86_64pgdg46.1 KiBpg_store_plans_18-1.10-1PGDG.rhel9.7.x86_64.rpm
pg_store_plans_181.10el9.x86_64pgdg46.2 KiBpg_store_plans_18-1.10-1PGDG.rhel9.6.x86_64.rpm
pg_store_plans_181.10el9.aarch64pgdg46.1 KiBpg_store_plans_18-1.10-5PGDG.rhel9.9.aarch64.rpm
pg_store_plans_181.10el9.aarch64pgdg46.1 KiBpg_store_plans_18-1.10-5PGDG.rhel9.8.aarch64.rpm
pg_store_plans_181.10el9.aarch64pgdg46.1 KiBpg_store_plans_18-1.10-5PGDG.rhel9.7.aarch64.rpm
pg_store_plans_181.10el9.aarch64pigsty121.5 KiBpg_store_plans_18-1.10-1PGSTY.el9.aarch64.rpm
pg_store_plans_181.10el9.aarch64pgdg45.1 KiBpg_store_plans_18-1.10-1PGDG.rhel9.8.aarch64.rpm
pg_store_plans_181.10el9.aarch64pgdg45.1 KiBpg_store_plans_18-1.10-1PGDG.rhel9.7.aarch64.rpm
pg_store_plans_181.10el9.aarch64pgdg45.2 KiBpg_store_plans_18-1.10-1PGDG.rhel9.6.aarch64.rpm
pg_store_plans_181.10el10.x86_64pgdg47.9 KiBpg_store_plans_18-1.10-5PGDG.rhel10.3.x86_64.rpm
pg_store_plans_181.10el10.x86_64pgdg47.9 KiBpg_store_plans_18-1.10-5PGDG.rhel10.2.x86_64.rpm
pg_store_plans_181.10el10.x86_64pgdg47.9 KiBpg_store_plans_18-1.10-5PGDG.rhel10.1.x86_64.rpm
pg_store_plans_181.10el10.x86_64pigsty124.2 KiBpg_store_plans_18-1.10-1PGSTY.el10.x86_64.rpm
pg_store_plans_181.10el10.x86_64pgdg46.9 KiBpg_store_plans_18-1.10-1PGDG.rhel10.2.x86_64.rpm
pg_store_plans_181.10el10.x86_64pgdg46.9 KiBpg_store_plans_18-1.10-1PGDG.rhel10.1.x86_64.rpm
pg_store_plans_181.10el10.x86_64pgdg47.2 KiBpg_store_plans_18-1.10-1PGDG.rhel10.0.x86_64.rpm
pg_store_plans_181.10el10.aarch64pgdg46.7 KiBpg_store_plans_18-1.10-5PGDG.rhel10.3.aarch64.rpm
pg_store_plans_181.10el10.aarch64pgdg46.8 KiBpg_store_plans_18-1.10-5PGDG.rhel10.2.aarch64.rpm
pg_store_plans_181.10el10.aarch64pgdg46.8 KiBpg_store_plans_18-1.10-5PGDG.rhel10.1.aarch64.rpm
pg_store_plans_181.10el10.aarch64pigsty122.3 KiBpg_store_plans_18-1.10-1PGSTY.el10.aarch64.rpm
pg_store_plans_181.10el10.aarch64pgdg45.8 KiBpg_store_plans_18-1.10-1PGDG.rhel10.2.aarch64.rpm
pg_store_plans_181.10el10.aarch64pgdg45.8 KiBpg_store_plans_18-1.10-1PGDG.rhel10.1.aarch64.rpm
pg_store_plans_181.10el10.aarch64pgdg45.8 KiBpg_store_plans_18-1.10-1PGDG.rhel10.0.aarch64.rpm
postgresql-18-pg-store-plan1.10d12.x86_64pigsty108.2 KiBpostgresql-18-pg-store-plan_1.10-1PGSTY~bookworm_amd64.deb
postgresql-18-pg-store-plan1.10d12.aarch64pigsty105.4 KiBpostgresql-18-pg-store-plan_1.10-1PGSTY~bookworm_arm64.deb
postgresql-18-pg-store-plan1.10d13.x86_64pigsty108.9 KiBpostgresql-18-pg-store-plan_1.10-1PGSTY~trixie_amd64.deb
postgresql-18-pg-store-plan1.10d13.aarch64pigsty105.6 KiBpostgresql-18-pg-store-plan_1.10-1PGSTY~trixie_arm64.deb
postgresql-18-pg-store-plan1.10u22.x86_64pigsty118.1 KiBpostgresql-18-pg-store-plan_1.10-1PGSTY~jammy_amd64.deb
postgresql-18-pg-store-plan1.10u22.aarch64pigsty116.6 KiBpostgresql-18-pg-store-plan_1.10-1PGSTY~jammy_arm64.deb
postgresql-18-pg-store-plan1.10u24.x86_64pigsty113.9 KiBpostgresql-18-pg-store-plan_1.10-1PGSTY~noble_amd64.deb
postgresql-18-pg-store-plan1.10u24.aarch64pigsty112.6 KiBpostgresql-18-pg-store-plan_1.10-1PGSTY~noble_arm64.deb
postgresql-18-pg-store-plan1.10u26.x86_64pigsty115.3 KiBpostgresql-18-pg-store-plan_1.10-1PGSTY~resolute_amd64.deb
postgresql-18-pg-store-plan1.10u26.aarch64pigsty113.3 KiBpostgresql-18-pg-store-plan_1.10-1PGSTY~resolute_arm64.deb
软件包版本平台仓库大小下载
pg_store_plans_171.10el8.x86_64pgdg46.8 KiBpg_store_plans_17-1.10-5PGDG.rhel8.10.x86_64.rpm
pg_store_plans_171.10el8.x86_64pigsty119.9 KiBpg_store_plans_17-1.10-1PGSTY.el8.x86_64.rpm
pg_store_plans_171.10el8.x86_64pgdg45.9 KiBpg_store_plans_17-1.10-1PGDG.rhel8.10.x86_64.rpm
pg_store_plans_171.10el8.aarch64pgdg45.5 KiBpg_store_plans_17-1.10-5PGDG.rhel8.10.aarch64.rpm
pg_store_plans_171.10el8.aarch64pigsty117.4 KiBpg_store_plans_17-1.10-1PGSTY.el8.aarch64.rpm
pg_store_plans_171.10el8.aarch64pgdg44.6 KiBpg_store_plans_17-1.10-1PGDG.rhel8.10.aarch64.rpm
pg_store_plans_171.10el9.x86_64pgdg47.1 KiBpg_store_plans_17-1.10-5PGDG.rhel9.9.x86_64.rpm
pg_store_plans_171.10el9.x86_64pgdg47.1 KiBpg_store_plans_17-1.10-5PGDG.rhel9.8.x86_64.rpm
pg_store_plans_171.10el9.x86_64pgdg47.2 KiBpg_store_plans_17-1.10-5PGDG.rhel9.7.x86_64.rpm
pg_store_plans_171.10el9.x86_64pigsty122.9 KiBpg_store_plans_17-1.10-1PGSTY.el9.x86_64.rpm
pg_store_plans_171.10el9.x86_64pgdg46.1 KiBpg_store_plans_17-1.10-1PGDG.rhel9.8.x86_64.rpm
pg_store_plans_171.10el9.x86_64pgdg46.1 KiBpg_store_plans_17-1.10-1PGDG.rhel9.7.x86_64.rpm
pg_store_plans_171.10el9.x86_64pgdg46.3 KiBpg_store_plans_17-1.10-1PGDG.rhel9.6.x86_64.rpm
pg_store_plans_171.10el9.aarch64pgdg46.1 KiBpg_store_plans_17-1.10-5PGDG.rhel9.9.aarch64.rpm
pg_store_plans_171.10el9.aarch64pgdg46.1 KiBpg_store_plans_17-1.10-5PGDG.rhel9.8.aarch64.rpm
pg_store_plans_171.10el9.aarch64pgdg46.1 KiBpg_store_plans_17-1.10-5PGDG.rhel9.7.aarch64.rpm
pg_store_plans_171.10el9.aarch64pigsty121.5 KiBpg_store_plans_17-1.10-1PGSTY.el9.aarch64.rpm
pg_store_plans_171.10el9.aarch64pgdg45.1 KiBpg_store_plans_17-1.10-1PGDG.rhel9.8.aarch64.rpm
pg_store_plans_171.10el9.aarch64pgdg45.1 KiBpg_store_plans_17-1.10-1PGDG.rhel9.7.aarch64.rpm
pg_store_plans_171.10el9.aarch64pgdg45.2 KiBpg_store_plans_17-1.10-1PGDG.rhel9.6.aarch64.rpm
pg_store_plans_171.10el10.x86_64pgdg48.0 KiBpg_store_plans_17-1.10-5PGDG.rhel10.3.x86_64.rpm
pg_store_plans_171.10el10.x86_64pgdg48.0 KiBpg_store_plans_17-1.10-5PGDG.rhel10.2.x86_64.rpm
pg_store_plans_171.10el10.x86_64pgdg48.0 KiBpg_store_plans_17-1.10-5PGDG.rhel10.1.x86_64.rpm
pg_store_plans_171.10el10.x86_64pigsty124.2 KiBpg_store_plans_17-1.10-1PGSTY.el10.x86_64.rpm
pg_store_plans_171.10el10.x86_64pgdg46.9 KiBpg_store_plans_17-1.10-1PGDG.rhel10.2.x86_64.rpm
pg_store_plans_171.10el10.x86_64pgdg47.0 KiBpg_store_plans_17-1.10-1PGDG.rhel10.1.x86_64.rpm
pg_store_plans_171.10el10.x86_64pgdg47.3 KiBpg_store_plans_17-1.10-1PGDG.rhel10.0.x86_64.rpm
pg_store_plans_171.10el10.aarch64pgdg46.9 KiBpg_store_plans_17-1.10-5PGDG.rhel10.3.aarch64.rpm
pg_store_plans_171.10el10.aarch64pgdg46.9 KiBpg_store_plans_17-1.10-5PGDG.rhel10.2.aarch64.rpm
pg_store_plans_171.10el10.aarch64pgdg46.9 KiBpg_store_plans_17-1.10-5PGDG.rhel10.1.aarch64.rpm
pg_store_plans_171.10el10.aarch64pigsty122.5 KiBpg_store_plans_17-1.10-1PGSTY.el10.aarch64.rpm
pg_store_plans_171.10el10.aarch64pgdg45.9 KiBpg_store_plans_17-1.10-1PGDG.rhel10.2.aarch64.rpm
pg_store_plans_171.10el10.aarch64pgdg45.9 KiBpg_store_plans_17-1.10-1PGDG.rhel10.1.aarch64.rpm
pg_store_plans_171.10el10.aarch64pgdg45.9 KiBpg_store_plans_17-1.10-1PGDG.rhel10.0.aarch64.rpm
postgresql-17-pg-store-plan1.10d12.x86_64pigsty108.1 KiBpostgresql-17-pg-store-plan_1.10-1PGSTY~bookworm_amd64.deb
postgresql-17-pg-store-plan1.10d12.aarch64pigsty105.3 KiBpostgresql-17-pg-store-plan_1.10-1PGSTY~bookworm_arm64.deb
postgresql-17-pg-store-plan1.10d13.x86_64pigsty108.6 KiBpostgresql-17-pg-store-plan_1.10-1PGSTY~trixie_amd64.deb
postgresql-17-pg-store-plan1.10d13.aarch64pigsty105.7 KiBpostgresql-17-pg-store-plan_1.10-1PGSTY~trixie_arm64.deb
postgresql-17-pg-store-plan1.10u22.x86_64pigsty129.6 KiBpostgresql-17-pg-store-plan_1.10-1PGSTY~jammy_amd64.deb
postgresql-17-pg-store-plan1.10u22.aarch64pigsty128.0 KiBpostgresql-17-pg-store-plan_1.10-1PGSTY~jammy_arm64.deb
postgresql-17-pg-store-plan1.10u24.x86_64pigsty114.0 KiBpostgresql-17-pg-store-plan_1.10-1PGSTY~noble_amd64.deb
postgresql-17-pg-store-plan1.10u24.aarch64pigsty112.8 KiBpostgresql-17-pg-store-plan_1.10-1PGSTY~noble_arm64.deb
postgresql-17-pg-store-plan1.10u26.x86_64pigsty115.2 KiBpostgresql-17-pg-store-plan_1.10-1PGSTY~resolute_amd64.deb
postgresql-17-pg-store-plan1.10u26.aarch64pigsty113.3 KiBpostgresql-17-pg-store-plan_1.10-1PGSTY~resolute_arm64.deb
软件包版本平台仓库大小下载
pg_store_plans_161.10el8.x86_64pgdg46.8 KiBpg_store_plans_16-1.10-5PGDG.rhel8.10.x86_64.rpm
pg_store_plans_161.10el8.x86_64pigsty120.0 KiBpg_store_plans_16-1.10-1PGSTY.el8.x86_64.rpm
pg_store_plans_161.10el8.x86_64pgdg46.0 KiBpg_store_plans_16-1.10-1PGDG.rhel8.10.x86_64.rpm
pg_store_plans_161.8el8.x86_64pgdg45.4 KiBpg_store_plans_16-1.8-1PGDG.rhel8.x86_64.rpm
pg_store_plans_161.10el8.aarch64pgdg45.5 KiBpg_store_plans_16-1.10-5PGDG.rhel8.10.aarch64.rpm
pg_store_plans_161.10el8.aarch64pigsty117.5 KiBpg_store_plans_16-1.10-1PGSTY.el8.aarch64.rpm
pg_store_plans_161.10el8.aarch64pgdg44.6 KiBpg_store_plans_16-1.10-1PGDG.rhel8.10.aarch64.rpm
pg_store_plans_161.8el8.aarch64pgdg44.1 KiBpg_store_plans_16-1.8-1PGDG.rhel8.aarch64.rpm
pg_store_plans_161.10el9.x86_64pgdg47.2 KiBpg_store_plans_16-1.10-5PGDG.rhel9.9.x86_64.rpm
pg_store_plans_161.10el9.x86_64pgdg47.0 KiBpg_store_plans_16-1.10-5PGDG.rhel9.8.x86_64.rpm
pg_store_plans_161.10el9.x86_64pgdg47.2 KiBpg_store_plans_16-1.10-5PGDG.rhel9.7.x86_64.rpm
pg_store_plans_161.10el9.x86_64pigsty123.0 KiBpg_store_plans_16-1.10-1PGSTY.el9.x86_64.rpm
pg_store_plans_161.10el9.x86_64pgdg46.1 KiBpg_store_plans_16-1.10-1PGDG.rhel9.8.x86_64.rpm
pg_store_plans_161.10el9.x86_64pgdg46.1 KiBpg_store_plans_16-1.10-1PGDG.rhel9.7.x86_64.rpm
pg_store_plans_161.10el9.x86_64pgdg46.3 KiBpg_store_plans_16-1.10-1PGDG.rhel9.6.x86_64.rpm
pg_store_plans_161.8el9.x86_64pgdg46.1 KiBpg_store_plans_16-1.8-1PGDG.rhel9.x86_64.rpm
pg_store_plans_161.10el9.aarch64pgdg46.1 KiBpg_store_plans_16-1.10-5PGDG.rhel9.9.aarch64.rpm
pg_store_plans_161.10el9.aarch64pgdg46.2 KiBpg_store_plans_16-1.10-5PGDG.rhel9.8.aarch64.rpm
pg_store_plans_161.10el9.aarch64pgdg46.1 KiBpg_store_plans_16-1.10-5PGDG.rhel9.7.aarch64.rpm
pg_store_plans_161.10el9.aarch64pigsty121.5 KiBpg_store_plans_16-1.10-1PGSTY.el9.aarch64.rpm
pg_store_plans_161.10el9.aarch64pgdg45.1 KiBpg_store_plans_16-1.10-1PGDG.rhel9.8.aarch64.rpm
pg_store_plans_161.10el9.aarch64pgdg45.1 KiBpg_store_plans_16-1.10-1PGDG.rhel9.7.aarch64.rpm
pg_store_plans_161.10el9.aarch64pgdg45.2 KiBpg_store_plans_16-1.10-1PGDG.rhel9.6.aarch64.rpm
pg_store_plans_161.8el9.aarch64pgdg45.1 KiBpg_store_plans_16-1.8-1PGDG.rhel9.aarch64.rpm
pg_store_plans_161.10el10.x86_64pgdg47.9 KiBpg_store_plans_16-1.10-5PGDG.rhel10.3.x86_64.rpm
pg_store_plans_161.10el10.x86_64pgdg47.9 KiBpg_store_plans_16-1.10-5PGDG.rhel10.2.x86_64.rpm
pg_store_plans_161.10el10.x86_64pgdg48.0 KiBpg_store_plans_16-1.10-5PGDG.rhel10.1.x86_64.rpm
pg_store_plans_161.10el10.x86_64pigsty124.3 KiBpg_store_plans_16-1.10-1PGSTY.el10.x86_64.rpm
pg_store_plans_161.10el10.x86_64pgdg46.9 KiBpg_store_plans_16-1.10-1PGDG.rhel10.2.x86_64.rpm
pg_store_plans_161.10el10.x86_64pgdg46.9 KiBpg_store_plans_16-1.10-1PGDG.rhel10.1.x86_64.rpm
pg_store_plans_161.10el10.x86_64pgdg47.3 KiBpg_store_plans_16-1.10-1PGDG.rhel10.0.x86_64.rpm
pg_store_plans_161.8el10.x86_64pgdg47.1 KiBpg_store_plans_16-1.8-3PGDG.rhel10.x86_64.rpm
pg_store_plans_161.10el10.aarch64pgdg46.9 KiBpg_store_plans_16-1.10-5PGDG.rhel10.3.aarch64.rpm
pg_store_plans_161.10el10.aarch64pgdg46.9 KiBpg_store_plans_16-1.10-5PGDG.rhel10.2.aarch64.rpm
pg_store_plans_161.10el10.aarch64pgdg46.9 KiBpg_store_plans_16-1.10-5PGDG.rhel10.1.aarch64.rpm
pg_store_plans_161.10el10.aarch64pigsty122.6 KiBpg_store_plans_16-1.10-1PGSTY.el10.aarch64.rpm
pg_store_plans_161.10el10.aarch64pgdg45.9 KiBpg_store_plans_16-1.10-1PGDG.rhel10.2.aarch64.rpm
pg_store_plans_161.10el10.aarch64pgdg45.9 KiBpg_store_plans_16-1.10-1PGDG.rhel10.1.aarch64.rpm
pg_store_plans_161.10el10.aarch64pgdg45.9 KiBpg_store_plans_16-1.10-1PGDG.rhel10.0.aarch64.rpm
pg_store_plans_161.8el10.aarch64pgdg46.0 KiBpg_store_plans_16-1.8-3PGDG.rhel10.aarch64.rpm
postgresql-16-pg-store-plan1.10d12.x86_64pigsty108.5 KiBpostgresql-16-pg-store-plan_1.10-1PGSTY~bookworm_amd64.deb
postgresql-16-pg-store-plan1.10d12.aarch64pigsty105.5 KiBpostgresql-16-pg-store-plan_1.10-1PGSTY~bookworm_arm64.deb
postgresql-16-pg-store-plan1.10d13.x86_64pigsty108.9 KiBpostgresql-16-pg-store-plan_1.10-1PGSTY~trixie_amd64.deb
postgresql-16-pg-store-plan1.10d13.aarch64pigsty105.7 KiBpostgresql-16-pg-store-plan_1.10-1PGSTY~trixie_arm64.deb
postgresql-16-pg-store-plan1.10u22.x86_64pigsty129.3 KiBpostgresql-16-pg-store-plan_1.10-1PGSTY~jammy_amd64.deb
postgresql-16-pg-store-plan1.10u22.aarch64pigsty127.7 KiBpostgresql-16-pg-store-plan_1.10-1PGSTY~jammy_arm64.deb
postgresql-16-pg-store-plan1.10u24.x86_64pigsty114.1 KiBpostgresql-16-pg-store-plan_1.10-1PGSTY~noble_amd64.deb
postgresql-16-pg-store-plan1.10u24.aarch64pigsty113.0 KiBpostgresql-16-pg-store-plan_1.10-1PGSTY~noble_arm64.deb
postgresql-16-pg-store-plan1.10u26.x86_64pigsty115.2 KiBpostgresql-16-pg-store-plan_1.10-1PGSTY~resolute_amd64.deb
postgresql-16-pg-store-plan1.10u26.aarch64pigsty113.4 KiBpostgresql-16-pg-store-plan_1.10-1PGSTY~resolute_arm64.deb
软件包版本平台仓库大小下载
pg_store_plans_151.10el8.x86_64pgdg47.6 KiBpg_store_plans_15-1.10-5PGDG.rhel8.10.x86_64.rpm
pg_store_plans_151.10el8.x86_64pigsty120.5 KiBpg_store_plans_15-1.10-1PGSTY.el8.x86_64.rpm
pg_store_plans_151.10el8.x86_64pgdg46.8 KiBpg_store_plans_15-1.10-1PGDG.rhel8.10.x86_64.rpm
pg_store_plans_151.8el8.x86_64pgdg46.3 KiBpg_store_plans_15-1.8-1PGDG.rhel8.x86_64.rpm
pg_store_plans_151.7el8.x86_64pgdg46.3 KiBpg_store_plans_15-1.7-1PGDG.rhel8.x86_64.rpm
pg_store_plans_151.10el8.aarch64pgdg46.3 KiBpg_store_plans_15-1.10-5PGDG.rhel8.10.aarch64.rpm
pg_store_plans_151.10el8.aarch64pigsty118.0 KiBpg_store_plans_15-1.10-1PGSTY.el8.aarch64.rpm
pg_store_plans_151.10el8.aarch64pgdg45.4 KiBpg_store_plans_15-1.10-1PGDG.rhel8.10.aarch64.rpm
pg_store_plans_151.8el8.aarch64pgdg45.0 KiBpg_store_plans_15-1.8-1PGDG.rhel8.aarch64.rpm
pg_store_plans_151.7el8.aarch64pgdg44.8 KiBpg_store_plans_15-1.7-1PGDG.rhel8.aarch64.rpm
pg_store_plans_151.10el9.x86_64pgdg48.1 KiBpg_store_plans_15-1.10-5PGDG.rhel9.9.x86_64.rpm
pg_store_plans_151.10el9.x86_64pgdg48.1 KiBpg_store_plans_15-1.10-5PGDG.rhel9.8.x86_64.rpm
pg_store_plans_151.10el9.x86_64pgdg48.1 KiBpg_store_plans_15-1.10-5PGDG.rhel9.7.x86_64.rpm
pg_store_plans_151.10el9.x86_64pigsty123.8 KiBpg_store_plans_15-1.10-1PGSTY.el9.x86_64.rpm
pg_store_plans_151.10el9.x86_64pgdg47.1 KiBpg_store_plans_15-1.10-1PGDG.rhel9.8.x86_64.rpm
pg_store_plans_151.10el9.x86_64pgdg47.1 KiBpg_store_plans_15-1.10-1PGDG.rhel9.7.x86_64.rpm
pg_store_plans_151.10el9.x86_64pgdg47.2 KiBpg_store_plans_15-1.10-1PGDG.rhel9.6.x86_64.rpm
pg_store_plans_151.8el9.x86_64pgdg47.2 KiBpg_store_plans_15-1.8-1PGDG.rhel9.x86_64.rpm
pg_store_plans_151.7el9.x86_64pgdg47.3 KiBpg_store_plans_15-1.7-1PGDG.rhel9.x86_64.rpm
pg_store_plans_151.10el9.aarch64pgdg47.2 KiBpg_store_plans_15-1.10-5PGDG.rhel9.9.aarch64.rpm
pg_store_plans_151.10el9.aarch64pgdg47.2 KiBpg_store_plans_15-1.10-5PGDG.rhel9.8.aarch64.rpm
pg_store_plans_151.10el9.aarch64pgdg47.2 KiBpg_store_plans_15-1.10-5PGDG.rhel9.7.aarch64.rpm
pg_store_plans_151.10el9.aarch64pigsty122.3 KiBpg_store_plans_15-1.10-1PGSTY.el9.aarch64.rpm
pg_store_plans_151.10el9.aarch64pgdg46.2 KiBpg_store_plans_15-1.10-1PGDG.rhel9.8.aarch64.rpm
pg_store_plans_151.10el9.aarch64pgdg46.2 KiBpg_store_plans_15-1.10-1PGDG.rhel9.7.aarch64.rpm
pg_store_plans_151.10el9.aarch64pgdg46.3 KiBpg_store_plans_15-1.10-1PGDG.rhel9.6.aarch64.rpm
pg_store_plans_151.8el9.aarch64pgdg46.1 KiBpg_store_plans_15-1.8-1PGDG.rhel9.aarch64.rpm
pg_store_plans_151.7el9.aarch64pgdg45.9 KiBpg_store_plans_15-1.7-1PGDG.rhel9.aarch64.rpm
pg_store_plans_151.10el10.x86_64pgdg49.1 KiBpg_store_plans_15-1.10-5PGDG.rhel10.3.x86_64.rpm
pg_store_plans_151.10el10.x86_64pgdg49.1 KiBpg_store_plans_15-1.10-5PGDG.rhel10.2.x86_64.rpm
pg_store_plans_151.10el10.x86_64pgdg49.1 KiBpg_store_plans_15-1.10-5PGDG.rhel10.1.x86_64.rpm
pg_store_plans_151.10el10.x86_64pigsty125.1 KiBpg_store_plans_15-1.10-1PGSTY.el10.x86_64.rpm
pg_store_plans_151.10el10.x86_64pgdg48.1 KiBpg_store_plans_15-1.10-1PGDG.rhel10.2.x86_64.rpm
pg_store_plans_151.10el10.x86_64pgdg48.1 KiBpg_store_plans_15-1.10-1PGDG.rhel10.1.x86_64.rpm
pg_store_plans_151.10el10.x86_64pgdg48.5 KiBpg_store_plans_15-1.10-1PGDG.rhel10.0.x86_64.rpm
pg_store_plans_151.8el10.x86_64pgdg48.3 KiBpg_store_plans_15-1.8-3PGDG.rhel10.x86_64.rpm
pg_store_plans_151.10el10.aarch64pgdg47.9 KiBpg_store_plans_15-1.10-5PGDG.rhel10.3.aarch64.rpm
pg_store_plans_151.10el10.aarch64pgdg47.9 KiBpg_store_plans_15-1.10-5PGDG.rhel10.2.aarch64.rpm
pg_store_plans_151.10el10.aarch64pgdg47.9 KiBpg_store_plans_15-1.10-5PGDG.rhel10.1.aarch64.rpm
pg_store_plans_151.10el10.aarch64pigsty123.3 KiBpg_store_plans_15-1.10-1PGSTY.el10.aarch64.rpm
pg_store_plans_151.10el10.aarch64pgdg46.9 KiBpg_store_plans_15-1.10-1PGDG.rhel10.2.aarch64.rpm
pg_store_plans_151.10el10.aarch64pgdg46.9 KiBpg_store_plans_15-1.10-1PGDG.rhel10.1.aarch64.rpm
pg_store_plans_151.10el10.aarch64pgdg46.9 KiBpg_store_plans_15-1.10-1PGDG.rhel10.0.aarch64.rpm
pg_store_plans_151.8el10.aarch64pgdg47.2 KiBpg_store_plans_15-1.8-3PGDG.rhel10.aarch64.rpm
postgresql-15-pg-store-plan1.10d12.x86_64pigsty109.7 KiBpostgresql-15-pg-store-plan_1.10-1PGSTY~bookworm_amd64.deb
postgresql-15-pg-store-plan1.10d12.aarch64pigsty106.3 KiBpostgresql-15-pg-store-plan_1.10-1PGSTY~bookworm_arm64.deb
postgresql-15-pg-store-plan1.10d13.x86_64pigsty110.1 KiBpostgresql-15-pg-store-plan_1.10-1PGSTY~trixie_amd64.deb
postgresql-15-pg-store-plan1.10d13.aarch64pigsty106.8 KiBpostgresql-15-pg-store-plan_1.10-1PGSTY~trixie_arm64.deb
postgresql-15-pg-store-plan1.10u22.x86_64pigsty131.1 KiBpostgresql-15-pg-store-plan_1.10-1PGSTY~jammy_amd64.deb
postgresql-15-pg-store-plan1.10u22.aarch64pigsty129.3 KiBpostgresql-15-pg-store-plan_1.10-1PGSTY~jammy_arm64.deb
postgresql-15-pg-store-plan1.10u24.x86_64pigsty116.3 KiBpostgresql-15-pg-store-plan_1.10-1PGSTY~noble_amd64.deb
postgresql-15-pg-store-plan1.10u24.aarch64pigsty114.2 KiBpostgresql-15-pg-store-plan_1.10-1PGSTY~noble_arm64.deb
postgresql-15-pg-store-plan1.10u26.x86_64pigsty116.7 KiBpostgresql-15-pg-store-plan_1.10-1PGSTY~resolute_amd64.deb
postgresql-15-pg-store-plan1.10u26.aarch64pigsty114.8 KiBpostgresql-15-pg-store-plan_1.10-1PGSTY~resolute_arm64.deb

源码

pig build pkg pg_store_plans;		# build rpm/deb

安装

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

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

使用 pig 安装扩展。

pig install pg_store_plans;		# install by package name

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

将扩展加入 shared_preload_libraries,详见配置说明。

shared_preload_libraries = 'pg_store_plans';

在数据库中创建扩展。

CREATE EXTENSION pg_store_plans;

用法

来源:official docs,repo,1.10 release notes

pg_store_plans 用于跟踪 SQL 语句的执行计划统计信息,作用类似于 pg_stat_statements 对语句统计的补充。上游 1.10 发布说明指出该版本新增 PostgreSQL 18 支持,其余 SQL 接口与当前文档保持一致。

必要服务器设置

shared_preload_libraries = 'pg_store_plans'
compute_query_id = 'on'

pg_store_plans 需要共享内存,因此增删该扩展都需要重启。文档还说明如果 compute_query_id = 'no',模块会被静默禁用。

查看已存储计划

SELECT queryid, planid, plan, calls, total_time, rows
FROM pg_store_plans
ORDER BY total_time DESC;

SELECT * FROM pg_store_plans_info;

文档将 queryid 作为与 pg_stat_statements 的关联键,并将 pg_store_plans_info 描述为单行视图,用于暴露 dealloc、stats_reset 等模块级统计。

辅助函数

SELECT pg_store_plans_reset();
SELECT pg_store_hash_query('SELECT 1');
SELECT pg_store_plans_textplan(plan);
SELECT pg_store_plans_jsonplan(plan);
SELECT pg_store_plans_xmlplan(plan);
SELECT pg_store_plans_yamlplan(plan);

当 pg_store_plans.plan_format = 'raw' 时,pg_store_plans_*plan() 尤其实用。

关键 GUC

  • pg_store_plans.max
  • pg_store_plans.track
  • pg_store_plans.max_plan_length
  • pg_store_plans.plan_storage
  • pg_store_plans.plan_format
  • pg_store_plans.min_duration
  • pg_store_plans.log_analyze
  • pg_store_plans.log_buffers
  • pg_store_plans.log_timing
  • pg_store_plans.save

文档说明 plan_storage 取值为 file 或 shmem,plan_format 取值为 text、json、xml、yaml 或 raw。

注意事项

  • 非超级用户不能查看其他用户执行语句对应的 plan、queryid 或 planid。
  • pg_store_plans 与 pg_stat_statements 独立维护条目,因此低频记录不一定总能在另一侧找到对应行。

表格阅读器