* markTargetListOrigins() * Mark targetlist columns that are simple Vars with the source * table's OID and column number. * * Currently, this is done only for SELECT targetlists and RETURNING lists, * since we only need the info if we are going to send it to the frontend. */
| 317 | * since we only need the info if we are going to send it to the frontend. |
| 318 | */ |
| 319 | void |
| 320 | markTargetListOrigins(ParseState *pstate, List *targetlist) |
| 321 | { |
| 322 | ListCell *l; |
| 323 | |
| 324 | foreach(l, targetlist) |
| 325 | { |
| 326 | TargetEntry *tle = (TargetEntry *) lfirst(l); |
| 327 | |
| 328 | markTargetListOrigin(pstate, tle, (Var *) tle->expr, 0); |
| 329 | } |
| 330 | } |
| 331 | |
| 332 | /* |
| 333 | * markTargetListOrigin() |
no test coverage detected