Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 719C4B5DBEA for ; Mon, 22 Aug 2011 12:02:48 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 98504-05 for ; Mon, 22 Aug 2011 15:02:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from acidenitrix.villemain.org (acidenitrix.villemain.org [91.121.90.165]) by mail.postgresql.org (Postfix) with ESMTP id C6B93B5DBC6 for ; Mon, 22 Aug 2011 12:02:41 -0300 (ADT) Received: from [89.157.192.174] (helo=DimIMac.local) by acidenitrix.villemain.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1QvW1Q-0006uM-8E; Mon, 22 Aug 2011 17:02:40 +0200 Received: by DimIMac.local (Postfix, from userid 501) id 8C2AA272803E; Mon, 22 Aug 2011 17:02:33 +0200 (CEST) From: Dimitri Fontaine To: Tom Lane Cc: Dimitri Fontaine , "Hitoshi Harada" , pgsql-bugs@postgresql.org Subject: Re: BUG #6172: DROP EXTENSION error without CASCADE Organization: 2ndQuadrant References: <201108211644.p7LGibJ1064013@wwwmaster.postgresql.org> <10160.1313967820@sss.pgh.pa.us> <878vqla87u.fsf@hi-media-techno.com> <3820.1314023940@sss.pgh.pa.us> User-Mail-Address: dimitri@2ndQuadrant.fr Date: Mon, 22 Aug 2011 17:02:33 +0200 In-Reply-To: <3820.1314023940@sss.pgh.pa.us> (Tom Lane's message of "Mon, 22 Aug 2011 10:39:00 -0400") Message-ID: User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201108/138 X-Sequence-Number: 30950 Tom Lane writes: > The case where this would actually happen is where extension A creates > some operator, and mentions some other operator as its commutator or > negator, but never gets around to defining the other operator. Then > extension B comes along and tries to fill in the other operator > definition. Do we want to let that happen, or do we want to throw an > error on the grounds that this sort of interconnection of two extensions > was almost certainly not intended? (Note that I rather doubt that > dropping either extension alone, afterwards, would clean up nicely, > since we have no code that would remove the oprcom/oprnegate linkage.) I don't think we should let that happen. We currently support self contained extensions and I don't see opening the door this way as a feature. > On the whole I'm starting to think that throwing an error is the best > thing. We could always relax that later, but going the other way might > be problematic. +1 Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support