Of course, the situation is such that I need a solution as soon as possible.
I have database in production in which I accidentally ran a script that deleted records that I did not want deleted. Thankfully, I have a backup of the data before doing so as an *.sql file. As such, I can manipulate it on my development environment to obtain only the data or even a dump file from pg_dump.
Whenever I try to use pg_restore or psql to import the file, it does not seem to import the missing rows. It throws many errors, which I expect since it has duplicate data. But I don't care about the duplicate data; I want the non-duplicated data back into the database.
Does anyone have any idea how to about doing this?