Re: infinity as a date

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: infinity as a date
Дата
Msg-id 3867.1039674912@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: infinity as a date  (Jean-Christian Imbeault <jc@mega-bucks.co.jp>)
Ответы Re: infinity as a date  ("Peter Darley" <pdarley@kinesis-cem.com>)
Список 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 по дате отправления:

Предыдущее
От: Jean-Christian Imbeault
Дата:
Сообщение: Re: infinity as a date
Следующее
От: Jean-Christian Imbeault
Дата:
Сообщение: Re: infinity as a date