From: Julien Rouhaud <rjuju123@gmail.com>
To: Álvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Dmitry Dolgov <9erthalion6@gmail.com>
Cc: Sami Imseih <samimseih@gmail.com>
Cc: Kirill Reshke <reshkekirill@gmail.com>
Cc: Sergei Kornilov <sk@zsrv.org>
Cc: yasuo.honda@gmail.com, tgl@sss.pgh.pa.us, smithpb2250@gmail.com, vignesh21@gmail.com, michael@paquier.xyz, nathandbossart@gmail.com, stark.cfm@gmail.com, geidav.pg@gmail.com, marcos@f10.com.br, robertmhaas@gmail.com, david@pgmasters.net, pgsql-hackers@postgresql.org, pavel.trukhanov@gmail.com, Sutou Kouhei <kou@clear-code.com>
Subject: Re: pg_stat_statements and "IN" conditions
Date: Fri, 14 Feb 2025 17:57:01 +0800
Message-ID: <Z68Tba4x2N2FaER_@jrouhaud> (raw)
In-Reply-To: <202502140936.lni5gtrycnzf@alvherre.pgsql>
References: <Z68MtDCGVZi-Qqry@jrouhaud>
<202502140936.lni5gtrycnzf@alvherre.pgsql>
On Fri, Feb 14, 2025 at 10:36:48AM +0100, Álvaro Herrera wrote:
> On 2025-Feb-14, Julien Rouhaud wrote:
>
> > Since the merging is a yes/no option (I think there used to be some discussions
> > about having a threshold or some other fancy modes), maybe you could instead
> > differentiate the merged version by have 2 constants rather than this "..." or
> > something like that?
>
> Maybe the representation can be "($1 /*, ... */)" so that it's obvious
> that the array extends beyond the first element but is still
> syntactically valid.
Yeah that works too and it's probably way easier to implement.
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-hackers@postgresql.org
Cc: rjuju123@gmail.com, alvherre@alvh.no-ip.org, 9erthalion6@gmail.com, samimseih@gmail.com, reshkekirill@gmail.com, sk@zsrv.org, kou@clear-code.com
Subject: Re: pg_stat_statements and "IN" conditions
In-Reply-To: <Z68Tba4x2N2FaER_@jrouhaud>
* 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