Database Administration — Sat Jan 31

← Home | ← database-admin

DBA Toolkit Postgresdb Active Sessions

Sat Jan 31
#Postgresdb #dba #monitoring #troubleshooting #sessions #blocking #waits #locks #backups #always-on #performance #tool-kit

What This Query Does (And Why Every DBA Should Know It)

When someone says:

“The database is slow.”

This is one of the first queries you run.

It answers a simple but critical question:

Who is doing what right now?

This query pulls live request information from SQL Server’s Dynamic Management Views and stitches it into a single operational snapshot.

This is not historical data.
This is not yesterday’s trend.

This is right now.

Active Requests Script

PostgresSessionsActiveRequests.sql
    Loading…
  

Gareth Winterman