Skip to content

Commit

Permalink
Fixup new pg_stats_statements query
Browse files Browse the repository at this point in the history
Fix all renames of `total_time` to `total_exec_time`.

Fixes: #502

Signed-off-by: SuperQ <superq@gmail.com>
  • Loading branch information
SuperQ committed Jul 25, 2023
1 parent f9277b0 commit 18315c1
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 18315c1

Please sign in to comment.