aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-04-23 13:34:02 +0900
committerMichael Paquier <michael@paquier.xyz>2021-04-23 13:34:02 +0900
commit45c0c5f70eb5e22d31be8bb9a8b4d9c66a3e9b37 (patch)
treeb786093151e2d2bfbc0637249ae625f191523d64 /src
parent62aa2bb293148c13851484e63db4835e3c53147f (diff)
downloadpostgresql-45c0c5f70eb5e22d31be8bb9a8b4d9c66a3e9b37.tar.gz
postgresql-45c0c5f70eb5e22d31be8bb9a8b4d9c66a3e9b37.zip
Fix some comments in fmgr.c
Oversight in 2a0faed. Author: Hou Zhijie Discussion: https://postgr.es/m/OS0PR01MB5716405E2464D85E6DB6DC0794469@OS0PR01MB5716.jpnprd01.prod.outlook.com
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/fmgr/fmgr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/backend/utils/fmgr/fmgr.c b/src/backend/utils/fmgr/fmgr.c
index b6835c2c4c1..3dfe6e58252 100644
--- a/src/backend/utils/fmgr/fmgr.c
+++ b/src/backend/utils/fmgr/fmgr.c
@@ -273,7 +273,7 @@ fmgr_info_cxt_security(Oid functionId, FmgrInfo *finfo, MemoryContext mcxt,
* If *mod == NULL and *fn != NULL, the function is implemented by a symbol in
* the main binary.
*
- * If *mod != NULL and *fn !=NULL the function is implemented in an extension
+ * If *mod != NULL and *fn != NULL the function is implemented in an extension
* shared object.
*
* The returned module and function names are pstrdup'ed into the current
@@ -288,14 +288,11 @@ fmgr_symbol(Oid functionId, char **mod, char **fn)
Datum prosrcattr;
Datum probinattr;
- /* Otherwise we need the pg_proc entry */
procedureTuple = SearchSysCache1(PROCOID, ObjectIdGetDatum(functionId));
if (!HeapTupleIsValid(procedureTuple))
elog(ERROR, "cache lookup failed for function %u", functionId);
procedureStruct = (Form_pg_proc) GETSTRUCT(procedureTuple);
- /*
- */
if (procedureStruct->prosecdef ||
!heap_attisnull(procedureTuple, Anum_pg_proc_proconfig, NULL) ||
FmgrHookIsNeeded(functionId))