setval postgres Beispiel Tabelle ID
SELECT setval('tbl_tbl_id_seq', max(tbl_id)) FROM tbl;
Different Dog
SELECT setval('tbl_tbl_id_seq', max(tbl_id)) FROM tbl;