Skip to content

Commit f1032d1

Browse files
committed
updated postgres_queries_slow_pre92.sql
1 parent 5c748c9 commit f1032d1

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

postgres_queries_slow_pre92.sql

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@
2222
-- Tested on PostgreSQL 8.4, 9.0, 9.1
2323

2424
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
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
3434
FROM
35-
pg_stat_activity
35+
pg_stat_activity
3636
WHERE
37-
-- can't use 'runtime' here
38-
now() - query_start > '30 seconds'::interval
37+
-- can't use 'runtime' here
38+
now() - query_start > '30 seconds'::interval
3939
ORDER BY
40-
runtime DESC;
40+
runtime DESC;

0 commit comments

Comments
 (0)