create a date list in postgresql code example
Example: create a date list in postgresql
select i::date from generate_series('2012-06-29',
'2012-07-03', '1 day'::interval) i
select i::date from generate_series('2012-06-29',
'2012-07-03', '1 day'::interval) i