I recently hit a Postgres error (my DB corrupted), basically, some rows on the DB duplicated (along with the primary key). Before I keep going, these are the errors addressed in this post:
ERROR: uncommitted xmin 393410960 from before xid cutoff 393413059 needs to be frozen
OR
ERROR: failed to find parent tuple for heap-only tuple at (3,8) in table "your_table"
Obviously, the xmin value of 393410960, the cut-off value of 393413059 and the ctid value of (3,8) could be different in your case.
How I get these errors:
If you want to get these errors (and you have this problem) this is how you could find them:
your_db=# VACUUM FULL your_table;
ERROR: uncommitted xmin 393410960 from before xid cutoff 393413059 needs to be frozen
And to get the second error:
your_db=# REINDEX TABLE your_table;
ERROR: failed to find parent tuple for heap-only tuple at (3,8) in table "your_table"
DON'T PANIC! The solution to this is given below :)