dbTalk Databases Forums  

invalid page header

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss invalid page header in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael Guerin
 
Posts: n/a

Default invalid page header - 06-09-2004 , 08:29 AM






INFO: vacuuming "pg_toast.pg_toast_17242"
ERROR: invalid page header in block 2003917 of relation "pg_toast_17242"

Is there a way to fix this error, or do I need to rebuild the table?

thanks
Michael.


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster


Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: invalid page header - 06-09-2004 , 09:13 AM






Michael Guerin <guerin (AT) rentec (DOT) com> writes:
Quote:
INFO: vacuuming "pg_toast.pg_toast_17242"
ERROR: invalid page header in block 2003917 of relation "pg_toast_17242"

Is there a way to fix this error, or do I need to rebuild the table?
zero_damaged_pages would get you past that error, but I'd be worrying
about what data you've lost or are going to lose. Dumping and reloading
the table that owns this toast table would be a safer route; it would at
least make it real clear what damage you'd suffered.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match



Reply With Quote
  #3  
Old   
Michael Guerin
 
Posts: n/a

Default Re: invalid page header - 06-09-2004 , 11:32 AM



"Dumping and reloading the table that owns this toast table would be a safer route; it would at
least make it real clear what damage you'd suffered."

Is this b/c the damaged pages would be zero'd out? I tried searching the docs, but it seems the search daemon is down.

Thanks
Michael



Tom Lane wrote:

Quote:
Michael Guerin <guerin (AT) rentec (DOT) com> writes:


INFO: vacuuming "pg_toast.pg_toast_17242"
ERROR: invalid page header in block 2003917 of relation "pg_toast_17242"





Is there a way to fix this error, or do I need to rebuild the table?



zero_damaged_pages would get you past that error, but I'd be worrying
about what data you've lost or are going to lose. Dumping and reloading
the table that owns this toast table would be a safer route; it would at
least make it real clear what damage you'd suffered.

regards, tom lane



---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html



Reply With Quote
  #4  
Old   
Tom Lane
 
Posts: n/a

Default Re: invalid page header - 06-09-2004 , 11:40 AM



Michael Guerin <guerin (AT) rentec (DOT) com> writes:
Quote:
"Dumping and reloading the table that owns this toast table would be a safer route; it would at
least make it real clear what damage you'd suffered."

Is this b/c the damaged pages would be zero'd out?
Right, which would make vacuum happy, but you'd be missing some data.
(Unless you're fortunate enough that there are no currently-live rows
on the damaged page.)

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)



Reply With Quote
  #5  
Old   
Michael Guerin
 
Posts: n/a

Default Re: invalid page header - 06-12-2004 , 02:02 PM



Tom Lane wrote:

Quote:
Michael Guerin <guerin (AT) rentec (DOT) com> writes:


"Dumping and reloading the table that owns this toast table would be a safer route; it would at
least make it real clear what damage you'd suffered."





Is this b/c the damaged pages would be zero'd out?



Right, which would make vacuum happy, but you'd be missing some data.
(Unless you're fortunate enough that there are no currently-live rows
on the damaged page.)

regards, tom lane


I tried using pg_dump and copy, but both get errors and fail. Is there
another way that I should try to export the data? Also, I sent another
post recently trying to find out how these things happen. The drives
seem to be ok, although I still need to memcheck. This is the second
corruption in a 4 day span, but I can't find any clues to why its happening.

-michael


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html



Reply With Quote
  #6  
Old   
Tom Lane
 
Posts: n/a

Default Re: invalid page header - 06-12-2004 , 02:38 PM



Michael Guerin <guerin (AT) rentec (DOT) com> writes:
Quote:
Tom Lane wrote:
"Dumping and reloading the table that owns this toast table would be a safer route; it would at
least make it real clear what damage you'd suffered."

I tried using pg_dump and copy, but both get errors and fail. Is there
another way that I should try to export the data?
That's about what I expected would happen. What you're now down to is
having to identify and delete the specific rows that suffered damage.
Once you can do a "SELECT *" from the table without error, pg_dump will
work.

Quote:
Also, I sent another post recently trying to find out how these things
happen. The drives seem to be ok, although I still need to memcheck.
This is the second corruption in a 4 day span, but I can't find any
clues to why its happening.
I'd be pretty suspicious about bad RAM if I were you ...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.