Re: Determine if an index is a B-tree, GIST, or something else? - Mailing list pgsql-general

From Ben Chobot
Subject Re: Determine if an index is a B-tree, GIST, or something else?
Date
Msg-id E5552DE1-0BAF-41E4-A678-E7B648342530@silentmedia.com
Whole thread Raw
In response to Determine if an index is a B-tree, GIST, or something else?  (Paul Jungwirth <pj@illuminatedcomputing.com>)
Responses Re: Determine if an index is a B-tree, GIST, or something else?  (Paul Jungwirth <pj@illuminatedcomputing.com>)
List pgsql-general
On Jan 17, 2013, at 10:03 AM, Paul Jungwirth wrote:

> Is there any way to determine, by querying pg_index and other pg_* tables, whether an index was created as `USING
something`?I've already got a big query joining pg_class, pg_index, etc. to pull out various attributes about the
indexesin my database, and I'd like to include whether it's a GIST index, a B-Tree, or whatever was in the USING clause
whenthe index was created. 
>
> I see that I can join with the pg_opclass table, but that has 100+ rows, and I'm not sure how to tell what is a
B-Treeand what isn't. Any advice? 

pg_indexes (not pg_index) seems to have the data you're looking for, unless I misunderstood the question.

pgsql-general by date:

Previous
From: Paul Jungwirth
Date:
Subject: Determine if an index is a B-tree, GIST, or something else?
Next
From: Vincent Veyron
Date:
Subject: Re: Linux Distribution Preferences?