How to See Active Sessions and Running Queries in PostgreSQL Identify PostgreSQL client sessions that are running, waiting, or idle in transaction, and learn what to investigate next.