Re: Could not read block error question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Lukasz Brodziak <lukasz(dot)brodziak(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Could not read block error question
Date: 2010-09-28 14:40:29
Message-ID: 24166.1285684829@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Lukasz Brodziak <lukasz(dot)brodziak(at)gmail(dot)com> writes:
> One question about blocks in PG. I got an error "Could not read block
> <no.> 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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Nigel 2010-09-28 16:57:14 Why are some WAL files in pg_xlog symlinks to old files?
Previous Message Lukasz Brodziak 2010-09-28 14:38:41 Re: Could not read block error question