Re: Empty date - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: Empty date
Date
Msg-id 20050403143826.GA30342@wolff.to
Whole thread Raw
In response to Re: Empty date  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Responses Re: Empty date  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
List pgsql-general
On Sun, Apr 03, 2005 at 15:46:18 +0200,
  Karsten Hilbert <Karsten.Hilbert@gmx.net> wrote:
> > > type <date>" or some such. However the best would be to use
> > > "-infinity".
> >
> > +/- infinity are only available as timestamps, not dates.
> Hm, any particular reason why ? Apart from no one having
> gotten around to doing it...

I think that is it. I seem to remember a discussion of that about 2 or 3
years ago, but nothing came of it.

> Strange enough, on 7.4.6 I am unsure as to how to interpret
> the output of:
>
> select ('2000-10-10'::date < 'infinity'::timestamp::date);
>
>  ?column?
> ----------
>
> (1 row)
>
> Further testing shows it seems to be of type boolean. Is it
> NULL ? Coalesce did not help.

area=> select 'infinity'::timestamp::date is null;
 ?column?
----------
 t
(1 row)


pgsql-general by date:

Previous
From: Michelle Konzack
Date:
Subject: How to query pgsql from a BASH script ?
Next
From: Pavel Stehule
Date:
Subject: Re: How to query pgsql from a BASH script ?