The missing set of useful tools for Postgres DBAs and all engineers
l1 – Locks: analysis of "locking trees"
. The report shows "the forest of trees" of blocked and blocking sessions with the corresponding queries. It helps to understand, which session is being blocked by which one, and what is "the depth" of the lock chain.
pg_cancel_backend(pid)
or pg_terminate_backend(pid)
to get rid of blockers and release the locks.v2 – Vacuum: VACUUM progress and autovacuum queue
. In this report, you can not only see the progress of vacuuming processes, but also see the "queue" of tables that are already "waiting" to be auto-vacuumed
autovacuum_***
) and finds which tables modified significantly enough to be already auto-vacuumed.pg_stat_activity
.vt
means vacuum threshold
(autovacuum_vacuum_threshold
), vsf
means vacuum scale factor
(autovacuum_vacuum_scale_factor
). Effective values are provided for each table (values that are derived from the analysis of both global and individual settings). Read more in the official documentation: https://www.postgresql.org/docs/current/runtime-config-autovacuum.html.psql:/root/postgres_dba/sql/p1_alignment_padding.sql:197: ERROR: recursive query "analyze_alignment" column 13 has collation "default" in non-recursive term but collation "C" overall
LINE 68: null::text as prev_column_name,
^
HINT: Use the COLLATE clause to set the collation of the non-recursive term.
Discussion in pgsql-bugs: https://www.postgresql.org/message-id/flat/28491.1560519572%40sss.pgh.pa.us#79d963145876231f3ec7327074cbf0c3
tbd
i* reports (index analysis) reworked.
New reports:
./sql
directory to use them manually in Postgres versions 9.6 and older.CONCURRENTLY
for CREATE INDEX
and DROP INDEX
statements.New reports:
Modifications:
Fixes:
This is the second "alpha" release. It includes UX improvements:
:dba
shortcut instructions in README: faster way to launch PostgresDBA from anywhere.In this version you can see: