Postgres truncar con cascada
TRUNCATE sch.mytable RESTART IDENTITY CASCADE;
Prickly Porcupine
TRUNCATE sch.mytable RESTART IDENTITY CASCADE;