From a933bceacfbb5af353d6dca616ed1edfb024aa29 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 23 Apr 2001 04:32:30 +0000 Subject: [PATCH] compatible_oper needs to do ReleaseSysCache in one path to avoid complaints about 'Cache reference leak'. Per report from Don Baccus. --- src/backend/parser/parse_oper.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backend/parser/parse_oper.c b/src/backend/parser/parse_oper.c index fdca83115d..b63c5c36a2 100644 --- a/src/backend/parser/parse_oper.c +++ b/src/backend/parser/parse_oper.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_oper.c,v 1.48 2001/03/22 03:59:41 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_oper.c,v 1.49 2001/04/23 04:32:30 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -686,6 +686,9 @@ compatible_oper(char *op, Oid arg1, Oid arg2, bool noError) IS_BINARY_COMPATIBLE(opform->oprright, arg2))) return optup; + /* nope... */ + ReleaseSysCache(optup); + if (!noError) op_error(op, arg1, arg2); -- 2.40.0