Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tis83-003E88-B5 for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Feb 2025 09:36:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tis80-006RCq-6t for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Feb 2025 09:36:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tis7z-006RCi-DX for pgsql-hackers@lists.postgresql.org; Fri, 14 Feb 2025 09:36:56 +0000 Received: from fhigh-b1-smtp.messagingengine.com ([202.12.124.152]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tis7y-000k08-0F for pgsql-hackers@postgresql.org; Fri, 14 Feb 2025 09:36:55 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfhigh.stl.internal (Postfix) with ESMTP id 6C51E254013A; Fri, 14 Feb 2025 04:36:52 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Fri, 14 Feb 2025 04:36:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1739525812; x=1739612212; bh=o vOYPOOtZk6E+WpEy4n1WsWXE1O4wZhknMVBXrRNS5c=; b=cayJAzR1IK9KG6+Vh zYDOxqnKwbSggY4Hy6QnqcW7DkzRvtNTa3SMMrbDVvn7Yyg+N4SA3nPuAf7ycDux WlqP5ei/Nx8pLfXCswPlKdeQDY6PspGVtyWYz7RTnzuLW+5dpF/PfM71phBb+n8V sBgScrmRIfEeT6xxVsZOngEegjBXzwPboxtNBIMVUm4Kh7RYexpcLRc1Lut51t5E ub14sl6YylV1zsomnfoSIpcpSKcb7pVF8LDFx/kkapKTgKQHvF8cEuBBD1urOrjq wyoHaSz2BpgrcUq53BZAD1RtGETyAbLDQhkDn/2vgoJdRM/Q6iNJJEV4at4F80NW el3pg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdegleefudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdej necuhfhrohhmpemllhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvh hhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvheeuffehgfeukeeufeeh hefghfeugfefudekjeevudffgeffkeegffffveegheenucffohhmrghinhepvghnthgvrh hprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspg hrtghpthhtohepudelpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehkohhusegt lhgvrghrqdgtohguvgdrtghomhdprhgtphhtthhopehmrghrtghoshesfhdutddrtghomh drsghrpdhrtghpthhtoheplegvrhhthhgrlhhiohhnieesghhmrghilhdrtghomhdprhgt phhtthhopehgvghiuggrvhdrphhgsehgmhgrihhlrdgtohhmpdhrtghpthhtohepnhgrth hhrghnuggsohhsshgrrhhtsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphgrvhgvlhdr thhruhhkhhgrnhhovhesghhmrghilhdrtghomhdprhgtphhtthhopehrvghshhhkvghkih hrihhllhesghhmrghilhdrtghomhdprhgtphhtthhopehrjhhujhhuuddvfeesghhmrghi lhdrtghomhdprhgtphhtthhopehrohgsvghrthhmhhgrrghssehgmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 14 Feb 2025 04:36:49 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1739525808; bh=yKPbCgElHPIRbPPwM6qPiKVhIFSL1DaDGcxAO4DTr1g=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=LrTeEzeNd6FllmE7MqDKss4fBUN1dpTg0Xkg/ZyHeR06eAAoqmzS0f156cRM8idGP 09UQByUIm8LGzPp/f3CyN7FTT89GdNiigTR4gOq5ZL16f0DApMefwu0/x9tSLR8bZt lMAyk/WasvhOVjNHkQ15Yj42bcP/5YTWag73YTzHrUFpGGH8h0h4fwsrKs+gcmCwsl BUVzMn4cz87+Qoun36rJ6TQsbVVHPQRGrF2ZFuKulKXMrKAXsJgoVt2CyW+JCTbRwg tZQNTezLcsm5Ili/z+F1wSIQ6JBPvAHEM+Pj/x/8R2oIk7xDnxSwhwWJzGw4ifTkn/ uj7F1qS0xKiNw== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 1FB476D; Fri, 14 Feb 2025 10:36:48 +0100 (CET) Date: Fri, 14 Feb 2025 10:36:48 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Julien Rouhaud Cc: Dmitry Dolgov <9erthalion6@gmail.com>, Sami Imseih , Kirill Reshke , Sergei Kornilov , 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 Subject: Re: pg_stat_statements and "IN" conditions Message-ID: <202502140936.lni5gtrycnzf@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "In Europe they call me Niklaus Wirth; in the US they call me Nickel's worth. That's because in Europe they call me by name, and in the US by value!"