Skip to content

pg_stat_cluster_activity

track execution statistics in whole cluster scope

pg_stat_cluster_activity · track execution statistics in whole cluster scope

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101631pg_stat_cluster_activitypg_stat_cluster_activity1.0STATUnknownC

Usage

Sources:

pg_stat_cluster_activity — track execution statistics in whole cluster scope. Use it when collecting or interpreting the corresponding PostgreSQL statistics. Upstream describes this capability as experimental.

Core Workflow

CREATE EXTENSION pg_stat_cluster_activity;

Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.

Important Objects

  • pg_cancel_session(text) is an extension function.
  • pg_signal_session(text, integer, bool) is an extension function.
  • pg_terminate_session(text) is an extension function.
  • pg_stat_cluster_activity is an extension-defined view.
  • pg_stat_cluster_activity_cn is an extension-defined view.

Requirements and Caveats

  • The reviewed control file declares default version 1.0.
  • The control file marks the extension as relocatable.
  • Upstream labels part or all of the project experimental.
  • Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.

Table reader