Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1afX41-00009Q-S7 for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Mar 2016 18:17:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1afX41-0006qC-7v for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Mar 2016 18:17:57 +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_2) (envelope-from ) id 1afX2e-00045j-JA for pgsql-hackers@postgresql.org; Mon, 14 Mar 2016 18:16:32 +0000 Received: from linode.thelabyrinth.net ([198.58.117.137] helo=mail.thelabyrinth.net) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1afX2b-0007wj-Fq for pgsql-hackers@postgresql.org; Mon, 14 Mar 2016 18:16:32 +0000 Received: from [192.168.1.103] (wsip-184-178-50-4.dc.dc.cox.net [184.178.50.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteelepg) by mail.thelabyrinth.net (Postfix) with ESMTPSA id 76AC412D13; Mon, 14 Mar 2016 18:16:27 +0000 (UTC) Subject: Re: dealing with extension dependencies that aren't quite 'e' To: Jim Nasby , Abhijit Menon-Sen References: <18108.1452869354@sss.pgh.pa.us> <20160115170826.GA28307@toroid.org> <20160116144818.GA17401@toroid.org> <58C7A345-193B-4813-A7AA-4B78358313D6@gmail.com> <20160118053819.GA18576@toroid.org> <20160301012745.GA11489@toroid.org> <56D4F6B7.8010200@BlueTreble.com> <20160301043320.GA13286@toroid.org> <56D59AED.8080300@BlueTreble.com> Cc: pgsql-hackers@postgresql.org, Alexander Korotkov From: David Steele Message-ID: <56E6FFFA.2010508@pgmasters.net> Date: Mon, 14 Mar 2016 14:16:26 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <56D59AED.8080300@BlueTreble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 Hi Abhijit, On 3/1/16 8:36 AM, Jim Nasby wrote: > On 2/29/16 10:33 PM, Abhijit Menon-Sen wrote: >>> >Given the audience for this, I think it'd probably be OK to just >>> >provide a function that does this, instead of DDL. >> That seems like a promising idea. Can you suggest some possible usage? > > pg_extension_dependency( regextension, any ) > > where "any" would be all the other reg* types. That should be a lot less > work to code up than messing with the grammar. So where are we on this now? Were you going to implement this as a function the way Jim suggested? Alexander, you are signed up to review. Any opinion on which course is best? Thanks, -- -David david@pgmasters.net -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers