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 1oAtuA-0003Tc-2c for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 13:56:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oAtu8-0007EA-PG for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 13:56:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAtu8-0007Di-Fo for pgsql-hackers@lists.postgresql.org; Mon, 11 Jul 2022 13:56:52 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAtu5-0007PI-HF for pgsql-hackers@lists.postgresql.org; Mon, 11 Jul 2022 13:56:51 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id A2D9F320097F; Mon, 11 Jul 2022 09:56:47 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 11 Jul 2022 09:56:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=1657547807; x=1657634207; bh=L YM6BMbMXXOnHz51D8ft6l9qPK1TDVxLOktvpaCVvQU=; b=t0R8wHTao0608f0nc pLPsgJ72uqy72ZO/zobtZ35zSLICMq5bqUkL1ofMEC3mPWo6mKznIdzYVtThVJZq IjjDHKavuocSUVA8kprKtGcEK6kqWXd3yvTJ0uV+4SeRieOFV4Jylem0NkTO8I4p Dduy6H8uO32frOyfswbbXpelukh9GOf3gVPNIdE4rBHTqwCnO7x0n+9ZHjfyg/Q0 072Knwv4y6wuJPM/ELqfI6DLXZOm5TC5926+1fbQPKyqvHbV9IapSaVUoCox/IZ+ id3A7AC6Tb1tAvzUpOsr5boK2+nVK+nkvSxhMb31FbG/EpKDuDnWdRvqLbpB3Qva C7yyA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudejfedgieekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtje ertddtfeejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghr rdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhmqeenucggtffrrg htthgvrhhnpeefjeegheetuefhveevudelueeftdejteeiffetvdduhfdtieefgfeutedt veeggfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 11 Jul 2022 09:56:46 -0400 (EDT) Message-ID: <9b197806-17ee-acba-0e70-01263aa46e79@enterprisedb.com> Date: Mon, 11 Jul 2022 15:56:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: Extending outfuncs support to utility statements Content-Language: en-US To: Tom Lane , pgsql-hackers@lists.postgresql.org References: <4159834.1657405226@sss.pgh.pa.us> From: Peter Eisentraut In-Reply-To: <4159834.1657405226@sss.pgh.pa.us> 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 10.07.22 00:20, Tom Lane wrote: > We've long avoided building I/O support for utility-statement node > types, mainly because it didn't seem worth the trouble to write and > maintain such code by hand. Now that the automatic node-support-code > generation patch is in, that argument is gone, and it's just a matter > of whether the benefits are worth the backend code bloat. I can > see two benefits worth considering: This is also needed to be able to store utility statements in (unquoted) SQL function bodies. I have some in-progress code for that that I need to dust off. IIRC, there are still some nontrivial issues to work through on the reading side. I don't have a problem with enabling the outfuncs side in the meantime.