Re: Deferrable NOT NULL constraints in 9.3?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Deferrable NOT NULL constraints in 9.3?
Дата
Msg-id 201.1352400710@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Deferrable NOT NULL constraints in 9.3?  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Thu, Nov 8, 2012 at 4:45 AM,  <andreak@officenet.no> wrote:
>> Are there any plans to include DEFERRABLE NOT NULL constraints in 9.3 so one
>> can do this?
>> 
>> create table test(a varchar not null deferrable initially deferred);
>> 
>> This works in Oracle and is quite handy when working with ORMs.

> Not to my knowledge ... although I can't claim to know everything that
> anyone is working on.

You could get the effect by applying the not-null check in a custom
constraint trigger.  A bit tedious but it'd work.
        regards, tom lane



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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: the number of pending entries in GIN index with FASTUPDATE=on
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: [BUG] False indication in pg_stat_replication.sync_state