Re: Create a deferrably-unique index

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Create a deferrably-unique index
Дата
Msg-id 23968.1376937261@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Create a deferrably-unique index  (Paul Jungwirth <pj@illuminatedcomputing.com>)
Ответы Re: Create a deferrably-unique index  (Paul Jungwirth <pj@illuminatedcomputing.com>)
Список pgsql-general
Paul Jungwirth <pj@illuminatedcomputing.com> writes:
> I'm trying to create a unique index where the unique constraint is
> `deferrable initially immediate`. But I don't see any way to do this
> in the syntax of the `create index` command. It looks like the only
> way to do it is via `alter table foo add unique`. Is that right, or
> can I do it as part of `create index`?

Deferrability is a property of a constraint, not an index, so you can
only specify it for indexes that are associated with constraints.
Yes, that limits the kinds of indexes that can be used ...

            regards, tom lane


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

Предыдущее
От: Granthana Biswas
Дата:
Сообщение: AccessShareLock on pg_authid
Следующее
От: Paul Jungwirth
Дата:
Сообщение: Re: Create a deferrably-unique index