pg_stat_monitor
1. Overview
pg_stat_monitor is a query performance monitoring extension for PostgreSQL developed by Percona. It collects statistics in a single view, including query text, timing, and wait events. It is fully compatible with IvorySQL.
2. Installation
3. Create Extension and Verify
Connect to the database with psql and execute the following commands:
ivorysql=# CREATE EXTENSION pg_stat_monitor;
CREATE EXTENSION
ivorysql=# SELECT * FROM pg_available_extensions WHERE name = 'pg_stat_monitor';
name | default_version | installed_version | comment
-----------------+-----------------+-------------------+--------------------
pg_stat_monitor | 2.1 | 2.1 | pg_stat_monitor