From: Dimitri Fontaine <dimitri@2ndQuadrant.fr>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Tom Lane <tgl@sss.pgh.pa.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: Thu, 13 Sep 2012 17:28:29 +0200
Message-ID: <m2ipbiuele.fsf@2ndQuadrant.fr> (raw)
In-Reply-To: <1347454709-sup-1105@alvh.no-ip.org>
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>
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Well, what I saw was that both the table and its SERIAL-generated
> sequence got an DEPENDENCY_EXTENSION row in pg_depend, which is exactly
> what (IMV) causes the problem. One of my proposals is to tweak the code
> to avoid that row (but if we do that, then we need to do something about
> databases that contain such rows today).
Ah yes, indeed.
I think we shouldn't change the content of pg_depend lightly here, and
that we should rather specialize AlterObjectNamespace_oid() to skip
caring about sequences. The other objects that get moved by
AlterTableNamepace other than the table itself and its sequences are
Indexes and Constraints. Owned Sequence (serial) will get cared of by
the extension dependency walking code.
I'm going to have a try at that.
Regards,
--
Dimitri Fontaine
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, alvherre@2ndquadrant.com, bruce@momjian.us, tgl@sss.pgh.pa.us, jeff@pgexperts.com
Subject: Re: BUG #6704: ALTER EXTENSION postgis SET SCHEMA leaves dangling relations
In-Reply-To: <m2ipbiuele.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>
* 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