From 6cbfd310a04999a7ffaab0c54191945d35d09562 Mon Sep 17 00:00:00 2001 From: fireflg <96112649+fireflg@users.noreply.github.com> Date: Mon, 25 Sep 2023 15:20:17 +0300 Subject: [PATCH] Add limit Co-authored-by: Ben Kochie Signed-off-by: fireflg <96112649+fireflg@users.noreply.github.com> Signed-off-by: nikolay.deryugin --- collector/pg_stat_statements.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,