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 1pIQUx-0005dW-In for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Jan 2023 08:42:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pIQUv-0005TN-OR for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Jan 2023 08:42:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pIQUv-0005TD-EW for pgsql-hackers@lists.postgresql.org; Thu, 19 Jan 2023 08:42:13 +0000 Received: from wnew1-smtp.messagingengine.com ([64.147.123.26]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pIQUs-0006HF-MV for pgsql-hackers@lists.postgresql.org; Thu, 19 Jan 2023 08:42:12 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id 5C4242B06308; Thu, 19 Jan 2023 03:42:07 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 19 Jan 2023 03:42:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1674117726; x= 1674124926; bh=kZZ3pt2pVnrs91yFwRb0jCQsG1TxZG+JB6/3lD8kNmg=; b=A 5gmd6nZpJRwX4SAI/7HC//mH1LzOTWr5RkCUVX8oFe23HRWUrbHyuXktDDM/B0ON aZHtHCyv3iOTDKT1ezym6NkgAxLSjQVh5dr8Djr6LMClnAjNyS+DUOqgIZvmhZAx UwZGoAIu6ubjItUW9TRhrP9g9f0LdDyz9QpdvEgH6wdIVcWNBmQJhDpsOpUss67x /Sg6zth0PDmcgtBuga/2rk6oSZaZ3+7g/XfeXsHhMgowACHh3cnSrTGeP/PPxSUA e4KICi7DDA7/hrk+a1F/pka+gZqj5XdEwYRuQMxLE2FNwEdj/v5E2P2JuhNZT0Ok NQCjf0Kx6BmfyKz8lpUWg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddtledguddvfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgv thgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnh htvghrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepheelffeggedujeet iefhleetuddvieffhfffvdejvdffgeejkeduleduheduieefnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgr uhhtsegvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 19 Jan 2023 03:42:06 -0500 (EST) Message-ID: <50b571dc-e0c0-22be-9803-4a3480d2e792@enterprisedb.com> Date: Thu, 19 Jan 2023 09:42:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: Generating code for query jumbling through gen_node_support.pl Content-Language: en-US To: Michael Paquier Cc: Postgres hackers , "Drouvot, Bertrand" References: <34491a4e-2664-6ea7-662c-b13d18d2a92d@enterprisedb.com> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 18.01.23 08:04, Michael Paquier wrote: > On Tue, Jan 17, 2023 at 04:52:28PM +0900, Michael Paquier wrote: >> On Tue, Jan 17, 2023 at 08:43:44AM +0100, Peter Eisentraut wrote: >>> Ok, I understand now, and I agree with this approach over the opposite. I >>> was confused because the snippet you showed above used "jumble_ignore", but >>> your patch is correct as it uses "jumble_location". >> >> Okay. I'll refresh the patch set so as we have only "jumble_ignore", >> then, like v1, with preparatory patches for what you mentioned and >> anything that comes into mind. > > This is done as of the patch series v3 attached: > - 0001 reformats all the comments of the nodes. > - 0002 moves the current files for query jumble as of queryjumble.c -> > queryjumblefuncs.c and utils/queryjumble.h -> nodes/queryjumble.h. > - 0003 is the core feature, where I have done a second pass over the > nodes to make sure that things map with HEAD, incorporating the extra > docs coming from v2, adding a bit more. This patch structure looks good. >>> That said, the term "jumble" is really weird, because in the sense that we >>> are using it here it means, approximately, "to mix together", "to unify". >>> So what we are doing with the Const nodes is really to *not* jumble the >>> location, but for all other node types we are jumbling the location. At >>> least that is my understanding. >> >> I am quite familiar with this term, FWIW. That's what we've inherited >> from the days where this has been introduced in pg_stat_statements. > > I have renamed the node attributes to query_jumble_ignore and > no_query_jumble at the end, after considering Peter's point that only > "jumble" could be fuzzy here. The file names are changed in > consequence. I see that in the 0003 patch, most location fields now have an explicit markup with query_jumble_ignore. I thought we had previously resolved to consider location fields to be automatically ignored unless explicitly included (like for the Const node). This appears to invert that? Am I missing something?