Re: Invalid page header in block xxxx

Lists: pgsql-general
From: "Carmen Wai" <wai_carmen(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Invalid page header in block xxxx
Date: 2003-11-22 14:23:50
Message-ID: Law15-F55VrPm5QuG6k00006a4f@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Hello:

I am a new user of postgresql. I am using postgresql 7.3.4 and I had
inserted about 1.7 million records to a table. When I vacuum / select * from
table, it gets a error message of : Invalid page header in block xxx of
TableA. I check that I still can insert records to the table. But I am not
able to get part of the data (as I try to copy all records to text file,
only around 1.6 million records are copied.)

How can I recovery the data, and how can I prevent the occurrence of this
error? I am only using the default config in postgresql.conf.

Thanks a lot!
Carmen

_________________________________________________________________
Linguaphone : Learning English? Get Japanese lessons for FREE
http://go.msnserver.com/HK/30476.asp


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Carmen Wai" <wai_carmen(at)hotmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Invalid page header in block xxxx
Date: 2003-11-23 18:16:48
Message-ID: 28285.1069611408@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

"Carmen Wai" <wai_carmen(at)hotmail(dot)com> writes:
> I am a new user of postgresql. I am using postgresql 7.3.4 and I had
> inserted about 1.7 million records to a table. When I vacuum / select * from
> table, it gets a error message of : Invalid page header in block xxx of
> TableA. I check that I still can insert records to the table. But I am not
> able to get part of the data (as I try to copy all records to text file,
> only around 1.6 million records are copied.)

It sounds to me like you have unreliable disk hardware --- I'd suggest
running badblocks or some other disk-tester program to look for problems.

regards, tom lane