Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 1C92E1335ED4 for ; Tue, 28 Sep 2010 11:40:38 -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 49475-06 for ; Tue, 28 Sep 2010 14:40:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 371CB133616B for ; Tue, 28 Sep 2010 11:40:30 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o8SEeTWj024167; Tue, 28 Sep 2010 10:40:30 -0400 (EDT) To: Lukasz Brodziak cc: pgsql-admin@postgresql.org Subject: Re: Could not read block error question In-reply-to: References: Comments: In-reply-to Lukasz Brodziak message dated "Tue, 28 Sep 2010 09:48:00 +0200" Date: Tue, 28 Sep 2010 10:40:29 -0400 Message-ID: <24166.1285684829@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201009/170 X-Sequence-Number: 35714 Lukasz Brodziak writes: > One question about blocks in PG. I got an error "Could not read block > of relation...." it appeared to be in pg_trigger but the thing > is that the block number was 110 and the file has only 67 pages. So > the question is how is it possible? Well, that's why it failed to read the block ;-). The real question is why was it trying to read a block that doesn't exist in the table. I'd bet on a corrupt index myself, so try reindexing. regards, tom lane