use CURRENT_TIME which is a constant instead of now() which is not considered constant... (I think)
---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq