Re: insert into: NULL in date column

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: insert into: NULL in date column
Date: 2019-01-12 00:19:13
Message-ID: CAKFQuwa+6BXacKks+p9AM9ka4H3iOvW6Z=g=hz_+LphzY_0=Tg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jan 11, 2019 at 3:56 PM Rich Shepard <rshepard(at)appl-ecosys(dot)com> wrote:
>
> A table has this column definition:
>
> next_contact date DEFAULT '2020-11-06'
> CONSTRAINT valid_next_date
> CHECK (next_contact >= CURRENT_DATE),
>
> (and I don't know that it needs a default).

The default does seem a bit arbitrary and pointless...

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2019-01-12 00:23:23 Re: insert into: NULL in date column
Previous Message David G. Johnston 2019-01-12 00:18:15 Re: insert into: NULL in date column