From fb85f25f65d208eb311c50e56a0ab79a954eab64 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 23 Apr 1999 00:50:57 +0000 Subject: [PATCH] Repair missing heap_endscan() in OperatorUpd(). --- src/backend/catalog/pg_operator.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/catalog/pg_operator.c b/src/backend/catalog/pg_operator.c index e3a8f991eb..3073c27d99 100644 --- a/src/backend/catalog/pg_operator.c +++ b/src/backend/catalog/pg_operator.c @@ -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); -- 2.39.5