Please notice that until you commit the changes, the nextval function call in the default column of your primary key is missing.