"Esger Abbink" <pggeneral(at)bumblebeast(dot)com> writes:
> i have a problem dumping a db. somewhere along the way pg_dump stops with the following error:
> failed sanity check, opr with oid 280515 was not found
You have an operator whose oprcom, oprnegate, oprlsortop, or oprrsortop
field points at a no-longer-existing operator. Look in pg_operator for
the row(s) mentioning that OID and get rid of those operators too.
(Or, manually set the fields to 0 if you want to keep the operators that
have the dangling pointers.)
regards, tom lane