* Does this Var represent the CTID column of the specified baserel? */
| 55 | * Does this Var represent the CTID column of the specified baserel? |
| 56 | */ |
| 57 | static inline bool |
| 58 | IsCTIDVar(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 |
no outgoing calls
no test coverage detected