Add 'PostgreSQL/long_running.sql'
This commit is contained in:
parent
f3ba12a552
commit
4088f481da
7
PostgreSQL/long_running.sql
Normal file
7
PostgreSQL/long_running.sql
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
SELECT
|
||||||
|
pid,
|
||||||
|
now() - pg_stat_activity.query_start AS duration,
|
||||||
|
query,
|
||||||
|
state
|
||||||
|
FROM pg_stat_activity
|
||||||
|
WHERE (now() - pg_stat_activity.query_start) > interval '5 minutes';
|
||||||
Loading…
Reference in New Issue
Block a user