all you have to really do is:
create sequence foo_bar_new_column_tralala_seq;ALTER TABLE foo_bar ADD COLUMN tralala int NOT NULL DEFAULTnextval('foo_bar_new_column_tralala_seq');
That's all there's to it