resequence_pgsql is a command line utility to resequence ID’s from the last id entered so you are not violating primary key constraints in the database after initial seed data or migrated data is inserted into the database. This is for Postgres only through an ssh connection.
resequence_pgsql requires dotnetcore v8.0+ to run.
Download the Project
git clone https://cvs.prelub.com/mcarman/resequenced_pgsql.git
For production environments...
dotnet publish -c Release -r <RID> --output <output directory> resequence_pgsql.sln
List of RID’s can be found here.