Re: Unique index

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Unique index
Дата
Msg-id 3983831447229a17fc9028fd2f5b2aaf0996c291.camel@cybertec.at
обсуждение исходный текст
Ответ на Unique index  (Rajesh Kumar <rajeshkumar.dba09@gmail.com>)
Список pgsql-admin
On Wed, 2023-09-20 at 19:16 +0530, Rajesh Kumar wrote:
> Why unique index is used over unique constraints?

A unique constraint is implemented by a unique index.
If you create the constraint, the index is created automatically.
You cannot drop the index unless you drop the constraint.

Yours,
Laurenz Albe



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

Предыдущее
От: Rajesh Kumar
Дата:
Сообщение: Unique index
Следующее
От: Erik Wienhold
Дата:
Сообщение: Re: Unique index