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

Function flatCopyTargetEntry

src/backend/nodes/makefuncs.c:272–280  ·  view source on GitHub ↗

* flatCopyTargetEntry - * duplicate a TargetEntry, but don't copy substructure * * This is commonly used when we just want to modify the resno or substitute * a new expression. */

Source from the content-addressed store, hash-verified

270 * a new expression.
271 */
272TargetEntry *
273flatCopyTargetEntry(TargetEntry *src_tle)
274{
275 TargetEntry *tle = makeNode(TargetEntry);
276
277 Assert(IsA(src_tle, TargetEntry));
278 memcpy(tle, src_tle, sizeof(TargetEntry));
279 return tle;
280}
281
282/*
283 * makeFromExpr -

Callers 8

rewriteTargetListIUFunction · 0.85
process_matched_tleFunction · 0.85
FlatCopyTargetEntryMethod · 0.85
set_upper_referencesFunction · 0.85
expand_insert_targetlistFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected