Re: help troubleshooting invalid page header error - Mailing list pgsql-general

From Kevin Grittner
Subject Re: help troubleshooting invalid page header error
Date
Msg-id 363814273.1369637.1419865211866.JavaMail.yahoo@jws100132.mail.ne1.yahoo.com
Whole thread Raw
In response to Re: help troubleshooting invalid page header error  (Cory Zue <czue@dimagi.com>)
List pgsql-general
Cory Zue <czue@dimagi.com> wrote:

> I was able to get the database back to a normal functional state
> using the zero_damaged_pages flag. However, after getting
> everything working and starting to use the database again, I am
> again getting "invalid page header" errors on a certain table.
>
> Does this imply there is a hardware issue on my machine? Is there
> anything else that could be causing this to come back?

In my personal experience bad hardware is the most common cause,
followed by buggy device drivers (where an OS software upgrade
prevented further corruption), followed by using incorrect
procedures for backup, restore, replication setup, or node
promotion.  For example, not excluding files under pg_xlog from a
base backup or deleting (or moving) the backup_label file can cause
corruption.

For a more complete discussion, see this blog page:

http://rhaas.blogspot.com/2012/03/why-is-my-database-corrupted.html

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

pgsql-general by date:

Previous
From: Viktor Shitkovskiy
Date:
Subject: Re: Rollback on include error in psql
Next
From: Ronald Peterson
Date:
Subject: extra function calls from query returning composite type