Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions collector/pg_stat_statements.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ var (
JOIN pg_database
ON pg_database.oid = pg_stat_statements.dbid
WHERE
total_time > (
total_exec_time > (
SELECT percentile_cont(0.1)
WITHIN GROUP (ORDER BY total_time)
WITHIN GROUP (ORDER BY total_exec_time)
FROM pg_stat_statements
)
ORDER BY seconds_total DESC
Expand Down