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 1nji2D-0004q2-8Z for pgsql-general@arkaria.postgresql.org; Wed, 27 Apr 2022 13:48:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nji2B-0008IH-TY for pgsql-general@arkaria.postgresql.org; Wed, 27 Apr 2022 13:48:47 +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 1nji2B-0008I2-Iz for pgsql-general@lists.postgresql.org; Wed, 27 Apr 2022 13:48:47 +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 1nji29-00071d-6P for pgsql-general@lists.postgresql.org; Wed, 27 Apr 2022 13:48:47 +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 23RDme22369748; Wed, 27 Apr 2022 09:48:40 -0400 From: Tom Lane To: Alvaro Herrera cc: Bryn Llewellyn , "David G. Johnston" , pgsql-general list Subject: Re: "create function... depends on extension..." not supported. Why? In-reply-to: <202204270932.puduanle4khz@alvherre.pgsql> References: <202204270932.puduanle4khz@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Wed, 27 Apr 2022 11:32:07 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <369746.1651067320.1@sss.pgh.pa.us> Date: Wed, 27 Apr 2022 09:48:40 -0400 Message-ID: <369747.1651067320@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: > IIRC Abhijit and I discussed this point offline, and our conclusion was > that DEPENDS ON EXTENSION was not of general enough usefulness to > warrant support for it in CREATE FUNCTION -- keeping in mind that we > would need support for it in CREATE INDEX, CREATE TRIGGER, CREATE > MATERIALIZED VIEW as well. Yeah. Quite aside from the code bloat and grammar bloat, my main fear about that would be the assumption that we could wedge a consistent syntax for this into all those different sorts of CREATE commands. At the very least we'd probably find ourselves having to make those keywords more reserved than they are now. regards, tom lane