CREATE SEQUENCE new_sequence_name; ALTER TABLE table_name ALTER COLUMN primary_key_column_name SET DEFAULT nextval('new_sequence_name');