El incremento automático de PostgreSQL no funciona
SELECT setval('test_id_seq', (SELECT MAX(id) from "test"));
patrick204nqh
SELECT setval('test_id_seq', (SELECT MAX(id) from "test"));