SetVal Postgres Exemplo de ID da tabela
SELECT setval('tbl_tbl_id_seq', max(tbl_id)) FROM tbl;
Different Dog
SELECT setval('tbl_tbl_id_seq', max(tbl_id)) FROM tbl;