insert into foo select g from generate_series(1, 10000) g; 
