title: Date comparison in postgresql not working
body: <p>I have a problem with a query in my postresql database. I'm trying to get the last 100 logs after a certain date-time, but when I use this query:</p>
  
  <pre><code>select * from log_entry WHERE array['MESSAGE'] &amp;&amp; tags AND CAST(last_updated AS DATE) &gt;= '2013-02-28T16:47:26.394213' ORDER BY last_updated DESC LIMIT 100
  </code></pre>
  
  <p>Here the column last_updated is of type: timestamp without time zone</p>
  
  <p>Sometimes I get logs from before '2013-02-28T16:47:26.394213', am I doing something wrong? Is there a better way to do this instead of using cast?</p>
  
  <p>Thanks in advance!</p>