postgresql7.1 select to_char(current_timestamp + '$days_until_archival days'::interval, 'YYYY-MM-DD HH:MM:SS') from dual