Commit a2837514 authored by Tom Lane's avatar Tom Lane

Fix minor coding error: don't ReleaseSysCache until after last use of

cache entry.
parent c6b28386
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/functioncmds.c,v 1.13 2002/07/24 19:11:09 petere Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/functioncmds.c,v 1.14 2002/07/29 20:45:44 tgl Exp $
* *
* DESCRIPTION * DESCRIPTION
* These routines take the parse tree and pick out the * These routines take the parse tree and pick out the
...@@ -764,8 +764,6 @@ DropCast(DropCastStmt *stmt) ...@@ -764,8 +764,6 @@ DropCast(DropCastStmt *stmt)
elog(ERROR, "permission denied"); elog(ERROR, "permission denied");
} }
ReleaseSysCache(tuple);
/* /*
* Do the deletion * Do the deletion
*/ */
...@@ -773,6 +771,8 @@ DropCast(DropCastStmt *stmt) ...@@ -773,6 +771,8 @@ DropCast(DropCastStmt *stmt)
object.objectId = HeapTupleGetOid(tuple); object.objectId = HeapTupleGetOid(tuple);
object.objectSubId = 0; object.objectSubId = 0;
ReleaseSysCache(tuple);
performDeletion(&object, stmt->behavior); performDeletion(&object, stmt->behavior);
} }
......
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