Re: infinity as a date - Mailing list pgsql-general

From Tom Lane
Subject Re: infinity as a date
Date
Msg-id 3867.1039674912@sss.pgh.pa.us
Whole thread Raw
In response to Re: infinity as a date  (Jean-Christian Imbeault <jc@mega-bucks.co.jp>)
Responses Re: infinity as a date  ("Peter Darley" <pdarley@kinesis-cem.com>)
List pgsql-general
Jean-Christian Imbeault <jc@mega-bucks.co.jp> writes:
> As an aside, why is there a concept of an infinite timestamp but not one
> for date?

Purely historical, I'd imagine.  The various Postgres datatypes were
developed at different times by different people.  Tom Lockhart perhaps
remembers more about this particular discrepancy.

If you are sufficiently annoyed, please submit patches to make DATE
treat MAXINT and MININT as +infinity and -infinity instead of normal
dates.  I would expect we'd accept such a patch.

            regards, tom lane

pgsql-general by date:

Previous
From: Jean-Christian Imbeault
Date:
Subject: Re: infinity as a date
Next
From: Jean-Christian Imbeault
Date:
Subject: Re: infinity as a date