Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ddc2040

Browse files
fireflgSuperQ
authored and
nikolay.deryugin
committedSep 29, 2023
Add limit
Co-authored-by: Ben Kochie <[email protected]> Signed-off-by: fireflg <[email protected]> Signed-off-by: nikolay.deryugin <[email protected]>
1 parent d6e4925 commit ddc2040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎collector/pg_stat_statements.go

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.