Re: BUG #4317: problem with comparision of datatype date - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #4317: problem with comparision of datatype date
Date
Msg-id 29287.1216399623@sss.pgh.pa.us
Whole thread Raw
In response to BUG #4317: problem with comparision of datatype date  ("Sanjay Rajdev" <sanjay.rajdev@featherstoneinformatics.com>)
Responses Re: BUG #4317: problem with comparision of datatype date
List pgsql-bugs
"Sanjay Rajdev" <sanjay.rajdev@featherstoneinformatics.com> writes:
> Here is what is happening, I have a datatype "date" column in my database
> called "somedate" there are 277 rows in the database which have "somedate" =
> "2008-07-18".

> When I execute the below query
> "select * from myTable where somedate = '2008-07-18'"
> I only get 145 rows back from the database.

Is there an index on somedate, and if so does reindexing it help?

            regards, tom lane

pgsql-bugs by date:

Previous
From: Craig Ringer
Date:
Subject: Re: BUG #4317: problem with comparision of datatype date
Next
From: Sanjay Rajdev
Date:
Subject: Re: BUG #4317: problem with comparision of datatype date