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

From: fous velkej <honza801(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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 13:37:16
Message-ID: 27cffc0909160637k4c19690cqc3a57cff01e6a09d@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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?

regards, fous

>
> Right, so it would be in the .3 file at block number 109542.
>
> regression=# select 502758 / 131072;
>  ?column?
> ----------
>        3
> (1 row)
>
> regression=# select 502758 % 131072;
>  ?column?
> ----------
>   109542
> (1 row)
>
>
>                        regards, tom lane
>

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Magnus Hagander 2009-09-16 13:49:46 Re: BUG #5061: pg_autovacuum is not in 8.4 Version
Previous Message 황수진 2009-09-16 13:33:39 bug report