postgresql restart identity code example
Example: postgres restart id
-- if you dont mind losing the data, do the following
TRUNCATE TABLE someTable RESTART IDENTITY;
-- if you dont mind losing the data, do the following
TRUNCATE TABLE someTable RESTART IDENTITY;