From 35cb8a809478caf9a463d29072a8cfa9b11b0207 Mon Sep 17 00:00:00 2001 From: "nikolay.deryugin" Date: Fri, 29 Sep 2023 17:29:13 +0300 Subject: [PATCH] add left in new query 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 92c6b509b..716dc5934 100644 --- a/collector/pg_stat_statements.go +++ b/collector/pg_stat_statements.go @@ -97,7 +97,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_exec_time / 1000.0 as seconds_total, pg_stat_statements.rows as rows_total,