* 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. */
| 270 | * a new expression. |
| 271 | */ |
| 272 | TargetEntry * |
| 273 | flatCopyTargetEntry(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 - |
no outgoing calls
no test coverage detected