X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 4C3F911F6006 for ; Mon, 24 Apr 2006 19:18:33 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 11285-06 for ; Mon, 24 Apr 2006 19:18:28 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id EE18E11F64E0 for ; Mon, 24 Apr 2006 19:18:26 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k3OMIKLg007088; Mon, 24 Apr 2006 18:18:20 -0400 (EDT) To: Alvaro Herrera cc: Bruno Cortes , pgsql-admin@postgresql.org Subject: Re: FATAL: catalog is missing attributes In-reply-to: <20060424124326.GB13361@surnet.cl> References: <444BDF18.5010608@mail.pt> <20060424124326.GB13361@surnet.cl> Comments: In-reply-to Alvaro Herrera message dated "Mon, 24 Apr 2006 08:43:26 -0400" Date: Mon, 24 Apr 2006 18:18:20 -0400 Message-ID: <7087.1145917100@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/256 X-Sequence-Number: 21425 Alvaro Herrera writes: > Bruno Cortes wrote: >> This was even worse than the previous error. Right now I cannot enter >> the database neither make a dump. When I execute a command such as "psql >> -U postgres center-01" I get the error: >> psql: FATAL: catalog is missing 10 attribute(s) for relid 1262 > Sounds very much like you haven't been doing the required vacuum on all > system catalogs. I don't think so --- that error is coming out of the relcache/syscache layer, and that code uses SnapshotNow; so it's only going to care whether the tuples are marked committed, not whether they've wrapped around. I'm afraid that Bruno has lost some pages of pg_attribute (eg, they went to zeroes). That's not too surprising given his previous reports suggesting hardware problems. If the pages in question held only rows for system catalogs then it might be possible to copy correct values from elsewhere, but if they held rows for user tables then he's got serious problems :-(. My advice would be to start thinking about restoring from backup. regards, tom lane