Skip to content

Commit

Permalink
add left in new query
Browse files Browse the repository at this point in the history
Signed-off-by: nikolay.deryugin <[email protected]>
  • Loading branch information
nikolay.deryugin committed Sep 29, 2023
1 parent ddc2040 commit 35cb8a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/pg_stat_statements.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ var (
pg_get_userbyid(userid) as user,
pg_database.datname,
pg_stat_statements.queryid,
pg_stat_statements.query as query,
LEFT(pg_stat_statements.query, %d) as query,
pg_stat_statements.calls as calls_total,
pg_stat_statements.total_exec_time / 1000.0 as seconds_total,
pg_stat_statements.rows as rows_total,
Expand Down

0 comments on commit 35cb8a8

Please sign in to comment.