postgres restart id
snippet in sql

postgres restart id

user7320

-- if you dont mind losing the data, do the following
TRUNCATE TABLE someTable RESTART IDENTITY;