Re: table corrupted

From: João Eugenio Marynowski <joaoem(at)gmail(dot)com>
To: Dimitri Fontaine <dfontaine(at)hi-media(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: table corrupted
Date: 2009-10-24 22:17:19
Message-ID: 840f304c0910241517w4577b4efiebe2e1ecb2cfa4d8@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2009/10/23 João Eugenio Marynowski <joaoem(at)gmail(dot)com>

> I thought this would solve my problems but not yet ...
> the block that I found is not presenting error...
> find_bad_block
> ----------------
> (514708,16)
> (1 registro)
> blockId / blocks_per_chunk = 514708 / 131072 = 3,9269104
> base/21058/21271.3
> chunk_block_id = block_id % blocks_per_chunk = 514708 % 131072 = 121492
> is attached the result of pg_filedump -if -R 121492
> /var/lib/postgresql/8.2/main/base/21058/21271.3
> Even then I filled the block with zero
> But when I run again the find_bad_block it show one block before, ctid
> 514707, and then, 514706 and I stop...
> Any suggestion and explication?
>
> --
> João Eugenio
>

I fond manually a record with error (462813,13) and zeroed it and the BD
work ok only with 18 register lost that will be recovery from old backup.
The function find_bad_block (
http://archives.postgresql.org/pgsql-general/2007-07/msg00506.php )
don't work for me, anybody know why?

Thanks for now!

--
João Eugenio Marynowski

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-10-24 23:16:30 WIP patch: EvalPlanQual rewrite
Previous Message Peter Eisentraut 2009-10-24 21:33:06 Re: UTF8 with BOM support in psql