Re: Partially corrupted table - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Partially corrupted table
Date
Msg-id 20517.1156903810@sss.pgh.pa.us
Whole thread Raw
In response to Re: Partially corrupted table  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-bugs
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Tom Lane wrote:
>> The underlined word is a field length word that evidently should contain
>> 8, but contains hex 8008.  This causes the tuple-data decoder to step
>> way past the end of the tuple and off into never-never land.

> Hmm, perhaps we could protect against "impossible" length words?

Perhaps.  I'm hesitant to add additional tests into the inner loop of
heap_deform_tuple and friends though.   It's not like it's going to do
anything to recover your data post-corruption :-(

            regards, tom lane

pgsql-bugs by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Partially corrupted table
Next
From: Kris Jurka
Date:
Subject: Re: BUG #2593: Improper implimentation of SQLException