mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Fix some comments in fmgr.c
Oversight in 2a0faed
.
Author: Hou Zhijie
Discussion: https://postgr.es/m/OS0PR01MB5716405E2464D85E6DB6DC0794469@OS0PR01MB5716.jpnprd01.prod.outlook.com
This commit is contained in:
@ -288,14 +288,11 @@ fmgr_symbol(Oid functionId, char **mod, char **fn)
|
|||||||
Datum prosrcattr;
|
Datum prosrcattr;
|
||||||
Datum probinattr;
|
Datum probinattr;
|
||||||
|
|
||||||
/* Otherwise we need the pg_proc entry */
|
|
||||||
procedureTuple = SearchSysCache1(PROCOID, ObjectIdGetDatum(functionId));
|
procedureTuple = SearchSysCache1(PROCOID, ObjectIdGetDatum(functionId));
|
||||||
if (!HeapTupleIsValid(procedureTuple))
|
if (!HeapTupleIsValid(procedureTuple))
|
||||||
elog(ERROR, "cache lookup failed for function %u", functionId);
|
elog(ERROR, "cache lookup failed for function %u", functionId);
|
||||||
procedureStruct = (Form_pg_proc) GETSTRUCT(procedureTuple);
|
procedureStruct = (Form_pg_proc) GETSTRUCT(procedureTuple);
|
||||||
|
|
||||||
/*
|
|
||||||
*/
|
|
||||||
if (procedureStruct->prosecdef ||
|
if (procedureStruct->prosecdef ||
|
||||||
!heap_attisnull(procedureTuple, Anum_pg_proc_proconfig, NULL) ||
|
!heap_attisnull(procedureTuple, Anum_pg_proc_proconfig, NULL) ||
|
||||||
FmgrHookIsNeeded(functionId))
|
FmgrHookIsNeeded(functionId))
|
||||||
|
Reference in New Issue
Block a user