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 1ohsSu-00086p-H8 for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Oct 2022 13:05:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ohsSt-0002em-Df for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Oct 2022 13:05:03 +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 1ohsSt-0002ec-4q for pgsql-hackers@lists.postgresql.org; Mon, 10 Oct 2022 13:05:03 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ohsSq-0005tM-BV for pgsql-hackers@lists.postgresql.org; Mon, 10 Oct 2022 13:05:02 +0000 Received: by mail-wm1-x32a.google.com with SMTP id iv17so6811282wmb.4 for ; Mon, 10 Oct 2022 06:05:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=7PUXO9eUpI0d/5YQgarBo82Qh1X52DE2vGyTkcvqD/Y=; b=NBa2giVVmkmw653RFkSvfeTvBHaSo7FEHYNVaUDgg36ErW6J4xhAMYhidhTZV24a9v klvTuKM28KBXJ0SagrjJvpQF9B6UjxBqrKVXGNU7VF1M+zs90vzE5pvzhyNkW4nOzNrw pH5yLLOj9UML61bfgNOYR1pFUd46iWD6FIksZBTTSdIXZCfRloTJbCngs8l0PZyj1Bi4 AxAs5z+5yN7iM1Atcpwex1KndrKYZRTuLKJZUdOiCRLTj4i83ZzF+zdE/oC1vscUlNBP VbpYDWxp0tbc3R2S4uQ+ye3OIcReywxvq1HLEhQlG0UKExNshd1W2JbAoX4URo6ovDjy xdfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7PUXO9eUpI0d/5YQgarBo82Qh1X52DE2vGyTkcvqD/Y=; b=uc2rdpI1TwdgSe5awEslpbsFnGFCpKiT1LbFLgsLahgXfX/79rEtKo1vcGcj3xqAtc bb9xnilGrbgqEZX1ZHrv0WzpC5UTHSL854hwiXEEY+6v8hwkhqRQ3g6HjNXDnq1LM5QG LOF2tEm0ZPkXNO7yxAfRBuZ3D3fB0spNbRez4CYp+DB0wpRRAK26+0Ydnp1P2mRytpS/ lksnX1Ut7l+lnOr/JdCcFEYbDiMBUzHdASDCA+7OEYt63EkySO7PcEOb9pR06zhfyF4R aIYf5DscfR3DVAjne9zcUekMQwxbg91Rlq2p7+6Kjqrw32XTPX2pZhwkRV6PANLVrUhM /YCg== X-Gm-Message-State: ACrzQf19BZtnP02EA9Svm4Vp9k33ZdWrlUfHpxQUGoE5sI2cF5eIFOix /HkAawkdld7IlxQWupfipt0= X-Google-Smtp-Source: AMsMyM4IU0IA/qJES/j6sGC+3XqNweSnubj+K4vi4CjZjTj08FOgH+tbC4nrKzuWwm6qVIBwwfNNJA== X-Received: by 2002:a05:600c:3ac9:b0:3b4:bed4:d69 with SMTP id d9-20020a05600c3ac900b003b4bed40d69mr20141199wms.131.1665407099291; Mon, 10 Oct 2022 06:04:59 -0700 (PDT) Received: from [192.168.7.69] ([54.239.6.184]) by smtp.gmail.com with ESMTPSA id g20-20020a05600c4ed400b003b4ac05a8a4sm22921985wmq.27.2022.10.10.06.04.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Oct 2022 06:04:58 -0700 (PDT) Message-ID: Date: Mon, 10 Oct 2022 15:04:57 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: Query Jumbling for CALL and SET utility statements Content-Language: en-US To: Michael Paquier , Tom Lane Cc: Fujii Masao , Julien Rouhaud , Jeremy Schneider , PostgreSQL Hackers , Pavel Stehule , Andres Freund , "Imseih (AWS), Sami" References: <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> <3088762.1665114712@sss.pgh.pa.us> From: "Drouvot, Bertrand" 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 Hi, On 10/7/22 6:13 AM, Michael Paquier wrote: > On Thu, Oct 06, 2022 at 11:51:52PM -0400, Tom Lane wrote: >> 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. > > Yeah. The potential performance impact of all the TransactionStmts > worries me a bit, though. > >> 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? I think that's a good idea. > > Probably. One part that may be tricky though is the location of the > constants we'd like to make generic, but perhaps this could be handled > by using a dedicated variable type that just maps to int? It looks to me that we'd also need to teach the perl parser which fields per statements struct need to be jumbled (or more probably which ones to exclude from the jumbling, for example funccall in CallStmt). Not sure yet how to teach the perl parser, but I'll build this list first to help decide for a right approach, unless you already have some thoughts about it? Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com