Determine if an index is a B-tree, GIST, or something else?

Поиск
Список
Период
Сортировка
От Paul Jungwirth
Тема Determine if an index is a B-tree, GIST, or something else?
Дата
Msg-id CA+6hpamPo7w7CJ1VWSR6NcBTuoLC_QJmaXXi3ud8D9UDZ0NTxg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Determine if an index is a B-tree, GIST, or something else?  (Ben Chobot <bench@silentmedia.com>)
Re: Determine if an index is a B-tree, GIST, or something else?  (Devrim GÜNDÜZ <devrim@gunduz.org>)
Re: Determine if an index is a B-tree, GIST, or something else?  (Devrim GÜNDÜZ <devrim@gunduz.org>)
Список pgsql-general
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 indexes in my database, and I'd like to include whether it's a GIST index, a B-Tree, or whatever was in the USING clause when the 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-Tree and what isn't. Any advice?

Thanks,
Paul

--
_________________________________
Pulchritudo splendor veritatis.

В списке pgsql-general по дате отправления:

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: Libpq and multithreading
Следующее
От: Ben Chobot
Дата:
Сообщение: Re: Determine if an index is a B-tree, GIST, or something else?