From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | andreak(at)officenet(dot)no, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Deferrable NOT NULL constraints in 9.3? |
Date: | 2012-11-08 18:51:50 |
Message-ID: | 201.1352400710@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> On Thu, Nov 8, 2012 at 4:45 AM, <andreak(at)officenet(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Fujii Masao | 2012-11-08 18:53:17 | Re: [BUG] False indication in pg_stat_replication.sync_state |
Previous Message | Fujii Masao | 2012-11-08 18:42:44 | Re: the number of pending entries in GIN index with FASTUPDATE=on |