Skip to content

Commit c42926f

Browse files
committed
Repair missing heap_endscan() in OperatorUpd().
1 parent 3888b53 commit c42926f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/catalog/pg_operator.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.34 1999/04/11 02:30:59 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.35 1999/04/23 00:50:57 tgl Exp $
1111
*
1212
* NOTES
1313
* these routines moved here from commands/define.c and somewhat cleaned up.
@@ -916,6 +916,7 @@ OperatorUpd(Oid baseId, Oid commId, Oid negId)
916916
}
917917

918918
/* if commutator and negator are different, do two updates */
919+
919920
if (HeapTupleIsValid(tup) &&
920921
!(OidIsValid(((Form_pg_operator) GETSTRUCT(tup))->oprcom)))
921922
{
@@ -935,6 +936,8 @@ OperatorUpd(Oid baseId, Oid commId, Oid negId)
935936
replaces[Anum_pg_operator_oprcom - 1] = ' ';
936937
}
937938

939+
heap_endscan(pg_operator_scan);
940+
938941
/* check and update the negator, if necessary */
939942
opKey[0].sk_argument = ObjectIdGetDatum(negId);
940943

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy