Repair missing heap_endscan() in OperatorUpd().
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 23 Apr 1999 00:50:57 +0000 (00:50 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 23 Apr 1999 00:50:57 +0000 (00:50 +0000)
src/backend/catalog/pg_operator.c

index e3a8f991eb30ad9e458246a7b434ed7ca8e25925..3073c27d992df00d88f12da72f62a1a6d4362456 100644 (file)
@@ -916,6 +916,7 @@ OperatorUpd(Oid baseId, Oid commId, Oid negId)
        }
 
        /* if commutator and negator are different, do two updates */
+
        if (HeapTupleIsValid(tup) &&
                !(OidIsValid(((Form_pg_operator) GETSTRUCT(tup))->oprcom)))
        {
@@ -935,6 +936,8 @@ OperatorUpd(Oid baseId, Oid commId, Oid negId)
                replaces[Anum_pg_operator_oprcom - 1] = ' ';
        }
 
+       heap_endscan(pg_operator_scan);
+
        /* check and update the negator, if necessary */
        opKey[0].sk_argument = ObjectIdGetDatum(negId);