We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7669343 commit 7d9f379Copy full SHA for 7d9f379
src/backend/commands/functioncmds.c
@@ -1148,7 +1148,10 @@ RemoveFunctionById(Oid funcOid)
1148
languageTuple = SearchSysCache1(LANGOID, language_oid);
1149
languageStruct = (Form_pg_language) GETSTRUCT(languageTuple);
1150
languageValidator = languageStruct->lanvalidator;
1151
- OidFunctionCall1(languageValidator, ObjectIdGetDatum(funcOid));
+ if OidIsValid(languageValidator) {
1152
+ /* Language validator is optional feature of language */
1153
+ OidFunctionCall1(languageValidator, ObjectIdGetDatum(funcOid));
1154
+ }
1155
ReleaseSysCache(languageTuple);
1156
check_function_bodies = save_check_function_bodies;
1157
0 commit comments