PG - Stat - Monitor A Feature-Rich and Enhanced Version of PG - Stat - Statements
PG - Stat - Monitor A Feature-Rich and Enhanced Version of PG - Stat - Statements
● About
○ Percona
○ Who Am I?
● What is the problem?
● What is pg_stat_monitor?
● How does it differ from pg_stat_statements?
● PMM? QAN? PGSM?
● How do I start, report a bug or contribute?
Offerings
Software (PostgreSQL, MySQL, MongoDB)
Consulting
Managed Services
Support 24x7
Training
@ImTheKai https://www.linkedin.com/in/kai-wagner-b1b661152/
Bu
FROM pg_stat_monitor;
cke
bucket | bucket_start_time | query | calls Aggregates
tT
im
Buc
et 4
e
-------+---------------------+---------------------------
ket 1
Buck
0 | 2023-06-21 09:30:00 | INSERT INTO pgbench_tell...| 2
-----------------+-------------+-------------- -+-----------------------------+-------
query_plan
---------------------------------------------------------------------------+
Limit |
-> Result |
-> Sort |
SELECT * FROM histogram(0, 'F44CD1B4B33A47AF') AS a(range TEXT, freq INT, bar TEXT);
range | freq | bar
--------------------+------+--------------------------------
(0 - 3)} | 2 | ■■■■■■■■■■■■
(3 - 10)} | 0 |
(10 - 31)} | 1 | ■■■■■■■■■■■■■■■■■■■■
(31 - 100)} | 0 |
(100 - 316)} | 0 |
(316 - 1000)} | 0 |
(1000 - 3162)} | 0 |
(3162 - 10000)} | 0 |
(10000 - 31622)} | 0 |
(31622 - 100000)} | 0 |
GitHub - https://github.com/percona/pg_stat_monitor
● If you found a bug or have a feature request in pg_stat_monitor, please submit the
report to https://jira.percona.com/projects/PG/issues
percona.com
THANK YOU!
percona.com