From: Dimitri Fontaine <dimitri@2ndQuadrant.fr>
To: Tom Lane <tgl@sss.pgh.pa.us>
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: Mon, 24 Sep 2012 10:26:52 +0200
Message-ID: <m2a9wf967n.fsf@2ndQuadrant.fr> (raw)
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>
Tom Lane <tgl@sss.pgh.pa.us> writes:
> 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.
In general, agreed.
> 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.
That's what I was aiming at, best approach for the back branches.
>> 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.
For a “DIRTT” approach to the problems, I think Álvaro's work is in the
right direction, and should be pursued without trying to address the
back branches too. I don't remember now if his tracking attempt was also
trying to change pg_depend entries, I think that was in two separate
patches versions.
DIRTT: Do It Right This Time
Álvaro, do you want to be working on a master only version of the fix
or do you want me to?
Regards,
--
Dimitri Fontaine 06 63 07 10 78
http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support
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, alvherre@2ndquadrant.com, bruce@momjian.us, jeff@pgexperts.com
Subject: Re: BUG #6704: ALTER EXTENSION postgis SET SCHEMA leaves dangling relations
In-Reply-To: <m2a9wf967n.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> <15238.1348454160@sss.pgh.pa.us> <m2a9wf967n.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