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

Function ExecFindJunkAttributeInTlist

src/backend/executor/execJunk.c:233–251  ·  view source on GitHub ↗

* ExecFindJunkAttributeInTlist * * Find a junk attribute given a subplan's targetlist (not necessarily * part of a JunkFilter). */

Source from the content-addressed store, hash-verified

231 * part of a JunkFilter).
232 */
233AttrNumber
234ExecFindJunkAttributeInTlist(List *targetlist, const char *attrName)
235{
236 ListCell *t;
237
238 foreach(t, targetlist)
239 {
240 TargetEntry *tle = lfirst(t);
241
242 if (tle->resjunk && tle->resname &&
243 (strcmp(tle->resname, attrName) == 0))
244 {
245 /* We found it ! */
246 return tle->resno;
247 }
248 }
249
250 return InvalidAttrNumber;
251}
252
253/*
254 * ExecFilterJunk

Callers 5

create_foreign_modifyFunction · 0.85
ExecBuildAuxRowMarkFunction · 0.85
ExecInitModifyTableFunction · 0.85
ExecInitSplitUpdateFunction · 0.85
ExecFindJunkAttributeFunction · 0.85

Calls 1

foreachFunction · 0.50

Tested by

no test coverage detected