I use SELECT lastval() to get wrong serial id after truncated the table.
when I truncate the table, I use SELECT lastval(), I got the wrong ID/
Check the next
ALTER SEQUENCE sequence_name RESTART WITH 1;