Scenario
A query is pegging CPU or holding a lock. You need to cancel it — gently first, forcefully if needed. Diagnose it Find the offending backend: SELECT pid, now()-query_start AS runtime, state, left(query,80) FROM pg_stat_activity WHERE…
Investigation Path
Career Impact
This scenario builds production judgment and operational confidence under pressure.