Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aL2WM-0005v3-3r for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Jan 2016 05:38:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aL2WL-0006gY-05 for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Jan 2016 05:38:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aL2WK-0006gR-D6 for pgsql-hackers@postgresql.org; Mon, 18 Jan 2016 05:38:28 +0000 Received: from raven.toroid.org ([2a01:4f8:121:3401::2]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aL2WG-0006ws-Rz for pgsql-hackers@postgresql.org; Mon, 18 Jan 2016 05:38:27 +0000 Received: from kea.toroid.org (unknown [10.9.8.10]) by raven.toroid.org (Postfix) with ESMTP id AC053E5000B; Mon, 18 Jan 2016 06:38:20 +0100 (CET) Received: by kea.toroid.org (Postfix, from userid 1000) id A31CB4E15E3; Mon, 18 Jan 2016 11:08:19 +0530 (IST) Date: Mon, 18 Jan 2016 11:08:19 +0530 From: Abhijit Menon-Sen To: Robert Haas Cc: pgsql-hackers@postgresql.org Subject: Re: dealing with extension dependencies that aren't quite 'e' Message-ID: <20160118053819.GA18576@toroid.org> References: <18108.1452869354@sss.pgh.pa.us> <20160115170826.GA28307@toroid.org> <20160116144818.GA17401@toroid.org> <58C7A345-193B-4813-A7AA-4B78358313D6@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <58C7A345-193B-4813-A7AA-4B78358313D6@gmail.com> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org At 2016-01-16 12:18:53 -0500, robertmhaas@gmail.com wrote: > > This seems like one manifestation of the more general problem that we > don't have any real idea what objects a function definition depends > on. Yes. I'm proposing to address a part of that problem by allowing extension dependencies to be explicitly declared for functions and objects created either by a user or dynamically by the extension itself—things that need the extension to function, but aren't a part of it. Put that way, ALTER EXTENSION doesn't sound like the way to do it. Maybe ALTER FUNCTION … DEPENDS ON EXTENSION …? I don't particularly care how the dependency is recorded, it's the dependency type that's important. I'll post a patch along those lines in a bit, just so we have something concrete to discuss; meanwhile, suggestions for another syntax to record the dependency are welcome. -- Abhijit -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers