I've migrated a DB from a Django App from SQLite to Postgres. When I enter new data on the admin view I get an error message that the primary key already exists.
duplicate key value violates unique constraint
I tried to resync the sequences in postgres using the following command, which generates the required SQL script.
python manage.py sqlsequencereset app | python manage.py dbshell
I still get the same error as before.
How can I check whether the sequence was resynced correctly and the next id is set to MAX(id)+1 or so?