Deferred NOT NULL?

Поиск
Список
Период
Сортировка
От Gregory Wood
Тема Deferred NOT NULL?
Дата
Msg-id 00fa01c09c1a$9fd20d80$7889ffcc@comstock.com
обсуждение исходный текст
Список pgsql-general
I'd like to create a new table with a NOT NULL constraint that is deferred
until the transaction commit. Unfortunately with this definition:

CREATE TABLE foo (bar  INTEGER NOT NULL INITIALLY DEFERRED);

I get this error:

ERROR:  Misplaced INITIALLY DEFERRED clause

Is it possible to do this or do I have to define it as a CHECK constraint
and defer that?

Greg


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Multiple triggers/rules
Следующее
От: Antonis Antoniou
Дата:
Сообщение: AllocSetAlloc()