Re: Determine if an index is a B-tree, GIST, or something else?
От | Paul Jungwirth |
---|---|
Тема | Re: Determine if an index is a B-tree, GIST, or something else? |
Дата | |
Msg-id | CA+6hpak=ekKWkU1NEs-a-YVTz+meLRNVDfgT1ww7ZGvMxEjgOA@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?
|
Список | pgsql-general |
> pg_indexes (not pg_index) seems to have the data you're looking for, unless I misunderstood the question.
That is a lovely table, but I want to get each attribute individually, without having to parse the CREATE INDEX .... statement.It looks like I was almost there with pg_opclass. This will tell me what kind of index is required for each operator:
select opcnamespace, opcname, amname from pg_opclass o, pg_am a where o.opcmethod = a.oid;
Thanks,
Paul
В списке pgsql-general по дате отправления: