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 1oAuDK-0004QA-0n for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 14:16:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oAuDI-0007xO-O2 for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 14:16:40 +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 1oAuDI-0007xE-F6 for pgsql-hackers@lists.postgresql.org; Mon, 11 Jul 2022 14:16:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAuDG-0007ZB-AD for pgsql-hackers@lists.postgresql.org; Mon, 11 Jul 2022 14:16:39 +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 26BEGbJa1078369; Mon, 11 Jul 2022 10:16:37 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers@lists.postgresql.org Subject: Re: Extending outfuncs support to utility statements In-reply-to: <9b197806-17ee-acba-0e70-01263aa46e79@enterprisedb.com> References: <4159834.1657405226@sss.pgh.pa.us> <9b197806-17ee-acba-0e70-01263aa46e79@enterprisedb.com> Comments: In-reply-to Peter Eisentraut message dated "Mon, 11 Jul 2022 15:56:44 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1078367.1657548997.1@sss.pgh.pa.us> Date: Mon, 11 Jul 2022 10:16:37 -0400 Message-ID: <1078368.1657548997@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: > 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. k > 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. Oh! I'd not thought of that, but yes that is a plausible near-term requirement for readfuncs support for utility statements. So my concern about suppressing those is largely a waste of effort. There might be enough node types that are raw-parse-tree-only, but not involved in utility statements, to make it worth continuing to suppress readfuncs support for them. But I kinda doubt it. I'll try to get some numbers later today. regards, tom lane