Today I accidentally restored a pg_dumpall file to the database that that dumpall was generated from. This restore has caused a ton of duplicates of certain ID's and such.
This is a complex production database and it hasn't corrupted the entire database but its really affecting the ability to change things on the site that uses it. Now I know I could just cut my losses and reset the database to the original pg_dumpall (it was as recent as last night) but that would mean that a full day's work/posting on the site that uses the database would be lost.
Is there anything I can do to remedy this situation?