Re: Comparing dates in DDL

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Comparing dates in DDL
Date: 2019-01-04 17:26:10
Message-ID: alpine.LNX.2.20.1901040924180.29312@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 4 Jan 2019, Rob Sargent wrote:

> Is the end_date always knowable at record insert?

Rob,

Not always. Sometimes projects have known end dates, other times the end
is interminate until it happens.

> CHECK(end_date is null or start_date <= end_date)

So a default of NULL should be applied, or just allowed to happen?

Thanks,

Rich

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2019-01-04 17:30:05 Re: Comparing dates in DDL
Previous Message legrand legrand 2019-01-04 17:25:17 Re: (Again) Column Store on PostGreSQL