* 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
| 1340 | * CAUTION: The tuple that is returned must NOT be freed by the caller! |
| 1341 | */ |
| 1342 | HeapTuple |
| 1343 | SearchSysCache(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 | |
| 1355 | HeapTuple |
| 1356 | SearchSysCache1(int cacheId, |