Re: Database corruption.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Guerin <guerin(at)rentec(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Database corruption.
Date: 2007-02-08 05:57:14
Message-ID: 29913.1170914234@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Michael Guerin <guerin(at)rentec(dot)com> writes:
>> Hmm, that makes it sound like a plain old data-corruption problem, ie,
>> trashed xmin or xmax in some tuple header. Can you do a "select
>> count(*)" from this table without getting the error?
>>
> no, select count(*) fails around 25 millions rows.

OK, so you should be able to narrow down the corrupted row(s) and zero
them out, which'll at least let you get back the rest of the table.
See past archives for the standard divide-and-conquer approach to this.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shane Ambler 2007-02-08 06:55:24 Re: accidentally deleted user --> postgres
Previous Message Bruno Wolff III 2007-02-08 05:49:11 Re: temp tables in functions?