Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pOhTg-0001gA-IY for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Feb 2023 16:02:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pOhTd-00070E-Mq for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Feb 2023 16:02:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pOhTd-000704-D3 for pgsql-hackers@lists.postgresql.org; Sun, 05 Feb 2023 16:02:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pOhTb-0003I9-02 for pgsql-hackers@postgresql.org; Sun, 05 Feb 2023 16:02:48 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 315G2WCL2420106; Sun, 5 Feb 2023 11:02:32 -0500 From: Tom Lane To: Dmitry Dolgov <9erthalion6@gmail.com> cc: Michael Paquier , Alvaro Herrera , Marcos Pegoraro , vignesh C , Sergei Kornilov , Robert Haas , Zhihong Yu , David Steele , PostgreSQL-development , Greg Stark , Pavel Trukhanov Subject: Re: pg_stat_statements and "IN" conditions In-reply-to: <20230205113346.gmbf5ycnukuhnmqa@erthalion.local> References: <20230129133219.tpuzqbyqw3ojztbd@erthalion.local> <20230202140727.g7tw7qjo43g54wcb@alvherre.pgsql> <20230202150554.dwxhvw23epcskppb@ddolgov.remote.csb> <20230204170841.xfgxoo7ymwbvu7yx@erthalion.local> <20230205113346.gmbf5ycnukuhnmqa@erthalion.local> Comments: In-reply-to Dmitry Dolgov <9erthalion6@gmail.com> message dated "Sun, 05 Feb 2023 12:33:46 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2420104.1675612952.1@sss.pgh.pa.us> Date: Sun, 05 Feb 2023 11:02:32 -0500 Message-ID: <2420105.1675612952@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Dmitry Dolgov <9erthalion6@gmail.com> writes: > I'm thinking about this in the following way: the core jumbling logic is > responsible for deriving locations based on the input expressions; in > the case of merging we produce less locations; pgss have to represent > the result only using locations and has to be able to differentiate > simple locations and locations after merging. Uh ... why? ISTM you're just going to elide all inside the IN, so why do you need more than a start and stop position? regards, tom lane