Re: Create a deferrably-unique index

Поиск
Список
Период
Сортировка
От Paul Jungwirth
Тема Re: Create a deferrably-unique index
Дата
Msg-id CA+6hpa=eoeL=NcTRnJPy5ZDrhm2fpXpmF4LTKq_wawFSkdJayw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Create a deferrably-unique index  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Create a deferrably-unique index  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
> Deferrability is a property of a constraint, not an index

Yes, but creating a unique constraint implicitly creates an index, and
creating a unique index implicitly creates a constraint. So I'm
wondering whether I can create a pair where the index is partial and
the constraint is deferrable. It sounds like the answer is no? Is
there a workaround where I first create one and then alter the other
one?

Thanks,
Paul

--
_________________________________
Pulchritudo splendor veritatis.


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Create a deferrably-unique index
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Create a deferrably-unique index