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

Function SearchSysCacheExists

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

* SearchSysCacheExists * * A convenience routine that just probes to see if a tuple can be found. * No lock is retained on the syscache entry. */

Source from the content-addressed store, hash-verified

1439 * No lock is retained on the syscache entry.
1440 */
1441bool
1442SearchSysCacheExists(int cacheId,
1443 Datum key1,
1444 Datum key2,
1445 Datum key3,
1446 Datum key4)
1447{
1448 HeapTuple tuple;
1449
1450 tuple = SearchSysCache(cacheId, key1, key2, key3, key4);
1451 if (!HeapTupleIsValid(tuple))
1452 return false;
1453 ReleaseSysCache(tuple);
1454 return true;
1455}
1456
1457/*
1458 * GetSysCacheOid

Callers 3

function_existsFunction · 0.85
aggregate_existsFunction · 0.85
get_aggregateFunction · 0.85

Calls 2

SearchSysCacheFunction · 0.85
ReleaseSysCacheFunction · 0.85

Tested by

no test coverage detected