Re: Corrupted index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Akash Garg <akash(dot)garg(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Corrupted index
Date: 2005-06-23 14:36:14
Message-ID: 4963.1119537374@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Akash Garg <akash(dot)garg(at)gmail(dot)com> writes:
> During a vacuum, I ran into this error:
> vacuumdb: vacuuming of database "friend" failed: ERROR: invalid page
> header in block 41661 of relation "friend_pkey"

> I've read the posts on this newsgroup and it's clear that I have to
> REINDEX to fix this. The bigger question is -- why did this happen in
> the first place?

Good question. If you haven't REINDEXed yet, it would be worthwhile
to get a hex dump (use "od -x") of that page of the index first.
Speculation with no data to look at is a bit pointless ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2005-06-23 15:23:08 Re: fields and foreign keys
Previous Message Tom Lane 2005-06-23 14:24:52 Re: multiple action rules