Re: trying to repair a bad header block - Mailing list pgsql-sql

From Scott Marlowe
Subject Re: trying to repair a bad header block
Date
Msg-id dcc563d10810291824p72817961ufeffc8bb2b66c242@mail.gmail.com
Whole thread Raw
In response to Re: trying to repair a bad header block  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: trying to repair a bad header block
Re: trying to repair a bad header block
List pgsql-sql
On Wed, Oct 29, 2008 at 6:36 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Scott Marlowe" <scott.marlowe@gmail.com> writes:
>> On Wed, Oct 29, 2008 at 4:23 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> If you can tolerate losing the data on that page, just zero out the
>>> entire 8K page.  dd from /dev/zero is the usual tool.
>
>> Would zero_damaged_pages work here?  I know it's a shotgun to kill a
>> flea, but it's also easier and safer for a lot of folks than dding a
>> page in their table.
>
> It would work, but if you have any *other* damaged pages you might
> lose more than you were expecting ...

Agreed.  OTOH, on slip of the fingers for a newbie with dd and the
whole table is gone.  I guess it's always a trade off.


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: trying to repair a bad header block
Next
From: "Scott Marlowe"
Date:
Subject: Re: trying to repair a bad header block