From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas F. O'Connell <tfo@sitening.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Invalid Page Headers
Date: Wed, 19 Apr 2006 19:42:01 -0400
Message-ID: <5191.1145490121@sss.pgh.pa.us> (raw)
In-Reply-To: <mBxUdlkr.1145485874.0777790.tfo@chilco.textdrive.com>
References: <mBxUdlkr.1145485874.0777790.tfo@chilco.textdrive.com>
"Thomas F. O'Connell" <tfo@sitening.com> writes:
> Any tips on turning "ERROR: invalid page header in block 34 of
> relation" into a pg_filedump command that would yield something useful
> or interesting? If so, I'll post the results of all three relations
> known to be corrupt so far.
For me, the nicest pg_filedump output format is "-i -f", but if the page
is sufficiently hosed that pg_filedump can't make any sense of it, you
may have to fall back to a raw dump, "-d". In any case, if you don't
want to dump the entire file, use "-R blkno" or "-R startblk endblk"
to constrain the dump.
BTW, last I heard the posting size limit on these lists was only about
20K. If you don't want your results to languish awhile in the
moderator's approval queue, you might want to post a link to the dump
instead of the whole thing.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, tfo@sitening.com
Subject: Re: Invalid Page Headers
In-Reply-To: <5191.1145490121@sss.pgh.pa.us>
References: <mBxUdlkr.1145485874.0777790.tfo@chilco.textdrive.com> <5191.1145490121@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox