Skip to content

Commit 716ac23

Browse files
authored
Fixup new pg_stats_statements query (#876)
Fix all renames of `total_time` to `total_exec_time`. Fixes: #502 Signed-off-by: SuperQ <[email protected]>
1 parent f9277b0 commit 716ac23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

collector/pg_stat_statements.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ var (
105105
JOIN pg_database
106106
ON pg_database.oid = pg_stat_statements.dbid
107107
WHERE
108-
total_time > (
108+
total_exec_time > (
109109
SELECT percentile_cont(0.1)
110-
WITHIN GROUP (ORDER BY total_time)
110+
WITHIN GROUP (ORDER BY total_exec_time)
111111
FROM pg_stat_statements
112112
)
113113
ORDER BY seconds_total DESC

0 commit comments

Comments
 (0)