Ad-hoc monitoring
In some cases, we need to observe some values in Postgres or the environment it's running on (OS, FS, etc.), and:
In some cases, we need to observe some values in Postgres or the environment it's running on (OS, FS, etc.), and:
In Day 12: How to find query examples for problematic pg_stat_statements records it was mentioned that query normalization can be done using lib_pgquery.
In my tool postgres_dba, the setup instructions have this: