I have seen this happen locally on a postgres database when a backup was restored without cleaning the database first.
Cleaning from the commandline uses the --clean optionlike in the statement below:
pg_dump -U username --clean | pg_restore -U username
This creates a backup, then drops the database objects and then restores the database.
Another option would be to drop and recreate the database.