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

Function markTargetListOrigins

src/backend/parser/parse_target.c:319–330  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

317 * since we only need the info if we are going to send it to the frontend.
318 */
319void
320markTargetListOrigins(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()

Callers 2

transformSelectStmtFunction · 0.85
transformReturningListFunction · 0.85

Calls 2

markTargetListOriginFunction · 0.85
foreachFunction · 0.50

Tested by

no test coverage detected