pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: legrand legrand <legrand_legrand@hotmail.com>
To: pgsql-general@postgresql.org
Subject: Re: survey: pg_stat_statements total_time and entry deallocation
Date: Fri, 5 Oct 2018 15:33:16 -0700 (MST)
Message-ID: <1538778796328-0.post@n3.nabble.com> (raw)
In-Reply-To: <e5e84238-522f-d6c0-61ed-e93f91475092@amazon.com>
References: <0e8b7eb4-1621-2c53-6144-af095e64b787@amazon.com>
	<VI1PR0502MB364624E14E93BE0909B6ED02C7040@VI1PR0502MB3646.eurprd05.prod.outlook.com>
	<e5e84238-522f-d6c0-61ed-e93f91475092@amazon.com>

Hello,

What about adding a log message for each entry_dealloc() execution? 
it could be usefull to start thinking increasing pg_stat_statements.max.

is there any rule regarding the acceptable max value ? I'm playing in test
with a 20 000 value without any problem, could it extendend to 100 000 ?

In a system with pressure on numbers of pgss lines, and regular
entry_dealloc() executions, low frequency  entries are evicted firsts, and
this should still be the same for new small queries with usage based on
total_time. 

Maybe there is a third way, that would be to evict queries based on the
"oldest modification time" ... 
This would garantee that latest queries would be kept long enough to be
collected by aggregation tools.

Regards
PAscal



--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html




view thread (5+ messages)  latest in thread

Message-ID: <1538778796328-0.post@n3.nabble.com>
Permalink:  ../1538778796328-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1538778796328-0.post@n3.nabble.com

 · 

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-general@postgresql.org
  Cc: legrand_legrand@hotmail.com
  Subject: Re: survey: pg_stat_statements total_time and entry deallocation
  In-Reply-To: <1538778796328-0.post@n3.nabble.com>
  References: <0e8b7eb4-1621-2c53-6144-af095e64b787@amazon.com> <VI1PR0502MB364624E14E93BE0909B6ED02C7040@VI1PR0502MB3646.eurprd05.prod.outlook.com> <e5e84238-522f-d6c0-61ed-e93f91475092@amazon.com> <1538778796328-0.post@n3.nabble.com>

* 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