select CURRENT_DATE + i
from generate_series(date '2012-06-29'- CURRENT_DATE,
date '2012-07-03' - CURRENT_DATE ) i
ou ainda mais curto:
select i::date from generate_series('2012-06-29',
'2012-07-03', '1 day'::interval) i
select CURRENT_DATE + i
from generate_series(date '2012-06-29'- CURRENT_DATE,
date '2012-07-03' - CURRENT_DATE ) i
select i::date from generate_series('2012-06-29',
'2012-07-03', '1 day'::interval) i