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:
Monitor and manage autovacuum queue, understand worker activity and vacuum progress
Learn how to troubleshoot streaming replication lag
There are two big branches of query optimization: