Just do this:
create table yada (field1 text, int1 int, id serial);
and postgresql will create a sequence for the id field and make the yada table reference it.
Then, just insert like so:
insert into yada (field1, int1) values ('hubert',22);
and postgresql will autoinsert the nextval of the sequence for you.