Skip to content

Commit

Permalink
fix report query (G hothkey)
Browse files Browse the repository at this point in the history
  • Loading branch information
lesovsky committed Jan 23, 2020
1 parent be1d2ad commit 7bd2d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion top/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const (
FROM pg_stat_statements_normalized p
JOIN pg_roles a ON a.oid=p.userid
JOIN pg_database d ON d.oid=p.dbid
WHERE TRUE AND left(md5(d.datname || a.rolname || left(p.query, 128)), 10) = $1
WHERE TRUE AND left(md5(p.dbid::text || p.userid || p.queryid), 10) = $1
GROUP BY d.datname, a.rolname, query_normalized
),
totals_readable AS (
Expand Down

0 comments on commit 7bd2d79

Please sign in to comment.