boolean operator on interval producing strange results

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: "postgres general" <pgsql-general(at)postgresql(dot)org>
Subject: boolean operator on interval producing strange results
Date: 2007-02-19 21:39:53
Message-ID: b42b73150702191339t71edd1bxa2510df0c4d75876@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Karsten Hilbert 2007-02-19 21:44:10 Re: Why *exactly* is date_trunc() not immutable ?
Previous Message Bruno Wolff III 2007-02-19 21:28:01 Re: Why *exactly* is date_trunc() not immutable ?