Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 70E2B1337B69 for ; Tue, 28 Sep 2010 11:03:29 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 40070-04 for ; Tue, 28 Sep 2010 14:03:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 7DBE61337B65 for ; Tue, 28 Sep 2010 11:03:19 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Tue, 28 Sep 2010 09:03:18 -0500 Message-Id: <4CA1AF4D0200002500035FF5@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Tue, 28 Sep 2010 09:03:09 -0500 From: "Kevin Grittner" To: "Lukasz Brodziak" , Subject: Re: Could not read block error question References: In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201009/168 X-Sequence-Number: 35712 Lukasz Brodziak wrote: > I got an error "Could not read block of relation...." it > appeared to be in pg_trigger If you'd pasted in the message as it appeared, we wouldn't need to guess whether you're right. > the block number was 110 and the file has only 67 pages. So the > question is how is it possible? That could be, if your reading of things is right, database corruption. Before you do anything else, shutdown the database server and make a copy of the data directory and all its subdirectories. (Don't try to pick one database or otherwise pick and choose files.) Save that backup until you've recovered from the problem and things have been stable for at least a few weeks. Next, read this page and repost with more information: http://wiki.postgresql.org/wiki/Guide_to_reporting_problems So far you haven't given us much to work with. -Kevin