Re: Unique index and unique constraint

Поиск
Список
Период
Сортировка
От Dmitriy Igrishin
Тема Re: Unique index and unique constraint
Дата
Msg-id CAAfz9KPaZ8RQBaY8W1kBPxk6rA-BLCRAtk4mXc1kW5J4O=EtwQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Unique index and unique constraint  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-sql



2013/7/27 Alvaro Herrera <alvherre@2ndquadrant.com>
PostgreSQL implements unique constraints by way of unique indexes (and
it's likely that all RDBMSs do likewise).  Also, the syntax to declare
unique indexes allows for more features than the unique constraints
syntax.  For example, you can have a unique index that covers only
portion of the table, based on a WHERE condition (a partial unique
index).  You can't do this with a constraint.
Note, partial uniqueness can be achieved by using EXCLUDE contraints also.

--
// Dmitriy.

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

Предыдущее
От: Sergey Konoplev
Дата:
Сообщение: Re: Unique index and unique constraint
Следующее
От: F Bax
Дата:
Сообщение: Presenting data in 5 Rows & 5 Cols for 25 specific values