setval w Postgres
SELECT setval('tbl_tbl_id_seq', max(tbl_id)) FROM tbl;
Different Dog
SELECT setval('tbl_tbl_id_seq', max(tbl_id)) FROM tbl;