Re: Unique constraints and indexes.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Unique constraints and indexes.
Дата
Msg-id 11612.1452023250@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Unique constraints and indexes.  (Steve Rogerson <steve.pg@yewtc.demon.co.uk>)
Ответы Re: Unique constraints and indexes.  (Steve Rogerson <steve.pg@yewtc.demon.co.uk>)
Список pgsql-general
Steve Rogerson <steve.pg@yewtc.demon.co.uk> writes:
> Is this a bug? I create a "unique" index, directly but it doesn't add a unique
> constraint. Add a unique constraint and it adds the index and the constraint.

That's operating as designed.  A unique constraint needs an index,
but not vice versa.

            regards, tom lane


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

Предыдущее
От: Roland van Laar
Дата:
Сообщение: Re: Code of Conduct: Is it time?
Следующее
От: Steve Rogerson
Дата:
Сообщение: Re: Unique constraints and indexes.