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 1tu65K-003ZQw-7L for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Mar 2025 08:44:34 +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 1tu65G-0092Xy-FA for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Mar 2025 08:44:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tu65G-0092Xq-2Z for pgsql-hackers@lists.postgresql.org; Mon, 17 Mar 2025 08:44:30 +0000 Received: from fout-b8-smtp.messagingengine.com ([202.12.124.151]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tu65B-003Kgw-2I for pgsql-hackers@postgresql.org; Mon, 17 Mar 2025 08:44:29 +0000 Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfout.stl.internal (Postfix) with ESMTP id 385DA1140159; Mon, 17 Mar 2025 04:44:24 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Mon, 17 Mar 2025 04:44:24 -0400 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=fm1; t=1742201064; x=1742287464; bh=A MjeUu2FaGAlvSPUC2HqZ9tJwBiCv520hB+s0gMzqBg=; b=zbueZWpfxWsPHDniP 3l6pjG0aLUtCufpegWODO3iyLfqHbWEMNtOWm0K3gMGdotH5+gyCTQhqHLnIBmNa zjqj/lFCX2lKkXL5f8+SdTCsSzHzamoCTlvJBggydPEUVS9aU/jWsp/nCdRc84Zr 3Cgdm0weUQ8TSsB8939VlZXpCK5BObhQpXz//pDccTY3XEPVEFSlmqJuainCYHgl /Ch40bQY83609kLynR67lYFiiAaFkGU8nNsKT5R3Klewm9jbZJsIOAPqM6z/MCEc Mgxo8akcPMSc1bxC6DqIEp3UIzvskAjY0vrHdP+f7uF/uKi/ApFM5yyK6h+/dQ0u 82PQA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddufeeltdeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddt jeenucfhrhhomheplmhlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlh hvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepvdehueffhefgueekueef heehgffhuefgfedukeejveduffegffekgeffffevgeehnecuffhomhgrihhnpegvnhhtvg hrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhnsg gprhgtphhtthhopeduledpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepkhhouhes tghlvggrrhdqtghouggvrdgtohhmpdhrtghpthhtohepmhgrrhgtohhssehfuddtrdgtoh hmrdgsrhdprhgtphhtthhopeelvghrthhhrghlihhonheisehgmhgrihhlrdgtohhmpdhr tghpthhtohepghgvihgurghvrdhpghesghhmrghilhdrtghomhdprhgtphhtthhopehnrg hthhgrnhgusghoshhsrghrthesghhmrghilhdrtghomhdprhgtphhtthhopehprghvvghl rdhtrhhukhhhrghnohhvsehgmhgrihhlrdgtohhmpdhrtghpthhtoheprhgvshhhkhgvkh hirhhilhhlsehgmhgrihhlrdgtohhmpdhrtghpthhtoheprhhjuhhjuhduvdefsehgmhgr ihhlrdgtohhmpdhrtghpthhtoheprhhosggvrhhtmhhhrggrshesghhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 17 Mar 2025 04:44:22 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1742201060; bh=WuhiE0axyIM/LKKGHltcdtYTWaUIEZMrREMpLkdkIhs=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=T0hHVdLJx5DeU+XnDgTd6fTvdI/iI2cOw6GDAE6O3h0LdkSqHaLoFWlH8NghIo2NT UMt2ACsYZ5B62gitE3Jx+8H1r33MiIrqgIfCgz9iTWEl7lDoEwfOewi2lRqJMxtX9I Xd6Mjo15EiZN+ekuXlVpWb2Ek6ZBa2fvcgD3Qvtb2MBJtIuBDrALpZ2zby6/SlOCz8 pm6bYXLW7Msq4XWHcvlDE55qEJh+lNsW3PJIYHhSwKPrrs/R9q/nEtSjUhc/XkUALH 9ki428A3z9VhAzObBF1U+QGN+2GYrEYy3VUeaqBN4N9SshnpjVPqvODwftqeZ8kWil ggQhYRLYNTp1Q== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id A1E2887; Mon, 17 Mar 2025 09:44:20 +0100 (CET) Date: Mon, 17 Mar 2025 09:44:20 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Dmitry Dolgov <9erthalion6@gmail.com> Cc: vignesh C , Sami Imseih , Julien Rouhaud , Kirill Reshke , Sergei Kornilov , yasuo.honda@gmail.com, tgl@sss.pgh.pa.us, smithpb2250@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: <202503170844.j7tmqg22dq6o@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-Mar-17, Dmitry Dolgov wrote: > I'm afraid there is a disagreement about this part of the feedback. I'm > not yet convinced about the idea suggested over there (treating mutable > functions in the same way as constants) and not planning to change > anything, at least not in the current version of the patch. I have to admit that I am leaning towards removing the immutability constraint. The reason is that we already require the function to be boostrapped (due to the OID test) and to have implicit cast form, so that limits which functions are recognized; the only ones there that are not immutable are: castsource │ casttarget │ castfunc ─────────────────────────────┼──────────────────────────┼────────────────────────────────────────── text │ regclass │ regclass(text) character varying │ regclass │ regclass(text) date │ timestamp with time zone │ timestamptz(date) time without time zone │ time with time zone │ timetz(time without time zone) timestamp without time zone │ timestamp with time zone │ timestamptz(timestamp without time zone) Looking at this list, it seems rather random to me to say that we should not squash arrays with types using these casts. Should we really consider two queries to be different because they run with different search_path or TimeZone settings? But kindly do not submit a new version of the patch, as I already have some changes of my own (mostly on removing the term "merge" from code and comments to replace with "squash", as well as adding some more comments). I'll post it soon. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/