Re: [GENERAL] Default column value [ANSWERED] - Mailing list pgsql-general

From Adrian Klaver
Subject Re: [GENERAL] Default column value [ANSWERED]
Date
Msg-id 44075a8f-762a-6294-cb57-9331f6cc0fce@aklaver.com
Whole thread Raw
In response to Re: [GENERAL] Default column value [ANSWERED]  (Rich Shepard <rshepard@appl-ecosys.com>)
List 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.klaver@aklaver.com


pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: [GENERAL] Default column value
Next
From: Amitabh Kant
Date:
Subject: Re: [GENERAL] performance tuning postgresql 9.5.5.10 [enterprisedb]