psql timestamp code example
Example 1: psql datetime grather than
SELECT *
FROM table
WHERE update_date >= '2013-05-03'::date
AND update_date < ('2013-05-03'::date + '1 day'::interval);
Example 2: timestamp(0) postgresql
(now())::timestamp(0))
SELECT *
FROM table
WHERE update_date >= '2013-05-03'::date
AND update_date < ('2013-05-03'::date + '1 day'::interval);
(now())::timestamp(0))