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 1rzSp7-004BCb-5w for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Apr 2024 02:57:29 +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 1rzSp4-00BOni-NO for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Apr 2024 02:57:26 +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 1rzSp3-00BOnO-4v for pgsql-hackers@lists.postgresql.org; Wed, 24 Apr 2024 02:57:26 +0000 Received: from fout3-smtp.messagingengine.com ([103.168.172.146]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rzSoy-002d6R-Tw for pgsql-hackers@lists.postgresql.org; Wed, 24 Apr 2024 02:57:24 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.nyi.internal (Postfix) with ESMTP id 8D6A01380242; Tue, 23 Apr 2024 22:57:18 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 23 Apr 2024 22:57:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1713927438; x=1714013838; bh=D9W671n5DG Ax6UMHxz0M/e0YoCLPHeoCI/AXc4+6K9w=; b=JZMUiFCT2rjVNyt4btxDJFkKx0 lWF7iB1EJjpAn/V19JtZpZgzi76ny4BKM4gY/JT02eshbWW1X1IUEQyP1pT4jSX9 uOP4aOiqb5Y09j9xB1DwBsI9aLU+zoV6JrBKRc0+EEJ8V96tp2/p/UwiiVAdyrUL GpaWVaqO1WrJ8PDRhyOwJTaisghYREAu32CuTa/tul8Gnrril4t+t6ISM+bVgvsi dXHm3pbrAZGd0hYjwHwgeB6bRkx6ECmH3gFUgGqQKeAvS2oKSmOs+QcSv+MKq7MH I//JolvNYVKKlefx+GWEi5CpeWqQC7OGwLAx1nmF4WUJKUy7kHRNW3AYjK1Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1713927438; x=1714013838; bh=D9W671n5DGAx6UMHxz0M/e0YoCLP HeoCI/AXc4+6K9w=; b=UiLXxVXvqTcWSPB91YFdv/CC5aJyhZfqpI6EJg6jSk5x X2nSA15mrGY4kx/NXWfxXzEcAD0yF/NSOpWF75TTxVvb5DvQnk/PDwSTtJ9apTVq a7LkmG3Wa5MXSIikhW7sSyTkN/adh3lqQ3Xr7BRTUzJnf0OO3ooUVVQmj2XHfUXx XYOl/k8ZNzrPdSHV2O1l0DeOMBCSprzRN+VSes/0s9SrayZT1S5d7xxj2SNS/e/o de9X/ZUS6jsJKletQ2J4Tgm2IlU81KzvNF/dNYY2v0jTL8+rop0wPO793An9vp5X uujYx/yUI8KbYL5WX5zFLkT6RnQwDHm/yhVfA+LeLA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudelvddgieehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepgeffjeevgfevuddvjedtvddt ieejheduueelvddufedtgfefjedvkeevkeeivddvnecuffhomhgrihhnpehpohhsthhgrh gvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 23 Apr 2024 22:57:16 -0400 (EDT) Date: Wed, 24 Apr 2024 11:57:05 +0900 From: Michael Paquier To: Tom Lane Cc: Matthias van de Meent , PostgreSQL Hackers , Etsuro Fujita , Amit Kapila Subject: Re: Cleanup: remove unused fields from nodes Message-ID: References: <3069708.1713800470@sss.pgh.pa.us> <3496529.1713891664@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4xbFN4nM3sN/nctw" Content-Disposition: inline In-Reply-To: <3496529.1713891664@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --4xbFN4nM3sN/nctw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Apr 23, 2024 at 01:01:04PM -0400, Tom Lane wrote: > That is, query jumbling no longer distinguishes "DEALLOCATE x" from > "DEALLOCATE ALL", because the DeallocateStmt.name field is marked > query_jumble_ignore. Now maybe that's fine, but it's a point > we'd not considered so far in this thread. Thoughts? And of course, I've managed to forget about bb45156f342c and the reason behind the addition of the field is to be able to make the difference between the named and ALL cases for DEALLOCATE, around here: https://www.postgresql.org/message-id/ZNq9kRwWbKzvR%2B2a%40paquier.xyz This is new in v17, so perhaps it could be changed, but I think that's important to make the difference here for monitoring purposes as DEALLOCATE ALL could be used as a way to clean up prepared statements in connection poolers (for example, pgbouncer's server_reset_query). And doing this tweak in the Node structure of DeallocateStmt is simpler than having to maintain a new pg_node_attr for query jumbling. -- Michael --4xbFN4nM3sN/nctw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmYodQEACgkQnvQgOdby QH2DnQ/7BTP3SBEVLOia86TcAP0hchsZuJDaTcHOOuDPJZvFglUJDWiHXwncADHT 3YHE7IpuA3clv8lnD3NlUlulyiLn+c5W5YQ1+LgqoiHO2qtquyBvfl7nZwP4mhxv rgmGJI7lk9+yUHSAJcGr0vaWDK1kw4wtoVtREYmnfgyMIibAUERnXT7lXJStDUSZ 0rWmSLaLsclCcZTQo1ttqMnnR0yjeIiVgou3/YSxaEMV2ObPlDcxwi7B25I5i1TX sqNl5UnTU2bLuDcm2yFx9Sr2zq6boJa+4y5KQhhR+jgGG8WtXqFYx5GjMNLC2Cm9 QU6q9RbwWnrv8tVMMh8RHgq1Nr8cQFBETIK7eRHDdKzTknZ9PT7buq2u44yZAYU0 /U7fEN376KhCMVYj88cD4qqonKY8xue69G04a+IwsreC+u/0/8zQlAiIzudrA/4g umJXB5lB2c4TdpSCDdodwLYFxYsMvBSiagPZYMG82K9yuuAMlkSQ3xbn60IHT1VK PjvWZpVOUrZL/A+Fp/HNV/P8/0Jgehkiy87uz/hi2/c0JsNpYLL7SmVhtNe6uFHb DAnpnP2R+GEApG6mbtKhAXxW5EvThDGPIZLvm6SAjlksgGpcIbxdDhJxqqRM+ZEm SAKF3f78vRCYYwKCHq71qsPCOZwoMz7BLOHcnNM6O2sFR+zSmi4= =+pvS -----END PGP SIGNATURE----- --4xbFN4nM3sN/nctw--