Skip to content

Commit 35cb8a8

Browse files
author
nikolay.deryugin
committed
add left in new query
Signed-off-by: nikolay.deryugin <[email protected]>
1 parent ddc2040 commit 35cb8a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/pg_stat_statements.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ var (
9797
pg_get_userbyid(userid) as user,
9898
pg_database.datname,
9999
pg_stat_statements.queryid,
100-
pg_stat_statements.query as query,
100+
LEFT(pg_stat_statements.query, %d) as query,
101101
pg_stat_statements.calls as calls_total,
102102
pg_stat_statements.total_exec_time / 1000.0 as seconds_total,
103103
pg_stat_statements.rows as rows_total,

0 commit comments

Comments
 (0)