Re: BUG #4960: Unexpected timestamp rounding

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #4960: Unexpected timestamp rounding
Дата
Msg-id 14785.1249074725@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #4960: Unexpected timestamp rounding  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-bugs
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> "Matthias" <matthias.cesna@gmail.com> wrote:
>> It is about when using a upper-boundary timestamp. The value of
>> 9999-12-31 23:59:59.999999 is sometimes used to indicate an infinite
>> validity.

> One other thought -- using a "magic value" for something like this is
> usually a bad idea.  NULL indicates the absence of a value, and means
> "unknown or not applicable".  I generally use that for an upper bound
> when there is no valid upper bound.

Also, if you really want to convey the idea of "infinity" rather than
"unknown", the timestamp types do have special values 'infinity'
and '-infinity', which are likewise far preferable to choosing magic
regular values.

            regards, tom lane

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: BUG #4960: Unexpected timestamp rounding
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #4958: Stats collector hung on WaitForMultipleObjectsEx while attempting to recv a datagram