pg_wait_sampling

sampling based statistics of wait events

Overview

PGDG 1st Party Extension: pg_wait_sampling : sampling based statistics of wait events

Information

Metadata

  • Latest Version: 1.1
  • 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: PGDG
  • RPM Name: pg_wait_sampling_$v*
  • RPM Ver : 1.1
  • RPM Deps: N/A
  • DEB Repo: PGDG
  • DEB Name: postgresql-$v-pg-wait-sampling
  • DEB Ver : 1.1
  • DEB Deps: N/A

Packages

OS Arch PG17 PG16 PG15 PG14 PG13
el8 x86_64 pg_wait_sampling_17
PGDG 1.1.7
pg_wait_sampling_16
PGDG 1.1.7
pg_wait_sampling_15
PGDG 1.1.7
pg_wait_sampling_14
PGDG 1.1.7
pg_wait_sampling_13
PGDG 1.1.7
el8 aarch64 pg_wait_sampling_17
PGDG 1.1.7
pg_wait_sampling_16
PGDG 1.1.7
pg_wait_sampling_15
PGDG 1.1.7
pg_wait_sampling_14
PGDG 1.1.7
pg_wait_sampling_13
PGDG 1.1.7
el9 x86_64 pg_wait_sampling_17
PGDG 1.1.7
pg_wait_sampling_16
PGDG 1.1.7
pg_wait_sampling_15
PGDG 1.1.7
pg_wait_sampling_14
PGDG 1.1.7
pg_wait_sampling_13
PGDG 1.1.7
el9 aarch64 pg_wait_sampling_17
PGDG 1.1.7
pg_wait_sampling_16
PGDG 1.1.7
pg_wait_sampling_15
PGDG 1.1.7
pg_wait_sampling_14
PGDG 1.1.7
pg_wait_sampling_13
PGDG 1.1.7
d12 x86_64 postgresql-17-pg-wait-sampling
PGDG 1.1.7
postgresql-16-pg-wait-sampling
PGDG 1.1.7
postgresql-15-pg-wait-sampling
PGDG 1.1.7
postgresql-14-pg-wait-sampling
PGDG 1.1.7
postgresql-13-pg-wait-sampling
PGDG 1.1.7
d12 aarch64 postgresql-17-pg-wait-sampling
PGDG 1.1.7
postgresql-16-pg-wait-sampling
PGDG 1.1.7
postgresql-15-pg-wait-sampling
PGDG 1.1.7
postgresql-14-pg-wait-sampling
PGDG 1.1.7
postgresql-13-pg-wait-sampling
PGDG 1.1.7
u22 x86_64 postgresql-17-pg-wait-sampling
PGDG 1.1.7
postgresql-16-pg-wait-sampling
PGDG 1.1.7
postgresql-15-pg-wait-sampling
PGDG 1.1.7
postgresql-14-pg-wait-sampling
PGDG 1.1.7
postgresql-13-pg-wait-sampling
PGDG 1.1.7
u22 aarch64 postgresql-17-pg-wait-sampling
PGDG 1.1.7
postgresql-16-pg-wait-sampling
PGDG 1.1.7
postgresql-15-pg-wait-sampling
PGDG 1.1.7
postgresql-14-pg-wait-sampling
PGDG 1.1.7
postgresql-13-pg-wait-sampling
PGDG 1.1.7
u24 x86_64 postgresql-17-pg-wait-sampling
PGDG 1.1.7
postgresql-16-pg-wait-sampling
PGDG 1.1.7
postgresql-15-pg-wait-sampling
PGDG 1.1.7
postgresql-14-pg-wait-sampling
PGDG 1.1.7
postgresql-13-pg-wait-sampling
PGDG 1.1.7
u24 aarch64 postgresql-17-pg-wait-sampling
PGDG 1.1.7
postgresql-16-pg-wait-sampling
PGDG 1.1.7
postgresql-15-pg-wait-sampling
PGDG 1.1.7
postgresql-14-pg-wait-sampling
PGDG 1.1.7
postgresql-13-pg-wait-sampling
PGDG 1.1.7

Installation

Install pg_wait_sampling via the pig CLI tool:

pig ext install pg_wait_sampling

Install pg_wait_sampling via Pigsty playbook:

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

Install pg_wait_sampling RPM from YUM repo directly:

dnf install pg_wait_sampling_17*;
dnf install pg_wait_sampling_16*;
dnf install pg_wait_sampling_15*;
dnf install pg_wait_sampling_14*;
dnf install pg_wait_sampling_13*;

Install pg_wait_sampling DEB from APT repo directly:

apt install postgresql-17-pg-wait-sampling;
apt install postgresql-16-pg-wait-sampling;
apt install postgresql-15-pg-wait-sampling;
apt install postgresql-14-pg-wait-sampling;
apt install postgresql-13-pg-wait-sampling;

Extension pg_wait_sampling has to be added to shared_preload_libraries

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

Enable pg_wait_sampling extension on PostgreSQL cluster:

CREATE EXTENSION pg_wait_sampling;




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