Valor da sequência do conjunto de pós -gres para max id
SELECT setval('table_id_seq', (SELECT MAX(id) FROM table));
Awful Angelfish
SELECT setval('table_id_seq', (SELECT MAX(id) FROM table));
SELECT setval('table_id_seq', (SELECT MAX(id) FROM table));