* SearchSysCacheExists * * A convenience routine that just probes to see if a tuple can be found. * No lock is retained on the syscache entry. */
| 1439 | * No lock is retained on the syscache entry. |
| 1440 | */ |
| 1441 | bool |
| 1442 | SearchSysCacheExists(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 |
no test coverage detected