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 1oAhID-0006fC-0k for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 00:28:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oAhIB-0006RG-Dg for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 00:28:51 +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 1oAhIB-0006R7-4i for pgsql-hackers@lists.postgresql.org; Mon, 11 Jul 2022 00:28:51 +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 1oAhI8-0007mC-Rs for pgsql-hackers@lists.postgresql.org; Mon, 11 Jul 2022 00:28:50 +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 26B0Si88838178; Sun, 10 Jul 2022 20:28:44 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@lists.postgresql.org, Peter Eisentraut Subject: Re: Extending outfuncs support to utility statements In-reply-to: <20220711001525.qd3dgo3et3pzaarl@awork3.anarazel.de> References: <4159834.1657405226@sss.pgh.pa.us> <20220710214348.b63jkf3ko5tkeldz@awork3.anarazel.de> <816652.1657494772@sss.pgh.pa.us> <20220711001525.qd3dgo3et3pzaarl@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sun, 10 Jul 2022 17:15:25 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <838176.1657499324.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 10 Jul 2022 20:28:44 -0400 Message-ID: <838177.1657499324@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > On 2022-07-10 19:12:52 -0400, Tom Lane wrote: >> They're not so much "cold" as "dead", so I don't see the point >> of having them at all. If we ever start allowing utility commands >> (besides NOTIFY) in stored rules, we'd need readfuncs support then >> ... but at least in the short run I don't see that happening. > It would allow us to test utility outfuncs as part of the > WRITE_READ_PARSE_PLAN_TREES check. Not that that's worth very much. Especially now that those are all auto-generated anyway. > I guess it could be a minor help in making a few more utility commands b= enefit > from paralellism? Again, once we have an actual use-case, enabling that code will be fine by me. But we don't yet. regards, tom lane