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

Commit389dd12

Browse files
committed
Disable function check during remove function
1 parent65716ee commit389dd12

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/backend/commands/functioncmds.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,7 @@ RemoveFunctionById(Oid funcOid)
11241124
HeapTuplelanguageTuple;
11251125
Form_pg_languagelanguageStruct;
11261126
OidlanguageValidator;
1127+
boolsave_check_function_bodies;
11271128

11281129
/*
11291130
* Delete the pg_proc tuple.
@@ -1141,12 +1142,15 @@ RemoveFunctionById(Oid funcOid)
11411142
* accessed temp relation or not. So validate function body
11421143
* again -- that will set MyXactAccessedTempRel.
11431144
*/
1145+
save_check_function_bodies=check_function_bodies;
1146+
check_function_bodies= false;
11441147
language_oid= ((Form_pg_proc)GETSTRUCT(tup))->prolang;
11451148
languageTuple=SearchSysCache1(LANGOID,language_oid);
11461149
languageStruct= (Form_pg_language)GETSTRUCT(languageTuple);
11471150
languageValidator=languageStruct->lanvalidator;
11481151
OidFunctionCall1(languageValidator,ObjectIdGetDatum(funcOid));
11491152
ReleaseSysCache(languageTuple);
1153+
check_function_bodies=save_check_function_bodies;
11501154

11511155
simple_heap_delete(relation,&tup->t_self);
11521156

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp