Commit a933bcea authored by Tom Lane's avatar Tom Lane

compatible_oper needs to do ReleaseSysCache in one path to avoid

complaints about 'Cache reference leak'.  Per report from Don Baccus.
parent e355992f
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * 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) ...@@ -686,6 +686,9 @@ compatible_oper(char *op, Oid arg1, Oid arg2, bool noError)
IS_BINARY_COMPATIBLE(opform->oprright, arg2))) IS_BINARY_COMPATIBLE(opform->oprright, arg2)))
return optup; return optup;
/* nope... */
ReleaseSysCache(optup);
if (!noError) if (!noError)
op_error(op, arg1, arg2); op_error(op, arg1, arg2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment