STAT
220 extensionsStatistics
- pg_profile
PostgreSQL load profile repository and report builder
- pg_tracing
Distributed Tracing for PostgreSQL
- pg_stat_ch
Export PostgreSQL query telemetry to ClickHouse
- pg_stat_backtrace
Capture or log C-level stack backtraces of PostgreSQL processes
- pg_stat_log
Track cumulative PostgreSQL log message statistics by backend, database, user, level, and SQLSTATE.
- pg_stat_plans
Track per-plan call counts, execution times, and example EXPLAIN texts.
- pgfr_record
Server-side PostgreSQL performance flight recorder
- pgfr_analyze
Reporting and analysis functions for pgfr_record
- pgmonitor
Collector-friendly metric views and background refresh worker
- pgtelemetry
SQL monitoring views for database activity, WAL, replication, and storage
- pg_statviz
Capture PostgreSQL statistics snapshots for time-series analysis and visualization
- pg_plan_guard
Detect drift from captured PostgreSQL query plan baselines
- pg_show_plans
show query plans of all currently running SQL statements
- pg_stat_kcache
Kernel statistics gathering
- pg_rusage
Measure backend CPU usage between explicit reset and print calls
- pg_stat_monitor
The 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_qualstats
An extension collecting statistics about quals
- pg_store_plans
track plan statistics of all SQL statements executed
- pg_track_settings
Track settings changes
- pg_track_optimizer
Track planning decisions in comparison with execution reality
- pg_wait_sampling
sampling based statistics of wait events
- pg_datasentinel
Observability and activity monitoring extension for PostgreSQL
- pgsentinel
active session history
- system_stats
EnterpriseDB system statistics for PostgreSQL
- pgexporter_ext
Operating-system and host metrics for pgexporter
- meta
Normalized, friendlier system catalog for PostgreSQL
- pgnodemx
Capture node OS metrics via SQL queries
- pg_proctab
PostgreSQL extension to access the OS process table
- pg_statvfs
Server filesystem capacity and inode statistics through statvfs
- pg_stat_tcpinfo
Linux TCP connection statistics, latency and retransmissions
- pg_sqlog
Provide SQL interface to logs
- bgw_replstatus
Small PostgreSQL background worker to report whether a node is a replication master or standby
- pgmeminfo
show memory usage
- toastinfo
show details on toasted datums
- explain_ui
easily jump into a visual plan UI for any SQL query
- pg_relusage
Log the relations actually used by each SQL statement
- pagevis
Visualise database pages in ascii code
- powa
PostgreSQL Workload Analyser-core
- pg_overexplain
Allow EXPLAIN to dump even more details
- pg_logicalinspect
Logical decoding components inspection
- pageinspect
inspect the contents of database pages at a low level
- pgrowlocks
show row-level locking information
- sslinfo
information about SSL certificates
- pg_buffercache
examine the shared buffer cache
- pg_walinspect
functions to inspect contents of PostgreSQL Write-Ahead Log
- pg_freespacemap
examine the free space map (FSM)
- pg_visibility
examine the visibility map (VM) and page-level visibility info
- pgstattuple
show tuple-level statistics
- auto_explain
Provides a means for logging execution plans of slow statements automatically
- pg_stat_statements
track planning and execution statistics of all SQL statements executed
- pg_prometheus
Prometheus metric sample type and helpers for PostgreSQL.
- pg_query_state
Tool for query progress monitoring in PostgreSQL
- bg_mon
Background worker for monitoring PostgreSQL
- pg_logging
Captures PostgreSQL log records in a shared-memory ring buffer and exposes them through SQL functions.
- pg_sampletolog
Samples statements or whole transactions into PostgreSQL logs through executor and utility hooks.
- pg_sortstats
Collect per-query sort statistics and estimate required work_mem
- pgsampler
Experimental PostgreSQL background worker that collects time-series status and performance metrics.
- statsd
C client functions for sending counters, gauges, and timings to StatsD over UDP.
- pg_grab_statement
Record detailed SQL statements from successfully committed transactions.
- pg_backtrace
Show backtrace for errors and signals
- pg_feedback
PostgreSQL extension that generates a report about database usage
- xl_global_views
Creates global pgxl_ views over Postgres-XL nodes based on pg_ views.
- autovacuum_informations
PostgreSQL extension that adds functions for reporting the autovacuum launcher PID and autovacuum worker information.
- config_log
custom background worker process to log changes to postgresql.conf to a table
- db_info
Functions and views reporting database size, ownership, tablespaces, extensions, and object counts.
- dbstat
Collects exact table row counts and modification timing through SQL objects and a companion libpq process.
- loginfo
Functions and views for PostgreSQL to query the postgres log
- memstat
Memory context statistics for local and instance backends
- monitoring_role
Security-definer monitoring wrappers for a non-privileged role
- pg_dbsm
track database size
- pg_dbwa
Analyzes local or remote PostgreSQL workloads using historical pg_stat_statements snapshots.
- pg_eyes
SQL monitoring functions and views for PostgreSQL database activity
- pg_log_statements
Enables log_statement=all selectively for chosen PostgreSQL backend processes or newly started backends matching connection filters.
- pg_logfebe
log via febe framing protocol to a unix socket
- pg_logqueryid
Logs pg_stat_statements query IDs alongside auto_explain output.
- pg_mem_counters
Maintains named total and requests-per-minute counters in PostgreSQL shared memory.
- pg_memorycontext
Examines PostgreSQL memory context information.
- pg_contextdump
Reports allocated-memory statistics for PostgreSQL memory contexts.
- pg_metrics
Collects named counters from PostgreSQL backends in shared memory and exposes them through SQL metric functions.
- pg_metricus
Sends custom metrics from PL/pgSQL code to socket-based aggregators such as Brubeck or Graphite.
- pg_microbench
Perf stat-like hardware performance counters for PostgreSQL planner, executor, utility, and SPI query phases using Linux perf_event_open
- pg_mon
PostgreSQL extension for query monitoring with execution-time histograms and plan information in a shared view
- pg_octopus
Runs a background worker that periodically connects to configured PostgreSQL nodes and records their health status.
- pg_stat_statements2
Track SQL execution statistics using a PostgreSQL 9.4 pg_stat_statements derivative integrated with sql_firewall
- pg_stat_usage
track usage statistics of stored procedure calls
- pg_stats
Customized statistics views
- pg_track_slow_queries
Tracks slow queries and their execution plans
- pg_monitoring
Provides a common SQL interface for collecting PostgreSQL replication, table-load and database-load monitoring statistics.
- resources
Linux server resource monitoring views backed by file_fdw PROGRAM foreign tables.
- pg_stat_ssi_failures
Cluster-wide counter for PostgreSQL SSI serialization failures.
- stat_record
Background-worker snapshot recorder and reporting suite for PostgreSQL server statistics.
- streaminglag
SQL helpers that convert WAL LSNs to integers and estimate primary-to-standby streaming replication lag in bytes.
- pg_get_queryid
get last queryid generated/used by pg_stat_statements for a given backend pid
- pg_queryid
Compute configurable external query fingerprints for PostgreSQL
- query_recorder
query_recorder: record executed SQL queries to rotating files for later analysis or replay
- pg_stat_sql_plans
Track execution statistics by normalized SQL query and plan ID.
- query_histogram
Collects shared-memory histograms of statement and transaction runtimes through executor and utility hooks.
- pg_querylog
Captures current and recently completed backend queries in shared memory for SQL inspection.
- pg_session_stats
Records per-session and parallel-worker CPU, process status, and I/O data into an external SQLite database.
- pg_sessions
Tracks per-session SQL execution metrics and optional Linux process resource statistics in shared memory.
- explanation
EXPLAIN plan parser that returns plan nodes as relational rows organized as a proximity tree.
- call_graph
Track PostgreSQL function calls automatically and aggregate them into call graphs and optional table-usage statistics.
- progress
progress: query-progress estimation for a patched PostgreSQL 9.3 development branch
- pg_inet_addr
Lists the IPv4 and IPv6 addresses and netmasks assigned to the PostgreSQL server host network interfaces.
- pg_stat_sysinfo
Query host load, CPU, memory, swap, and disk statistics from PostgreSQL, with optional shared-memory caching.
- pg_subxact_counters
Global counters for PostgreSQL subtransaction activity
- pgx_trace_hooks
Trace PostgreSQL executor and utility-hook invocations through a preloaded pgrx library
- supamonitor
Preloaded pgrx query hook that logs query text, query ID, planning time, and execution time as JSON.
- pg_sysload
Expose Linux system load averages from PostgreSQL
- apgcc
No-longer-supported internal RDS/Aurora PostgreSQL extension listed for older Aurora PostgreSQL 9.6 releases.
- aurora_stat_utils
Aurora PostgreSQL statistics utility functions for wait-event reporting.
- generic_plan
Generate a generic plan for a parameterized SQL statement.
- mv_stats
Tracks creation, alteration, refresh, and reset statistics for materialized views.
- neon
Neon-specific statistics and Local File Cache metrics for Neon Postgres computes.
- neon_utils
Monitor Neon Autoscaling compute allocation with num_cpus().
- pg_llm_helper
Captures PostgreSQL errors in shared memory and exposes history plus an optional pgai-backed LLM troubleshooting function.
- pg_session_trace
Trace session SQL, bind variables, execution plans, and timing metrics
- pg_stat_error
TencentDB provider-managed error statistics extension; version 1.0 is currently listed for PostgreSQL 10-13.
- pgotel
PostgreSQL extension exposing OpenTelemetry functionality for other extensions.
- statsmgr
C extension that snapshots PostgreSQL cumulative WAL, SLRU, checkpoint, archiver, I/O, and background-writer statistics in dynamic shared memory.
- tencentdb_stat
TencentDB provider extension for collecting PostgreSQL QPS statistics.
- tencentdb_system_stat
TencentDB extension that exposes per-process CPU and memory usage for PostgreSQL monitoring.
- tencentdb_wal_stat
TencentDB proprietary WAL diagnostics extension that scans recent WAL files and attributes record counts, bytes, resource-manager types, and full-page images by database, schema, and relation.
- timeit
High-resolution benchmarking of PostgreSQL built-in functions and SQL expressions.
- pg_turret
Capture PostgreSQL logs and export structured events to HTTP, Kafka, or Sentry
- pg_sweep
Collect PostgreSQL database and table statistics as JSON for monitoring.
- alohadb_query_store
AlohaDB Query Store and Index Advisor
- diag_planner
incubator repositries
- dsef
DiffStats and ExplainFull: detailed SQL reports for third party help & support
- dventimi@pg_flight_recorder
Server-side flight recorder for PostgreSQL performance monitoring
- dventimi@pg_flight_recorder_control
Control functions for pg_flight_recorder
- dventimi@pg_flight_recorder_reporting
Reporting and analysis functions for pg_flight_recorder
- jessevent@supa_profile
Database table and column statistical profiler
- log_functions
Module to log functions
- logfmt
logfmt log collector
- memleak_analyzer
A PostgreSQL extension designed to analyze and localize logical memory leaks inside PostgreSQL backend sessions and background workers.
- mods_since_analyze
Estimation of number of changed tuples
- opm_core
Central module of the OPM suite
- pathprobe
PostgreSQL planner path probing extension for planner-aware SQL agents
- percona_pg_telemetry
Percona telemetry extension for PostgreSQL
- pg_log
displays log content from SQL
- pg_log_userqueries
Module to log user queries
- pg_netstat
pg netstat: network traffic monitor
- pg_otel_tracer
Rust based Postgres extension that adds query lifecycle events to OTEL traces.
- pg_procfs
displays /proc data from SQL
- pg_pulse
Active Session History (ASH) for PostgreSQL
- pg_query_stats
Lightweight shared-memory collector for per-query execution statistics.
- pg_stat_cluster_activity
track execution statistics in whole cluster scope
- pgao
Monitor and analyze PostgreSQL clusters at scale.
- pgscale
Background worker exposing PostgreSQL statistics views through a simple HTTP endpoint.
- pgx_warnings
PostgreSQL extension that watches and collects all warnings and errors from the PostgreSQL log file and sends notifications to the Telegram channel.
- planinstr
Planner hook for measuring PostgreSQL planning time, intended mainly for debugging.
- plannerlog
pgrx planner-hook example that logs each planned query.
- pr_grapher
Grapher process for OPM
- promscale
Deprecated tables, types, and functions supporting Promscale.
- querymem
pgEdge Labs: The querymem Postgres extension for estimating query memory usage
- streaming_lag
A custom background worker process to measure lag in units of time
- streamvis_udfs
A logging client and server for self-hosted data logging and visualization
- supa_agent_trace
A browser extension and agent for Supabase
- auto_explain_z
Compressed binary execution-plan logging with rotation and offline decoding.
- edb_otel
OpenTelemetry metrics and trace export for PostgreSQL and EDB extensions.
- edb_stat_monitor
Bucketed query execution statistics for PostgreSQL and EDB Postgres.
- edb_wait_states
Persistent sampling of backend wait events and related query context.
- gg_tables_tracking
Greengage relation-size change tracking for monitoring and maintenance.
- gg_wait_sampling
Greengage wait-event sampling with history and query attribution.
- pg_login_stat
Per-user and per-database successful and failed authentication counters.
- pg_logtap
Structured PostgreSQL log capture and delivery to Vector, HTTP, TCP, or files.
- pg_meminfo
Backend memory and process usage inspection from SQL.
- pg_plan_tree_dot
Graphviz DOT rendering of PostgreSQL execution-plan trees.
- pg_sslstatus
Historical SSL connection-status views for PostgreSQL releases before 9.5.
- pg_stat_conn
Cumulative connection, disconnection, and authentication-failure counts by database and role.
- pg_stat_errors
Cluster-wide error-class counters with a bounded sample of recent errors.
- pg_stat_insights
Query planning/execution statistics with replication, index, trend, and contention analysis.
- pg_trace
Query execution tracing with shared-memory buffers, persistence, and retention controls.
- pgsyswatch
Host process, CPU, memory, swap, network, and load statistics exposed through SQL.
- pgtrace
Event-driven query, lock, failure, and latency observability from PostgreSQL executor hooks.
- sql_profiler
Bounded query tracing and plan capture for performance diagnosis.
- table_change_tracker
Tracks last modification timestamps for selected tables in shared memory.
- vacuum_statistics
Shared-memory table, database, and index statistics for VACUUM activity.
- pg_lockwatch
Sample blocking chains and score lock-contention risk
- pg_shmemviz
Capture shared-memory snapshots for offline structural visualization
- drift_detect
Detect structural query-plan changes and record and notify plan drift
- pg_stat_query_plans
Track SQL statement and execution-plan statistics in shared memory
- pg_comment_stats
Aggregate resource usage by key-value annotations in SQL comments
- fspg_ec_advisor
SQL-based workload and resource scaling advisor for PostgreSQL 17
- dump_stat
Export optimizer statistics as SQL from the historical Postgres Pro 9.5 branch
- polar_stat_sql
Collect per-query kernel, plan-node, and wait statistics in PolarDB PostgreSQL 11
- pgslot
Replication slot WAL health, history and downstream diagnostics
- pglz_inspect
Sample column values to estimate PGLZ compression effectiveness
- otel_api
Shared OpenTelemetry trace-context and producer/exporter API
- otel_postgres_tracing
Query and utility-statement tracing through otel_api
- otel_demo_exporter
Development-only JSON Lines exporter for OpenTelemetry spans
- pg_stat_statement_context
Attribute query execution statistics to application tags from SQL comments or session context.
- pg_uprobe
Session tracing and dynamic probes for PostgreSQL internals
- pg_what_is_happening
Live execution metrics for individual query plan nodes
- catbench
Catalog-function benchmark definitions and result storage
- pulse_core
Shared-memory query execution statistics for PostgreSQL 18
- pg_otel
Experimental OpenTelemetry export of PostgreSQL query plans and execution spans
- rdb_catalog
RAODB SQL catalog, session, index and vacuum diagnostic views
- planscape
Headless module recording planner alternatives as JSON
- otel_plpgsql
OpenTelemetry spans for PL/pgSQL calls and statements via plugin hooks.
- mem_collector
Query memory feature collection and window-level workload snapshots
- pg_query_plan
Inspects a running backend query plan and live row counts
- pg_stat_index_queries
Track executed and planned query dependencies on indexes with per-index usage diagnostics.
- pg_index_deps
Estimate query dependencies and index-drop impact from captured PostgreSQL query plans.
- jsonb_stats
Mergeable JSONB statistics and exact numeric aggregation.
- pg_otel_exporter
OpenTelemetry export of query spans, server logs and PostgreSQL metrics.
- pg_io_audit
Cluster-wide storage-manager I/O counters and traces for a patched PostgreSQL kernel.
- pg_pmu
Hardware instruction and cycle counters for EXPLAIN ANALYZE.
- pg_query_progress
Cost-weighted live progress estimates for SELECT queries
- pg_learned_stats
AlohaDB: Experimental learned cardinality estimates for the planner
- pg_achievements
Track PostgreSQL activity as user achievements
- pg_stat_login
Cumulative authentication counters by user and database
- card_feedback
Inspect and reset a patched PostgreSQL cardinality-feedback store
- monotonic_chi2
Chi-square feature binning with optional monotonic event rates
- pgpi
Record query plans and test external cardinality estimates
- pg_enhanced_query_logging
Cluster-wide slow-query metrics for pt-query-digest
- pg_agenttrace
AlohaDB OTLP trace storage, agent span trees and usage rollups
- pg_argus
Schedule read-only SQL metric collection and OTLP export
- pg_plansight
Capture and analyze cumulative query plans and execution statistics