Re: tstzrange with ... 'infinity'] + upper_inf() using 9.2.4
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: tstzrange with ... 'infinity'] + upper_inf() using 9.2.4 |
| Дата | |
| Msg-id | 5818.1367448100@sss.pgh.pa.us обсуждение |
| Ответ на | tstzrange with ... 'infinity'] + upper_inf() using 9.2.4 (Ralph Graulich <maillist@shauny.de>) |
| Ответы |
Re: tstzrange with ... 'infinity'] + upper_inf() using 9.2.4
|
| Список | pgsql-general |
Ralph Graulich <maillist@shauny.de> writes:
> select upper_inf(tsrange('2013-05-01'::timestamp, 'infinity'::timestamp, '[]'));
> upper_inf
> -----------
> f
> (1 row)
> As far as I understood the docs, this query should return true, as the upper bound includes 'infinity'?
No, that's the point of the sentence about the range mechanisms not
understanding special values of the underlying type. upper_inf tests
for a range with no upper bound, period. It would need some
type-specific special knowledge to do what you're hoping for, and it
has not got that.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера