Re: No implicit index created when adding primary key with ALTER TABLE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: No implicit index created when adding primary key with ALTER TABLE
Дата
Msg-id 10127.1308091183@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: No implicit index created when adding primary key with ALTER TABLE  (Stefan Keller <sfkeller@gmail.com>)
Ответы Re: No implicit index created when adding primary key with ALTER TABLE  (Stefan Keller <sfkeller@gmail.com>)
Список pgsql-general
Stefan Keller <sfkeller@gmail.com> writes:
> My explanation is that the message (saying that an index was
> implicitly created) is simply wrong.

The correct explanation is that you're misinterpreting whatever output
you're looking at.  Every unique or pkey constraint has an underlying
index --- the index is the implementation mechanism for the constraint,
so this is assuredly so.  Some tools that show both constraints and
indexes will omit constraint-associated indexes from the listing, since
otherwise they'd be showing duplicate information.

            regards, tom lane

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

Предыдущее
От: Stefan Keller
Дата:
Сообщение: Re: No implicit index created when adding primary key with ALTER TABLE
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: No implicit index created when adding primary key with ALTER TABLE