how to change the start value for a sequence in postgres code example Example: postgresql alter table sequence alter sequence your_sequence restart with 1000;