database corruption help needed

database corruption help needed

am 22.02.2009 21:53:12 von Ken.Colson

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C9952F.93163F00
Content-Type: text/plain

Greetings,



I had a hardware problem this morning, which I believe is now resolved, but
I seem to have a little database corruption issue. This is what I am seeing
when I restart postgres:



PANIC: right sibling's left-link doesn't match



So I attempted to reindex the database and now I get this error:



ERROR: could not create unique index

DETAIL: Table contains duplicated values.



But it does not mention which index it is trying to build, so I am at a
little bit of a stand still. I am currently vaccuming the database to see
if that helps, but...I don't know what else to do from here.



Any suggestions? I am running 8.2.5 on 64bit Linux.



Thanks in advance,

Ken




------_=_NextPart_001_01C9952F.93163F00
Content-Type: text/html

















style='font-size:10.0pt;font-family:"Courier New"'>Greetings,



style='font-size:10.0pt;font-family:"Courier New"'> 



style='font-size:10.0pt;font-family:"Courier New"'>I had a hardware problem
this morning, which I believe is now resolved, but I seem to have a little
database corruption issue.  This is what I am seeing when I restart postgres:



style='font-size:10.0pt;font-family:"Courier New"'> 



style='font-size:10.0pt;font-family:"Courier New"'>PANIC: right sibling's left-link
doesn't match



style='font-size:10.0pt;font-family:"Courier New"'> 



style='font-size:10.0pt;font-family:"Courier New"'>So I attempted to reindex
the database and now I get this error:



style='font-size:10.0pt;font-family:"Courier New"'> 



style='font-size:10.0pt;font-family:"Courier New"'>ERROR:  could not create
unique index



style='font-size:10.0pt;font-family:"Courier New"'>DETAIL:  Table contains
duplicated values.



style='font-size:10.0pt;font-family:"Courier New"'> 



style='font-size:10.0pt;font-family:"Courier New"'>But it does not mention
which index it is trying to build, so I am at a little bit of a stand still.  I
am currently vaccuming the database to see if that helps, but...I don't know
what else to do from here.



style='font-size:10.0pt;font-family:"Courier New"'> 



style='font-size:10.0pt;font-family:"Courier New"'>Any suggestions?  I am
running 8.2.5 on 64bit Linux.



style='font-size:10.0pt;font-family:"Courier New"'> 



style='font-size:10.0pt;font-family:"Courier New"'>Thanks in advance,



style='font-size:10.0pt;font-family:"Courier New"'>Ken



 









------_=_NextPart_001_01C9952F.93163F00--

Re: database corruption help needed

am 23.02.2009 00:12:14 von Tom Lane

Ken.Colson@sage.com writes:
> I had a hardware problem this morning, which I believe is now resolved, but
> I seem to have a little database corruption issue. This is what I am seeing
> when I restart postgres:
> PANIC: right sibling's left-link doesn't match

8.2.6 and later provide a little more detail in that message --- try
updating. (Be sure the update is built with same options as your
existing 8.2.5 installation.)

regards, tom lane

--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Re: database corruption help needed

am 24.02.2009 06:24:38 von Scott Marlowe

On Sun, Feb 22, 2009 at 1:53 PM, wrote:
> Greetings,
>
>
>
> I had a hardware problem this morning, which I believe is now resolved, b=
ut
> I seem to have a little database corruption issue.=A0 This is what I am s=
eeing
> when I restart postgres:
>
> PANIC: right sibling's left-link doesn't match
>

Know that if you do get the database mostly or all the way back up, it
is not to be trusted, and you should make a backup, reinitdb and then
restore to a fresh database cluster.

--=20
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin