Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita283751

Browse files
committed
Fix minor coding error: don't ReleaseSysCache until after last use of
cache entry.
1 parentc6b2838 commita283751

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/commands/functioncmds.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/commands/functioncmds.c,v 1.13 2002/07/24 19:11:09 petere Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/commands/functioncmds.c,v 1.14 2002/07/29 20:45:44 tgl Exp $
1313
*
1414
* DESCRIPTION
1515
* These routines take the parse tree and pick out the
@@ -764,15 +764,15 @@ DropCast(DropCastStmt *stmt)
764764
elog(ERROR,"permission denied");
765765
}
766766

767-
ReleaseSysCache(tuple);
768-
769767
/*
770768
* Do the deletion
771769
*/
772770
object.classId=get_system_catalog_relid(CastRelationName);
773771
object.objectId=HeapTupleGetOid(tuple);
774772
object.objectSubId=0;
775773

774+
ReleaseSysCache(tuple);
775+
776776
performDeletion(&object,stmt->behavior);
777777
}
778778

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp