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

Function func_strict

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

* func_strict * Given procedure id, return the function's proisstrict flag. */

Source from the content-addressed store, hash-verified

2390 * Given procedure id, return the function's proisstrict flag.
2391 */
2392bool
2393func_strict(Oid funcid)
2394{
2395 HeapTuple tp;
2396 bool result;
2397
2398 tp = SearchSysCache1(PROCOID, ObjectIdGetDatum(funcid));
2399 if (!HeapTupleIsValid(tp))
2400 elog(ERROR, "cache lookup failed for function %u", funcid);
2401
2402 result = ((Form_pg_proc) GETSTRUCT(tp))->proisstrict;
2403 ReleaseSysCache(tp);
2404 return result;
2405}
2406
2407/*
2408 * func_volatile

Callers 13

op_strictFunction · 0.85
FuncStrictMethod · 0.85
_bitmap_init_buildstateFunction · 0.85
extractFuncExprArgsFunction · 0.85
hash_ok_operatorFunction · 0.85
process_equivalenceFunction · 0.85
clause_is_strict_forFunction · 0.85
is_strict_saopFunction · 0.85

Calls 3

SearchSysCache1Function · 0.85
ObjectIdGetDatumFunction · 0.85
ReleaseSysCacheFunction · 0.85

Tested by 1

clause_is_strict_forFunction · 0.68