From: | Bruno Wolff III <bruno(at)wolff(dot)to> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Empty date |
Date: | 2005-04-03 14:38:26 |
Message-ID: | 20050403143826.GA30342@wolff.to |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Sun, Apr 03, 2005 at 15:46:18 +0200,
Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)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)
From | Date | Subject | |
---|---|---|---|
Next Message | Sean Davis | 2005-04-03 14:41:06 | Re: How to query pgsql from a BASH script ? |
Previous Message | Pavel Stehule | 2005-04-03 14:36:47 | Re: How to query pgsql from a BASH script ? |