pg_store_plans

pg_store_plans

track plan statistics of all SQL statements executed

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
6250
pg_store_plans
pg_store_plans
1.9
STAT
BSD 3-Clause
C
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
--sLd-r
No
Yes
Yes
Yes
yes
no
Relationships
See Also
pg_show_plans
auto_explain
pg_stat_statements
pg_hint_plan
pre_prepare
pg_stat_monitor
explain_ui
plprofiler

pg18 breaks, fixed by Vonng

Packages

TypeRepoVersionPG Major AvailabilityPackage PatternDependencies
EL
PIGSTY
1.9
18
17
16
15
14
13
pg_store_plans_$v*-
Debian
PIGSTY
1.9
18
17
16
15
14
13
postgresql-$v-pg-store-plan-
Linux / PGPG18PG17PG16PG15PG14PG13
el8.x86_64
PIGSTY 1.9
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
el8.aarch64
PIGSTY 1.9
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
el9.x86_64
PIGSTY 1.9
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
el9.aarch64
PIGSTY 1.9
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
el10.x86_64
PIGSTY 1.9
PIGSTY 1.9
PGDG 1.8
PGDG 1.8
MISS
MISS
el10.aarch64
PIGSTY 1.9
PIGSTY 1.9
PGDG 1.8
PGDG 1.8
MISS
MISS
d12.x86_64
MISS
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
d12.aarch64
MISS
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
d13.x86_64
MISS
MISS
MISS
MISS
MISS
MISS
d13.aarch64
MISS
MISS
MISS
MISS
MISS
MISS
u22.x86_64
MISS
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
u22.aarch64
MISS
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
u24.x86_64
MISS
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
u24.aarch64
MISS
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PIGSTY 1.8
PackageVersionOSORGSIZEFile URL
pg_store_plans_181.9el8.x86_64pigsty44.5 KiBpg_store_plans_18-1.9-1PIGSTY.el8.x86_64.rpm
pg_store_plans_181.9el8.aarch64pigsty43.2 KiBpg_store_plans_18-1.9-1PIGSTY.el8.aarch64.rpm
pg_store_plans_181.9el9.x86_64pigsty43.5 KiBpg_store_plans_18-1.9-1PIGSTY.el9.x86_64.rpm
pg_store_plans_181.9el9.aarch64pigsty42.9 KiBpg_store_plans_18-1.9-1PIGSTY.el9.aarch64.rpm
pg_store_plans_181.9el10.x86_64pigsty44.7 KiBpg_store_plans_18-1.9-1PIGSTY.el10.x86_64.rpm
pg_store_plans_181.9el10.aarch64pigsty43.6 KiBpg_store_plans_18-1.9-1PIGSTY.el10.aarch64.rpm
PackageVersionOSORGSIZEFile URL
pg_store_plans_171.8el8.x86_64pigsty40.7 KiBpg_store_plans_17-1.8-2PIGSTY.el8.x86_64.rpm
pg_store_plans_171.8el8.aarch64pigsty39.4 KiBpg_store_plans_17-1.8-2PIGSTY.el8.aarch64.rpm
pg_store_plans_171.8el9.x86_64pigsty42.4 KiBpg_store_plans_17-1.8-2PIGSTY.el9.x86_64.rpm
pg_store_plans_171.8el9.aarch64pigsty41.5 KiBpg_store_plans_17-1.8-2PIGSTY.el9.aarch64.rpm
pg_store_plans_171.9el10.x86_64pigsty43.2 KiBpg_store_plans_17-1.9-1PIGSTY.el10.x86_64.rpm
pg_store_plans_171.9el10.aarch64pigsty42.2 KiBpg_store_plans_17-1.9-1PIGSTY.el10.aarch64.rpm
postgresql-17-pg-store-plan1.8d12.x86_64pigsty119.2 KiBpostgresql-17-pg-store-plan_1.8-2PIGSTY~bookworm_amd64.deb
postgresql-17-pg-store-plan1.8d12.aarch64pigsty116.3 KiBpostgresql-17-pg-store-plan_1.8-2PIGSTY~bookworm_arm64.deb
postgresql-17-pg-store-plan1.8u22.x86_64pigsty128.9 KiBpostgresql-17-pg-store-plan_1.8-2PIGSTY~jammy_amd64.deb
postgresql-17-pg-store-plan1.8u22.aarch64pigsty127.3 KiBpostgresql-17-pg-store-plan_1.8-2PIGSTY~jammy_arm64.deb
postgresql-17-pg-store-plan1.8u24.x86_64pigsty114.0 KiBpostgresql-17-pg-store-plan_1.8-2PIGSTY~noble_amd64.deb
postgresql-17-pg-store-plan1.8u24.aarch64pigsty112.5 KiBpostgresql-17-pg-store-plan_1.8-2PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pg_store_plans_161.8el8.x86_64pigsty40.7 KiBpg_store_plans_16-1.8-2PIGSTY.el8.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.8el8.aarch64pigsty39.4 KiBpg_store_plans_16-1.8-2PIGSTY.el8.aarch64.rpm
pg_store_plans_161.8el8.aarch64pgdg44.1 KiBpg_store_plans_16-1.8-1PGDG.rhel8.aarch64.rpm
pg_store_plans_161.8el9.x86_64pigsty42.3 KiBpg_store_plans_16-1.8-2PIGSTY.el9.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.8el9.aarch64pigsty41.4 KiBpg_store_plans_16-1.8-2PIGSTY.el9.aarch64.rpm
pg_store_plans_161.8el9.aarch64pgdg45.1 KiBpg_store_plans_16-1.8-1PGDG.rhel9.aarch64.rpm
pg_store_plans_161.8el10.x86_64pgdg47.1 KiBpg_store_plans_16-1.8-3PGDG.rhel10.x86_64.rpm
pg_store_plans_161.8el10.aarch64pgdg46.0 KiBpg_store_plans_16-1.8-3PGDG.rhel10.aarch64.rpm
postgresql-16-pg-store-plan1.8d12.x86_64pigsty119.0 KiBpostgresql-16-pg-store-plan_1.8-2PIGSTY~bookworm_amd64.deb
postgresql-16-pg-store-plan1.8d12.aarch64pigsty116.2 KiBpostgresql-16-pg-store-plan_1.8-2PIGSTY~bookworm_arm64.deb
postgresql-16-pg-store-plan1.8u22.x86_64pigsty128.7 KiBpostgresql-16-pg-store-plan_1.8-2PIGSTY~jammy_amd64.deb
postgresql-16-pg-store-plan1.8u22.aarch64pigsty127.0 KiBpostgresql-16-pg-store-plan_1.8-2PIGSTY~jammy_arm64.deb
postgresql-16-pg-store-plan1.8u24.x86_64pigsty113.9 KiBpostgresql-16-pg-store-plan_1.8-2PIGSTY~noble_amd64.deb
postgresql-16-pg-store-plan1.8u24.aarch64pigsty112.6 KiBpostgresql-16-pg-store-plan_1.8-2PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pg_store_plans_151.8el8.x86_64pigsty41.7 KiBpg_store_plans_15-1.8-2PIGSTY.el8.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.8el8.aarch64pigsty40.3 KiBpg_store_plans_15-1.8-2PIGSTY.el8.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.8el9.x86_64pigsty43.9 KiBpg_store_plans_15-1.8-2PIGSTY.el9.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.8el9.aarch64pigsty43.1 KiBpg_store_plans_15-1.8-2PIGSTY.el9.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.8el10.x86_64pgdg48.3 KiBpg_store_plans_15-1.8-3PGDG.rhel10.x86_64.rpm
pg_store_plans_151.8el10.aarch64pgdg47.2 KiBpg_store_plans_15-1.8-3PGDG.rhel10.aarch64.rpm
postgresql-15-pg-store-plan1.8d12.x86_64pigsty120.6 KiBpostgresql-15-pg-store-plan_1.8-2PIGSTY~bookworm_amd64.deb
postgresql-15-pg-store-plan1.8d12.aarch64pigsty117.5 KiBpostgresql-15-pg-store-plan_1.8-2PIGSTY~bookworm_arm64.deb
postgresql-15-pg-store-plan1.8u22.x86_64pigsty130.6 KiBpostgresql-15-pg-store-plan_1.8-2PIGSTY~jammy_amd64.deb
postgresql-15-pg-store-plan1.8u22.aarch64pigsty128.8 KiBpostgresql-15-pg-store-plan_1.8-2PIGSTY~jammy_arm64.deb
postgresql-15-pg-store-plan1.8u24.x86_64pigsty115.8 KiBpostgresql-15-pg-store-plan_1.8-2PIGSTY~noble_amd64.deb
postgresql-15-pg-store-plan1.8u24.aarch64pigsty114.4 KiBpostgresql-15-pg-store-plan_1.8-2PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pg_store_plans_141.8el8.x86_64pigsty41.6 KiBpg_store_plans_14-1.8-2PIGSTY.el8.x86_64.rpm
pg_store_plans_141.8el8.aarch64pigsty40.2 KiBpg_store_plans_14-1.8-2PIGSTY.el8.aarch64.rpm
pg_store_plans_141.8el9.x86_64pigsty43.6 KiBpg_store_plans_14-1.8-2PIGSTY.el9.x86_64.rpm
pg_store_plans_141.8el9.aarch64pigsty43.0 KiBpg_store_plans_14-1.8-2PIGSTY.el9.aarch64.rpm
postgresql-14-pg-store-plan1.8d12.x86_64pigsty120.2 KiBpostgresql-14-pg-store-plan_1.8-2PIGSTY~bookworm_amd64.deb
postgresql-14-pg-store-plan1.8d12.aarch64pigsty117.1 KiBpostgresql-14-pg-store-plan_1.8-2PIGSTY~bookworm_arm64.deb
postgresql-14-pg-store-plan1.8u22.x86_64pigsty130.0 KiBpostgresql-14-pg-store-plan_1.8-2PIGSTY~jammy_amd64.deb
postgresql-14-pg-store-plan1.8u22.aarch64pigsty128.2 KiBpostgresql-14-pg-store-plan_1.8-2PIGSTY~jammy_arm64.deb
postgresql-14-pg-store-plan1.8u24.x86_64pigsty115.5 KiBpostgresql-14-pg-store-plan_1.8-2PIGSTY~noble_amd64.deb
postgresql-14-pg-store-plan1.8u24.aarch64pigsty114.4 KiBpostgresql-14-pg-store-plan_1.8-2PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pg_store_plans_131.8el8.x86_64pigsty41.6 KiBpg_store_plans_13-1.8-2PIGSTY.el8.x86_64.rpm
pg_store_plans_131.8el8.aarch64pigsty40.2 KiBpg_store_plans_13-1.8-2PIGSTY.el8.aarch64.rpm
pg_store_plans_131.8el9.x86_64pigsty43.5 KiBpg_store_plans_13-1.8-2PIGSTY.el9.x86_64.rpm
pg_store_plans_131.8el9.aarch64pigsty42.8 KiBpg_store_plans_13-1.8-2PIGSTY.el9.aarch64.rpm
postgresql-13-pg-store-plan1.8d12.x86_64pigsty119.6 KiBpostgresql-13-pg-store-plan_1.8-2PIGSTY~bookworm_amd64.deb
postgresql-13-pg-store-plan1.8d12.aarch64pigsty116.5 KiBpostgresql-13-pg-store-plan_1.8-2PIGSTY~bookworm_arm64.deb
postgresql-13-pg-store-plan1.8u22.x86_64pigsty129.4 KiBpostgresql-13-pg-store-plan_1.8-2PIGSTY~jammy_amd64.deb
postgresql-13-pg-store-plan1.8u22.aarch64pigsty127.8 KiBpostgresql-13-pg-store-plan_1.8-2PIGSTY~jammy_arm64.deb
postgresql-13-pg-store-plan1.8u24.x86_64pigsty115.3 KiBpostgresql-13-pg-store-plan_1.8-2PIGSTY~noble_amd64.deb
postgresql-13-pg-store-plan1.8u24.aarch64pigsty113.4 KiBpostgresql-13-pg-store-plan_1.8-2PIGSTY~noble_arm64.deb

Source

pig build get pg_store_plans; # get pg_store_plans source code
pig build dep pg_store_plans; # install build dependencies
pig build pkg pg_store_plans; # build extension rpm or deb
pig build ext pg_store_plans; # build extension rpms

Install

To add the required PGDG / PIGSTY upstream repository, use:

pig repo add pgsql -u   # add PGDG + Pigsty repo and update cache (leave existing repos)

Install this extension with:

pig ext install pg_store_plans; # install by extension name, for the current active PG version
pig ext install pg_store_plans; # install via package alias, for the active PG version
pig ext install pg_store_plans -v 18;   # install for PG 18
pig ext install pg_store_plans -v 17;   # install for PG 17
pig ext install pg_store_plans -v 16;   # install for PG 16
pig ext install pg_store_plans -v 15;   # install for PG 15
pig ext install pg_store_plans -v 14;   # install for PG 14
pig ext install pg_store_plans -v 13;   # install for PG 13

Create this extension with:

CREATE EXTENSION pg_store_plans;
Last updated on