In order to save time moving data I pickled some models and dumped them to file. I then reloaded them into another database using the same exact model. The save worked fine and the objects kept their old id which is what I wanted. However, when saving new objects I run into nextval errors.
Not being very adept with postgres, I’m not sure how to fix this so I can keep old records with their existing ID while being able to continue adding new data.
Thanks,
Thomas
I think that you are talking about the sequence that is being used for autoincrementing your id fields.
the easiest solution here would be in a “psql” shell:
and use the value in this command:
that should do the trick.