boolean operator on interval producing strange results - Mailing list pgsql-general

From Merlin Moncure
Subject boolean operator on interval producing strange results
Date
Msg-id b42b73150702191339t71edd1bxa2510df0c4d75876@mail.gmail.com
Whole thread Raw
Responses Re: boolean operator on interval producing strange results  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Why *exactly* is date_trunc() not immutable ?
Next
From: Karsten Hilbert
Date:
Subject: Re: Why *exactly* is date_trunc() not immutable ?