postgresql7.1 select date_part('days',current_timestamp - max(coalesce(modified_date,insertion_date))) from robots