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 17:45:34
Message-ID: 6787.1119548734@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:
> I'll try running the od command -- I'm just a little confused on where
> I run it. I tried running od -x 41661 but that doesn't yield any
> results. I'm assuming I have to run this command on the actual index
> file itself -- how do I do this?

See contrib/oid2name, or read the docs at
http://developer.postgresql.org/docs/postgres/storage.html
to learn how to figure out which file is the index. (In pre-8.0 PG,
ignore what those docs say about tablespaces, but the rest of the info
goes back a ways.) The short answer is you need the database's OID
from pg_database, and the index's relfilenode from pg_class.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Akash Garg 2005-06-23 17:51:02 Re: Corrupted index
Previous Message YL 2005-06-23 17:43:24 multi-languages in a table