* GetSysCacheHashValue * * Get the hash value that would be used for a tuple in the specified cache * with the given search keys. * * The reason for exposing this as part of the API is that the hash value is * exposed in cache invalidation operations, so there are places outside the * catcache code that need to be able to compute the hash values. */
| 1649 | * catcache code that need to be able to compute the hash values. |
| 1650 | */ |
| 1651 | uint32 |
| 1652 | GetSysCacheHashValue(int cacheId, |
| 1653 | Datum key1, |
| 1654 | Datum key2, |
| 1655 | Datum key3, |
| 1656 | Datum key4) |
| 1657 | { |
| 1658 | if (cacheId < 0 || cacheId >= SysCacheSize || |
| 1659 | !PointerIsValid(SysCache[cacheId])) |
| 1660 | elog(ERROR, "invalid cache ID: %d", cacheId); |
| 1661 | |
| 1662 | return GetCatCacheHashValue(SysCache[cacheId], key1, key2, key3, key4); |
| 1663 | } |
| 1664 | |
| 1665 | /* |
| 1666 | * List-search interface |
nothing calls this directly
no test coverage detected