Skip to content

Commit 29bc603

Browse files
fireflgSuperQ
andauthored
Add limit
Co-authored-by: Ben Kochie <[email protected]> Signed-off-by: fireflg <[email protected]>
1 parent 747003b commit 29bc603

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
@@ -75,7 +75,7 @@ var (
7575
pg_get_userbyid(userid) as user,
7676
pg_database.datname,
7777
pg_stat_statements.queryid,
78-
pg_stat_statements.query as query,
78+
LEFT(pg_stat_statements.query, %d) as query,
7979
pg_stat_statements.calls as calls_total,
8080
pg_stat_statements.total_time / 1000.0 as seconds_total,
8181
pg_stat_statements.rows as rows_total,

0 commit comments

Comments
 (0)