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

Function makeTargetEntry

src/backend/nodes/makefuncs.c:239–263  ·  view source on GitHub ↗

* makeTargetEntry - * creates a TargetEntry node */

Source from the content-addressed store, hash-verified

237 * creates a TargetEntry node
238 */
239TargetEntry *
240makeTargetEntry(Expr *expr,
241 AttrNumber resno,
242 char *resname,
243 bool resjunk)
244{
245 TargetEntry *tle = makeNode(TargetEntry);
246
247 tle->expr = expr;
248 tle->resno = resno;
249 tle->resname = resname;
250
251 /*
252 * We always set these fields to 0. If the caller wants to change them he
253 * must do so explicitly. Few callers do that, so omitting these
254 * arguments reduces the chance of error.
255 */
256 tle->ressortgroupref = 0;
257 tle->resorigtbl = InvalidOid;
258 tle->resorigcol = 0;
259
260 tle->resjunk = resjunk;
261
262 return tle;
263}
264
265/*
266 * flatCopyTargetEntry -

Callers 15

build_remote_returningFunction · 0.85
rebuild_fdw_scan_tlistFunction · 0.85
foreign_grouping_okFunction · 0.85
rewriteTargetListIUFunction · 0.85
ApplyRetrieveRuleFunction · 0.85
rewriteSearchAndCycleFunction · 0.85
rewriteQueryForIMMVFunction · 0.85
makeIvmAggColumnFunction · 0.85
MakeTargetEntryMethod · 0.85
transformInsertStmtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected