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

Commitcdc7170

Browse files
committed
Remove incorrect extra heap_close when deleting a builtin function.
1 parentb3fe924 commitcdc7170

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

‎src/backend/commands/remove.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.51 2000/09/06 14:15:16 petere Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.52 2000/09/12 16:48:55 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -356,15 +356,12 @@ RemoveFunction(char *functionName,/* function name to be removed */
356356
0);
357357

358358
if (!HeapTupleIsValid(tup))
359-
{
360-
heap_close(relation,RowExclusiveLock);
361359
func_error("RemoveFunction",functionName,nargs,argList,NULL);
362-
}
363360

364361
if (((Form_pg_proc)GETSTRUCT(tup))->prolang==INTERNALlanguageId||
365362
((Form_pg_proc)GETSTRUCT(tup))->prolang==NEWINTERNALlanguageId)
366363
{
367-
heap_close(relation,RowExclusiveLock);
364+
/* "Helpful" notice when removing a builtin function ... */
368365
elog(NOTICE,"Removing built-in function \"%s\"",functionName);
369366
}
370367

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp