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

Function IsCTIDVar

src/backend/optimizer/path/tidpath.c:57–67  ·  view source on GitHub ↗

* Does this Var represent the CTID column of the specified baserel? */

Source from the content-addressed store, hash-verified

55 * Does this Var represent the CTID column of the specified baserel?
56 */
57static inline bool
58IsCTIDVar(Var *var, RelOptInfo *rel)
59{
60 /* The vartype check is strictly paranoia */
61 if (var->varattno == SelfItemPointerAttributeNumber &&
62 var->vartype == TIDOID &&
63 var->varno == rel->relid &&
64 var->varlevelsup == 0)
65 return true;
66 return false;
67}
68
69/*
70 * Check to see if a RestrictInfo is of the form

Callers 5

MakeTidOpExprFunction · 0.85
TidExprListCreateFunction · 0.85
IsBinaryTidClauseFunction · 0.85
IsTidEqualAnyClauseFunction · 0.85
ec_member_matches_ctidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected