Skip to content

Commit 45c0c5f

Browse files
committed
Fix some comments in fmgr.c
Oversight in 2a0faed. Author: Hou Zhijie Discussion: https://postgr.es/m/OS0PR01MB5716405E2464D85E6DB6DC0794469@OS0PR01MB5716.jpnprd01.prod.outlook.com
1 parent 62aa2bb commit 45c0c5f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/backend/utils/fmgr/fmgr.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ fmgr_info_cxt_security(Oid functionId, FmgrInfo *finfo, MemoryContext mcxt,
273273
* If *mod == NULL and *fn != NULL, the function is implemented by a symbol in
274274
* the main binary.
275275
*
276-
* If *mod != NULL and *fn !=NULL the function is implemented in an extension
276+
* If *mod != NULL and *fn != NULL the function is implemented in an extension
277277
* shared object.
278278
*
279279
* The returned module and function names are pstrdup'ed into the current
@@ -288,14 +288,11 @@ fmgr_symbol(Oid functionId, char **mod, char **fn)
288288
Datum prosrcattr;
289289
Datum probinattr;
290290

291-
/* Otherwise we need the pg_proc entry */
292291
procedureTuple = SearchSysCache1(PROCOID, ObjectIdGetDatum(functionId));
293292
if (!HeapTupleIsValid(procedureTuple))
294293
elog(ERROR, "cache lookup failed for function %u", functionId);
295294
procedureStruct = (Form_pg_proc) GETSTRUCT(procedureTuple);
296295

297-
/*
298-
*/
299296
if (procedureStruct->prosecdef ||
300297
!heap_attisnull(procedureTuple, Anum_pg_proc_proconfig, NULL) ||
301298
FmgrHookIsNeeded(functionId))

0 commit comments

Comments
 (0)