pg_show_plans

show query plans of all currently running SQL statements

Overview

PGDG 1st Party Extension: pg_show_plans : show query plans of all currently running SQL statements

Information

Metadata

  • Latest Version: 2.1
  • Postgres Support: 17,16,15,14,13
  • Need Load: Shared library do not need explicit loading
  • 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: PGDG
  • RPM Name: pg_show_plans_$v*
  • RPM Ver : 2.1
  • RPM Deps: N/A
  • DEB Repo: PGDG
  • DEB Name: postgresql-$v-show-plans
  • DEB Ver : 2.1
  • DEB Deps: N/A

Packages

OS Arch PG17 PG16 PG15 PG14 PG13
el8 x86_64 pg_show_plans_17
PGDG 2.1.2
pg_show_plans_16
PGDG 2.1.2
pg_show_plans_15
PGDG 2.1.2
pg_show_plans_14
PGDG 2.1.2
pg_show_plans_13
PGDG 2.1.2
el8 aarch64 pg_show_plans_17
PGDG 2.1.2
pg_show_plans_16
PGDG 2.1.2
pg_show_plans_15
PGDG 2.1.2
pg_show_plans_14
PGDG 2.1.2
pg_show_plans_13
PGDG 2.1.2
el9 x86_64 pg_show_plans_17
PGDG 2.1.2
pg_show_plans_16
PGDG 2.1.2
pg_show_plans_15
PGDG 2.1.2
pg_show_plans_14
PGDG 2.1.2
pg_show_plans_13
PGDG 2.1.2
el9 aarch64 pg_show_plans_17
PGDG 2.1.2
pg_show_plans_16
PGDG 2.1.2
pg_show_plans_15
PGDG 2.1.2
pg_show_plans_14
PGDG 2.1.2
pg_show_plans_13
PGDG 2.1.2
d12 x86_64 postgresql-17-show-plans
PGDG 2.1.2
postgresql-16-show-plans
PGDG 2.1.2
postgresql-15-show-plans
PGDG 2.1.2
postgresql-14-show-plans
PGDG 2.1.2
postgresql-13-show-plans
PGDG 2.1.2
d12 aarch64 postgresql-17-show-plans
PGDG 2.1.2
postgresql-16-show-plans
PGDG 2.1.2
postgresql-15-show-plans
PGDG 2.1.2
postgresql-14-show-plans
PGDG 2.1.2
postgresql-13-show-plans
PGDG 2.1.2
u22 x86_64 postgresql-17-show-plans
PGDG 2.1.2
postgresql-16-show-plans
PGDG 2.1.2
postgresql-15-show-plans
PGDG 2.1.2
postgresql-14-show-plans
PGDG 2.1.2
postgresql-13-show-plans
PGDG 2.1.2
u22 aarch64 postgresql-17-show-plans
PGDG 2.1.2
postgresql-16-show-plans
PGDG 2.1.2
postgresql-15-show-plans
PGDG 2.1.2
postgresql-14-show-plans
PGDG 2.1.2
postgresql-13-show-plans
PGDG 2.1.2
u24 x86_64 postgresql-17-show-plans
PGDG 2.1.2
postgresql-16-show-plans
PGDG 2.1.2
postgresql-15-show-plans
PGDG 2.1.2
postgresql-14-show-plans
PGDG 2.1.2
postgresql-13-show-plans
PGDG 2.1.2
u24 aarch64 postgresql-17-show-plans
PGDG 2.1.2
postgresql-16-show-plans
PGDG 2.1.2
postgresql-15-show-plans
PGDG 2.1.2
postgresql-14-show-plans
PGDG 2.1.2
postgresql-13-show-plans
PGDG 2.1.2

Installation

Install pg_show_plans via the pig CLI tool:

pig ext install pg_show_plans

Install pg_show_plans via Pigsty playbook:

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

Install pg_show_plans RPM from YUM repo directly:

dnf install pg_show_plans_17*;
dnf install pg_show_plans_16*;
dnf install pg_show_plans_15*;
dnf install pg_show_plans_14*;
dnf install pg_show_plans_13*;

Install pg_show_plans DEB from APT repo directly:

apt install postgresql-17-show-plans;
apt install postgresql-16-show-plans;
apt install postgresql-15-show-plans;
apt install postgresql-14-show-plans;
apt install postgresql-13-show-plans;

Enable pg_show_plans extension on PostgreSQL cluster:

CREATE EXTENSION pg_show_plans;




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