pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: bokanist@gmail.com
Subject: BUG #17665: pg_stat_statements useless with variable number of parameters in IN close
Date: Thu, 27 Oct 2022 10:42:52 +0000
Message-ID: <17665-d10ccd445cd66f6c@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17665
Logged by:          Sebastien Caunes
Email address:      bokanist@gmail.com
PostgreSQL version: 15.0
Operating system:   all
Description:        

Not really a bug, but this issue makes pg_stat_statements almost useless.

One of my customer have queries with variables number of parameters in IN
closes

SELECT * FROM my_table WHERE id IN ($1, $2, $3, $4, ...) -- number of
parameters varies from one to thousands

And some queries have more than one IN close. This bloat the
pg_stat_statement table with all different version of the same query.

I think the parameters in IN close should be merged as one.
By the way, where should I submit this kind of improvement request ?



view thread (2+ messages)  latest in thread

Message-ID: <17665-d10ccd445cd66f6c@postgresql.org>
Permalink:  ../17665-d10ccd445cd66f6c@postgresql.org/
Also on:    postgresql.org/message-id/17665-d10ccd445cd66f6c@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-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, bokanist@gmail.com
  Subject: Re: BUG #17665: pg_stat_statements useless with variable number of parameters in IN close
  In-Reply-To: <17665-d10ccd445cd66f6c@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