Dealing with postgres corruption
It can happen that a postgres backup using pg_dump (or pg_dumpall) fails with a message like: pg_dump: schema with OID 849375 does not exist This can once in a while when data is not flushed properly between the transaction logs and the filesystem. The only way to solve them (after making a file level backup, for the just in case situations) is to search and delete the offending OID from the database....