CREATE TABLE bar (id serial not null); CREATE TABLE foo (id serial not null, bar serial);