function->fn_retset = procStruct->proretset;
/*
- * Lookup the functions return type
+ * Lookup the function's return type
*/
typeTup = SearchSysCache(TYPEOID,
ObjectIdGetDatum(rettypeid),
plpgsql_add_initdatums(NULL);
/*
- * Now parse the functions text
+ * Now parse the function's text
*/
parse_rc = plpgsql_yyparse();
if (parse_rc != 0)
pfree(proc_source);
/*
- * If that was successful, complete the functions info.
+ * If that was successful, complete the function's info.
*/
function->fn_nargs = procStruct->pronargs;
for (i = 0; i < function->fn_nargs; i++)
&fcinfo->isnull);
/*
- * If the functions return type isn't by value, copy the value
+ * If the function's return type isn't by value, copy the value
* into upper executor memory context.
*/
if (!fcinfo->isnull && !func->fn_retbyval)
error_context_stack = plerrcontext.previous;
/*
- * Return the functions result
+ * Return the function's result
*/
return estate.retval;
}