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 1thpAM-007HVW-6B for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Feb 2025 12:15:02 +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 1thpAK-00A8PD-6I for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Feb 2025 12:15:00 +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 1thpAJ-00A8P5-Eq for pgsql-hackers@lists.postgresql.org; Tue, 11 Feb 2025 12:14:59 +0000 Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1thpAH-000Ctb-24 for pgsql-hackers@postgresql.org; Tue, 11 Feb 2025 12:14:58 +0000 Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfout.stl.internal (Postfix) with ESMTP id F1C291140172; Tue, 11 Feb 2025 07:14:55 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Tue, 11 Feb 2025 07:14:56 -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=1739276095; x=1739362495; bh=p WFVZdpX4L8y8PsMIqd++kZLq31j1avS1RDqeo8TVTE=; b=P5Jy9xBKJ51fXyt8i GaMBkzx8VZ+WzDvMrSyFULUM014eg3MKIbiRc8qMJcZbiFC+WE8B8Vxhx5kAYOPB 9IvUAsF7YKwp49zu3Da8gkuoTPNervvoi7VTv5FrY/1YNWYsqlQQ0NqGHLct64k2 bkNQnPU9C4xxQc8E5Tk4O/Zh+zpqXSnkcjVLSt+SOE7dGwI7rb9vCkP6KByqvA9p Q793uCLiScFhAJr0pBUgxtU5Nsvh5VQnjj+MhLSFe7RoNurN4WiOYDFwGZ3tKCD4 TnpkWSe1onpgLsnRNTl1BDAPxoaZhjOh3BLPChHSKZIEZzL2w8E0YP2Eb8/SiKhu XfKvQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdegtdeljecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdej necuhfhrohhmpemllhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvh hhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedtvdelgfelgffguddufeel vdeftdehiefhveelgfdtgefhuefggeeuieejteelueenucffohhmrghinhepvghnthgvrh hprhhishgvuggsrdgtohhmpdhthhgvlhhinhhugihrvghvihgvfidrtghomhenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvg esrghlvhhhrdhnohdqihhprdhorhhgpdhnsggprhgtphhtthhopedujedpmhhouggvpehs mhhtphhouhhtpdhrtghpthhtohepkhhouhestghlvggrrhdqtghouggvrdgtohhmpdhrtg hpthhtohepmhgrrhgtohhssehfuddtrdgtohhmrdgsrhdprhgtphhtthhopeelvghrthhh rghlihhonheisehgmhgrihhlrdgtohhmpdhrtghpthhtohepghgvihgurghvrdhpghesgh hmrghilhdrtghomhdprhgtphhtthhopehnrghthhgrnhgusghoshhsrghrthesghhmrghi lhdrtghomhdprhgtphhtthhopehprghvvghlrdhtrhhukhhhrghnohhvsehgmhgrihhlrd gtohhmpdhrtghpthhtoheprhgvshhhkhgvkhhirhhilhhlsehgmhgrihhlrdgtohhmpdhr tghpthhtoheprhhosggvrhhtmhhhrggrshesghhmrghilhdrtghomhdprhgtphhtthhope hsmhhithhhphgsvddvhedtsehgmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 Feb 2025 07:14:53 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1739276092; bh=btQ7EwIgJLw5AZvExu9M7i+lWMRvTx0nFRzydqIpoA8=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=pDMKXIH2J0pU8SS9xA/0Ip/OYoNDIHKrcL7pAPVlybWYqoCW1Jdq6qHwf+YN+btmE 5sThrg820G8vyX5ny24k4bAorq6P9dOdcIKBSfduekBx0HjlYTXWM3NpcnY3+SmRSt gSgE+nsBptr9DEos78BHAGp3LUHUkqhqZlVXqCWVS27w/BK0LQAGLXWr3JYnGIsHke M5Eh0N/mdVsQMlGVooJNsGx7ntoYfpTIGOeWzY8h2qUKxn7dkOcVe3z5hF95i+fjBR iPleJG4Vb8wK3DhLyvO7PBbcvXR2eZASnaladhi4XlRw9+/MRCUkOVOa3vd3SqLB+R psu8hV7/MW3JQ== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 32B048D; Tue, 11 Feb 2025 13:14:52 +0100 (CET) Date: Tue, 11 Feb 2025 13:14:52 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Dmitry Dolgov <9erthalion6@gmail.com> Cc: 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: <202502111214.fcfodex6t3sy@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <75yd2qoe5heofyp7jj4anluvodxhhc3mhkmjgspnslkn4n2xcc@oisglqgxqkaw> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello I noticed something that surprised me at first, but on further looking it should have been obvious: setting pg_stat_statements.query_id_const_merge affects the query ID for all readers of it, not just pg_stat_statement. This is good because it preserves the property that pg_stat_activity entries can be matched to pg_stat_statement entries by query_id. Looking to commit 0001 soon. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "On the other flipper, one wrong move and we're Fatal Exceptions" (T.U.X.: Term Unit X - http://www.thelinuxreview.com/TUX/)