Re: extended index info

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: extended index info
Дата
Msg-id 217.1141396429@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: extended index info  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
Michael Fuhr <mike@fuhr.org> writes:
> On Fri, Mar 03, 2006 at 05:46:59PM +1100, Chris wrote:
>> If I look at an index:
>> It doesn't show me which fields it actually applies to, only the table.

> \d news_pkey

Also, \d on the index's parent table will show you all the index
definitions.  This is more useful than the "\d index" display in some
cases, particularly non-default opclasses and index expressions.
For example:

regression=# create index fooi on tenk1((unique1+unique2));
CREATE INDEX
regression=# \d fooi
    Index "public.fooi"
     Column      |  Type
-----------------+---------
 pg_expression_1 | integer
btree, for table "public.tenk1"

regression=# \d tenk1
...
Indexes:
    "fooi" btree ((unique1 + unique2))
...

I'm not really sure why we don't account for these cases in "\d index",
unless that it's hard to see where to fit the info into a tabular
layout.

            regards, tom lane

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

Предыдущее
От: Douglas McNaught
Дата:
Сообщение: Re: Linux cluster application
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Postgres automatically inserts chr(13) whenever chr(10) is inserted