start from specific id postgres alter sequence code example Example: alter sequence postgres ALTER SEQUENCE eadmodulo_id_seq RESTART WITH 8;