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

Function ExecCleanTargetListLength

src/backend/executor/execUtils.c:1204–1218  ·  view source on GitHub ↗

* Number of items in a tlist, not including any resjunk items */

Source from the content-addressed store, hash-verified

1202 * Number of items in a tlist, not including any resjunk items
1203 */
1204int
1205ExecCleanTargetListLength(List *targetlist)
1206{
1207 int len = 0;
1208 ListCell *tl;
1209
1210 foreach(tl, targetlist)
1211 {
1212 TargetEntry *curTle = lfirst_node(TargetEntry, tl);
1213
1214 if (!curTle->resjunk)
1215 len++;
1216 }
1217 return len;
1218}
1219
1220/*
1221 * Return a relInfo's tuple slot for a trigger's OLD tuples.

Callers 2

check_sql_fn_retvalFunction · 0.85
ExecTypeFromTLInternalFunction · 0.85

Calls 1

foreachFunction · 0.50

Tested by

no test coverage detected