pg_store_plans

track plan statistics of all SQL statements executed

Overview

MIXED 3rd Party Extension: pg_store_plans : track plan statistics of all SQL statements executed

Information

Metadata

  • Latest Version: 1.8
  • Postgres Support: 17,16,15,14,13
  • Need Load: Explicit Loading Required
  • Need DDL: Need CREATE EXTENSION DDL
  • Relocatable: Can not install to arbitrary schema
  • Trusted: Untrusted, Require Superuser to Create
  • Schemas: N/A
  • Requires: N/A

RPM / DEB

  • RPM Repo: PIGSTY
  • RPM Name: pg_store_plans_$v*
  • RPM Ver : 1.8
  • RPM Deps: N/A
  • DEB Repo: PIGSTY
  • DEB Name: postgresql-$v-pg-store-plan
  • DEB Ver : 1.8
  • DEB Deps: N/A

Packages

OS Arch PG17 PG16 PG15 PG14 PG13
el8 x86_64 pg_store_plans_17
PIGSTY 1.8
pg_store_plans_16
PIGSTY 1.8
pg_store_plans_15
PIGSTY 1.8
pg_store_plans_14
PIGSTY 1.8
pg_store_plans_13
PIGSTY 1.8
el8 aarch64 pg_store_plans_17
PIGSTY 1.8
pg_store_plans_16
PIGSTY 1.8
pg_store_plans_15
PIGSTY 1.8
pg_store_plans_14
PIGSTY 1.8
pg_store_plans_13
PIGSTY 1.8
el9 x86_64 pg_store_plans_17
PIGSTY 1.8
pg_store_plans_16
PIGSTY 1.8
pg_store_plans_15
PIGSTY 1.8
pg_store_plans_14
PIGSTY 1.8
pg_store_plans_13
PIGSTY 1.8
el9 aarch64 pg_store_plans_17
PIGSTY 1.8
pg_store_plans_16
PIGSTY 1.8
pg_store_plans_15
PIGSTY 1.8
pg_store_plans_14
PIGSTY 1.8
pg_store_plans_13
PIGSTY 1.8
d12 x86_64 postgresql-17-pg-store-plan
PIGSTY 1.8
postgresql-16-pg-store-plan
PIGSTY 1.8
postgresql-15-pg-store-plan
PIGSTY 1.8
postgresql-14-pg-store-plan
PIGSTY 1.8
postgresql-13-pg-store-plan
PIGSTY 1.8
d12 aarch64 postgresql-17-pg-store-plan
PIGSTY 1.8
postgresql-16-pg-store-plan
PIGSTY 1.8
postgresql-15-pg-store-plan
PIGSTY 1.8
postgresql-14-pg-store-plan
PIGSTY 1.8
postgresql-13-pg-store-plan
PIGSTY 1.8
u22 x86_64 postgresql-17-pg-store-plan
PIGSTY 1.8
postgresql-16-pg-store-plan
PIGSTY 1.8
postgresql-15-pg-store-plan
PIGSTY 1.8
postgresql-14-pg-store-plan
PIGSTY 1.8
postgresql-13-pg-store-plan
PIGSTY 1.8
u22 aarch64 postgresql-17-pg-store-plan
PIGSTY 1.8
postgresql-16-pg-store-plan
PIGSTY 1.8
postgresql-15-pg-store-plan
PIGSTY 1.8
postgresql-14-pg-store-plan
PIGSTY 1.8
postgresql-13-pg-store-plan
PIGSTY 1.8
u24 x86_64 postgresql-17-pg-store-plan
PIGSTY 1.8
postgresql-16-pg-store-plan
PIGSTY 1.8
postgresql-15-pg-store-plan
PIGSTY 1.8
postgresql-14-pg-store-plan
PIGSTY 1.8
postgresql-13-pg-store-plan
PIGSTY 1.8
u24 aarch64 postgresql-17-pg-store-plan
PIGSTY 1.8
postgresql-16-pg-store-plan
PIGSTY 1.8
postgresql-15-pg-store-plan
PIGSTY 1.8
postgresql-14-pg-store-plan
PIGSTY 1.8
postgresql-13-pg-store-plan
PIGSTY 1.8

Installation

Install pg_store_plans via the pig CLI tool:

pig ext install pg_store_plans

Install pg_store_plans via Pigsty playbook:

./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_store_plans"]}' # -l <cls>

Install pg_store_plans RPM from YUM repo directly:

dnf install pg_store_plans_17*;
dnf install pg_store_plans_16*;
dnf install pg_store_plans_15*;
dnf install pg_store_plans_14*;
dnf install pg_store_plans_13*;

Install pg_store_plans DEB from APT repo directly:

apt install postgresql-17-pg-store-plan;
apt install postgresql-16-pg-store-plan;
apt install postgresql-15-pg-store-plan;
apt install postgresql-14-pg-store-plan;
apt install postgresql-13-pg-store-plan;

Extension pg_store_plans has to be added to shared_preload_libraries

shared_preload_libraries = 'pg_store_plans'; # add to pg cluster config

Enable pg_store_plans extension on PostgreSQL cluster:

CREATE EXTENSION pg_store_plans;




Last modified 2025-02-17: add extension part (cfa504b)