Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request active and idle in transaction query #49

Open
oleg9301 opened this issue Feb 7, 2021 · 0 comments
Open

Feature request active and idle in transaction query #49

oleg9301 opened this issue Feb 7, 2021 · 0 comments

Comments

@oleg9301
Copy link

oleg9301 commented 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;

@oleg9301 oleg9301 changed the title Feature request active and indle in transaction query Feature request active and idle in transaction query Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant