Skip to content

Latest commit

 

History

History
124 lines (87 loc) · 5.66 KB

RELEASE_NOTES.md

File metadata and controls

124 lines (87 loc) · 5.66 KB

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_monitor member holding the minimal database and object grants the reports require.
  • Verified extension-backed reports with amcheck, intarray, pg_buffercache, pg_stat_statements, and pgstattuple installed.

CI Reliability

  • Made SQL errors fail the test job with ON_ERROR_STOP.
  • Enabled pg_stat_statements in shared_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.


postgres_dba 7.0

34 reports | Tested on PostgreSQL 13–18 | Works with pg_monitor role

New Reports

Corruption checks (c1–c4) — powered by amcheck

Four levels of integrity checking, from quick production-safe to full paranoia:

Report Lock What it checks When to use
c1 AccessShareLock B-tree pages, GIN indexes (PG18+) Production — fast, safe, non-blocking
c2 AccessShareLock c1 + heap/TOAST integrity (PG14+) Production — safe but reads all data
c3 ShareLock B-tree parent-child ordering, sibling pointers, rootdescend, checkunique (PG14+) Clones — detects glibc/collation corruption
c4 ShareLock Everything in c3 + heapallindexed + verify_heapam with full TOAST Clones only — proves every heap tuple is indexed, slow

All four check system catalog indexes (pg_catalog, pg_toast).

Requires CREATE EXTENSION amcheck. Graceful handling when extension is missing or user lacks privileges. Version-conditional function signatures for PG11–18. GIN support via gin_index_check() on PG18+.

m1 — Buffer cache contents

What's in shared_buffers: cached size vs total, % of cache per object, dirty buffer counts. Includes system catalogs. Requires pg_buffercache.

s3 — Workload profile by query type

Groups pg_stat_statements by first SQL keyword (SELECT, INSERT, UPDATE, DELETE, etc.). Handles leading block comments (/* ... */) and line comments (-- ...).

t2 — Objects with custom storage parameters

Tables, indexes, and materialized views with non-default reloptions. Flags: disabled autovacuum on large tables, low fillfactor, aggressive vacuum scale factors.

Report 0 — WAL and replication slot info

Node information now includes WAL position, file count, total WAL size, and replication slot status.

Report Renames

Old New Reason
b6 m1 Buffer cache → m (memory) category
c1 p1 Index creation progress → p (progress) category
p1 x1 Alignment padding → x (experimental) category

v1/v2 descriptions clarified: v1 is "running operations (detailed progress)", v2 is "autovacuum queue and pending tables".

Bug Fixes

  • s1, s2: Fixed blk_read_time does not exist on PG17+ (renamed to shared_blk_read_time in pg_stat_statements 1.11)
  • s3: Fixed function round(double precision, integer) does not exist — added ::numeric casts
  • i3: Fixed operator is not unique error when intarray extension is installed
  • m1: Include system catalogs in buffer cache report (was showing empty on small databases)
  • i2: Removed dead code (redundant_indexes_grouped CTE)
  • s1: Removed duplicate sum(calls) in pre-PG13 code path

Terminology

Master → Primary across all reports and CI.

Other Improvements

  • Modernized README with badges, individual credits, optional extensions table
  • Fixed Quick Start psqlrc escaping
  • Fixed menu spacing for new reports
  • alt_shits → alt_shifts (p1)
  • Various typo fixes across b1, b2, b3, b4, l1, s2, v2

CI

  • All 34 reports tested on PG 13, 14, 15, 16, 17, 18
  • Added amcheck, intarray, pg_buffercache extensions to test matrix
  • Added i3 regression test with intarray installed
  • Added PAGER=cat to prevent pager hangs