Re: 2147483642::abstime is null, 2147483644::abstime is null

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Dr(dot) Stephane Schildknecht" <sschildknecht(at)linagora(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: 2147483642::abstime is null, 2147483644::abstime is null
Date: 2005-03-04 15:52:55
Message-ID: 27847.1109951575@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Dr. Stephane Schildknecht" <sschildknecht(at)linagora(dot)com> writes:
> Tom Lane wrote:
>> It doesn't. It returns "invalid" and "infinity".

> Is there a reason for this ?

I suppose the "invalid" value is a legacy thing, but "infinity"
certainly strikes me as useful. We have that in the regular
timestamp type as well.

If you're asking why those particular encoded values, I dunno.
Certainly it seems like "infinity" needs to be larger than all
normal values so you don't have to special-case it in comparisons.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ulrich Schwab 2005-03-04 15:54:46 Re: Blob Fields
Previous Message Dr. Stephane Schildknecht 2005-03-04 15:50:43 Re: 2147483642::abstime is null, 2147483644::abstime is