Scenario
The pg_wal directory keeps growing and threatens to fill the disk — a classic cause of an outage. Find why WAL is being retained. Diagnose it Check what holds WAL back: SELECT slot_name, active, pg_size_pretty(pg_wal_lsn_diff(pg_current_wal_lsn(), restart_lsn))…
Investigation Path
Career Impact
This scenario builds production judgment and operational confidence under pressure.