=# SELECT query, waiting, rsgname, rsgqueueduration FROM pg_stat_activity;