create table dim_date asselect date(t) as day from generate_series('2000-01-01'::date,'2099-12-31', '1 days') as t;