From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | Rich Shepard <rshepard(at)appl-ecosys(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Default column value [ANSWERED] |
Date: | 2016-12-30 21:46:48 |
Message-ID: | 44075a8f-762a-6294-cb57-9331f6cc0fce@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 12/30/2016 08:51 AM, Rich Shepard wrote:
> On Fri, 30 Dec 2016, David G. Johnston wrote:
>
>> "The CHECK clause specifies an expression producing a Boolean result
>> which
>> new or updated rows must satisfy for an insert or update operation to
>> succeed. Expressions evaluating to TRUE or UNKNOWN succeed."
>>
>> NULL == "UNKNOWN"
>
> David,
>
> I forgot about that. Thanks for pointing it out to me.
What it comes down to is if you do not want NULL values in a column then
specify NOT NULL on the column.
>
> Regards,
>
> Rich
>
>
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Amitabh Kant | 2016-12-31 03:45:41 | Re: performance tuning postgresql 9.5.5.10 [enterprisedb] |
Previous Message | Joshua D. Drake | 2016-12-30 17:11:57 | Re: Default column value |