select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Extensions / Monitoring

pg_stat_statements2

Track SQL execution statistics using a PostgreSQL 9.4 pg_stat_statements derivative integrated with sql_firewall

pgext.cloud · Source code · Documentation · License text · Control file

Overview

Packagepg_stat_statements2
Version1.2
RepositoryUnspecified
Extension typePreloaded
Requires CREATE EXTENSIONYes
Requires preloadYes
TrustedNo
RelocatableYes
Shared librariessql_firewall, pg_stat_statements2
Stars0
Latest commit2015-09-20
Catalogue updated2026-08-30

Related extensions

Requires

sql_firewallCluster-wide query allowlist firewall with learning, enforcing, permissive, and disabled modes keyed by user and parse-tree fingerprint.

See also

pg_stat_statementstrack planning and execution statistics of all SQL statements executed
sql_firewallCluster-wide query allowlist firewall with learning, enforcing, permissive, and disabled modes keyed by user and parse-tree fingerprint.
pg_dbwaAnalyzes local or remote PostgreSQL workloads using historical pg_stat_statements snapshots.
pg_grab_statementRecord detailed SQL statements from successfully committed transactions.
pg_sessionsTracks per-session SQL execution metrics and optional Linux process resource statistics in shared memory.
pg_command_fwDDL and utility command firewall for PostgreSQL
pg_stat_sql_plansTrack execution statistics by normalized SQL query and plan ID.
pg_stat_cluster_activitytrack execution statistics in whole cluster scope
pg_stat_monitorThe pg_stat_monitor is a PostgreSQL Query Performance Monitoring tool, based on PostgreSQL contrib module pg_stat_statements. pg_stat_monitor provides aggregated statistics, client information, plan details including plan, and histogram information.
pg_stat_plansTrack per-plan call counts, execution times, and example EXPLAIN texts.