You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's good to have query to see active and idle in transaction query
I propose to make "a2" with next query:
SELECT pid, client_addr, now() - query_start as "runtime", usename, datname, state, query
FROM pg_stat_activity
WHERE now() - query_start > '30 seconds'::interval and state != 'idle'
ORDER BY runtime DESC;
The text was updated successfully, but these errors were encountered:
oleg9301
changed the title
Feature request active and indle in transaction query
Feature request active and idle in transaction query
Feb 7, 2021
It's good to have query to see active and idle in transaction query
I propose to make "a2" with next query:
SELECT pid, client_addr, now() - query_start as "runtime", usename, datname, state, query
FROM pg_stat_activity
WHERE now() - query_start > '30 seconds'::interval and state != 'idle'
ORDER BY runtime DESC;
The text was updated successfully, but these errors were encountered: