Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T7CbE-0001Hs-S3 for pgsql-bugs@postgresql.org; Thu, 30 Aug 2012 21:48:29 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T7CbD-0007GL-MF for pgsql-bugs@postgresql.org; Thu, 30 Aug 2012 21:48:28 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1T7CbC-0000qu-AV; Thu, 30 Aug 2012 17:48:26 -0400 Date: Thu, 30 Aug 2012 17:48:26 -0400 From: Bruce Momjian To: Tom Lane Cc: jeff@pgexperts.com, pgsql-bugs@postgresql.org Subject: Re: BUG #6704: ALTER EXTENSION postgis SET SCHEMA leaves dangling relations Message-ID: <20120830214826.GC32350@momjian.us> References: <26225.1340419030@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <26225.1340419030@sss.pgh.pa.us> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.1 (--) X-Archive-Number: 201208/249 X-Sequence-Number: 33973 On Fri, Jun 22, 2012 at 10:37:10PM -0400, Tom Lane wrote: > jeff@pgexperts.com writes: > > DROP and CREATE extension appear to work fine, but if you ALTER EXTENSION > > postgis SET SCHEMA foo, it leaves a few relations behind. > > What it seems to be leaving behind is indexes ... also relation rowtypes. > > A bit of looking shows that ALTER EXTENSION SET SCHEMA calls > AlterObjectNamespace_oid on the table. AlterObjectNamespace_oid > calls AlterRelationNamespaceInternal, and nothing else. In comparison, > ALTER TABLE SET SCHEMA (AlterTableNamespace) calls > AlterRelationNamespaceInternal and about four other things. I'm not > sure if this was broken before the last round of refactoring in this > area, but for sure it's broken now. Uh, did this get fixed? I can't find a commit related to the fix. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +