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

Function plpgsql_HashTableLookup

src/pl/plpgsql/src/pl_comp.c:2624–2637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2622}
2623
2624static PLpgSQL_function *
2625plpgsql_HashTableLookup(PLpgSQL_func_hashkey *func_key)
2626{
2627 plpgsql_HashEnt *hentry;
2628
2629 hentry = (plpgsql_HashEnt *) hash_search(plpgsql_HashTable,
2630 (void *) func_key,
2631 HASH_FIND,
2632 NULL);
2633 if (hentry)
2634 return hentry->function;
2635 else
2636 return NULL;
2637}
2638
2639static void
2640plpgsql_HashTableInsert(PLpgSQL_function *function,

Callers 1

plpgsql_compileFunction · 0.85

Calls 1

hash_searchFunction · 0.85

Tested by

no test coverage detected