Fix DROP OPERATOR to reset oprcom/oprnegate links to the dropped operator.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: c94959d4110a1965472956cfd631082a96f64a84
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-03-25T16:33:16Z
Releases: 9.6.0
Fix DROP OPERATOR to reset oprcom/oprnegate links to the dropped operator.

This avoids leaving dangling links in pg_operator; which while fairly
harmless are also unsightly.

While we're at it, simplify OperatorUpd, which went through
heap_modify_tuple for no very good reason considering it had already made
a tuple copy it could just scribble on.

Roma Sokolov, reviewed by Tomas Vondra, additional hacking by Robert Haas
and myself.

Files