Re: Postgres will not start due to corrupt index - Mailing list pgsql-general

From Igor Neyman
Subject Re: Postgres will not start due to corrupt index
Date
Msg-id A76B25F2823E954C9E45E32FA49D70EC08EB709E@mail.corp.perceptron.com
Whole thread Raw
In response to Re: Postgres will not start due to corrupt index  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
> Sent: Wednesday, October 03, 2012 2:47 PM
> To: Igor Neyman
> Cc: Robert Sosinski; Merlin Moncure; pgsql-general@postgresql.org;
> Spike Grobstein
> Subject: Re: [GENERAL] Postgres will not start due to corrupt index
>
> Igor Neyman <ineyman@perceptron.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


pgsql-general by date:

Previous
From: Raymond O'Donnell
Date:
Subject: Re: syntax error collate
Next
From: Frank Lanitz
Date:
Subject: Re: PostgreSQL force create table / ignore constraints?