Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1THeH7-0006vE-7Q for pgsql-bugs@postgresql.org; Fri, 28 Sep 2012 17:22:53 +0000 Received: from ch-smtp04.sth.basefarm.net ([80.76.153.5]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1THeH2-0008ID-Ty for pgsql-bugs@postgresql.org; Fri, 28 Sep 2012 17:22:52 +0000 Received: from c83-251-133-196.bredband.comhem.se ([83.251.133.196]:28790 helo=[10.100.0.2]) by ch-smtp04.sth.basefarm.net with esmtp (Exim 4.77) (envelope-from ) id 1THeGx-00081R-F8; Fri, 28 Sep 2012 19:22:45 +0200 Message-ID: <5065DCDE.1080109@mksoft.nu> Date: Fri, 28 Sep 2012 19:22:38 +0200 From: =?ISO-8859-1?Q?Mikael_Kjellstr=F6m?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: Tom Lane CC: pgsql-bugs@postgresql.org Subject: Re: Corrupt view in PostgreSQL 9.0.9 References: <5065AFAB.1030305@mksoft.nu> <22618.1348842939@sss.pgh.pa.us> <5065CA70.7010500@mksoft.nu> <4179.1348851715@sss.pgh.pa.us> In-Reply-To: <4179.1348851715@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: 83.251.133.196 X-Scan-Result: No virus found in message 1THeGx-00081R-F8. X-Scan-Signature: ch-smtp04.sth.basefarm.net 1THeGx-00081R-F8 180582ede8295e75bdae35d378c8502c X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201209/299 X-Sequence-Number: 34293 On 2012-09-28 19:01, Tom Lane wrote: > Looks like you had some data corruption from the spike. If you're > lucky, it's just this one block of pg_attribute and you can reconstruct > things. If not, there may be more problems ... Looks like there are more problems unfortunally. See below. >> Any point of running a vacuum full on the database or is that a bad idea? > > I wouldn't try that. It might be worth trying a REINDEX on > pg_attribute. That will not fix the table damage but it will at least > make sure the indexes are consistent with what's now in the table. > After that, I'd suggest manually removing the broken view's pg_class > row and then seeing if you can pg_dump with sane-looking results. > If you can, a dump and restore of at least this database would be > prudent. I tried the reindex and then the manual delete of the view from pg_class. That took care of the rows in pg_attribute but when I tried to run pg_dump I now get this: pg_dump: failed sanity check, parent table OID 16547 of pg_rewrite entry OID 16550 not found /Mikael