Commit 539b6304 authored by Vadim B. Mikheev's avatar Vadim B. Mikheev

heap_close(rel, AccessShareLock);

              ^^^^^^^^^^^^^^^^^ need in
parent 9d5affaa
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.33 1999/09/28 04:34:46 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.34 1999/09/28 11:27:13 vadim Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -103,7 +103,7 @@ fmgr_dynamic(Oid procedureId, int *pronargs) ...@@ -103,7 +103,7 @@ fmgr_dynamic(Oid procedureId, int *pronargs)
} }
else if (!PointerIsValid(prosrcattr)) else if (!PointerIsValid(prosrcattr))
{ /* pg_proc must be messed up! */ { /* pg_proc must be messed up! */
heap_close(rel); heap_close(rel, AccessShareLock);
elog(ERROR, "fmgr: Could not extract prosrc for %u from %s", elog(ERROR, "fmgr: Could not extract prosrc for %u from %s",
procedureId, ProcedureRelationName); procedureId, ProcedureRelationName);
return (func_ptr) NULL; return (func_ptr) NULL;
......
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