Re: ERROR: invalid page header in block 502758 of relation base/16388/16403

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: fous velkej <honza801(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: ERROR: invalid page header in block 502758 of relation base/16388/16403
Date: 2009-09-16 14:01:13
Message-ID: 4057.1253109673@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

fous velkej <honza801(at)gmail(dot)com> writes:
> hi again
> i've stopped postgres and done this
> dd if=16403.3.orig of=16403.3 bs=8192 count=109541
> dd if=/dev/zero bs=8192 count=1 >> 16403.3
> dd if=16403.3.orig skip=109542 bs=8192 >> 16403.3

> then started postgres, but did not help, the same error appears.
> ERROR: invalid page header in block 502758 of relation base/16388/16403

> am i doing anything wrong?

You appear to be zeroing block 109541 not 109542.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message fous velkej 2009-09-16 14:35:38 Re: ERROR: invalid page header in block 502758 of relation base/16388/16403
Previous Message Magnus Hagander 2009-09-16 13:49:46 Re: BUG #5061: pg_autovacuum is not in 8.4 Version