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 1ogeP5-0003JV-8z for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Oct 2022 03:52:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ogeP4-0001HM-06 for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Oct 2022 03:52:02 +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 1ogeP3-0001HD-N0 for pgsql-hackers@lists.postgresql.org; Fri, 07 Oct 2022 03:52:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ogeP1-0000yi-8U for pgsql-hackers@lists.postgresql.org; Fri, 07 Oct 2022 03:52:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 2973pqx43088763; Thu, 6 Oct 2022 23:51:52 -0400 From: Tom Lane To: Michael Paquier cc: "Drouvot, Bertrand" , Fujii Masao , Julien Rouhaud , Jeremy Schneider , PostgreSQL Hackers , Pavel Stehule , Andres Freund , "Imseih (AWS), Sami" Subject: Re: Query Jumbling for CALL and SET utility statements In-reply-to: References: <20220908065012.l3bd2np7wj52cxco@jrouhaud> <20220908112919.2ytxpkitiw6lt2u6@jrouhaud> <37d32e91-4a08-afaf-a3a8-fd0578e4db50@oss.nttdata.com> <706ee610-4297-453b-f6f2-1e79161414f6@gmail.com> <6d0d8a57-0e9c-7fcb-5072-aae544dafa5c@gmail.com> <66be1104-164f-dcb8-6c43-f03a68a139a7@gmail.com> Comments: In-reply-to Michael Paquier message dated "Fri, 07 Oct 2022 12:41:13 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3088761.1665114712.1@sss.pgh.pa.us> Date: Thu, 06 Oct 2022 23:51:52 -0400 Message-ID: <3088762.1665114712@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > While studying a bit more this thread, I've been reminded of the fact > that this would treat different flavors of BEGIN/COMMIT commands (mix > of upper/lower characters, etc.) as different entries in > pg_stat_statements, and it feels inconsistent to me that we'd begin > jumbling the 2PC and savepoint commands with their nodes but not do > that for the rest of the commands, even if, as mentioned upthread, > applications may not mix grammars. I've been thinking since the beginning of this thread that there was no coherent, defensible rationale being offered for jumbling some utility statements and not others. I wonder if the answer is to jumble them all. We avoided that up to now because it would imply a ton of manual effort and future code maintenance ... but now that the backend/nodes/ infrastructure is largely auto-generated, could we auto-generate the jumbling code? regards, tom lane