boolean operator on interval producing strange results

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема boolean operator on interval producing strange results
Дата
Msg-id b42b73150702191339t71edd1bxa2510df0c4d75876@mail.gmail.com
обсуждение исходный текст
Ответы Re: boolean operator on interval producing strange results  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
We updated our production server to postgresql 8.2.3 yesterday.  This
query is giving different results than on our development box:

development:
# select ((now() - '1 day'::interval)::timestamp - now()) < 0;
 ?column?
----------
 t
(1 row)

production
#  select ((now() - '1 day'::interval)::timestamp - now()) < 0;
 ?column?
----------
 f  <-- looks busted to me
(1 row)

both servers are redhat fc4, same version postgresql. only difference
I know of is development is a little behind on yum update.  can
anybody think of anything that might have influenced this?

merlin

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Why *exactly* is date_trunc() not immutable ?
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Re: Why *exactly* is date_trunc() not immutable ?