This is a known issue in pgloader that occurs when reset sequences option is run against a case-sensitive column. The fix isn't merged yet though: https://github.com/dimitri/pgloader/pull/1509
reset sequences