How to reset the sequence for IDs on PostgreSQL tables June 10, 2023 by Tarik Run sqlsequencereset and it’ll print all the reset commands you need.