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 21:12:59
Message-ID: alpine.LNX.2.20.1901041311420.29312@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 4 Jan 2019, Andreas Kretschmer wrote:

>>   Only if all projects have a known end_date; some don't.
>
> that's not a problem:
>
> test=*# create table projects(duration daterange default
> daterange(current_date,null) check(lower(duration) is not null));

Andreas,

Thank you. That's a data type I've not before used.

Regards,

Rich

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2019-01-04 21:21:30 Re: Comparing dates in DDL
Previous Message Ken Benson 2019-01-04 20:44:34 32-bit supporting binaries for version 11