Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 03897D273CA for ; Fri, 22 Jun 2012 23:56:45 -0300 (ADT) Received: from smtp.01.com ([199.36.142.181]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SiGWi-00063k-Mn for pgsql-bugs@postgresql.org; Sat, 23 Jun 2012 02:56:45 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id B8C13390175; Fri, 22 Jun 2012 21:56:31 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-2.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-2.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aOj-Sh9QlPTU; Fri, 22 Jun 2012 21:56:31 -0500 (CDT) Received: from smtp.01.com (localhost.localdomain [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id 8FAAF390185; Fri, 22 Jun 2012 21:56:31 -0500 (CDT) Received: from mail-3.01.com (mail.01.com [172.18.30.178]) by smtp-out-2.01.com (Postfix) with ESMTP id 7C8A1390175; Fri, 22 Jun 2012 21:56:31 -0500 (CDT) Subject: Re: BUG #6704: ALTER EXTENSION postgis SET SCHEMA leaves dangling relations References: <26225.1340419030@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable From: Jeff Frost Content-Type: text/plain; charset=us-ascii In-Reply-To: <26225.1340419030@sss.pgh.pa.us> Message-Id: Date: Fri, 22 Jun 2012 21:56:31 -0500 (CDT) To: Tom Lane Cc: "pgsql-bugs@postgresql.org" Mime-Version: 1.0 X-Mailer: Zimbra 7.2.0_GA_2669 (MobileSync - Apple-iPhone3C1/902.206) X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/199 X-Sequence-Number: 33426 On Jun 22, 2012, at 7:37 PM, 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. >=20 > What it seems to be leaving behind is indexes ... also relation rowtypes. >=20 > 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. >=20 > regards, tom lane Forgot to mention: initially saw this on 9.1.2 and tested 9.1.4 to see if it= was resolved, but both exhibit same behavior.=20=