pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: v.makarov@postgrespro.ru
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: [PATCH] Increase the maximum value track_activity_query_size
Date: Thu, 19 Dec 2019 10:41:10 -0500
Message-ID: <20191219154110.GL30116@momjian.us> (raw)
In-Reply-To: <7b5ecc5a9991045e2f13c84e3047541d@postgrespro.ru>
References: <7b5ecc5a9991045e2f13c84e3047541d@postgrespro.ru>


Good question.  I am in favor of allowing a larger value if no one
objects.  I don't think adding the min/max is helpful.

---------------------------------------------------------------------------

On Tue, Nov 26, 2019 at 05:59:25PM +0300, v.makarov@postgrespro.ru wrote:
> 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

> diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
> index 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.sample
> index 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'
>  
>  


-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +





view thread (29+ messages)  latest in thread

Message-ID: <20191219154110.GL30116@momjian.us>
Permalink:  ../20191219154110.GL30116@momjian.us/
Also on:    postgresql.org/message-id/20191219154110.GL30116@momjian.us

 · 

reply

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: bruce@momjian.us, v.makarov@postgrespro.ru
  Subject: Re: [PATCH] Increase the maximum value track_activity_query_size
  In-Reply-To: <20191219154110.GL30116@momjian.us>
  References: <7b5ecc5a9991045e2f13c84e3047541d@postgrespro.ru> <20191219154110.GL30116@momjian.us>

* 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