Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1THbfN-0002nQ-RT for pgsql-bugs@postgresql.org; Fri, 28 Sep 2012 14:35:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1THbfM-0005fS-3h for pgsql-bugs@postgresql.org; Fri, 28 Sep 2012 14:35:45 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q8SEZdWn022619; Fri, 28 Sep 2012 10:35:39 -0400 (EDT) From: Tom Lane To: =?ISO-8859-1?Q?Mikael_Kjellstr=F6m?= cc: pgsql-bugs@postgresql.org Subject: Re: Corrupt view in PostgreSQL 9.0.9 In-reply-to: <5065AFAB.1030305@mksoft.nu> References: <5065AFAB.1030305@mksoft.nu> Comments: In-reply-to =?ISO-8859-1?Q?Mikael_Kjellstr=F6m?= message dated "Fri, 28 Sep 2012 16:09:47 +0200" Date: Fri, 28 Sep 2012 10:35:39 -0400 Message-ID: <22618.1348842939@sss.pgh.pa.us> X-Pg-Spam-Score: -2.7 (--) X-Archive-Number: 201209/295 X-Sequence-Number: 34289 =?ISO-8859-1?Q?Mikael_Kjellstr=F6m?= writes: > # drop view communitytaxiexceptions ; > ERROR: invalid attribute number 0 for communitytaxiexceptions That's pretty odd --- it implies something nasty has happened to the contents of pg_attribute. It would be interesting to have a look at select * from pg_attribute where attrelid = 'communitytaxiexceptions'::regclass; > Is there anything thing I could do to manually remove the view or fix > the problem? Well, you could manually remove its pg_class and pg_type rows, and that should be close enough to being "gone". But what I'm worried about is what other damage there is. regards, tom lane