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

Function get_commutator

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

* get_commutator * * Returns the corresponding commutator of an operator. */

Source from the content-addressed store, hash-verified

1650 * Returns the corresponding commutator of an operator.
1651 */
1652Oid
1653get_commutator(Oid opno)
1654{
1655 HeapTuple tp;
1656
1657 tp = SearchSysCache1(OPEROID, ObjectIdGetDatum(opno));
1658 if (HeapTupleIsValid(tp))
1659 {
1660 Form_pg_operator optup = (Form_pg_operator) GETSTRUCT(tp);
1661 Oid result;
1662
1663 result = optup->oprcom;
1664 ReleaseSysCache(tp);
1665 return result;
1666 }
1667 else
1668 return InvalidOid;
1669}
1670
1671/*
1672 * get_negator

Callers 15

multirangeselFunction · 0.85
networkjoinselFunction · 0.85
scalarineqsel_wrapperFunction · 0.85
eqjoinselFunction · 0.85
rangeselFunction · 0.85
ComputeIndexAttrsFunction · 0.85
GetCommutatorOpMethod · 0.85
targetIsInSortListFunction · 0.85
convert_EXISTS_to_ANYFunction · 0.85
compute_semijoin_infoFunction · 0.85

Calls 3

SearchSysCache1Function · 0.85
ObjectIdGetDatumFunction · 0.85
ReleaseSysCacheFunction · 0.85

Tested by 1

operator_predicate_proofFunction · 0.68