| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера