postgresql7.1 select current_timestamp::date + $active_days from dual