Re: "invalid page header in block 597621 of relation..." error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adam Witney <awitney(at)sgul(dot)ac(dot)uk>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: "invalid page header in block 597621 of relation..." error
Date: 2005-11-23 20:55:59
Message-ID: 26647.1132779359@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Adam Witney <awitney(at)sgul(dot)ac(dot)uk> writes:
> bugasbase2=# SELECT count(*) from mba_data_base;
> ERROR: invalid page header in block 597621 of relation "mba_data_base"

Sounds like a data corruption problem :-(. Do you want to pull out that
page and see what's in it? Something like

dd bs=8k skip=73333 count=1 if=relationfile | od -x

where you need to use oid2name or something similar to determine which
file contains that relation, and then append ".4" because block 597621
would be in the fifth segment of the file. (I got 73333 from
"select 597621 % 131072")

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Script Head 2005-11-23 21:01:03 PL/pgSQL: how to round a number up?
Previous Message Gary Horton 2005-11-23 20:27:20 Re: Questions on 8.1 install