Repository navigation
postgres_dba 2026.11.1
Released November 20, 2026.
34 reports | Tested on PostgreSQL 13–19 | Works with pg_monitor role
PostgreSQL 19
- Added PostgreSQL 19 to the compatibility matrix.
- Verified all non-interactive reports with a non-superuser
pg_monitormember
holding the minimal database and object grants the reports require. - Verified extension-backed reports with
amcheck,intarray,
pg_buffercache,pg_stat_statements, andpgstattupleinstalled.
CI Reliability
- Made SQL errors fail the test job with
ON_ERROR_STOP. - Enabled
pg_stat_statementsinshared_preload_libraries, so its reports
execute instead of returning a masked error. - Added scripted functional tests for the interactive create-role and
alter-role reports, including successful password authentication, password
rotation, and rejection of the previous password. - Added assertions that every job is running its expected PostgreSQL version.
- Restricted the test database to loopback and added unconditional cleanup.
Password tracking safety
- Refuse role password generation with
pg_stat_statements.track=all, which
otherwise exposes live passwords to monitoring roles through nested statements.
Interactive input and role reports
Behavior change: r2 previously treated 0 as “leave unchanged.” It now
revokes the selected attribute. Use Enter to preserve attributes while rotating
a password; explicit 0 for LOGIN can disable a service account.
- Quote prompted values as SQL literals, including names containing apostrophes.
- Handle quoted invalid menu choices without SQL errors.
- Reject invalid boolean answers instead of interpreting typos as superuser requests.
- Generate 32-character lowercase hexadecimal passwords using the built-in
cryptographic UUID generator (122 random bits, requires PG13+). Policies
requiring uppercase or special characters may reject this format. - Make explicit negative alter-role answers apply NOSUPERUSER and NOLOGIN;
Enter preserves existing attributes during password rotation. - Display rotated passwords without requiring DEBUG, and stop printing password-bearing SQL.
- Clarify that server/audit logging and terminal capture can still expose credentials.
Versioning
Starting with this release, postgres_dba uses calendar versions in
YYYY.M.patch format.
Verification and compatibility
- Automated CI passed on Postgres 13.23, 14.25, 15.20, 16.16, 17.12, 18.7, and 19.0, using matching psql clients.
- Additional manual checks used each server's matching native client: populated read-only reports, missing optional extensions, menu recovery, and real lock waits.
- Role regression tests cover quoted names, strict boolean inputs, delegated CREATEROLE administration, role flags, password authentication, and rejection of old passwords.
- Postgres 13 and 14 remain compatibility-tested but are upstream end-of-life.
- Six extension-dependent reports correctly report missing dependencies when those extensions are absent; install the documented optional extensions to use them.
Changes: #97 and #99. Reviewed with Tanya301/samorev, with source-review reports posted before merge.
Security follow-up review — all four blocking findings resolved.