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

Function get_transform_fromsql

src/backend/utils/cache/lsyscache.c:2723–2742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2721/* ---------- TRANSFORM CACHE ---------- */
2722
2723Oid
2724get_transform_fromsql(Oid typid, Oid langid, List *trftypes)
2725{
2726 HeapTuple tup;
2727
2728 if (!list_member_oid(trftypes, typid))
2729 return InvalidOid;
2730
2731 tup = SearchSysCache2(TRFTYPELANG, typid, langid);
2732 if (HeapTupleIsValid(tup))
2733 {
2734 Oid funcid;
2735
2736 funcid = ((Form_pg_transform) GETSTRUCT(tup))->trffromsql;
2737 ReleaseSysCache(tup);
2738 return funcid;
2739 }
2740 else
2741 return InvalidOid;
2742}
2743
2744Oid
2745get_transform_tosql(Oid typid, Oid langid, List *trftypes)

Callers 4

plperl_ref_from_pg_arrayFunction · 0.85
plperl_call_perl_funcFunction · 0.85
plperl_hash_from_tupleFunction · 0.85
PLy_input_setup_funcFunction · 0.85

Calls 3

list_member_oidFunction · 0.85
SearchSysCache2Function · 0.85
ReleaseSysCacheFunction · 0.85

Tested by

no test coverage detected