Show running queries
SafeShow running queries
SHOW PROCESSLIST;
See running queries and locks to find what is slow or stuck.
Examples
SELECT * FROM pg_stat_activity WHERE state='active';Active queries in PostgreSQL
Syntax
SHOW FULL PROCESSLIST; (PG) SELECT * FROM pg_stat_activity;
Before you run it
Read-only.
Used when you see
Related commands
- Kill query / sessionKill a query/session
- Connect (psql/mysql/sqlcmd)Connect to a DB
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store