pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: doc: Mention de-normalization of deallocated entries in pg_stat_
Date: Wed, 01 Mar 2023 01:56:19 +0000
Message-ID: <E1pXBha-001Gil-LQ@gemulon.postgresql.org> (raw)

doc: Mention de-normalization of deallocated entries in pg_stat_statements

The current implementation of query normalization in pg_stat_statements
is optimistic.  If an entry is deallocated between the post-analyze hook
and the planner and/or execution hook, it can be possible to find query
strings with literal constant values (like "SELECT 1, 2") rather than
their normalized flavor (like "SELECT $1, $2").

This commit adds in the documentation a paragraph about this limitation,
and that this risk can be reduced by increasing pg_stat_statements.max,
particularly if pg_stat_statements_info reports a high number of
deallocations.

Author: Sami Imseih
Discussion: https://postgr.es/m/9CFF3512-355B-4676-8CCC-6CF622F4DC1A@amazon.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6da67a0c111a29e876b7172d081c7d152d23ea3d

Modified Files
--------------
doc/src/sgml/pgstatstatements.sgml | 10 ++++++++++
1 file changed, 10 insertions(+)



Message-ID: <E1pXBha-001Gil-LQ@gemulon.postgresql.org>
Permalink:  ../E1pXBha-001Gil-LQ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pXBha-001Gil-LQ@gemulon.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 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-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: doc: Mention de-normalization of deallocated entries in pg_stat_
  In-Reply-To: <E1pXBha-001Gil-LQ@gemulon.postgresql.org>
  References: <E1pXBha-001Gil-LQ@gemulon.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