pg_stat_kcache

Kernel statistics gathering

Overview

PGDG 1st Party Extension: pg_stat_kcache : Kernel statistics gathering

Information

Metadata

  • Latest Version: 2.3.0
  • 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: pg_stat_statements

RPM / DEB

  • RPM Repo: PGDG
  • RPM Name: pg_stat_kcache_$v*
  • RPM Ver : 2.3.0
  • RPM Deps: N/A
  • DEB Repo: PGDG
  • DEB Name: postgresql-$v-pg-stat-kcache
  • DEB Ver : 2.3.0
  • DEB Deps: N/A

Packages

OS Arch PG17 PG16 PG15 PG14 PG13
el8 x86_64 pg_stat_kcache_17
PGDG 2.3.0
pg_stat_kcache_16
PGDG 2.3.0
pg_stat_kcache_15
PGDG 2.3.0
pg_stat_kcache_14
PGDG 2.3.0
pg_stat_kcache_13
PGDG 2.3.0
el8 aarch64 pg_stat_kcache_17
PGDG 2.3.0
pg_stat_kcache_16
PGDG 2.3.0
pg_stat_kcache_15
PGDG 2.3.0
pg_stat_kcache_14
PGDG 2.3.0
pg_stat_kcache_13
PGDG 2.3.0
el9 x86_64 pg_stat_kcache_17
PGDG 2.3.0
pg_stat_kcache_16
PGDG 2.3.0
pg_stat_kcache_15
PGDG 2.3.0
pg_stat_kcache_14
PGDG 2.3.0
pg_stat_kcache_13
PGDG 2.3.0
el9 aarch64 pg_stat_kcache_17
PGDG 2.3.0
pg_stat_kcache_16
PGDG 2.3.0
pg_stat_kcache_15
PGDG 2.3.0
pg_stat_kcache_14
PGDG 2.3.0
pg_stat_kcache_13
PGDG 2.3.0
d12 x86_64 postgresql-17-pg-stat-kcache
PGDG 2.3.0
postgresql-16-pg-stat-kcache
PGDG 2.3.0
postgresql-15-pg-stat-kcache
PGDG 2.3.0
postgresql-14-pg-stat-kcache
PGDG 2.3.0
postgresql-13-pg-stat-kcache
PGDG 2.3.0
d12 aarch64 postgresql-17-pg-stat-kcache
PGDG 2.3.0
postgresql-16-pg-stat-kcache
PGDG 2.3.0
postgresql-15-pg-stat-kcache
PGDG 2.3.0
postgresql-14-pg-stat-kcache
PGDG 2.3.0
postgresql-13-pg-stat-kcache
PGDG 2.3.0
u22 x86_64 postgresql-17-pg-stat-kcache
PGDG 2.3.0
postgresql-16-pg-stat-kcache
PGDG 2.3.0
postgresql-15-pg-stat-kcache
PGDG 2.3.0
postgresql-14-pg-stat-kcache
PGDG 2.3.0
postgresql-13-pg-stat-kcache
PGDG 2.3.0
u22 aarch64 postgresql-17-pg-stat-kcache
PGDG 2.3.0
postgresql-16-pg-stat-kcache
PGDG 2.3.0
postgresql-15-pg-stat-kcache
PGDG 2.3.0
postgresql-14-pg-stat-kcache
PGDG 2.3.0
postgresql-13-pg-stat-kcache
PGDG 2.3.0
u24 x86_64 postgresql-17-pg-stat-kcache
PGDG 2.3.0
postgresql-16-pg-stat-kcache
PGDG 2.3.0
postgresql-15-pg-stat-kcache
PGDG 2.3.0
postgresql-14-pg-stat-kcache
PGDG 2.3.0
postgresql-13-pg-stat-kcache
PGDG 2.3.0
u24 aarch64 postgresql-17-pg-stat-kcache
PGDG 2.3.0
postgresql-16-pg-stat-kcache
PGDG 2.3.0
postgresql-15-pg-stat-kcache
PGDG 2.3.0
postgresql-14-pg-stat-kcache
PGDG 2.3.0
postgresql-13-pg-stat-kcache
PGDG 2.3.0

Installation

Install pg_stat_kcache via the pig CLI tool:

pig ext install pg_stat_kcache

Install pg_stat_kcache via Pigsty playbook:

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

Install pg_stat_kcache RPM from YUM repo directly:

dnf install pg_stat_kcache_17*;
dnf install pg_stat_kcache_16*;
dnf install pg_stat_kcache_15*;
dnf install pg_stat_kcache_14*;
dnf install pg_stat_kcache_13*;

Install pg_stat_kcache DEB from APT repo directly:

apt install postgresql-17-pg-stat-kcache;
apt install postgresql-16-pg-stat-kcache;
apt install postgresql-15-pg-stat-kcache;
apt install postgresql-14-pg-stat-kcache;
apt install postgresql-13-pg-stat-kcache;

Extension pg_stat_kcache has to be added to shared_preload_libraries

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

Enable pg_stat_kcache extension on PostgreSQL cluster:

CREATE EXTENSION pg_stat_kcache CASCADE;




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