pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dimitri Fontaine <dimitri@2ndQuadrant.fr>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Cc: Hitoshi Harada <umi.tanuki@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6172: DROP EXTENSION error without CASCADE
Date: Mon, 22 Aug 2011 17:02:33 +0200
Message-ID: <m2r54debg6.fsf@2ndQuadrant.fr> (raw)
In-Reply-To: <3820.1314023940@sss.pgh.pa.us>
References: <201108211644.p7LGibJ1064013@wwwmaster.postgresql.org>
	<m2wre6v9z8.fsf@2ndQuadrant.fr>
	<m2aab2v6wq.fsf@2ndQuadrant.fr>
	<10160.1313967820@sss.pgh.pa.us>
	<878vqla87u.fsf@hi-media-techno.com>
	<3820.1314023940@sss.pgh.pa.us>

Tom Lane <tgl@sss.pgh.pa.us> 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



view thread (8+ messages)

Message-ID: <m2r54debg6.fsf@2ndQuadrant.fr>
Permalink:  ../m2r54debg6.fsf@2ndQuadrant.fr/
Also on:    postgresql.org/message-id/m2r54debg6.fsf@2ndQuadrant.fr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: dimitri@2ndQuadrant.fr, tgl@sss.pgh.pa.us, umi.tanuki@gmail.com
  Subject: Re: BUG #6172: DROP EXTENSION error without CASCADE
  In-Reply-To: <m2r54debg6.fsf@2ndQuadrant.fr>
  References: <201108211644.p7LGibJ1064013@wwwmaster.postgresql.org> <m2wre6v9z8.fsf@2ndQuadrant.fr> <m2aab2v6wq.fsf@2ndQuadrant.fr> <10160.1313967820@sss.pgh.pa.us> <878vqla87u.fsf@hi-media-techno.com> <3820.1314023940@sss.pgh.pa.us> <m2r54debg6.fsf@2ndQuadrant.fr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox