Re: Partially corrupted table

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Filip Hrbek <filip(dot)hrbek(at)plz(dot)comstar(dot)cz>, pgsql-bugs(at)postgreSQL(dot)org
Subject: Re: Partially corrupted table
Date: 2006-08-30 00:18:36
Message-ID: 20060830001836.GF25283@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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. Since the
> results will depend on which shared buffer the page happens to be in and
> what happens to be at the address the step lands at, the inconsistent
> results from try to try are not so surprising.

Hmm, perhaps we could protect against "impossible" length words? (i.e.
those that would cause us try to read past the end of the current
buffer).

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2006-08-30 02:10:10 Re: Partially corrupted table
Previous Message Tom Lane 2006-08-29 23:33:45 Re: Partially corrupted table