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

Function get_opcode

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

* get_opcode * * Returns the regproc id of the routine used to implement an * operator given the operator oid. */

Source from the content-addressed store, hash-verified

1426 * operator given the operator oid.
1427 */
1428RegProcedure
1429get_opcode(Oid opno)
1430{
1431 HeapTuple tp;
1432
1433 tp = SearchSysCache1(OPEROID, ObjectIdGetDatum(opno));
1434 if (HeapTupleIsValid(tp))
1435 {
1436 Form_pg_operator optup = (Form_pg_operator) GETSTRUCT(tp);
1437 RegProcedure result;
1438
1439 result = optup->oprcode;
1440 ReleaseSysCache(tp);
1441 return result;
1442 }
1443 else
1444 return (RegProcedure) InvalidOid;
1445}
1446
1447/*
1448 * get_opname

Callers 15

mcv_get_match_bitmapFunction · 0.85
RelationGetExclusionInfoFunction · 0.85
op_strictFunction · 0.85
op_volatileFunction · 0.85
lookup_type_cacheFunction · 0.85
match_pattern_prefixFunction · 0.85
patternsel_commonFunction · 0.85
prefix_selectivityFunction · 0.85
networkselFunction · 0.85
networkjoinsel_semiFunction · 0.85
inet_mcv_join_selFunction · 0.85

Calls 3

SearchSysCache1Function · 0.85
ObjectIdGetDatumFunction · 0.85
ReleaseSysCacheFunction · 0.85

Tested by

no test coverage detected