Re: BUG #5377: group by problem - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5377: group by problem
Date
Msg-id 10610.1268923463@sss.pgh.pa.us
Whole thread Raw
In response to BUG #5377: group by problem  ("michel rosa" <mrosa@geomatic.ch>)
List pgsql-bugs
"michel rosa" <mrosa@geomatic.ch> writes:
> ...
> and upload_date<='2010-03-02'
> give as result
>  2010-03-02 |    0 |   837
>  2010-03-02 |  0.5 |   136
>  2010-03-02 |  1.5 |   138

> but when upload_date<='2010-03-03', I get extras rows for 2010-03-02

Is the upload_date column actually a date?  I think maybe it's a
timestamp and the "extra" rows correspond to times after midnight.
Your cutoff conditions are being interpreted as
    upload_date<='2010-03-02 00:00:00'
etc.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: text cast to bool bug
Next
From: Tom Lane
Date:
Subject: Re: BUG #5378: Little inaccuracy in the manual