pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: baron@xaprb.com
To: pgsql-docs@postgresql.org
Subject: pg_stat_statements max size clarification
Date: Sun, 16 Jul 2017 00:31:47 +0000
Message-ID: <20170716003147.9230.86974@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.6/static/pgstatstatements.html
Description:

From https://www.postgresql.org/docs/current/static/pgstatstatements.html

pg_stat_statements.max (integer)
pg_stat_statements.max is the maximum number of statements tracked by the
module (i.e., the maximum number of rows in the pg_stat_statements view). If
more distinct statements than that are observed, information about the
least-executed statements is discarded. The default value is 5000. This
parameter can only be set at server start.

I wonder if &quot;least-executed&quot; is correct. I&#39;m not an expert and haven&#39;t
convinced myself of this by examining the code, but I think after N distinct
queryid&#39;s have been seen, then any additional ones are ignored. But that may
not be &quot;least-executed&quot; at all. It&#39;s &quot;most-recent&quot; instead. I think we need
a new phrase here.

-- 
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs


view thread (4+ messages)  latest in thread

Message-ID: <20170716003147.9230.86974@wrigleys.postgresql.org>
Permalink:  ../20170716003147.9230.86974@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20170716003147.9230.86974@wrigleys.postgresql.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: baron@xaprb.com
  Subject: Re: pg_stat_statements max size clarification
  In-Reply-To: <20170716003147.9230.86974@wrigleys.postgresql.org>

* 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