Re: Postgres will not start due to corrupt index

From: Igor Neyman <ineyman(at)perceptron(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Robert Sosinski <rsosinski(at)ticketevolution(dot)com>, Merlin Moncure <mmoncure(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>, Spike Grobstein <spike(at)ticketevolution(dot)com>
Subject: Re: Postgres will not start due to corrupt index
Date: 2012-10-03 19:51:52
Message-ID: A76B25F2823E954C9E45E32FA49D70EC08EB709E@mail.corp.perceptron.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> -----Original Message-----
> From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
> Sent: Wednesday, October 03, 2012 2:47 PM
> To: Igor Neyman
> Cc: Robert Sosinski; Merlin Moncure; pgsql-general(at)postgresql(dot)org;
> Spike Grobstein
> Subject: Re: [GENERAL] Postgres will not start due to corrupt index
>
> Igor Neyman <ineyman(at)perceptron(dot)com> writes:
> > I wonder if there is a column in pg catalog, that indicates the type
> of the index. I couldn't find one.
>
> join relam to pg_am.oid
>
> > So, I ran the following sql trying to find system indexes of gin or
> gist type:
>
> There aren't any.
>
> regards, tom lane

Tom, thank you.

In this case:

select i.indexname, a.amname, i.tablename from pg_indexes i JOIN
(pg_class c join pg_am a ON (c.relam = a.oid) ) ON (i.indexname = c.relname)
WHERE i.schemaname = 'pg_catalog';

Regards,
Igor Neyman

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Frank Lanitz 2012-10-03 20:22:42 Re: PostgreSQL force create table / ignore constraints?
Previous Message Raymond O'Donnell 2012-10-03 19:41:03 Re: syntax error collate