| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера