pgsql truncate table autonum code example Example: postgresql reset serial counter after deleting content ALTER SEQUENCE product_id_seq RESTART WITH 1453