Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TG40U-0002LA-Ms for pgsql-bugs@postgresql.org; Mon, 24 Sep 2012 08:27:10 +0000 Received: from acidenitrix.villemain.org ([91.121.90.165]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TG40Q-0003NJ-N9 for pgsql-bugs@postgresql.org; Mon, 24 Sep 2012 08:27:10 +0000 Received: from [89.157.243.130] (helo=DimIMac.local) by acidenitrix.villemain.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TG40O-0004gP-PD; Mon, 24 Sep 2012 10:27:04 +0200 From: Dimitri Fontaine To: Tom Lane Cc: Alvaro Herrera , Bruce Momjian , jeff , Pg Bugs Subject: Re: BUG #6704: ALTER EXTENSION postgis SET SCHEMA leaves dangling relations Organization: 2ndQuadrant References: <26225.1340419030@sss.pgh.pa.us> <20120830214826.GC32350@momjian.us> <1347454709-sup-1105@alvh.no-ip.org> <15238.1348454160@sss.pgh.pa.us> User-Mail-Address: dimitri@2ndQuadrant.fr Date: Mon, 24 Sep 2012 10:26:52 +0200 In-Reply-To: <15238.1348454160@sss.pgh.pa.us> (Tom Lane's message of "Sun, 23 Sep 2012 22:36:00 -0400") Message-ID: User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201209/253 X-Sequence-Number: 34247 Tom Lane 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 =E2=80=9CDIRTT=E2=80=9D approach to the problems, I think =C3=81lvaro= '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 =C3=81lvaro, do you want to be working on a master only version of the fix or do you want me to? Regards, --=20 Dimitri Fontaine 06 63 07 10 78 http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support