Gavin Sherry <[EMAIL PROTECTED]> writes: > I presume the type of plan_next is 'date'. Does casting '2003-01-01'::date > - interval '1 week' to date help?
Easier would be '2003-01-01'::date - 7 which yields a date to start with. But yeah, date minus interval yields a timestamp, which will not automatically downconvert to a date, thus you don't get to use an index on date. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])