File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1124,6 +1124,7 @@ RemoveFunctionById(Oid funcOid)
1124
1124
HeapTuple languageTuple ;
1125
1125
Form_pg_language languageStruct ;
1126
1126
Oid languageValidator ;
1127
+ bool save_check_function_bodies ;
1127
1128
1128
1129
/*
1129
1130
* Delete the pg_proc tuple.
@@ -1141,12 +1142,15 @@ RemoveFunctionById(Oid funcOid)
1141
1142
* accessed temp relation or not. So validate function body
1142
1143
* again -- that will set MyXactAccessedTempRel.
1143
1144
*/
1145
+ save_check_function_bodies = check_function_bodies ;
1146
+ check_function_bodies = false;
1144
1147
language_oid = ((Form_pg_proc ) GETSTRUCT (tup ))-> prolang ;
1145
1148
languageTuple = SearchSysCache1 (LANGOID , language_oid );
1146
1149
languageStruct = (Form_pg_language ) GETSTRUCT (languageTuple );
1147
1150
languageValidator = languageStruct -> lanvalidator ;
1148
1151
OidFunctionCall1 (languageValidator , ObjectIdGetDatum (funcOid ));
1149
1152
ReleaseSysCache (languageTuple );
1153
+ check_function_bodies = save_check_function_bodies ;
1150
1154
1151
1155
simple_heap_delete (relation , & tup -> t_self );
1152
1156
You can’t perform that action at this time.
0 commit comments