Re: How to retrieve functional index column names

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to retrieve functional index column names
Дата
Msg-id 21010.1073627783@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to retrieve functional index column names  (glogy@centrum.cz (Jakub))
Список pgsql-hackers
glogy@centrum.cz (Jakub) writes:
> I need to retrieve the name of the function and the index column names
> of the functional index. The system information about the
> index(function and its args) is stored in the system catalog column
> pg_index.indexprs.

As of 7.4, this is a requirement badly in need of reconsideration.
What makes you think there is any function name involved?  Consider
something likecreate index i on t ((col + 2));

Getting the column names is still a sensible operation though.  I'd
suggest looking in pg_depend to see which columns of the table the
index depends on.
        regards, tom lane


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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Restrict users from describing table
Следующее
От: Thomas Swan
Дата:
Сообщение: Re: psql \d option list overloaded