* make_oper_cache_entry * * Insert a cache entry for the given key. */
| 1030 | * Insert a cache entry for the given key. |
| 1031 | */ |
| 1032 | static void |
| 1033 | make_oper_cache_entry(OprCacheKey *key, Oid opr_oid) |
| 1034 | { |
| 1035 | OprCacheEntry *oprentry; |
| 1036 | |
| 1037 | Assert(OprCacheHash != NULL); |
| 1038 | |
| 1039 | oprentry = (OprCacheEntry *) hash_search(OprCacheHash, |
| 1040 | (void *) key, |
| 1041 | HASH_ENTER, NULL); |
| 1042 | oprentry->opr_oid = opr_oid; |
| 1043 | } |
| 1044 | |
| 1045 | /* |
| 1046 | * Callback for pg_operator and pg_cast inval events |
no test coverage detected