PostgreSQL - Truncate a table on cascade and reset all hierarchic sequences with 1
The TRUNCATE statement has an additional option RESTART IDENTITY which resets the sequences associated with the table columns. 

TRUNCATE sch.mytable RESTART IDENTITY CASCADE;


If CASCADE is defined, then the sequences of all affected tables are reset.