truncate table in cascade in psql code example
Example 1: truncate table postgres
TRUNCATE TABLE table_name;
Example 2: truncate table postgres
truncate my_table restart identity
TRUNCATE TABLE table_name;
truncate my_table restart identity