Postgres truncar con cascada

TRUNCATE sch.mytable RESTART IDENTITY CASCADE;
Prickly Porcupine