diff --git a/collector/pg_stat_statements.go b/collector/pg_stat_statements.go index ed5705ea1..92c6b509b 100644 --- a/collector/pg_stat_statements.go +++ b/collector/pg_stat_statements.go @@ -75,7 +75,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_time / 1000.0 as seconds_total, pg_stat_statements.rows as rows_total,