MCPcopy Create free account
hub / github.com/apache/cloudberry / get_func_name

Function get_func_name

src/backend/utils/cache/lsyscache.c:1901–1918  ·  view source on GitHub ↗

* get_func_name * returns the name of the function with the given funcid * * Note: returns a palloc'd copy of the string, or NULL if no such function. */

Source from the content-addressed store, hash-verified

1899 * Note: returns a palloc'd copy of the string, or NULL if no such function.
1900 */
1901char *
1902get_func_name(Oid funcid)
1903{
1904 HeapTuple tp;
1905
1906 tp = SearchSysCache1(PROCOID, ObjectIdGetDatum(funcid));
1907 if (HeapTupleIsValid(tp))
1908 {
1909 Form_pg_proc functup = (Form_pg_proc) GETSTRUCT(tp);
1910 char *result;
1911
1912 result = pstrdup(NameStr(functup->proname));
1913 ReleaseSysCache(tp);
1914 return result;
1915 }
1916 else
1917 return NULL;
1918}
1919
1920/*
1921 * get_type_name

Callers 15

HandleFunctionRequestFunction · 0.85
ExecuteCallStmtFunction · 0.85
DefineOpClassFunction · 0.85
AlterOpFamilyAddFunction · 0.85
apply_deltaFunction · 0.85
makeIvmAggColumnFunction · 0.85
show_tablesampleFunction · 0.85
ExplainTargetRelFunction · 0.85

Calls 4

SearchSysCache1Function · 0.85
ObjectIdGetDatumFunction · 0.85
ReleaseSysCacheFunction · 0.85
pstrdupFunction · 0.50

Tested by

no test coverage detected