From: v.makarov@postgrespro.ru
To: pgsql-hackers@lists.postgresql.org
Subject: [PATCH] Increase the maximum value track_activity_query_size
Date: Tue, 26 Nov 2019 17:59:25 +0300
Message-ID: <7b5ecc5a9991045e2f13c84e3047541d@postgrespro.ru> (raw)
Hi Hackers,
Some ORMs may generate queries larger than the maximum possible value of
track_activity_query_size (100 kB).
Is there any reasons to limit the maximum value of
track_activity_query_size to such small value?
Increasing the maximum value to 1 MB will help partially solve this
problem.
Also in the file postgresql.conf.sample pointed maximum value
track_activity_query_size (before that it was not specified).
--
Vyacheslav Makarov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
Attachments:track_activity.diff (text/x-diff, 922B) downloaddiff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.cindex ba4edde71a..0e64dc1dbb 100644--- a/src/backend/utils/misc/guc.c+++ b/src/backend/utils/misc/guc.c@@ -3200,7 +3200,7 @@ static struct config_int ConfigureNamesInt[] =
GUC_UNIT_BYTE
},
&pgstat_track_activity_query_size,
- 1024, 100, 102400,+ 1024, 100, 1048576,
NULL, NULL, NULL
},
diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sampleindex 46a06ffacd..55d3bfbfd0 100644--- a/src/backend/utils/misc/postgresql.conf.sample+++ b/src/backend/utils/misc/postgresql.conf.sample@@ -569,7 +569,7 @@
#track_counts = on
#track_io_timing = off
#track_functions = none # none, pl, all
-#track_activity_query_size = 1024 # (change requires restart)+#track_activity_query_size = 1024 # range 100B - 1MB (change requires restart)
#stats_temp_directory = 'pg_stat_tmp'
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: v.makarov@postgrespro.ru
Subject: Re: [PATCH] Increase the maximum value track_activity_query_size
In-Reply-To: <7b5ecc5a9991045e2f13c84e3047541d@postgrespro.ru>
References: <7b5ecc5a9991045e2f13c84e3047541d@postgrespro.ru>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox