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

Function SearchSysCache

src/backend/utils/cache/syscache.c:1342–1353  ·  view source on GitHub ↗

* SearchSysCache * * A layer on top of SearchCatCache that does the initialization and * key-setting for you. * * Returns the cache copy of the tuple if one is found, NULL if not. * The tuple is the 'cache' copy and must NOT be modified! * * When the caller is done using the tuple, call ReleaseSysCache() * to release the reference count grabbed by SearchSysCache(). If this * is not done

Source from the content-addressed store, hash-verified

1340 * CAUTION: The tuple that is returned must NOT be freed by the caller!
1341 */
1342HeapTuple
1343SearchSysCache(int cacheId,
1344 Datum key1,
1345 Datum key2,
1346 Datum key3,
1347 Datum key4)
1348{
1349 Assert(cacheId >= 0 && cacheId < SysCacheSize &&
1350 PointerIsValid(SysCache[cacheId]));
1351
1352 return SearchCatCache(SysCache[cacheId], key1, key2, key3, key4);
1353}
1354
1355HeapTuple
1356SearchSysCache1(int cacheId,

Callers 14

SearchSysCacheCopyFunction · 0.85
SearchSysCacheExistsFunction · 0.85
GetSysCacheOidFunction · 0.85
get_type_nameFunction · 0.85
get_rel_tablespaceFunction · 0.85
get_func_arg_typesFunction · 0.85
get_attnullfracFunction · 0.85
MetaTrackAddUpdInternalFunction · 0.85

Calls 1

SearchCatCacheFunction · 0.85

Tested by 1

plsample_func_handlerFunction · 0.68