We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c748c9 commit f1032d1Copy full SHA for f1032d1
postgres_queries_slow_pre92.sql
@@ -22,19 +22,19 @@
22
-- Tested on PostgreSQL 8.4, 9.0, 9.1
23
24
SELECT
25
- now() - query_start as "runtime",
26
- usename,
27
- datname,
28
- -- not available on PostgreSQL < 9.6
29
- -- wait_event,
30
- waiting,
31
- -- not available on PostgreSQL < 9.2
32
- --state,
33
- current_query
+ now() - query_start as "runtime",
+ usename,
+ datname,
+ -- not available on PostgreSQL < 9.6
+ -- wait_event,
+ waiting,
+ -- not available on PostgreSQL < 9.2
+ --state,
+ current_query
34
FROM
35
- pg_stat_activity
+ pg_stat_activity
36
WHERE
37
- -- can't use 'runtime' here
38
- now() - query_start > '30 seconds'::interval
+ -- can't use 'runtime' here
+ now() - query_start > '30 seconds'::interval
39
ORDER BY
40
- runtime DESC;
+ runtime DESC;
0 commit comments