pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: jeff <jeff@pgexperts.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #6704: ALTER EXTENSION postgis SET SCHEMA leaves dangling relations
Date: Sun, 23 Sep 2012 22:36:00 -0400
Message-ID: <15238.1348454160@sss.pgh.pa.us> (raw)
In-Reply-To: <m2627hvpsg.fsf@2ndQuadrant.fr>
References: <E1SiEL6-0002u2-Ov@wrigleys.postgresql.org>
	<26225.1340419030@sss.pgh.pa.us>
	<20120830214826.GC32350@momjian.us>
	<m2k3vzwouo.fsf@2ndQuadrant.fr>
	<1347454709-sup-1105@alvh.no-ip.org>
	<m2ipbiuele.fsf@2ndQuadrant.fr>
	<m2627hvpsg.fsf@2ndQuadrant.fr>

Dimitri Fontaine <dimitri@2ndQuadrant.fr> writes:
> Dimitri Fontaine <dimitri@2ndQuadrant.fr> writes:
>> I think we shouldn't change the content of pg_depend lightly here, and

> So here's a patch following that idea.

I've got to say that I think this is fundamentally the wrong approach:
rather than fixing the generic problem of ALTER EXTENSION not coping
with multiple dependency paths to the same object, it hacks the specific
case of owned sequences, and what's more it does that by assuming that
every owned sequence *will* have a dependency on the extension.  That's
not a safe assumption.

Still, this might be the best approach for the back branches, given that
we do not know of any existing multiple-dependency scenarios other than
the owned-sequence case.  A real fix is looking mighty invasive.

> Even for TIP I don't want us to change how pg_depend tracking is done,

Agreed.  Quite aside from backwards-compatibility concerns, I think that
trying to avoid multiple dependency paths is doomed to failure.

			regards, tom lane




view thread (28+ messages)  latest in thread

Message-ID: <15238.1348454160@sss.pgh.pa.us>
Permalink:  ../15238.1348454160@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15238.1348454160@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, dimitri@2ndQuadrant.fr, alvherre@2ndquadrant.com, bruce@momjian.us, jeff@pgexperts.com
  Subject: Re: BUG #6704: ALTER EXTENSION postgis SET SCHEMA leaves dangling relations
  In-Reply-To: <15238.1348454160@sss.pgh.pa.us>
  References: <E1SiEL6-0002u2-Ov@wrigleys.postgresql.org> <26225.1340419030@sss.pgh.pa.us> <20120830214826.GC32350@momjian.us> <m2k3vzwouo.fsf@2ndQuadrant.fr> <1347454709-sup-1105@alvh.no-ip.org> <m2ipbiuele.fsf@2ndQuadrant.fr> <m2627hvpsg.fsf@2ndQuadrant.fr> <15238.1348454160@sss.pgh.pa.us>

* 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