Branch data Line data Source code
1 : : /*-------------------------------------------------------------------------
2 : : *
3 : : * copyfuncs.funcs.c
4 : : * Generated node infrastructure code
5 : : *
6 : : * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
7 : : * Portions Copyright (c) 1994, Regents of the University of California
8 : : *
9 : : * NOTES
10 : : * ******************************
11 : : * *** DO NOT EDIT THIS FILE! ***
12 : : * ******************************
13 : : *
14 : : * It has been GENERATED by src/backend/nodes/gen_node_support.pl
15 : : *
16 : : *-------------------------------------------------------------------------
17 : : */
18 : : #include "access/amapi.h"
19 : : #include "access/cmptype.h"
20 : : #include "access/sdir.h"
21 : : #include "access/tableam.h"
22 : : #include "access/tsmapi.h"
23 : : #include "commands/event_trigger.h"
24 : : #include "commands/trigger.h"
25 : : #include "executor/tuptable.h"
26 : : #include "foreign/fdwapi.h"
27 : : #include "nodes/bitmapset.h"
28 : : #include "nodes/execnodes.h"
29 : : #include "nodes/extensible.h"
30 : : #include "nodes/lockoptions.h"
31 : : #include "nodes/miscnodes.h"
32 : : #include "nodes/nodes.h"
33 : : #include "nodes/parsenodes.h"
34 : : #include "nodes/pathnodes.h"
35 : : #include "nodes/plannodes.h"
36 : : #include "nodes/primnodes.h"
37 : : #include "nodes/replnodes.h"
38 : : #include "nodes/supportnodes.h"
39 : : #include "nodes/value.h"
40 : : #include "utils/rel.h"
41 : :
42 : : static Alias *
43 : 2442714 : _copyAlias(const Alias *from)
44 : : {
45 : 2442714 : Alias *newnode = makeNode(Alias);
46 : :
47 [ + - ]: 2442714 : COPY_STRING_FIELD(aliasname);
48 : 2442714 : COPY_NODE_FIELD(colnames);
49 : :
50 : 2442714 : return newnode;
51 : : }
52 : :
53 : : static RangeVar *
54 : 617043 : _copyRangeVar(const RangeVar *from)
55 : : {
56 : 617043 : RangeVar *newnode = makeNode(RangeVar);
57 : :
58 [ - + ]: 617043 : COPY_STRING_FIELD(catalogname);
59 [ + + ]: 617043 : COPY_STRING_FIELD(schemaname);
60 [ + - ]: 617043 : COPY_STRING_FIELD(relname);
61 : 617043 : COPY_SCALAR_FIELD(inh);
62 : 617043 : COPY_SCALAR_FIELD(relpersistence);
63 : 617043 : COPY_NODE_FIELD(alias);
64 : 617043 : COPY_LOCATION_FIELD(location);
65 : :
66 : 617043 : return newnode;
67 : : }
68 : :
69 : : static TableFunc *
70 : 1188 : _copyTableFunc(const TableFunc *from)
71 : : {
72 : 1188 : TableFunc *newnode = makeNode(TableFunc);
73 : :
74 : 1188 : COPY_SCALAR_FIELD(functype);
75 : 1188 : COPY_NODE_FIELD(ns_uris);
76 : 1188 : COPY_NODE_FIELD(ns_names);
77 : 1188 : COPY_NODE_FIELD(docexpr);
78 : 1188 : COPY_NODE_FIELD(rowexpr);
79 : 1188 : COPY_NODE_FIELD(colnames);
80 : 1188 : COPY_NODE_FIELD(coltypes);
81 : 1188 : COPY_NODE_FIELD(coltypmods);
82 : 1188 : COPY_NODE_FIELD(colcollations);
83 : 1188 : COPY_NODE_FIELD(colexprs);
84 : 1188 : COPY_NODE_FIELD(coldefexprs);
85 : 1188 : COPY_NODE_FIELD(colvalexprs);
86 : 1188 : COPY_NODE_FIELD(passingvalexprs);
87 : 1188 : COPY_BITMAPSET_FIELD(notnulls);
88 : 1188 : COPY_NODE_FIELD(plan);
89 : 1188 : COPY_SCALAR_FIELD(ordinalitycol);
90 : 1188 : COPY_LOCATION_FIELD(location);
91 : :
92 : 1188 : return newnode;
93 : : }
94 : :
95 : : static IntoClause *
96 : 2827 : _copyIntoClause(const IntoClause *from)
97 : : {
98 : 2827 : IntoClause *newnode = makeNode(IntoClause);
99 : :
100 : 2827 : COPY_NODE_FIELD(rel);
101 : 2827 : COPY_NODE_FIELD(colNames);
102 [ + + ]: 2827 : COPY_STRING_FIELD(accessMethod);
103 : 2827 : COPY_NODE_FIELD(options);
104 : 2827 : COPY_SCALAR_FIELD(onCommit);
105 [ + + ]: 2827 : COPY_STRING_FIELD(tableSpaceName);
106 : 2827 : COPY_NODE_FIELD(viewQuery);
107 : 2827 : COPY_SCALAR_FIELD(skipData);
108 : :
109 : 2827 : return newnode;
110 : : }
111 : :
112 : : static Var *
113 : 14799552 : _copyVar(const Var *from)
114 : : {
115 : 14799552 : Var *newnode = makeNode(Var);
116 : :
117 : 14799552 : COPY_SCALAR_FIELD(varno);
118 : 14799552 : COPY_SCALAR_FIELD(varattno);
119 : 14799552 : COPY_SCALAR_FIELD(vartype);
120 : 14799552 : COPY_SCALAR_FIELD(vartypmod);
121 : 14799552 : COPY_SCALAR_FIELD(varcollid);
122 : 14799552 : COPY_BITMAPSET_FIELD(varnullingrels);
123 : 14799552 : COPY_SCALAR_FIELD(varlevelsup);
124 : 14799552 : COPY_SCALAR_FIELD(varreturningtype);
125 : 14799552 : COPY_SCALAR_FIELD(varnosyn);
126 : 14799552 : COPY_SCALAR_FIELD(varattnosyn);
127 : 14799552 : COPY_LOCATION_FIELD(location);
128 : :
129 : 14799552 : return newnode;
130 : : }
131 : :
132 : : static Param *
133 : 525548 : _copyParam(const Param *from)
134 : : {
135 : 525548 : Param *newnode = makeNode(Param);
136 : :
137 : 525548 : COPY_SCALAR_FIELD(paramkind);
138 : 525548 : COPY_SCALAR_FIELD(paramid);
139 : 525548 : COPY_SCALAR_FIELD(paramtype);
140 : 525548 : COPY_SCALAR_FIELD(paramtypmod);
141 : 525548 : COPY_SCALAR_FIELD(paramcollid);
142 : 525548 : COPY_LOCATION_FIELD(location);
143 : :
144 : 525548 : return newnode;
145 : : }
146 : :
147 : : static Aggref *
148 : 160952 : _copyAggref(const Aggref *from)
149 : : {
150 : 160952 : Aggref *newnode = makeNode(Aggref);
151 : :
152 : 160952 : COPY_SCALAR_FIELD(aggfnoid);
153 : 160952 : COPY_SCALAR_FIELD(aggtype);
154 : 160952 : COPY_SCALAR_FIELD(aggcollid);
155 : 160952 : COPY_SCALAR_FIELD(inputcollid);
156 : 160952 : COPY_SCALAR_FIELD(aggtranstype);
157 : 160952 : COPY_NODE_FIELD(aggargtypes);
158 : 160952 : COPY_NODE_FIELD(aggdirectargs);
159 : 160952 : COPY_NODE_FIELD(args);
160 : 160952 : COPY_NODE_FIELD(aggorder);
161 : 160952 : COPY_NODE_FIELD(aggdistinct);
162 : 160952 : COPY_NODE_FIELD(aggfilter);
163 : 160952 : COPY_SCALAR_FIELD(aggstar);
164 : 160952 : COPY_SCALAR_FIELD(aggvariadic);
165 : 160952 : COPY_SCALAR_FIELD(aggkind);
166 : 160952 : COPY_SCALAR_FIELD(aggpresorted);
167 : 160952 : COPY_SCALAR_FIELD(agglevelsup);
168 : 160952 : COPY_SCALAR_FIELD(aggsplit);
169 : 160952 : COPY_SCALAR_FIELD(aggno);
170 : 160952 : COPY_SCALAR_FIELD(aggtransno);
171 : 160952 : COPY_LOCATION_FIELD(location);
172 : :
173 : 160952 : return newnode;
174 : : }
175 : :
176 : : static GroupingFunc *
177 : 1049 : _copyGroupingFunc(const GroupingFunc *from)
178 : : {
179 : 1049 : GroupingFunc *newnode = makeNode(GroupingFunc);
180 : :
181 : 1049 : COPY_NODE_FIELD(args);
182 : 1049 : COPY_NODE_FIELD(refs);
183 : 1049 : COPY_NODE_FIELD(cols);
184 : 1049 : COPY_SCALAR_FIELD(agglevelsup);
185 : 1049 : COPY_LOCATION_FIELD(location);
186 : :
187 : 1049 : return newnode;
188 : : }
189 : :
190 : : static WindowFunc *
191 : 7226 : _copyWindowFunc(const WindowFunc *from)
192 : : {
193 : 7226 : WindowFunc *newnode = makeNode(WindowFunc);
194 : :
195 : 7226 : COPY_SCALAR_FIELD(winfnoid);
196 : 7226 : COPY_SCALAR_FIELD(wintype);
197 : 7226 : COPY_SCALAR_FIELD(wincollid);
198 : 7226 : COPY_SCALAR_FIELD(inputcollid);
199 : 7226 : COPY_NODE_FIELD(args);
200 : 7226 : COPY_NODE_FIELD(aggfilter);
201 : 7226 : COPY_NODE_FIELD(runCondition);
202 : 7226 : COPY_SCALAR_FIELD(winref);
203 : 7226 : COPY_SCALAR_FIELD(winstar);
204 : 7226 : COPY_SCALAR_FIELD(winagg);
205 : 7226 : COPY_SCALAR_FIELD(ignore_nulls);
206 : 7226 : COPY_LOCATION_FIELD(location);
207 : :
208 : 7226 : return newnode;
209 : : }
210 : :
211 : : static WindowFuncRunCondition *
212 : 455 : _copyWindowFuncRunCondition(const WindowFuncRunCondition *from)
213 : : {
214 : 455 : WindowFuncRunCondition *newnode = makeNode(WindowFuncRunCondition);
215 : :
216 : 455 : COPY_SCALAR_FIELD(opno);
217 : 455 : COPY_SCALAR_FIELD(inputcollid);
218 : 455 : COPY_SCALAR_FIELD(wfunc_left);
219 : 455 : COPY_NODE_FIELD(arg);
220 : :
221 : 455 : return newnode;
222 : : }
223 : :
224 : : static MergeSupportFunc *
225 : 1819 : _copyMergeSupportFunc(const MergeSupportFunc *from)
226 : : {
227 : 1819 : MergeSupportFunc *newnode = makeNode(MergeSupportFunc);
228 : :
229 : 1819 : COPY_SCALAR_FIELD(msftype);
230 : 1819 : COPY_SCALAR_FIELD(msfcollid);
231 : 1819 : COPY_LOCATION_FIELD(location);
232 : :
233 : 1819 : return newnode;
234 : : }
235 : :
236 : : static SubscriptingRef *
237 : 56915 : _copySubscriptingRef(const SubscriptingRef *from)
238 : : {
239 : 56915 : SubscriptingRef *newnode = makeNode(SubscriptingRef);
240 : :
241 : 56915 : COPY_SCALAR_FIELD(refcontainertype);
242 : 56915 : COPY_SCALAR_FIELD(refelemtype);
243 : 56915 : COPY_SCALAR_FIELD(refrestype);
244 : 56915 : COPY_SCALAR_FIELD(reftypmod);
245 : 56915 : COPY_SCALAR_FIELD(refcollid);
246 : 56915 : COPY_NODE_FIELD(refupperindexpr);
247 : 56915 : COPY_NODE_FIELD(reflowerindexpr);
248 : 56915 : COPY_NODE_FIELD(refexpr);
249 : 56915 : COPY_NODE_FIELD(refassgnexpr);
250 : :
251 : 56915 : return newnode;
252 : : }
253 : :
254 : : static FuncExpr *
255 : 733530 : _copyFuncExpr(const FuncExpr *from)
256 : : {
257 : 733530 : FuncExpr *newnode = makeNode(FuncExpr);
258 : :
259 : 733530 : COPY_SCALAR_FIELD(funcid);
260 : 733530 : COPY_SCALAR_FIELD(funcresulttype);
261 : 733530 : COPY_SCALAR_FIELD(funcretset);
262 : 733530 : COPY_SCALAR_FIELD(funcvariadic);
263 : 733530 : COPY_SCALAR_FIELD(funcformat);
264 : 733530 : COPY_SCALAR_FIELD(funccollid);
265 : 733530 : COPY_SCALAR_FIELD(inputcollid);
266 : 733530 : COPY_NODE_FIELD(args);
267 : 733530 : COPY_LOCATION_FIELD(location);
268 : :
269 : 733530 : return newnode;
270 : : }
271 : :
272 : : static NamedArgExpr *
273 : 54336 : _copyNamedArgExpr(const NamedArgExpr *from)
274 : : {
275 : 54336 : NamedArgExpr *newnode = makeNode(NamedArgExpr);
276 : :
277 : 54336 : COPY_NODE_FIELD(arg);
278 [ + - ]: 54336 : COPY_STRING_FIELD(name);
279 : 54336 : COPY_SCALAR_FIELD(argnumber);
280 : 54336 : COPY_LOCATION_FIELD(location);
281 : :
282 : 54336 : return newnode;
283 : : }
284 : :
285 : : static OpExpr *
286 : 1547201 : _copyOpExpr(const OpExpr *from)
287 : : {
288 : 1547201 : OpExpr *newnode = makeNode(OpExpr);
289 : :
290 : 1547201 : COPY_SCALAR_FIELD(opno);
291 : 1547201 : COPY_SCALAR_FIELD(opfuncid);
292 : 1547201 : COPY_SCALAR_FIELD(opresulttype);
293 : 1547201 : COPY_SCALAR_FIELD(opretset);
294 : 1547201 : COPY_SCALAR_FIELD(opcollid);
295 : 1547201 : COPY_SCALAR_FIELD(inputcollid);
296 : 1547201 : COPY_NODE_FIELD(args);
297 : 1547201 : COPY_LOCATION_FIELD(location);
298 : :
299 : 1547201 : return newnode;
300 : : }
301 : :
302 : : static DistinctExpr *
303 : 1538 : _copyDistinctExpr(const DistinctExpr *from)
304 : : {
305 : 1538 : DistinctExpr *newnode = makeNode(DistinctExpr);
306 : :
307 : 1538 : COPY_SCALAR_FIELD(opno);
308 : 1538 : COPY_SCALAR_FIELD(opfuncid);
309 : 1538 : COPY_SCALAR_FIELD(opresulttype);
310 : 1538 : COPY_SCALAR_FIELD(opretset);
311 : 1538 : COPY_SCALAR_FIELD(opcollid);
312 : 1538 : COPY_SCALAR_FIELD(inputcollid);
313 : 1538 : COPY_NODE_FIELD(args);
314 : 1538 : COPY_LOCATION_FIELD(location);
315 : :
316 : 1538 : return newnode;
317 : : }
318 : :
319 : : static NullIfExpr *
320 : 1113 : _copyNullIfExpr(const NullIfExpr *from)
321 : : {
322 : 1113 : NullIfExpr *newnode = makeNode(NullIfExpr);
323 : :
324 : 1113 : COPY_SCALAR_FIELD(opno);
325 : 1113 : COPY_SCALAR_FIELD(opfuncid);
326 : 1113 : COPY_SCALAR_FIELD(opresulttype);
327 : 1113 : COPY_SCALAR_FIELD(opretset);
328 : 1113 : COPY_SCALAR_FIELD(opcollid);
329 : 1113 : COPY_SCALAR_FIELD(inputcollid);
330 : 1113 : COPY_NODE_FIELD(args);
331 : 1113 : COPY_LOCATION_FIELD(location);
332 : :
333 : 1113 : return newnode;
334 : : }
335 : :
336 : : static ScalarArrayOpExpr *
337 : 67146 : _copyScalarArrayOpExpr(const ScalarArrayOpExpr *from)
338 : : {
339 : 67146 : ScalarArrayOpExpr *newnode = makeNode(ScalarArrayOpExpr);
340 : :
341 : 67146 : COPY_SCALAR_FIELD(opno);
342 : 67146 : COPY_SCALAR_FIELD(opfuncid);
343 : 67146 : COPY_SCALAR_FIELD(hashfuncid);
344 : 67146 : COPY_SCALAR_FIELD(negfuncid);
345 : 67146 : COPY_SCALAR_FIELD(useOr);
346 : 67146 : COPY_SCALAR_FIELD(inputcollid);
347 : 67146 : COPY_NODE_FIELD(args);
348 : 67146 : COPY_LOCATION_FIELD(location);
349 : :
350 : 67146 : return newnode;
351 : : }
352 : :
353 : : static BoolExpr *
354 : 402473 : _copyBoolExpr(const BoolExpr *from)
355 : : {
356 : 402473 : BoolExpr *newnode = makeNode(BoolExpr);
357 : :
358 : 402473 : COPY_SCALAR_FIELD(boolop);
359 : 402473 : COPY_NODE_FIELD(args);
360 : 402473 : COPY_LOCATION_FIELD(location);
361 : :
362 : 402473 : return newnode;
363 : : }
364 : :
365 : : static SubLink *
366 : 90887 : _copySubLink(const SubLink *from)
367 : : {
368 : 90887 : SubLink *newnode = makeNode(SubLink);
369 : :
370 : 90887 : COPY_SCALAR_FIELD(subLinkType);
371 : 90887 : COPY_SCALAR_FIELD(subLinkId);
372 : 90887 : COPY_NODE_FIELD(testexpr);
373 : 90887 : COPY_NODE_FIELD(operName);
374 : 90887 : COPY_NODE_FIELD(subselect);
375 : 90887 : COPY_LOCATION_FIELD(location);
376 : :
377 : 90887 : return newnode;
378 : : }
379 : :
380 : : static SubPlan *
381 : 32208 : _copySubPlan(const SubPlan *from)
382 : : {
383 : 32208 : SubPlan *newnode = makeNode(SubPlan);
384 : :
385 : 32208 : COPY_SCALAR_FIELD(subLinkType);
386 : 32208 : COPY_NODE_FIELD(testexpr);
387 : 32208 : COPY_NODE_FIELD(paramIds);
388 : 32208 : COPY_SCALAR_FIELD(plan_id);
389 [ + - ]: 32208 : COPY_STRING_FIELD(plan_name);
390 : 32208 : COPY_SCALAR_FIELD(firstColType);
391 : 32208 : COPY_SCALAR_FIELD(firstColTypmod);
392 : 32208 : COPY_SCALAR_FIELD(firstColCollation);
393 : 32208 : COPY_SCALAR_FIELD(isInitPlan);
394 : 32208 : COPY_SCALAR_FIELD(useHashTable);
395 : 32208 : COPY_SCALAR_FIELD(unknownEqFalse);
396 : 32208 : COPY_SCALAR_FIELD(parallel_safe);
397 : 32208 : COPY_NODE_FIELD(setParam);
398 : 32208 : COPY_NODE_FIELD(parParam);
399 : 32208 : COPY_NODE_FIELD(args);
400 : 32208 : COPY_SCALAR_FIELD(disabled_nodes);
401 : 32208 : COPY_SCALAR_FIELD(startup_cost);
402 : 32208 : COPY_SCALAR_FIELD(per_call_cost);
403 : :
404 : 32208 : return newnode;
405 : : }
406 : :
407 : : static AlternativeSubPlan *
408 : 0 : _copyAlternativeSubPlan(const AlternativeSubPlan *from)
409 : : {
410 : 0 : AlternativeSubPlan *newnode = makeNode(AlternativeSubPlan);
411 : :
412 : 0 : COPY_NODE_FIELD(subplans);
413 : :
414 : 0 : return newnode;
415 : : }
416 : :
417 : : static FieldSelect *
418 : 149741 : _copyFieldSelect(const FieldSelect *from)
419 : : {
420 : 149741 : FieldSelect *newnode = makeNode(FieldSelect);
421 : :
422 : 149741 : COPY_NODE_FIELD(arg);
423 : 149741 : COPY_SCALAR_FIELD(fieldnum);
424 : 149741 : COPY_SCALAR_FIELD(resulttype);
425 : 149741 : COPY_SCALAR_FIELD(resulttypmod);
426 : 149741 : COPY_SCALAR_FIELD(resultcollid);
427 : :
428 : 149741 : return newnode;
429 : : }
430 : :
431 : : static FieldStore *
432 : 587 : _copyFieldStore(const FieldStore *from)
433 : : {
434 : 587 : FieldStore *newnode = makeNode(FieldStore);
435 : :
436 : 587 : COPY_NODE_FIELD(arg);
437 : 587 : COPY_NODE_FIELD(newvals);
438 : 587 : COPY_NODE_FIELD(fieldnums);
439 : 587 : COPY_SCALAR_FIELD(resulttype);
440 : :
441 : 587 : return newnode;
442 : : }
443 : :
444 : : static RelabelType *
445 : 251487 : _copyRelabelType(const RelabelType *from)
446 : : {
447 : 251487 : RelabelType *newnode = makeNode(RelabelType);
448 : :
449 : 251487 : COPY_NODE_FIELD(arg);
450 : 251487 : COPY_SCALAR_FIELD(resulttype);
451 : 251487 : COPY_SCALAR_FIELD(resulttypmod);
452 : 251487 : COPY_SCALAR_FIELD(resultcollid);
453 : 251487 : COPY_SCALAR_FIELD(relabelformat);
454 : 251487 : COPY_LOCATION_FIELD(location);
455 : :
456 : 251487 : return newnode;
457 : : }
458 : :
459 : : static CoerceViaIO *
460 : 68244 : _copyCoerceViaIO(const CoerceViaIO *from)
461 : : {
462 : 68244 : CoerceViaIO *newnode = makeNode(CoerceViaIO);
463 : :
464 : 68244 : COPY_NODE_FIELD(arg);
465 : 68244 : COPY_SCALAR_FIELD(resulttype);
466 : 68244 : COPY_SCALAR_FIELD(resultcollid);
467 : 68244 : COPY_SCALAR_FIELD(coerceformat);
468 : 68244 : COPY_LOCATION_FIELD(location);
469 : :
470 : 68244 : return newnode;
471 : : }
472 : :
473 : : static ArrayCoerceExpr *
474 : 10755 : _copyArrayCoerceExpr(const ArrayCoerceExpr *from)
475 : : {
476 : 10755 : ArrayCoerceExpr *newnode = makeNode(ArrayCoerceExpr);
477 : :
478 : 10755 : COPY_NODE_FIELD(arg);
479 : 10755 : COPY_NODE_FIELD(elemexpr);
480 : 10755 : COPY_SCALAR_FIELD(resulttype);
481 : 10755 : COPY_SCALAR_FIELD(resulttypmod);
482 : 10755 : COPY_SCALAR_FIELD(resultcollid);
483 : 10755 : COPY_SCALAR_FIELD(coerceformat);
484 : 10755 : COPY_LOCATION_FIELD(location);
485 : :
486 : 10755 : return newnode;
487 : : }
488 : :
489 : : static ConvertRowtypeExpr *
490 : 709 : _copyConvertRowtypeExpr(const ConvertRowtypeExpr *from)
491 : : {
492 : 709 : ConvertRowtypeExpr *newnode = makeNode(ConvertRowtypeExpr);
493 : :
494 : 709 : COPY_NODE_FIELD(arg);
495 : 709 : COPY_SCALAR_FIELD(resulttype);
496 : 709 : COPY_SCALAR_FIELD(convertformat);
497 : 709 : COPY_LOCATION_FIELD(location);
498 : :
499 : 709 : return newnode;
500 : : }
501 : :
502 : : static CollateExpr *
503 : 9042 : _copyCollateExpr(const CollateExpr *from)
504 : : {
505 : 9042 : CollateExpr *newnode = makeNode(CollateExpr);
506 : :
507 : 9042 : COPY_NODE_FIELD(arg);
508 : 9042 : COPY_SCALAR_FIELD(collOid);
509 : 9042 : COPY_LOCATION_FIELD(location);
510 : :
511 : 9042 : return newnode;
512 : : }
513 : :
514 : : static CaseExpr *
515 : 127232 : _copyCaseExpr(const CaseExpr *from)
516 : : {
517 : 127232 : CaseExpr *newnode = makeNode(CaseExpr);
518 : :
519 : 127232 : COPY_SCALAR_FIELD(casetype);
520 : 127232 : COPY_SCALAR_FIELD(casecollid);
521 : 127232 : COPY_NODE_FIELD(arg);
522 : 127232 : COPY_NODE_FIELD(args);
523 : 127232 : COPY_NODE_FIELD(defresult);
524 : 127232 : COPY_LOCATION_FIELD(location);
525 : :
526 : 127232 : return newnode;
527 : : }
528 : :
529 : : static CaseWhen *
530 : 302968 : _copyCaseWhen(const CaseWhen *from)
531 : : {
532 : 302968 : CaseWhen *newnode = makeNode(CaseWhen);
533 : :
534 : 302968 : COPY_NODE_FIELD(expr);
535 : 302968 : COPY_NODE_FIELD(result);
536 : 302968 : COPY_LOCATION_FIELD(location);
537 : :
538 : 302968 : return newnode;
539 : : }
540 : :
541 : : static CaseTestExpr *
542 : 106585 : _copyCaseTestExpr(const CaseTestExpr *from)
543 : : {
544 : 106585 : CaseTestExpr *newnode = makeNode(CaseTestExpr);
545 : :
546 : 106585 : COPY_SCALAR_FIELD(typeId);
547 : 106585 : COPY_SCALAR_FIELD(typeMod);
548 : 106585 : COPY_SCALAR_FIELD(collation);
549 : :
550 : 106585 : return newnode;
551 : : }
552 : :
553 : : static ArrayExpr *
554 : 36673 : _copyArrayExpr(const ArrayExpr *from)
555 : : {
556 : 36673 : ArrayExpr *newnode = makeNode(ArrayExpr);
557 : :
558 : 36673 : COPY_SCALAR_FIELD(array_typeid);
559 : 36673 : COPY_SCALAR_FIELD(array_collid);
560 : 36673 : COPY_SCALAR_FIELD(element_typeid);
561 : 36673 : COPY_NODE_FIELD(elements);
562 : 36673 : COPY_SCALAR_FIELD(multidims);
563 : 36673 : COPY_LOCATION_FIELD(list_start);
564 : 36673 : COPY_LOCATION_FIELD(list_end);
565 : 36673 : COPY_LOCATION_FIELD(location);
566 : :
567 : 36673 : return newnode;
568 : : }
569 : :
570 : : static RowExpr *
571 : 13484 : _copyRowExpr(const RowExpr *from)
572 : : {
573 : 13484 : RowExpr *newnode = makeNode(RowExpr);
574 : :
575 : 13484 : COPY_NODE_FIELD(args);
576 : 13484 : COPY_SCALAR_FIELD(row_typeid);
577 : 13484 : COPY_SCALAR_FIELD(row_format);
578 : 13484 : COPY_NODE_FIELD(colnames);
579 : 13484 : COPY_LOCATION_FIELD(location);
580 : :
581 : 13484 : return newnode;
582 : : }
583 : :
584 : : static RowCompareExpr *
585 : 645 : _copyRowCompareExpr(const RowCompareExpr *from)
586 : : {
587 : 645 : RowCompareExpr *newnode = makeNode(RowCompareExpr);
588 : :
589 : 645 : COPY_SCALAR_FIELD(cmptype);
590 : 645 : COPY_NODE_FIELD(opnos);
591 : 645 : COPY_NODE_FIELD(opfamilies);
592 : 645 : COPY_NODE_FIELD(inputcollids);
593 : 645 : COPY_NODE_FIELD(largs);
594 : 645 : COPY_NODE_FIELD(rargs);
595 : :
596 : 645 : return newnode;
597 : : }
598 : :
599 : : static CoalesceExpr *
600 : 17048 : _copyCoalesceExpr(const CoalesceExpr *from)
601 : : {
602 : 17048 : CoalesceExpr *newnode = makeNode(CoalesceExpr);
603 : :
604 : 17048 : COPY_SCALAR_FIELD(coalescetype);
605 : 17048 : COPY_SCALAR_FIELD(coalescecollid);
606 : 17048 : COPY_NODE_FIELD(args);
607 : 17048 : COPY_LOCATION_FIELD(location);
608 : :
609 : 17048 : return newnode;
610 : : }
611 : :
612 : : static MinMaxExpr *
613 : 1352 : _copyMinMaxExpr(const MinMaxExpr *from)
614 : : {
615 : 1352 : MinMaxExpr *newnode = makeNode(MinMaxExpr);
616 : :
617 : 1352 : COPY_SCALAR_FIELD(minmaxtype);
618 : 1352 : COPY_SCALAR_FIELD(minmaxcollid);
619 : 1352 : COPY_SCALAR_FIELD(inputcollid);
620 : 1352 : COPY_SCALAR_FIELD(op);
621 : 1352 : COPY_NODE_FIELD(args);
622 : 1352 : COPY_LOCATION_FIELD(location);
623 : :
624 : 1352 : return newnode;
625 : : }
626 : :
627 : : static SQLValueFunction *
628 : 22993 : _copySQLValueFunction(const SQLValueFunction *from)
629 : : {
630 : 22993 : SQLValueFunction *newnode = makeNode(SQLValueFunction);
631 : :
632 : 22993 : COPY_SCALAR_FIELD(op);
633 : 22993 : COPY_SCALAR_FIELD(type);
634 : 22993 : COPY_SCALAR_FIELD(typmod);
635 : 22993 : COPY_LOCATION_FIELD(location);
636 : :
637 : 22993 : return newnode;
638 : : }
639 : :
640 : : static XmlExpr *
641 : 1310 : _copyXmlExpr(const XmlExpr *from)
642 : : {
643 : 1310 : XmlExpr *newnode = makeNode(XmlExpr);
644 : :
645 : 1310 : COPY_SCALAR_FIELD(op);
646 [ + + ]: 1310 : COPY_STRING_FIELD(name);
647 : 1310 : COPY_NODE_FIELD(named_args);
648 : 1310 : COPY_NODE_FIELD(arg_names);
649 : 1310 : COPY_NODE_FIELD(args);
650 : 1310 : COPY_SCALAR_FIELD(xmloption);
651 : 1310 : COPY_SCALAR_FIELD(indent);
652 : 1310 : COPY_SCALAR_FIELD(type);
653 : 1310 : COPY_SCALAR_FIELD(typmod);
654 : 1310 : COPY_LOCATION_FIELD(location);
655 : :
656 : 1310 : return newnode;
657 : : }
658 : :
659 : : static JsonFormat *
660 : 27504 : _copyJsonFormat(const JsonFormat *from)
661 : : {
662 : 27504 : JsonFormat *newnode = makeNode(JsonFormat);
663 : :
664 : 27504 : COPY_SCALAR_FIELD(format_type);
665 : 27504 : COPY_SCALAR_FIELD(encoding);
666 : 27504 : COPY_LOCATION_FIELD(location);
667 : :
668 : 27504 : return newnode;
669 : : }
670 : :
671 : : static JsonReturning *
672 : 11487 : _copyJsonReturning(const JsonReturning *from)
673 : : {
674 : 11487 : JsonReturning *newnode = makeNode(JsonReturning);
675 : :
676 : 11487 : COPY_NODE_FIELD(format);
677 : 11487 : COPY_SCALAR_FIELD(typid);
678 : 11487 : COPY_SCALAR_FIELD(typmod);
679 : :
680 : 11487 : return newnode;
681 : : }
682 : :
683 : : static JsonValueExpr *
684 : 6056 : _copyJsonValueExpr(const JsonValueExpr *from)
685 : : {
686 : 6056 : JsonValueExpr *newnode = makeNode(JsonValueExpr);
687 : :
688 : 6056 : COPY_NODE_FIELD(raw_expr);
689 : 6056 : COPY_NODE_FIELD(formatted_expr);
690 : 6056 : COPY_NODE_FIELD(format);
691 : :
692 : 6056 : return newnode;
693 : : }
694 : :
695 : : static JsonConstructorExpr *
696 : 2448 : _copyJsonConstructorExpr(const JsonConstructorExpr *from)
697 : : {
698 : 2448 : JsonConstructorExpr *newnode = makeNode(JsonConstructorExpr);
699 : :
700 : 2448 : COPY_SCALAR_FIELD(type);
701 : 2448 : COPY_NODE_FIELD(args);
702 : 2448 : COPY_NODE_FIELD(func);
703 : 2448 : COPY_NODE_FIELD(coercion);
704 : 2448 : COPY_NODE_FIELD(returning);
705 : 2448 : COPY_NODE_FIELD(orig_query);
706 : 2448 : COPY_NODE_FIELD(format);
707 : 2448 : COPY_SCALAR_FIELD(absent_on_null);
708 : 2448 : COPY_SCALAR_FIELD(unique);
709 : 2448 : COPY_LOCATION_FIELD(location);
710 : :
711 : 2448 : return newnode;
712 : : }
713 : :
714 : : static JsonIsPredicate *
715 : 899 : _copyJsonIsPredicate(const JsonIsPredicate *from)
716 : : {
717 : 899 : JsonIsPredicate *newnode = makeNode(JsonIsPredicate);
718 : :
719 : 899 : COPY_NODE_FIELD(expr);
720 : 899 : COPY_NODE_FIELD(format);
721 : 899 : COPY_SCALAR_FIELD(item_type);
722 : 899 : COPY_SCALAR_FIELD(unique_keys);
723 : 899 : COPY_SCALAR_FIELD(exprBaseType);
724 : 899 : COPY_LOCATION_FIELD(location);
725 : :
726 : 899 : return newnode;
727 : : }
728 : :
729 : : static JsonBehavior *
730 : 9746 : _copyJsonBehavior(const JsonBehavior *from)
731 : : {
732 : 9746 : JsonBehavior *newnode = makeNode(JsonBehavior);
733 : :
734 : 9746 : COPY_SCALAR_FIELD(btype);
735 : 9746 : COPY_NODE_FIELD(expr);
736 : 9746 : COPY_SCALAR_FIELD(coerce);
737 : 9746 : COPY_LOCATION_FIELD(location);
738 : :
739 : 9746 : return newnode;
740 : : }
741 : :
742 : : static JsonExpr *
743 : 5063 : _copyJsonExpr(const JsonExpr *from)
744 : : {
745 : 5063 : JsonExpr *newnode = makeNode(JsonExpr);
746 : :
747 : 5063 : COPY_SCALAR_FIELD(op);
748 [ + + ]: 5063 : COPY_STRING_FIELD(column_name);
749 : 5063 : COPY_NODE_FIELD(formatted_expr);
750 : 5063 : COPY_NODE_FIELD(format);
751 : 5063 : COPY_NODE_FIELD(path_spec);
752 : 5063 : COPY_NODE_FIELD(returning);
753 : 5063 : COPY_NODE_FIELD(passing_names);
754 : 5063 : COPY_NODE_FIELD(passing_values);
755 : 5063 : COPY_NODE_FIELD(on_empty);
756 : 5063 : COPY_NODE_FIELD(on_error);
757 : 5063 : COPY_SCALAR_FIELD(use_io_coercion);
758 : 5063 : COPY_SCALAR_FIELD(use_json_coercion);
759 : 5063 : COPY_SCALAR_FIELD(wrapper);
760 : 5063 : COPY_SCALAR_FIELD(omit_quotes);
761 : 5063 : COPY_SCALAR_FIELD(collation);
762 : 5063 : COPY_LOCATION_FIELD(location);
763 : :
764 : 5063 : return newnode;
765 : : }
766 : :
767 : : static JsonTablePath *
768 : 1395 : _copyJsonTablePath(const JsonTablePath *from)
769 : : {
770 : 1395 : JsonTablePath *newnode = makeNode(JsonTablePath);
771 : :
772 : 1395 : COPY_NODE_FIELD(value);
773 [ + - ]: 1395 : COPY_STRING_FIELD(name);
774 : :
775 : 1395 : return newnode;
776 : : }
777 : :
778 : : static JsonTablePathScan *
779 : 1395 : _copyJsonTablePathScan(const JsonTablePathScan *from)
780 : : {
781 : 1395 : JsonTablePathScan *newnode = makeNode(JsonTablePathScan);
782 : :
783 : 1395 : COPY_NODE_FIELD(path);
784 : 1395 : COPY_SCALAR_FIELD(errorOnError);
785 : 1395 : COPY_NODE_FIELD(child);
786 : 1395 : COPY_SCALAR_FIELD(outerJoin);
787 : 1395 : COPY_SCALAR_FIELD(colMin);
788 : 1395 : COPY_SCALAR_FIELD(colMax);
789 : :
790 : 1395 : return newnode;
791 : : }
792 : :
793 : : static JsonTableSiblingJoin *
794 : 226 : _copyJsonTableSiblingJoin(const JsonTableSiblingJoin *from)
795 : : {
796 : 226 : JsonTableSiblingJoin *newnode = makeNode(JsonTableSiblingJoin);
797 : :
798 : 226 : COPY_NODE_FIELD(lplan);
799 : 226 : COPY_NODE_FIELD(rplan);
800 : 226 : COPY_SCALAR_FIELD(cross);
801 : :
802 : 226 : return newnode;
803 : : }
804 : :
805 : : static NullTest *
806 : 63706 : _copyNullTest(const NullTest *from)
807 : : {
808 : 63706 : NullTest *newnode = makeNode(NullTest);
809 : :
810 : 63706 : COPY_NODE_FIELD(arg);
811 : 63706 : COPY_SCALAR_FIELD(nulltesttype);
812 : 63706 : COPY_SCALAR_FIELD(argisrow);
813 : 63706 : COPY_LOCATION_FIELD(location);
814 : :
815 : 63706 : return newnode;
816 : : }
817 : :
818 : : static BooleanTest *
819 : 3253 : _copyBooleanTest(const BooleanTest *from)
820 : : {
821 : 3253 : BooleanTest *newnode = makeNode(BooleanTest);
822 : :
823 : 3253 : COPY_NODE_FIELD(arg);
824 : 3253 : COPY_SCALAR_FIELD(booltesttype);
825 : 3253 : COPY_LOCATION_FIELD(location);
826 : :
827 : 3253 : return newnode;
828 : : }
829 : :
830 : : static MergeAction *
831 : 6618 : _copyMergeAction(const MergeAction *from)
832 : : {
833 : 6618 : MergeAction *newnode = makeNode(MergeAction);
834 : :
835 : 6618 : COPY_SCALAR_FIELD(matchKind);
836 : 6618 : COPY_SCALAR_FIELD(commandType);
837 : 6618 : COPY_SCALAR_FIELD(override);
838 : 6618 : COPY_NODE_FIELD(qual);
839 : 6618 : COPY_NODE_FIELD(targetList);
840 : 6618 : COPY_NODE_FIELD(updateColnos);
841 : :
842 : 6618 : return newnode;
843 : : }
844 : :
845 : : static CoerceToDomain *
846 : 59362 : _copyCoerceToDomain(const CoerceToDomain *from)
847 : : {
848 : 59362 : CoerceToDomain *newnode = makeNode(CoerceToDomain);
849 : :
850 : 59362 : COPY_NODE_FIELD(arg);
851 : 59362 : COPY_SCALAR_FIELD(resulttype);
852 : 59362 : COPY_SCALAR_FIELD(resulttypmod);
853 : 59362 : COPY_SCALAR_FIELD(resultcollid);
854 : 59362 : COPY_SCALAR_FIELD(coercionformat);
855 : 59362 : COPY_LOCATION_FIELD(location);
856 : :
857 : 59362 : return newnode;
858 : : }
859 : :
860 : : static CoerceToDomainValue *
861 : 2930 : _copyCoerceToDomainValue(const CoerceToDomainValue *from)
862 : : {
863 : 2930 : CoerceToDomainValue *newnode = makeNode(CoerceToDomainValue);
864 : :
865 : 2930 : COPY_SCALAR_FIELD(typeId);
866 : 2930 : COPY_SCALAR_FIELD(typeMod);
867 : 2930 : COPY_SCALAR_FIELD(collation);
868 : 2930 : COPY_LOCATION_FIELD(location);
869 : :
870 : 2930 : return newnode;
871 : : }
872 : :
873 : : static SetToDefault *
874 : 1328 : _copySetToDefault(const SetToDefault *from)
875 : : {
876 : 1328 : SetToDefault *newnode = makeNode(SetToDefault);
877 : :
878 : 1328 : COPY_SCALAR_FIELD(typeId);
879 : 1328 : COPY_SCALAR_FIELD(typeMod);
880 : 1328 : COPY_SCALAR_FIELD(collation);
881 : 1328 : COPY_LOCATION_FIELD(location);
882 : :
883 : 1328 : return newnode;
884 : : }
885 : :
886 : : static CurrentOfExpr *
887 : 1371 : _copyCurrentOfExpr(const CurrentOfExpr *from)
888 : : {
889 : 1371 : CurrentOfExpr *newnode = makeNode(CurrentOfExpr);
890 : :
891 : 1371 : COPY_SCALAR_FIELD(cvarno);
892 [ + + ]: 1371 : COPY_STRING_FIELD(cursor_name);
893 : 1371 : COPY_SCALAR_FIELD(cursor_param);
894 : :
895 : 1371 : return newnode;
896 : : }
897 : :
898 : : static NextValueExpr *
899 : 1140 : _copyNextValueExpr(const NextValueExpr *from)
900 : : {
901 : 1140 : NextValueExpr *newnode = makeNode(NextValueExpr);
902 : :
903 : 1140 : COPY_SCALAR_FIELD(seqid);
904 : 1140 : COPY_SCALAR_FIELD(typeId);
905 : :
906 : 1140 : return newnode;
907 : : }
908 : :
909 : : static InferenceElem *
910 : 1980 : _copyInferenceElem(const InferenceElem *from)
911 : : {
912 : 1980 : InferenceElem *newnode = makeNode(InferenceElem);
913 : :
914 : 1980 : COPY_NODE_FIELD(expr);
915 : 1980 : COPY_SCALAR_FIELD(infercollid);
916 : 1980 : COPY_SCALAR_FIELD(inferopclass);
917 : :
918 : 1980 : return newnode;
919 : : }
920 : :
921 : : static ReturningExpr *
922 : 1522 : _copyReturningExpr(const ReturningExpr *from)
923 : : {
924 : 1522 : ReturningExpr *newnode = makeNode(ReturningExpr);
925 : :
926 : 1522 : COPY_SCALAR_FIELD(retlevelsup);
927 : 1522 : COPY_SCALAR_FIELD(retold);
928 : 1522 : COPY_NODE_FIELD(retexpr);
929 : :
930 : 1522 : return newnode;
931 : : }
932 : :
933 : : static GraphLabelRef *
934 : 71 : _copyGraphLabelRef(const GraphLabelRef *from)
935 : : {
936 : 71 : GraphLabelRef *newnode = makeNode(GraphLabelRef);
937 : :
938 : 71 : COPY_SCALAR_FIELD(labelid);
939 : 71 : COPY_LOCATION_FIELD(location);
940 : :
941 : 71 : return newnode;
942 : : }
943 : :
944 : : static GraphPropertyRef *
945 : 46 : _copyGraphPropertyRef(const GraphPropertyRef *from)
946 : : {
947 : 46 : GraphPropertyRef *newnode = makeNode(GraphPropertyRef);
948 : :
949 [ + - ]: 46 : COPY_STRING_FIELD(elvarname);
950 : 46 : COPY_SCALAR_FIELD(propid);
951 : 46 : COPY_SCALAR_FIELD(typeId);
952 : 46 : COPY_SCALAR_FIELD(typmod);
953 : 46 : COPY_SCALAR_FIELD(collation);
954 : 46 : COPY_LOCATION_FIELD(location);
955 : :
956 : 46 : return newnode;
957 : : }
958 : :
959 : : static TargetEntry *
960 : 6056810 : _copyTargetEntry(const TargetEntry *from)
961 : : {
962 : 6056810 : TargetEntry *newnode = makeNode(TargetEntry);
963 : :
964 : 6056810 : COPY_NODE_FIELD(expr);
965 : 6056810 : COPY_SCALAR_FIELD(resno);
966 [ + + ]: 6056810 : COPY_STRING_FIELD(resname);
967 : 6056810 : COPY_SCALAR_FIELD(ressortgroupref);
968 : 6056810 : COPY_SCALAR_FIELD(resorigtbl);
969 : 6056810 : COPY_SCALAR_FIELD(resorigcol);
970 : 6056810 : COPY_SCALAR_FIELD(resjunk);
971 : :
972 : 6056810 : return newnode;
973 : : }
974 : :
975 : : static RangeTblRef *
976 : 707429 : _copyRangeTblRef(const RangeTblRef *from)
977 : : {
978 : 707429 : RangeTblRef *newnode = makeNode(RangeTblRef);
979 : :
980 : 707429 : COPY_SCALAR_FIELD(rtindex);
981 : :
982 : 707429 : return newnode;
983 : : }
984 : :
985 : : static JoinExpr *
986 : 185993 : _copyJoinExpr(const JoinExpr *from)
987 : : {
988 : 185993 : JoinExpr *newnode = makeNode(JoinExpr);
989 : :
990 : 185993 : COPY_SCALAR_FIELD(jointype);
991 : 185993 : COPY_SCALAR_FIELD(isNatural);
992 : 185993 : COPY_NODE_FIELD(larg);
993 : 185993 : COPY_NODE_FIELD(rarg);
994 : 185993 : COPY_NODE_FIELD(usingClause);
995 : 185993 : COPY_NODE_FIELD(join_using_alias);
996 : 185993 : COPY_NODE_FIELD(quals);
997 : 185993 : COPY_NODE_FIELD(alias);
998 : 185993 : COPY_SCALAR_FIELD(rtindex);
999 : :
1000 : 185993 : return newnode;
1001 : : }
1002 : :
1003 : : static FromExpr *
1004 : 686183 : _copyFromExpr(const FromExpr *from)
1005 : : {
1006 : 686183 : FromExpr *newnode = makeNode(FromExpr);
1007 : :
1008 : 686183 : COPY_NODE_FIELD(fromlist);
1009 : 686183 : COPY_NODE_FIELD(quals);
1010 : :
1011 : 686183 : return newnode;
1012 : : }
1013 : :
1014 : : static OnConflictExpr *
1015 : 1943 : _copyOnConflictExpr(const OnConflictExpr *from)
1016 : : {
1017 : 1943 : OnConflictExpr *newnode = makeNode(OnConflictExpr);
1018 : :
1019 : 1943 : COPY_SCALAR_FIELD(action);
1020 : 1943 : COPY_NODE_FIELD(arbiterElems);
1021 : 1943 : COPY_NODE_FIELD(arbiterWhere);
1022 : 1943 : COPY_SCALAR_FIELD(constraint);
1023 : 1943 : COPY_SCALAR_FIELD(lockStrength);
1024 : 1943 : COPY_NODE_FIELD(onConflictSet);
1025 : 1943 : COPY_NODE_FIELD(onConflictWhere);
1026 : 1943 : COPY_SCALAR_FIELD(exclRelIndex);
1027 : 1943 : COPY_NODE_FIELD(exclRelTlist);
1028 : :
1029 : 1943 : return newnode;
1030 : : }
1031 : :
1032 : : static ForPortionOfExpr *
1033 : 2304 : _copyForPortionOfExpr(const ForPortionOfExpr *from)
1034 : : {
1035 : 2304 : ForPortionOfExpr *newnode = makeNode(ForPortionOfExpr);
1036 : :
1037 : 2304 : COPY_NODE_FIELD(rangeVar);
1038 : 2304 : COPY_NODE_FIELD(targetFrom);
1039 : 2304 : COPY_NODE_FIELD(targetTo);
1040 : 2304 : COPY_NODE_FIELD(targetRange);
1041 : 2304 : COPY_SCALAR_FIELD(rangeType);
1042 : 2304 : COPY_SCALAR_FIELD(isDomain);
1043 : 2304 : COPY_NODE_FIELD(overlapsExpr);
1044 : 2304 : COPY_NODE_FIELD(rangeTargetList);
1045 : 2304 : COPY_SCALAR_FIELD(withoutPortionProc);
1046 : 2304 : COPY_LOCATION_FIELD(location);
1047 : 2304 : COPY_LOCATION_FIELD(targetLocation);
1048 : :
1049 : 2304 : return newnode;
1050 : : }
1051 : :
1052 : : static Query *
1053 : 944629 : _copyQuery(const Query *from)
1054 : : {
1055 : 944629 : Query *newnode = makeNode(Query);
1056 : :
1057 : 944629 : COPY_SCALAR_FIELD(commandType);
1058 : 944629 : COPY_SCALAR_FIELD(querySource);
1059 : 944629 : COPY_SCALAR_FIELD(queryId);
1060 : 944629 : COPY_SCALAR_FIELD(canSetTag);
1061 : 944629 : COPY_NODE_FIELD(utilityStmt);
1062 : 944629 : COPY_SCALAR_FIELD(resultRelation);
1063 : 944629 : COPY_NODE_FIELD(forPortionOf);
1064 : 944629 : COPY_SCALAR_FIELD(hasAggs);
1065 : 944629 : COPY_SCALAR_FIELD(hasWindowFuncs);
1066 : 944629 : COPY_SCALAR_FIELD(hasTargetSRFs);
1067 : 944629 : COPY_SCALAR_FIELD(hasSubLinks);
1068 : 944629 : COPY_SCALAR_FIELD(hasDistinctOn);
1069 : 944629 : COPY_SCALAR_FIELD(hasRecursive);
1070 : 944629 : COPY_SCALAR_FIELD(hasModifyingCTE);
1071 : 944629 : COPY_SCALAR_FIELD(hasForUpdate);
1072 : 944629 : COPY_SCALAR_FIELD(hasRowSecurity);
1073 : 944629 : COPY_SCALAR_FIELD(hasGroupRTE);
1074 : 944629 : COPY_SCALAR_FIELD(isReturn);
1075 : 944629 : COPY_NODE_FIELD(cteList);
1076 : 944629 : COPY_NODE_FIELD(rtable);
1077 : 944629 : COPY_NODE_FIELD(rteperminfos);
1078 : 944629 : COPY_NODE_FIELD(jointree);
1079 : 944629 : COPY_NODE_FIELD(mergeActionList);
1080 : 944629 : COPY_SCALAR_FIELD(mergeTargetRelation);
1081 : 944629 : COPY_NODE_FIELD(mergeJoinCondition);
1082 : 944629 : COPY_NODE_FIELD(targetList);
1083 : 944629 : COPY_SCALAR_FIELD(override);
1084 : 944629 : COPY_NODE_FIELD(onConflict);
1085 [ + + ]: 944629 : COPY_STRING_FIELD(returningOldAlias);
1086 [ + + ]: 944629 : COPY_STRING_FIELD(returningNewAlias);
1087 : 944629 : COPY_NODE_FIELD(returningList);
1088 : 944629 : COPY_NODE_FIELD(groupClause);
1089 : 944629 : COPY_SCALAR_FIELD(groupDistinct);
1090 : 944629 : COPY_NODE_FIELD(groupingSets);
1091 : 944629 : COPY_NODE_FIELD(havingQual);
1092 : 944629 : COPY_NODE_FIELD(windowClause);
1093 : 944629 : COPY_NODE_FIELD(distinctClause);
1094 : 944629 : COPY_NODE_FIELD(sortClause);
1095 : 944629 : COPY_NODE_FIELD(limitOffset);
1096 : 944629 : COPY_NODE_FIELD(limitCount);
1097 : 944629 : COPY_SCALAR_FIELD(limitOption);
1098 : 944629 : COPY_NODE_FIELD(rowMarks);
1099 : 944629 : COPY_NODE_FIELD(setOperations);
1100 : 944629 : COPY_NODE_FIELD(constraintDeps);
1101 : 944629 : COPY_NODE_FIELD(withCheckOptions);
1102 : 944629 : COPY_LOCATION_FIELD(stmt_location);
1103 : 944629 : COPY_LOCATION_FIELD(stmt_len);
1104 : :
1105 : 944629 : return newnode;
1106 : : }
1107 : :
1108 : : static TypeName *
1109 : 500096 : _copyTypeName(const TypeName *from)
1110 : : {
1111 : 500096 : TypeName *newnode = makeNode(TypeName);
1112 : :
1113 : 500096 : COPY_NODE_FIELD(names);
1114 : 500096 : COPY_SCALAR_FIELD(typeOid);
1115 : 500096 : COPY_SCALAR_FIELD(setof);
1116 : 500096 : COPY_SCALAR_FIELD(pct_type);
1117 : 500096 : COPY_NODE_FIELD(typmods);
1118 : 500096 : COPY_SCALAR_FIELD(typemod);
1119 : 500096 : COPY_NODE_FIELD(arrayBounds);
1120 : 500096 : COPY_LOCATION_FIELD(location);
1121 : :
1122 : 500096 : return newnode;
1123 : : }
1124 : :
1125 : : static ColumnRef *
1126 : 1424955 : _copyColumnRef(const ColumnRef *from)
1127 : : {
1128 : 1424955 : ColumnRef *newnode = makeNode(ColumnRef);
1129 : :
1130 : 1424955 : COPY_NODE_FIELD(fields);
1131 : 1424955 : COPY_LOCATION_FIELD(location);
1132 : :
1133 : 1424955 : return newnode;
1134 : : }
1135 : :
1136 : : static ParamRef *
1137 : 46124 : _copyParamRef(const ParamRef *from)
1138 : : {
1139 : 46124 : ParamRef *newnode = makeNode(ParamRef);
1140 : :
1141 : 46124 : COPY_SCALAR_FIELD(number);
1142 : 46124 : COPY_LOCATION_FIELD(location);
1143 : :
1144 : 46124 : return newnode;
1145 : : }
1146 : :
1147 : : static A_Expr *
1148 : 462247 : _copyA_Expr(const A_Expr *from)
1149 : : {
1150 : 462247 : A_Expr *newnode = makeNode(A_Expr);
1151 : :
1152 : 462247 : COPY_SCALAR_FIELD(kind);
1153 : 462247 : COPY_NODE_FIELD(name);
1154 : 462247 : COPY_NODE_FIELD(lexpr);
1155 : 462247 : COPY_NODE_FIELD(rexpr);
1156 : 462247 : COPY_LOCATION_FIELD(rexpr_list_start);
1157 : 462247 : COPY_LOCATION_FIELD(rexpr_list_end);
1158 : 462247 : COPY_LOCATION_FIELD(location);
1159 : :
1160 : 462247 : return newnode;
1161 : : }
1162 : :
1163 : : static TypeCast *
1164 : 244244 : _copyTypeCast(const TypeCast *from)
1165 : : {
1166 : 244244 : TypeCast *newnode = makeNode(TypeCast);
1167 : :
1168 : 244244 : COPY_NODE_FIELD(arg);
1169 : 244244 : COPY_NODE_FIELD(typeName);
1170 : 244244 : COPY_LOCATION_FIELD(location);
1171 : :
1172 : 244244 : return newnode;
1173 : : }
1174 : :
1175 : : static CollateClause *
1176 : 8020 : _copyCollateClause(const CollateClause *from)
1177 : : {
1178 : 8020 : CollateClause *newnode = makeNode(CollateClause);
1179 : :
1180 : 8020 : COPY_NODE_FIELD(arg);
1181 : 8020 : COPY_NODE_FIELD(collname);
1182 : 8020 : COPY_LOCATION_FIELD(location);
1183 : :
1184 : 8020 : return newnode;
1185 : : }
1186 : :
1187 : : static RoleSpec *
1188 : 36481 : _copyRoleSpec(const RoleSpec *from)
1189 : : {
1190 : 36481 : RoleSpec *newnode = makeNode(RoleSpec);
1191 : :
1192 : 36481 : COPY_SCALAR_FIELD(roletype);
1193 [ + + ]: 36481 : COPY_STRING_FIELD(rolename);
1194 : 36481 : COPY_LOCATION_FIELD(location);
1195 : :
1196 : 36481 : return newnode;
1197 : : }
1198 : :
1199 : : static FuncCall *
1200 : 286739 : _copyFuncCall(const FuncCall *from)
1201 : : {
1202 : 286739 : FuncCall *newnode = makeNode(FuncCall);
1203 : :
1204 : 286739 : COPY_NODE_FIELD(funcname);
1205 : 286739 : COPY_NODE_FIELD(args);
1206 : 286739 : COPY_NODE_FIELD(agg_order);
1207 : 286739 : COPY_NODE_FIELD(agg_filter);
1208 : 286739 : COPY_NODE_FIELD(over);
1209 : 286739 : COPY_SCALAR_FIELD(ignore_nulls);
1210 : 286739 : COPY_SCALAR_FIELD(agg_within_group);
1211 : 286739 : COPY_SCALAR_FIELD(agg_star);
1212 : 286739 : COPY_SCALAR_FIELD(agg_distinct);
1213 : 286739 : COPY_SCALAR_FIELD(func_variadic);
1214 : 286739 : COPY_SCALAR_FIELD(funcformat);
1215 : 286739 : COPY_LOCATION_FIELD(location);
1216 : :
1217 : 286739 : return newnode;
1218 : : }
1219 : :
1220 : : static A_Star *
1221 : 52146 : _copyA_Star(const A_Star *from)
1222 : : {
1223 : 52146 : A_Star *newnode = makeNode(A_Star);
1224 : :
1225 : :
1226 : 52146 : return newnode;
1227 : : }
1228 : :
1229 : : static A_Indices *
1230 : 11142 : _copyA_Indices(const A_Indices *from)
1231 : : {
1232 : 11142 : A_Indices *newnode = makeNode(A_Indices);
1233 : :
1234 : 11142 : COPY_SCALAR_FIELD(is_slice);
1235 : 11142 : COPY_NODE_FIELD(lidx);
1236 : 11142 : COPY_NODE_FIELD(uidx);
1237 : :
1238 : 11142 : return newnode;
1239 : : }
1240 : :
1241 : : static A_Indirection *
1242 : 27202 : _copyA_Indirection(const A_Indirection *from)
1243 : : {
1244 : 27202 : A_Indirection *newnode = makeNode(A_Indirection);
1245 : :
1246 : 27202 : COPY_NODE_FIELD(arg);
1247 : 27202 : COPY_NODE_FIELD(indirection);
1248 : :
1249 : 27202 : return newnode;
1250 : : }
1251 : :
1252 : : static A_ArrayExpr *
1253 : 6089 : _copyA_ArrayExpr(const A_ArrayExpr *from)
1254 : : {
1255 : 6089 : A_ArrayExpr *newnode = makeNode(A_ArrayExpr);
1256 : :
1257 : 6089 : COPY_NODE_FIELD(elements);
1258 : 6089 : COPY_LOCATION_FIELD(list_start);
1259 : 6089 : COPY_LOCATION_FIELD(list_end);
1260 : 6089 : COPY_LOCATION_FIELD(location);
1261 : :
1262 : 6089 : return newnode;
1263 : : }
1264 : :
1265 : : static ResTarget *
1266 : 891693 : _copyResTarget(const ResTarget *from)
1267 : : {
1268 : 891693 : ResTarget *newnode = makeNode(ResTarget);
1269 : :
1270 [ + + ]: 891693 : COPY_STRING_FIELD(name);
1271 : 891693 : COPY_NODE_FIELD(indirection);
1272 : 891693 : COPY_NODE_FIELD(val);
1273 : 891693 : COPY_LOCATION_FIELD(location);
1274 : :
1275 : 891693 : return newnode;
1276 : : }
1277 : :
1278 : : static MultiAssignRef *
1279 : 265 : _copyMultiAssignRef(const MultiAssignRef *from)
1280 : : {
1281 : 265 : MultiAssignRef *newnode = makeNode(MultiAssignRef);
1282 : :
1283 : 265 : COPY_NODE_FIELD(source);
1284 : 265 : COPY_SCALAR_FIELD(colno);
1285 : 265 : COPY_SCALAR_FIELD(ncolumns);
1286 : :
1287 : 265 : return newnode;
1288 : : }
1289 : :
1290 : : static SortBy *
1291 : 76183 : _copySortBy(const SortBy *from)
1292 : : {
1293 : 76183 : SortBy *newnode = makeNode(SortBy);
1294 : :
1295 : 76183 : COPY_NODE_FIELD(node);
1296 : 76183 : COPY_SCALAR_FIELD(sortby_dir);
1297 : 76183 : COPY_SCALAR_FIELD(sortby_nulls);
1298 : 76183 : COPY_NODE_FIELD(useOp);
1299 : 76183 : COPY_LOCATION_FIELD(location);
1300 : :
1301 : 76183 : return newnode;
1302 : : }
1303 : :
1304 : : static WindowDef *
1305 : 3371 : _copyWindowDef(const WindowDef *from)
1306 : : {
1307 : 3371 : WindowDef *newnode = makeNode(WindowDef);
1308 : :
1309 [ + + ]: 3371 : COPY_STRING_FIELD(name);
1310 [ + + ]: 3371 : COPY_STRING_FIELD(refname);
1311 : 3371 : COPY_NODE_FIELD(partitionClause);
1312 : 3371 : COPY_NODE_FIELD(orderClause);
1313 : 3371 : COPY_SCALAR_FIELD(frameOptions);
1314 : 3371 : COPY_NODE_FIELD(startOffset);
1315 : 3371 : COPY_NODE_FIELD(endOffset);
1316 : 3371 : COPY_LOCATION_FIELD(location);
1317 : :
1318 : 3371 : return newnode;
1319 : : }
1320 : :
1321 : : static RangeSubselect *
1322 : 16934 : _copyRangeSubselect(const RangeSubselect *from)
1323 : : {
1324 : 16934 : RangeSubselect *newnode = makeNode(RangeSubselect);
1325 : :
1326 : 16934 : COPY_SCALAR_FIELD(lateral);
1327 : 16934 : COPY_NODE_FIELD(subquery);
1328 : 16934 : COPY_NODE_FIELD(alias);
1329 : :
1330 : 16934 : return newnode;
1331 : : }
1332 : :
1333 : : static RangeFunction *
1334 : 34201 : _copyRangeFunction(const RangeFunction *from)
1335 : : {
1336 : 34201 : RangeFunction *newnode = makeNode(RangeFunction);
1337 : :
1338 : 34201 : COPY_SCALAR_FIELD(lateral);
1339 : 34201 : COPY_SCALAR_FIELD(ordinality);
1340 : 34201 : COPY_SCALAR_FIELD(is_rowsfrom);
1341 : 34201 : COPY_NODE_FIELD(functions);
1342 : 34201 : COPY_NODE_FIELD(alias);
1343 : 34201 : COPY_NODE_FIELD(coldeflist);
1344 : :
1345 : 34201 : return newnode;
1346 : : }
1347 : :
1348 : : static RangeTableFunc *
1349 : 172 : _copyRangeTableFunc(const RangeTableFunc *from)
1350 : : {
1351 : 172 : RangeTableFunc *newnode = makeNode(RangeTableFunc);
1352 : :
1353 : 172 : COPY_SCALAR_FIELD(lateral);
1354 : 172 : COPY_NODE_FIELD(docexpr);
1355 : 172 : COPY_NODE_FIELD(rowexpr);
1356 : 172 : COPY_NODE_FIELD(namespaces);
1357 : 172 : COPY_NODE_FIELD(columns);
1358 : 172 : COPY_NODE_FIELD(alias);
1359 : 172 : COPY_LOCATION_FIELD(location);
1360 : :
1361 : 172 : return newnode;
1362 : : }
1363 : :
1364 : : static RangeTableFuncCol *
1365 : 614 : _copyRangeTableFuncCol(const RangeTableFuncCol *from)
1366 : : {
1367 : 614 : RangeTableFuncCol *newnode = makeNode(RangeTableFuncCol);
1368 : :
1369 [ + - ]: 614 : COPY_STRING_FIELD(colname);
1370 : 614 : COPY_NODE_FIELD(typeName);
1371 : 614 : COPY_SCALAR_FIELD(for_ordinality);
1372 : 614 : COPY_SCALAR_FIELD(is_not_null);
1373 : 614 : COPY_NODE_FIELD(colexpr);
1374 : 614 : COPY_NODE_FIELD(coldefexpr);
1375 : 614 : COPY_LOCATION_FIELD(location);
1376 : :
1377 : 614 : return newnode;
1378 : : }
1379 : :
1380 : : static RangeGraphTable *
1381 : 703 : _copyRangeGraphTable(const RangeGraphTable *from)
1382 : : {
1383 : 703 : RangeGraphTable *newnode = makeNode(RangeGraphTable);
1384 : :
1385 : 703 : COPY_NODE_FIELD(graph_name);
1386 : 703 : COPY_NODE_FIELD(graph_pattern);
1387 : 703 : COPY_NODE_FIELD(columns);
1388 : 703 : COPY_NODE_FIELD(alias);
1389 : 703 : COPY_LOCATION_FIELD(location);
1390 : :
1391 : 703 : return newnode;
1392 : : }
1393 : :
1394 : : static RangeTableSample *
1395 : 190 : _copyRangeTableSample(const RangeTableSample *from)
1396 : : {
1397 : 190 : RangeTableSample *newnode = makeNode(RangeTableSample);
1398 : :
1399 : 190 : COPY_NODE_FIELD(relation);
1400 : 190 : COPY_NODE_FIELD(method);
1401 : 190 : COPY_NODE_FIELD(args);
1402 : 190 : COPY_NODE_FIELD(repeatable);
1403 : 190 : COPY_LOCATION_FIELD(location);
1404 : :
1405 : 190 : return newnode;
1406 : : }
1407 : :
1408 : : static ColumnDef *
1409 : 101534 : _copyColumnDef(const ColumnDef *from)
1410 : : {
1411 : 101534 : ColumnDef *newnode = makeNode(ColumnDef);
1412 : :
1413 [ + + ]: 101534 : COPY_STRING_FIELD(colname);
1414 : 101534 : COPY_NODE_FIELD(typeName);
1415 [ + + ]: 101534 : COPY_STRING_FIELD(compression);
1416 : 101534 : COPY_SCALAR_FIELD(inhcount);
1417 : 101534 : COPY_SCALAR_FIELD(is_local);
1418 : 101534 : COPY_SCALAR_FIELD(is_not_null);
1419 : 101534 : COPY_SCALAR_FIELD(is_from_type);
1420 : 101534 : COPY_SCALAR_FIELD(storage);
1421 [ + + ]: 101534 : COPY_STRING_FIELD(storage_name);
1422 : 101534 : COPY_NODE_FIELD(raw_default);
1423 : 101534 : COPY_NODE_FIELD(cooked_default);
1424 : 101534 : COPY_SCALAR_FIELD(identity);
1425 : 101534 : COPY_NODE_FIELD(identitySequence);
1426 : 101534 : COPY_SCALAR_FIELD(generated);
1427 : 101534 : COPY_NODE_FIELD(collClause);
1428 : 101534 : COPY_SCALAR_FIELD(collOid);
1429 : 101534 : COPY_NODE_FIELD(constraints);
1430 : 101534 : COPY_NODE_FIELD(fdwoptions);
1431 : 101534 : COPY_LOCATION_FIELD(location);
1432 : :
1433 : 101534 : return newnode;
1434 : : }
1435 : :
1436 : : static TableLikeClause *
1437 : 1050 : _copyTableLikeClause(const TableLikeClause *from)
1438 : : {
1439 : 1050 : TableLikeClause *newnode = makeNode(TableLikeClause);
1440 : :
1441 : 1050 : COPY_NODE_FIELD(relation);
1442 : 1050 : COPY_SCALAR_FIELD(options);
1443 : 1050 : COPY_SCALAR_FIELD(relationOid);
1444 : :
1445 : 1050 : return newnode;
1446 : : }
1447 : :
1448 : : static IndexElem *
1449 : 14116 : _copyIndexElem(const IndexElem *from)
1450 : : {
1451 : 14116 : IndexElem *newnode = makeNode(IndexElem);
1452 : :
1453 [ + + ]: 14116 : COPY_STRING_FIELD(name);
1454 : 14116 : COPY_NODE_FIELD(expr);
1455 [ + + ]: 14116 : COPY_STRING_FIELD(indexcolname);
1456 : 14116 : COPY_NODE_FIELD(collation);
1457 : 14116 : COPY_NODE_FIELD(opclass);
1458 : 14116 : COPY_NODE_FIELD(opclassopts);
1459 : 14116 : COPY_SCALAR_FIELD(ordering);
1460 : 14116 : COPY_SCALAR_FIELD(nulls_ordering);
1461 : 14116 : COPY_LOCATION_FIELD(location);
1462 : :
1463 : 14116 : return newnode;
1464 : : }
1465 : :
1466 : : static DefElem *
1467 : 485698 : _copyDefElem(const DefElem *from)
1468 : : {
1469 : 485698 : DefElem *newnode = makeNode(DefElem);
1470 : :
1471 [ + + ]: 485698 : COPY_STRING_FIELD(defnamespace);
1472 [ + - ]: 485698 : COPY_STRING_FIELD(defname);
1473 : 485698 : COPY_NODE_FIELD(arg);
1474 : 485698 : COPY_SCALAR_FIELD(defaction);
1475 : 485698 : COPY_LOCATION_FIELD(location);
1476 : :
1477 : 485698 : return newnode;
1478 : : }
1479 : :
1480 : : static LockingClause *
1481 : 5147 : _copyLockingClause(const LockingClause *from)
1482 : : {
1483 : 5147 : LockingClause *newnode = makeNode(LockingClause);
1484 : :
1485 : 5147 : COPY_NODE_FIELD(lockedRels);
1486 : 5147 : COPY_SCALAR_FIELD(strength);
1487 : 5147 : COPY_SCALAR_FIELD(waitPolicy);
1488 : :
1489 : 5147 : return newnode;
1490 : : }
1491 : :
1492 : : static XmlSerialize *
1493 : 164 : _copyXmlSerialize(const XmlSerialize *from)
1494 : : {
1495 : 164 : XmlSerialize *newnode = makeNode(XmlSerialize);
1496 : :
1497 : 164 : COPY_SCALAR_FIELD(xmloption);
1498 : 164 : COPY_NODE_FIELD(expr);
1499 : 164 : COPY_NODE_FIELD(typeName);
1500 : 164 : COPY_SCALAR_FIELD(indent);
1501 : 164 : COPY_LOCATION_FIELD(location);
1502 : :
1503 : 164 : return newnode;
1504 : : }
1505 : :
1506 : : static PartitionElem *
1507 : 7713 : _copyPartitionElem(const PartitionElem *from)
1508 : : {
1509 : 7713 : PartitionElem *newnode = makeNode(PartitionElem);
1510 : :
1511 [ + + ]: 7713 : COPY_STRING_FIELD(name);
1512 : 7713 : COPY_NODE_FIELD(expr);
1513 : 7713 : COPY_NODE_FIELD(collation);
1514 : 7713 : COPY_NODE_FIELD(opclass);
1515 : 7713 : COPY_LOCATION_FIELD(location);
1516 : :
1517 : 7713 : return newnode;
1518 : : }
1519 : :
1520 : : static PartitionSpec *
1521 : 6853 : _copyPartitionSpec(const PartitionSpec *from)
1522 : : {
1523 : 6853 : PartitionSpec *newnode = makeNode(PartitionSpec);
1524 : :
1525 : 6853 : COPY_SCALAR_FIELD(strategy);
1526 : 6853 : COPY_NODE_FIELD(partParams);
1527 : 6853 : COPY_LOCATION_FIELD(location);
1528 : :
1529 : 6853 : return newnode;
1530 : : }
1531 : :
1532 : : static PartitionBoundSpec *
1533 : 24159 : _copyPartitionBoundSpec(const PartitionBoundSpec *from)
1534 : : {
1535 : 24159 : PartitionBoundSpec *newnode = makeNode(PartitionBoundSpec);
1536 : :
1537 : 24159 : COPY_SCALAR_FIELD(strategy);
1538 : 24159 : COPY_SCALAR_FIELD(is_default);
1539 : 24159 : COPY_SCALAR_FIELD(modulus);
1540 : 24159 : COPY_SCALAR_FIELD(remainder);
1541 : 24159 : COPY_NODE_FIELD(listdatums);
1542 : 24159 : COPY_NODE_FIELD(lowerdatums);
1543 : 24159 : COPY_NODE_FIELD(upperdatums);
1544 : 24159 : COPY_LOCATION_FIELD(location);
1545 : :
1546 : 24159 : return newnode;
1547 : : }
1548 : :
1549 : : static PartitionRangeDatum *
1550 : 2 : _copyPartitionRangeDatum(const PartitionRangeDatum *from)
1551 : : {
1552 : 2 : PartitionRangeDatum *newnode = makeNode(PartitionRangeDatum);
1553 : :
1554 : 2 : COPY_SCALAR_FIELD(kind);
1555 : 2 : COPY_NODE_FIELD(value);
1556 : 2 : COPY_LOCATION_FIELD(location);
1557 : :
1558 : 2 : return newnode;
1559 : : }
1560 : :
1561 : : static PartitionCmd *
1562 : 6795 : _copyPartitionCmd(const PartitionCmd *from)
1563 : : {
1564 : 6795 : PartitionCmd *newnode = makeNode(PartitionCmd);
1565 : :
1566 : 6795 : COPY_NODE_FIELD(name);
1567 : 6795 : COPY_NODE_FIELD(bound);
1568 : 6795 : COPY_SCALAR_FIELD(concurrent);
1569 : :
1570 : 6795 : return newnode;
1571 : : }
1572 : :
1573 : : static GraphPattern *
1574 : 738 : _copyGraphPattern(const GraphPattern *from)
1575 : : {
1576 : 738 : GraphPattern *newnode = makeNode(GraphPattern);
1577 : :
1578 : 738 : COPY_NODE_FIELD(path_pattern_list);
1579 : 738 : COPY_NODE_FIELD(whereClause);
1580 : :
1581 : 738 : return newnode;
1582 : : }
1583 : :
1584 : : static GraphElementPattern *
1585 : 2138 : _copyGraphElementPattern(const GraphElementPattern *from)
1586 : : {
1587 : 2138 : GraphElementPattern *newnode = makeNode(GraphElementPattern);
1588 : :
1589 : 2138 : COPY_SCALAR_FIELD(kind);
1590 [ + + ]: 2138 : COPY_STRING_FIELD(variable);
1591 : 2138 : COPY_NODE_FIELD(labelexpr);
1592 : 2138 : COPY_NODE_FIELD(subexpr);
1593 : 2138 : COPY_NODE_FIELD(whereClause);
1594 : 2138 : COPY_NODE_FIELD(quantifier);
1595 : 2138 : COPY_LOCATION_FIELD(location);
1596 : :
1597 : 2138 : return newnode;
1598 : : }
1599 : :
1600 : : static RangeTblEntry *
1601 : 1592109 : _copyRangeTblEntry(const RangeTblEntry *from)
1602 : : {
1603 : 1592109 : RangeTblEntry *newnode = makeNode(RangeTblEntry);
1604 : :
1605 : 1592109 : COPY_NODE_FIELD(alias);
1606 : 1592109 : COPY_NODE_FIELD(eref);
1607 : 1592109 : COPY_SCALAR_FIELD(rtekind);
1608 : 1592109 : COPY_SCALAR_FIELD(relid);
1609 : 1592109 : COPY_SCALAR_FIELD(inh);
1610 : 1592109 : COPY_SCALAR_FIELD(relkind);
1611 : 1592109 : COPY_SCALAR_FIELD(rellockmode);
1612 : 1592109 : COPY_SCALAR_FIELD(perminfoindex);
1613 : 1592109 : COPY_NODE_FIELD(tablesample);
1614 : 1592109 : COPY_NODE_FIELD(subquery);
1615 : 1592109 : COPY_SCALAR_FIELD(security_barrier);
1616 : 1592109 : COPY_SCALAR_FIELD(jointype);
1617 : 1592109 : COPY_SCALAR_FIELD(joinmergedcols);
1618 : 1592109 : COPY_NODE_FIELD(joinaliasvars);
1619 : 1592109 : COPY_NODE_FIELD(joinleftcols);
1620 : 1592109 : COPY_NODE_FIELD(joinrightcols);
1621 : 1592109 : COPY_NODE_FIELD(join_using_alias);
1622 : 1592109 : COPY_NODE_FIELD(functions);
1623 : 1592109 : COPY_SCALAR_FIELD(funcordinality);
1624 : 1592109 : COPY_NODE_FIELD(tablefunc);
1625 : 1592109 : COPY_NODE_FIELD(graph_pattern);
1626 : 1592109 : COPY_NODE_FIELD(graph_table_columns);
1627 : 1592109 : COPY_NODE_FIELD(values_lists);
1628 [ + + ]: 1592109 : COPY_STRING_FIELD(ctename);
1629 : 1592109 : COPY_SCALAR_FIELD(ctelevelsup);
1630 : 1592109 : COPY_SCALAR_FIELD(self_reference);
1631 : 1592109 : COPY_NODE_FIELD(coltypes);
1632 : 1592109 : COPY_NODE_FIELD(coltypmods);
1633 : 1592109 : COPY_NODE_FIELD(colcollations);
1634 [ + + ]: 1592109 : COPY_STRING_FIELD(enrname);
1635 : 1592109 : COPY_SCALAR_FIELD(enrtuples);
1636 : 1592109 : COPY_NODE_FIELD(groupexprs);
1637 : 1592109 : COPY_SCALAR_FIELD(lateral);
1638 : 1592109 : COPY_SCALAR_FIELD(inFromCl);
1639 : 1592109 : COPY_NODE_FIELD(securityQuals);
1640 : :
1641 : 1592109 : return newnode;
1642 : : }
1643 : :
1644 : : static RTEPermissionInfo *
1645 : 942709 : _copyRTEPermissionInfo(const RTEPermissionInfo *from)
1646 : : {
1647 : 942709 : RTEPermissionInfo *newnode = makeNode(RTEPermissionInfo);
1648 : :
1649 : 942709 : COPY_SCALAR_FIELD(relid);
1650 : 942709 : COPY_SCALAR_FIELD(inh);
1651 : 942709 : COPY_SCALAR_FIELD(requiredPerms);
1652 : 942709 : COPY_SCALAR_FIELD(checkAsUser);
1653 : 942709 : COPY_BITMAPSET_FIELD(selectedCols);
1654 : 942709 : COPY_BITMAPSET_FIELD(insertedCols);
1655 : 942709 : COPY_BITMAPSET_FIELD(updatedCols);
1656 : :
1657 : 942709 : return newnode;
1658 : : }
1659 : :
1660 : : static RangeTblFunction *
1661 : 93675 : _copyRangeTblFunction(const RangeTblFunction *from)
1662 : : {
1663 : 93675 : RangeTblFunction *newnode = makeNode(RangeTblFunction);
1664 : :
1665 : 93675 : COPY_NODE_FIELD(funcexpr);
1666 : 93675 : COPY_SCALAR_FIELD(funccolcount);
1667 : 93675 : COPY_NODE_FIELD(funccolnames);
1668 : 93675 : COPY_NODE_FIELD(funccoltypes);
1669 : 93675 : COPY_NODE_FIELD(funccoltypmods);
1670 : 93675 : COPY_NODE_FIELD(funccolcollations);
1671 : 93675 : COPY_BITMAPSET_FIELD(funcparams);
1672 : :
1673 : 93675 : return newnode;
1674 : : }
1675 : :
1676 : : static TableSampleClause *
1677 : 548 : _copyTableSampleClause(const TableSampleClause *from)
1678 : : {
1679 : 548 : TableSampleClause *newnode = makeNode(TableSampleClause);
1680 : :
1681 : 548 : COPY_SCALAR_FIELD(tsmhandler);
1682 : 548 : COPY_NODE_FIELD(args);
1683 : 548 : COPY_NODE_FIELD(repeatable);
1684 : :
1685 : 548 : return newnode;
1686 : : }
1687 : :
1688 : : static WithCheckOption *
1689 : 4768 : _copyWithCheckOption(const WithCheckOption *from)
1690 : : {
1691 : 4768 : WithCheckOption *newnode = makeNode(WithCheckOption);
1692 : :
1693 : 4768 : COPY_SCALAR_FIELD(kind);
1694 [ + - ]: 4768 : COPY_STRING_FIELD(relname);
1695 [ + + ]: 4768 : COPY_STRING_FIELD(polname);
1696 : 4768 : COPY_NODE_FIELD(qual);
1697 : 4768 : COPY_SCALAR_FIELD(cascaded);
1698 : :
1699 : 4768 : return newnode;
1700 : : }
1701 : :
1702 : : static SortGroupClause *
1703 : 209019 : _copySortGroupClause(const SortGroupClause *from)
1704 : : {
1705 : 209019 : SortGroupClause *newnode = makeNode(SortGroupClause);
1706 : :
1707 : 209019 : COPY_SCALAR_FIELD(tleSortGroupRef);
1708 : 209019 : COPY_SCALAR_FIELD(eqop);
1709 : 209019 : COPY_SCALAR_FIELD(sortop);
1710 : 209019 : COPY_SCALAR_FIELD(reverse_sort);
1711 : 209019 : COPY_SCALAR_FIELD(nulls_first);
1712 : 209019 : COPY_SCALAR_FIELD(hashable);
1713 : :
1714 : 209019 : return newnode;
1715 : : }
1716 : :
1717 : : static GroupingSet *
1718 : 4339 : _copyGroupingSet(const GroupingSet *from)
1719 : : {
1720 : 4339 : GroupingSet *newnode = makeNode(GroupingSet);
1721 : :
1722 : 4339 : COPY_SCALAR_FIELD(kind);
1723 : 4339 : COPY_NODE_FIELD(content);
1724 : 4339 : COPY_LOCATION_FIELD(location);
1725 : :
1726 : 4339 : return newnode;
1727 : : }
1728 : :
1729 : : static WindowClause *
1730 : 3512 : _copyWindowClause(const WindowClause *from)
1731 : : {
1732 : 3512 : WindowClause *newnode = makeNode(WindowClause);
1733 : :
1734 [ + + ]: 3512 : COPY_STRING_FIELD(name);
1735 [ + + ]: 3512 : COPY_STRING_FIELD(refname);
1736 : 3512 : COPY_NODE_FIELD(partitionClause);
1737 : 3512 : COPY_NODE_FIELD(orderClause);
1738 : 3512 : COPY_SCALAR_FIELD(frameOptions);
1739 : 3512 : COPY_NODE_FIELD(startOffset);
1740 : 3512 : COPY_NODE_FIELD(endOffset);
1741 : 3512 : COPY_SCALAR_FIELD(startInRangeFunc);
1742 : 3512 : COPY_SCALAR_FIELD(endInRangeFunc);
1743 : 3512 : COPY_SCALAR_FIELD(inRangeColl);
1744 : 3512 : COPY_SCALAR_FIELD(inRangeAsc);
1745 : 3512 : COPY_SCALAR_FIELD(inRangeNullsFirst);
1746 : 3512 : COPY_SCALAR_FIELD(winref);
1747 : 3512 : COPY_SCALAR_FIELD(copiedOrder);
1748 : :
1749 : 3512 : return newnode;
1750 : : }
1751 : :
1752 : : static RowMarkClause *
1753 : 12638 : _copyRowMarkClause(const RowMarkClause *from)
1754 : : {
1755 : 12638 : RowMarkClause *newnode = makeNode(RowMarkClause);
1756 : :
1757 : 12638 : COPY_SCALAR_FIELD(rti);
1758 : 12638 : COPY_SCALAR_FIELD(strength);
1759 : 12638 : COPY_SCALAR_FIELD(waitPolicy);
1760 : 12638 : COPY_SCALAR_FIELD(pushedDown);
1761 : :
1762 : 12638 : return newnode;
1763 : : }
1764 : :
1765 : : static ForPortionOfClause *
1766 : 1229 : _copyForPortionOfClause(const ForPortionOfClause *from)
1767 : : {
1768 : 1229 : ForPortionOfClause *newnode = makeNode(ForPortionOfClause);
1769 : :
1770 [ + - ]: 1229 : COPY_STRING_FIELD(range_name);
1771 : 1229 : COPY_LOCATION_FIELD(location);
1772 : 1229 : COPY_LOCATION_FIELD(target_location);
1773 : 1229 : COPY_NODE_FIELD(target);
1774 : 1229 : COPY_NODE_FIELD(target_start);
1775 : 1229 : COPY_NODE_FIELD(target_end);
1776 : :
1777 : 1229 : return newnode;
1778 : : }
1779 : :
1780 : : static WithClause *
1781 : 2363 : _copyWithClause(const WithClause *from)
1782 : : {
1783 : 2363 : WithClause *newnode = makeNode(WithClause);
1784 : :
1785 : 2363 : COPY_NODE_FIELD(ctes);
1786 : 2363 : COPY_SCALAR_FIELD(recursive);
1787 : 2363 : COPY_LOCATION_FIELD(location);
1788 : :
1789 : 2363 : return newnode;
1790 : : }
1791 : :
1792 : : static InferClause *
1793 : 1421 : _copyInferClause(const InferClause *from)
1794 : : {
1795 : 1421 : InferClause *newnode = makeNode(InferClause);
1796 : :
1797 : 1421 : COPY_NODE_FIELD(indexElems);
1798 : 1421 : COPY_NODE_FIELD(whereClause);
1799 [ + + ]: 1421 : COPY_STRING_FIELD(conname);
1800 : 1421 : COPY_LOCATION_FIELD(location);
1801 : :
1802 : 1421 : return newnode;
1803 : : }
1804 : :
1805 : : static OnConflictClause *
1806 : 1580 : _copyOnConflictClause(const OnConflictClause *from)
1807 : : {
1808 : 1580 : OnConflictClause *newnode = makeNode(OnConflictClause);
1809 : :
1810 : 1580 : COPY_SCALAR_FIELD(action);
1811 : 1580 : COPY_NODE_FIELD(infer);
1812 : 1580 : COPY_SCALAR_FIELD(lockStrength);
1813 : 1580 : COPY_NODE_FIELD(targetList);
1814 : 1580 : COPY_NODE_FIELD(whereClause);
1815 : 1580 : COPY_LOCATION_FIELD(location);
1816 : :
1817 : 1580 : return newnode;
1818 : : }
1819 : :
1820 : : static CTESearchClause *
1821 : 218 : _copyCTESearchClause(const CTESearchClause *from)
1822 : : {
1823 : 218 : CTESearchClause *newnode = makeNode(CTESearchClause);
1824 : :
1825 : 218 : COPY_NODE_FIELD(search_col_list);
1826 : 218 : COPY_SCALAR_FIELD(search_breadth_first);
1827 [ + - ]: 218 : COPY_STRING_FIELD(search_seq_column);
1828 : 218 : COPY_LOCATION_FIELD(location);
1829 : :
1830 : 218 : return newnode;
1831 : : }
1832 : :
1833 : : static CTECycleClause *
1834 : 218 : _copyCTECycleClause(const CTECycleClause *from)
1835 : : {
1836 : 218 : CTECycleClause *newnode = makeNode(CTECycleClause);
1837 : :
1838 : 218 : COPY_NODE_FIELD(cycle_col_list);
1839 [ + - ]: 218 : COPY_STRING_FIELD(cycle_mark_column);
1840 : 218 : COPY_NODE_FIELD(cycle_mark_value);
1841 : 218 : COPY_NODE_FIELD(cycle_mark_default);
1842 [ + - ]: 218 : COPY_STRING_FIELD(cycle_path_column);
1843 : 218 : COPY_LOCATION_FIELD(location);
1844 : 218 : COPY_SCALAR_FIELD(cycle_mark_type);
1845 : 218 : COPY_SCALAR_FIELD(cycle_mark_typmod);
1846 : 218 : COPY_SCALAR_FIELD(cycle_mark_collation);
1847 : 218 : COPY_SCALAR_FIELD(cycle_mark_neop);
1848 : :
1849 : 218 : return newnode;
1850 : : }
1851 : :
1852 : : static CommonTableExpr *
1853 : 7651 : _copyCommonTableExpr(const CommonTableExpr *from)
1854 : : {
1855 : 7651 : CommonTableExpr *newnode = makeNode(CommonTableExpr);
1856 : :
1857 [ + - ]: 7651 : COPY_STRING_FIELD(ctename);
1858 : 7651 : COPY_NODE_FIELD(aliascolnames);
1859 : 7651 : COPY_SCALAR_FIELD(ctematerialized);
1860 : 7651 : COPY_NODE_FIELD(ctequery);
1861 : 7651 : COPY_NODE_FIELD(search_clause);
1862 : 7651 : COPY_NODE_FIELD(cycle_clause);
1863 : 7651 : COPY_LOCATION_FIELD(location);
1864 : 7651 : COPY_SCALAR_FIELD(cterecursive);
1865 : 7651 : COPY_SCALAR_FIELD(cterefcount);
1866 : 7651 : COPY_NODE_FIELD(ctecolnames);
1867 : 7651 : COPY_NODE_FIELD(ctecoltypes);
1868 : 7651 : COPY_NODE_FIELD(ctecoltypmods);
1869 : 7651 : COPY_NODE_FIELD(ctecolcollations);
1870 : :
1871 : 7651 : return newnode;
1872 : : }
1873 : :
1874 : : static MergeWhenClause *
1875 : 2293 : _copyMergeWhenClause(const MergeWhenClause *from)
1876 : : {
1877 : 2293 : MergeWhenClause *newnode = makeNode(MergeWhenClause);
1878 : :
1879 : 2293 : COPY_SCALAR_FIELD(matchKind);
1880 : 2293 : COPY_SCALAR_FIELD(commandType);
1881 : 2293 : COPY_SCALAR_FIELD(override);
1882 : 2293 : COPY_NODE_FIELD(condition);
1883 : 2293 : COPY_NODE_FIELD(targetList);
1884 : 2293 : COPY_NODE_FIELD(values);
1885 : :
1886 : 2293 : return newnode;
1887 : : }
1888 : :
1889 : : static ReturningOption *
1890 : 104 : _copyReturningOption(const ReturningOption *from)
1891 : : {
1892 : 104 : ReturningOption *newnode = makeNode(ReturningOption);
1893 : :
1894 : 104 : COPY_SCALAR_FIELD(option);
1895 [ + - ]: 104 : COPY_STRING_FIELD(value);
1896 : 104 : COPY_LOCATION_FIELD(location);
1897 : :
1898 : 104 : return newnode;
1899 : : }
1900 : :
1901 : : static ReturningClause *
1902 : 2809 : _copyReturningClause(const ReturningClause *from)
1903 : : {
1904 : 2809 : ReturningClause *newnode = makeNode(ReturningClause);
1905 : :
1906 : 2809 : COPY_NODE_FIELD(options);
1907 : 2809 : COPY_NODE_FIELD(exprs);
1908 : :
1909 : 2809 : return newnode;
1910 : : }
1911 : :
1912 : : static TriggerTransition *
1913 : 856 : _copyTriggerTransition(const TriggerTransition *from)
1914 : : {
1915 : 856 : TriggerTransition *newnode = makeNode(TriggerTransition);
1916 : :
1917 [ + - ]: 856 : COPY_STRING_FIELD(name);
1918 : 856 : COPY_SCALAR_FIELD(isNew);
1919 : 856 : COPY_SCALAR_FIELD(isTable);
1920 : :
1921 : 856 : return newnode;
1922 : : }
1923 : :
1924 : : static JsonOutput *
1925 : 1750 : _copyJsonOutput(const JsonOutput *from)
1926 : : {
1927 : 1750 : JsonOutput *newnode = makeNode(JsonOutput);
1928 : :
1929 : 1750 : COPY_NODE_FIELD(typeName);
1930 : 1750 : COPY_NODE_FIELD(returning);
1931 : :
1932 : 1750 : return newnode;
1933 : : }
1934 : :
1935 : : static JsonArgument *
1936 : 436 : _copyJsonArgument(const JsonArgument *from)
1937 : : {
1938 : 436 : JsonArgument *newnode = makeNode(JsonArgument);
1939 : :
1940 : 436 : COPY_NODE_FIELD(val);
1941 [ + - ]: 436 : COPY_STRING_FIELD(name);
1942 : :
1943 : 436 : return newnode;
1944 : : }
1945 : :
1946 : : static JsonFuncExpr *
1947 : 1452 : _copyJsonFuncExpr(const JsonFuncExpr *from)
1948 : : {
1949 : 1452 : JsonFuncExpr *newnode = makeNode(JsonFuncExpr);
1950 : :
1951 : 1452 : COPY_SCALAR_FIELD(op);
1952 [ - + ]: 1452 : COPY_STRING_FIELD(column_name);
1953 : 1452 : COPY_NODE_FIELD(context_item);
1954 : 1452 : COPY_NODE_FIELD(pathspec);
1955 : 1452 : COPY_NODE_FIELD(passing);
1956 : 1452 : COPY_NODE_FIELD(output);
1957 : 1452 : COPY_NODE_FIELD(on_empty);
1958 : 1452 : COPY_NODE_FIELD(on_error);
1959 : 1452 : COPY_SCALAR_FIELD(wrapper);
1960 : 1452 : COPY_SCALAR_FIELD(quotes);
1961 : 1452 : COPY_LOCATION_FIELD(location);
1962 : :
1963 : 1452 : return newnode;
1964 : : }
1965 : :
1966 : : static JsonTablePathSpec *
1967 : 2260 : _copyJsonTablePathSpec(const JsonTablePathSpec *from)
1968 : : {
1969 : 2260 : JsonTablePathSpec *newnode = makeNode(JsonTablePathSpec);
1970 : :
1971 : 2260 : COPY_NODE_FIELD(string);
1972 [ + + ]: 2260 : COPY_STRING_FIELD(name);
1973 : 2260 : COPY_LOCATION_FIELD(name_location);
1974 : 2260 : COPY_LOCATION_FIELD(location);
1975 : :
1976 : 2260 : return newnode;
1977 : : }
1978 : :
1979 : : static JsonTablePlanSpec *
1980 : 556 : _copyJsonTablePlanSpec(const JsonTablePlanSpec *from)
1981 : : {
1982 : 556 : JsonTablePlanSpec *newnode = makeNode(JsonTablePlanSpec);
1983 : :
1984 : 556 : COPY_SCALAR_FIELD(plan_type);
1985 : 556 : COPY_SCALAR_FIELD(join_type);
1986 [ + + ]: 556 : COPY_STRING_FIELD(pathname);
1987 : 556 : COPY_NODE_FIELD(plan1);
1988 : 556 : COPY_NODE_FIELD(plan2);
1989 : 556 : COPY_LOCATION_FIELD(location);
1990 : :
1991 : 556 : return newnode;
1992 : : }
1993 : :
1994 : : static JsonTable *
1995 : 544 : _copyJsonTable(const JsonTable *from)
1996 : : {
1997 : 544 : JsonTable *newnode = makeNode(JsonTable);
1998 : :
1999 : 544 : COPY_NODE_FIELD(context_item);
2000 : 544 : COPY_NODE_FIELD(pathspec);
2001 : 544 : COPY_NODE_FIELD(passing);
2002 : 544 : COPY_NODE_FIELD(columns);
2003 : 544 : COPY_NODE_FIELD(planspec);
2004 : 544 : COPY_NODE_FIELD(on_error);
2005 : 544 : COPY_NODE_FIELD(alias);
2006 : 544 : COPY_SCALAR_FIELD(lateral);
2007 : 544 : COPY_LOCATION_FIELD(location);
2008 : :
2009 : 544 : return newnode;
2010 : : }
2011 : :
2012 : : static JsonTableColumn *
2013 : 2080 : _copyJsonTableColumn(const JsonTableColumn *from)
2014 : : {
2015 : 2080 : JsonTableColumn *newnode = makeNode(JsonTableColumn);
2016 : :
2017 : 2080 : COPY_SCALAR_FIELD(coltype);
2018 [ + + ]: 2080 : COPY_STRING_FIELD(name);
2019 : 2080 : COPY_NODE_FIELD(typeName);
2020 : 2080 : COPY_NODE_FIELD(pathspec);
2021 : 2080 : COPY_NODE_FIELD(format);
2022 : 2080 : COPY_SCALAR_FIELD(wrapper);
2023 : 2080 : COPY_SCALAR_FIELD(quotes);
2024 : 2080 : COPY_NODE_FIELD(columns);
2025 : 2080 : COPY_NODE_FIELD(on_empty);
2026 : 2080 : COPY_NODE_FIELD(on_error);
2027 : 2080 : COPY_LOCATION_FIELD(location);
2028 : :
2029 : 2080 : return newnode;
2030 : : }
2031 : :
2032 : : static JsonKeyValue *
2033 : 878 : _copyJsonKeyValue(const JsonKeyValue *from)
2034 : : {
2035 : 878 : JsonKeyValue *newnode = makeNode(JsonKeyValue);
2036 : :
2037 : 878 : COPY_NODE_FIELD(key);
2038 : 878 : COPY_NODE_FIELD(value);
2039 : :
2040 : 878 : return newnode;
2041 : : }
2042 : :
2043 : : static JsonParseExpr *
2044 : 108 : _copyJsonParseExpr(const JsonParseExpr *from)
2045 : : {
2046 : 108 : JsonParseExpr *newnode = makeNode(JsonParseExpr);
2047 : :
2048 : 108 : COPY_NODE_FIELD(expr);
2049 : 108 : COPY_NODE_FIELD(output);
2050 : 108 : COPY_SCALAR_FIELD(unique_keys);
2051 : 108 : COPY_LOCATION_FIELD(location);
2052 : :
2053 : 108 : return newnode;
2054 : : }
2055 : :
2056 : : static JsonScalarExpr *
2057 : 70 : _copyJsonScalarExpr(const JsonScalarExpr *from)
2058 : : {
2059 : 70 : JsonScalarExpr *newnode = makeNode(JsonScalarExpr);
2060 : :
2061 : 70 : COPY_NODE_FIELD(expr);
2062 : 70 : COPY_NODE_FIELD(output);
2063 : 70 : COPY_LOCATION_FIELD(location);
2064 : :
2065 : 70 : return newnode;
2066 : : }
2067 : :
2068 : : static JsonSerializeExpr *
2069 : 68 : _copyJsonSerializeExpr(const JsonSerializeExpr *from)
2070 : : {
2071 : 68 : JsonSerializeExpr *newnode = makeNode(JsonSerializeExpr);
2072 : :
2073 : 68 : COPY_NODE_FIELD(expr);
2074 : 68 : COPY_NODE_FIELD(output);
2075 : 68 : COPY_LOCATION_FIELD(location);
2076 : :
2077 : 68 : return newnode;
2078 : : }
2079 : :
2080 : : static JsonObjectConstructor *
2081 : 570 : _copyJsonObjectConstructor(const JsonObjectConstructor *from)
2082 : : {
2083 : 570 : JsonObjectConstructor *newnode = makeNode(JsonObjectConstructor);
2084 : :
2085 : 570 : COPY_NODE_FIELD(exprs);
2086 : 570 : COPY_NODE_FIELD(output);
2087 : 570 : COPY_SCALAR_FIELD(absent_on_null);
2088 : 570 : COPY_SCALAR_FIELD(unique);
2089 : 570 : COPY_LOCATION_FIELD(location);
2090 : :
2091 : 570 : return newnode;
2092 : : }
2093 : :
2094 : : static JsonArrayConstructor *
2095 : 408 : _copyJsonArrayConstructor(const JsonArrayConstructor *from)
2096 : : {
2097 : 408 : JsonArrayConstructor *newnode = makeNode(JsonArrayConstructor);
2098 : :
2099 : 408 : COPY_NODE_FIELD(exprs);
2100 : 408 : COPY_NODE_FIELD(output);
2101 : 408 : COPY_SCALAR_FIELD(absent_on_null);
2102 : 408 : COPY_LOCATION_FIELD(location);
2103 : :
2104 : 408 : return newnode;
2105 : : }
2106 : :
2107 : : static JsonArrayQueryConstructor *
2108 : 116 : _copyJsonArrayQueryConstructor(const JsonArrayQueryConstructor *from)
2109 : : {
2110 : 116 : JsonArrayQueryConstructor *newnode = makeNode(JsonArrayQueryConstructor);
2111 : :
2112 : 116 : COPY_NODE_FIELD(query);
2113 : 116 : COPY_NODE_FIELD(output);
2114 : 116 : COPY_NODE_FIELD(format);
2115 : 116 : COPY_SCALAR_FIELD(absent_on_null);
2116 : 116 : COPY_LOCATION_FIELD(location);
2117 : :
2118 : 116 : return newnode;
2119 : : }
2120 : :
2121 : : static JsonAggConstructor *
2122 : 356 : _copyJsonAggConstructor(const JsonAggConstructor *from)
2123 : : {
2124 : 356 : JsonAggConstructor *newnode = makeNode(JsonAggConstructor);
2125 : :
2126 : 356 : COPY_NODE_FIELD(output);
2127 : 356 : COPY_NODE_FIELD(agg_filter);
2128 : 356 : COPY_NODE_FIELD(agg_order);
2129 : 356 : COPY_NODE_FIELD(over);
2130 : 356 : COPY_LOCATION_FIELD(location);
2131 : :
2132 : 356 : return newnode;
2133 : : }
2134 : :
2135 : : static JsonObjectAgg *
2136 : 196 : _copyJsonObjectAgg(const JsonObjectAgg *from)
2137 : : {
2138 : 196 : JsonObjectAgg *newnode = makeNode(JsonObjectAgg);
2139 : :
2140 : 196 : COPY_NODE_FIELD(constructor);
2141 : 196 : COPY_NODE_FIELD(arg);
2142 : 196 : COPY_SCALAR_FIELD(absent_on_null);
2143 : 196 : COPY_SCALAR_FIELD(unique);
2144 : :
2145 : 196 : return newnode;
2146 : : }
2147 : :
2148 : : static JsonArrayAgg *
2149 : 160 : _copyJsonArrayAgg(const JsonArrayAgg *from)
2150 : : {
2151 : 160 : JsonArrayAgg *newnode = makeNode(JsonArrayAgg);
2152 : :
2153 : 160 : COPY_NODE_FIELD(constructor);
2154 : 160 : COPY_NODE_FIELD(arg);
2155 : 160 : COPY_SCALAR_FIELD(absent_on_null);
2156 : :
2157 : 160 : return newnode;
2158 : : }
2159 : :
2160 : : static RawStmt *
2161 : 512601 : _copyRawStmt(const RawStmt *from)
2162 : : {
2163 : 512601 : RawStmt *newnode = makeNode(RawStmt);
2164 : :
2165 : 512601 : COPY_NODE_FIELD(stmt);
2166 : 512601 : COPY_LOCATION_FIELD(stmt_location);
2167 : 512601 : COPY_LOCATION_FIELD(stmt_len);
2168 : :
2169 : 512601 : return newnode;
2170 : : }
2171 : :
2172 : : static InsertStmt *
2173 : 48583 : _copyInsertStmt(const InsertStmt *from)
2174 : : {
2175 : 48583 : InsertStmt *newnode = makeNode(InsertStmt);
2176 : :
2177 : 48583 : COPY_NODE_FIELD(relation);
2178 : 48583 : COPY_NODE_FIELD(cols);
2179 : 48583 : COPY_NODE_FIELD(selectStmt);
2180 : 48583 : COPY_NODE_FIELD(onConflictClause);
2181 : 48583 : COPY_NODE_FIELD(returningClause);
2182 : 48583 : COPY_NODE_FIELD(withClause);
2183 : 48583 : COPY_SCALAR_FIELD(override);
2184 : :
2185 : 48583 : return newnode;
2186 : : }
2187 : :
2188 : : static DeleteStmt *
2189 : 3649 : _copyDeleteStmt(const DeleteStmt *from)
2190 : : {
2191 : 3649 : DeleteStmt *newnode = makeNode(DeleteStmt);
2192 : :
2193 : 3649 : COPY_NODE_FIELD(relation);
2194 : 3649 : COPY_NODE_FIELD(usingClause);
2195 : 3649 : COPY_NODE_FIELD(whereClause);
2196 : 3649 : COPY_NODE_FIELD(returningClause);
2197 : 3649 : COPY_NODE_FIELD(withClause);
2198 : 3649 : COPY_NODE_FIELD(forPortionOf);
2199 : :
2200 : 3649 : return newnode;
2201 : : }
2202 : :
2203 : : static UpdateStmt *
2204 : 9828 : _copyUpdateStmt(const UpdateStmt *from)
2205 : : {
2206 : 9828 : UpdateStmt *newnode = makeNode(UpdateStmt);
2207 : :
2208 : 9828 : COPY_NODE_FIELD(relation);
2209 : 9828 : COPY_NODE_FIELD(targetList);
2210 : 9828 : COPY_NODE_FIELD(whereClause);
2211 : 9828 : COPY_NODE_FIELD(fromClause);
2212 : 9828 : COPY_NODE_FIELD(returningClause);
2213 : 9828 : COPY_NODE_FIELD(withClause);
2214 : 9828 : COPY_NODE_FIELD(forPortionOf);
2215 : :
2216 : 9828 : return newnode;
2217 : : }
2218 : :
2219 : : static MergeStmt *
2220 : 1448 : _copyMergeStmt(const MergeStmt *from)
2221 : : {
2222 : 1448 : MergeStmt *newnode = makeNode(MergeStmt);
2223 : :
2224 : 1448 : COPY_NODE_FIELD(relation);
2225 : 1448 : COPY_NODE_FIELD(sourceRelation);
2226 : 1448 : COPY_NODE_FIELD(joinCondition);
2227 : 1448 : COPY_NODE_FIELD(mergeWhenClauses);
2228 : 1448 : COPY_NODE_FIELD(returningClause);
2229 : 1448 : COPY_NODE_FIELD(withClause);
2230 : :
2231 : 1448 : return newnode;
2232 : : }
2233 : :
2234 : : static SelectStmt *
2235 : 387329 : _copySelectStmt(const SelectStmt *from)
2236 : : {
2237 : 387329 : SelectStmt *newnode = makeNode(SelectStmt);
2238 : :
2239 : 387329 : COPY_NODE_FIELD(distinctClause);
2240 : 387329 : COPY_NODE_FIELD(intoClause);
2241 : 387329 : COPY_NODE_FIELD(targetList);
2242 : 387329 : COPY_NODE_FIELD(fromClause);
2243 : 387329 : COPY_NODE_FIELD(whereClause);
2244 : 387329 : COPY_NODE_FIELD(groupClause);
2245 : 387329 : COPY_SCALAR_FIELD(groupDistinct);
2246 : 387329 : COPY_NODE_FIELD(havingClause);
2247 : 387329 : COPY_NODE_FIELD(windowClause);
2248 : 387329 : COPY_NODE_FIELD(valuesLists);
2249 : 387329 : COPY_NODE_FIELD(sortClause);
2250 : 387329 : COPY_NODE_FIELD(limitOffset);
2251 : 387329 : COPY_NODE_FIELD(limitCount);
2252 : 387329 : COPY_SCALAR_FIELD(limitOption);
2253 : 387329 : COPY_NODE_FIELD(lockingClause);
2254 : 387329 : COPY_NODE_FIELD(withClause);
2255 : 387329 : COPY_SCALAR_FIELD(op);
2256 : 387329 : COPY_SCALAR_FIELD(all);
2257 : 387329 : COPY_NODE_FIELD(larg);
2258 : 387329 : COPY_NODE_FIELD(rarg);
2259 : :
2260 : 387329 : return newnode;
2261 : : }
2262 : :
2263 : : static SetOperationStmt *
2264 : 23202 : _copySetOperationStmt(const SetOperationStmt *from)
2265 : : {
2266 : 23202 : SetOperationStmt *newnode = makeNode(SetOperationStmt);
2267 : :
2268 : 23202 : COPY_SCALAR_FIELD(op);
2269 : 23202 : COPY_SCALAR_FIELD(all);
2270 : 23202 : COPY_NODE_FIELD(larg);
2271 : 23202 : COPY_NODE_FIELD(rarg);
2272 : 23202 : COPY_NODE_FIELD(colTypes);
2273 : 23202 : COPY_NODE_FIELD(colTypmods);
2274 : 23202 : COPY_NODE_FIELD(colCollations);
2275 : 23202 : COPY_NODE_FIELD(groupClauses);
2276 : :
2277 : 23202 : return newnode;
2278 : : }
2279 : :
2280 : : static ReturnStmt *
2281 : 5472 : _copyReturnStmt(const ReturnStmt *from)
2282 : : {
2283 : 5472 : ReturnStmt *newnode = makeNode(ReturnStmt);
2284 : :
2285 : 5472 : COPY_NODE_FIELD(returnval);
2286 : :
2287 : 5472 : return newnode;
2288 : : }
2289 : :
2290 : : static PLAssignStmt *
2291 : 3350 : _copyPLAssignStmt(const PLAssignStmt *from)
2292 : : {
2293 : 3350 : PLAssignStmt *newnode = makeNode(PLAssignStmt);
2294 : :
2295 [ + - ]: 3350 : COPY_STRING_FIELD(name);
2296 : 3350 : COPY_NODE_FIELD(indirection);
2297 : 3350 : COPY_SCALAR_FIELD(nnames);
2298 : 3350 : COPY_NODE_FIELD(val);
2299 : 3350 : COPY_LOCATION_FIELD(location);
2300 : :
2301 : 3350 : return newnode;
2302 : : }
2303 : :
2304 : : static CreateSchemaStmt *
2305 : 1540 : _copyCreateSchemaStmt(const CreateSchemaStmt *from)
2306 : : {
2307 : 1540 : CreateSchemaStmt *newnode = makeNode(CreateSchemaStmt);
2308 : :
2309 [ + + ]: 1540 : COPY_STRING_FIELD(schemaname);
2310 : 1540 : COPY_NODE_FIELD(authrole);
2311 : 1540 : COPY_NODE_FIELD(schemaElts);
2312 : 1540 : COPY_SCALAR_FIELD(if_not_exists);
2313 : :
2314 : 1540 : return newnode;
2315 : : }
2316 : :
2317 : : static AlterTableStmt *
2318 : 40623 : _copyAlterTableStmt(const AlterTableStmt *from)
2319 : : {
2320 : 40623 : AlterTableStmt *newnode = makeNode(AlterTableStmt);
2321 : :
2322 : 40623 : COPY_NODE_FIELD(relation);
2323 : 40623 : COPY_NODE_FIELD(cmds);
2324 : 40623 : COPY_SCALAR_FIELD(objtype);
2325 : 40623 : COPY_SCALAR_FIELD(missing_ok);
2326 : :
2327 : 40623 : return newnode;
2328 : : }
2329 : :
2330 : : static AlterTableCmd *
2331 : 67429 : _copyAlterTableCmd(const AlterTableCmd *from)
2332 : : {
2333 : 67429 : AlterTableCmd *newnode = makeNode(AlterTableCmd);
2334 : :
2335 : 67429 : COPY_SCALAR_FIELD(subtype);
2336 [ + + ]: 67429 : COPY_STRING_FIELD(name);
2337 : 67429 : COPY_SCALAR_FIELD(num);
2338 : 67429 : COPY_NODE_FIELD(newowner);
2339 : 67429 : COPY_NODE_FIELD(def);
2340 : 67429 : COPY_SCALAR_FIELD(behavior);
2341 : 67429 : COPY_SCALAR_FIELD(missing_ok);
2342 : 67429 : COPY_SCALAR_FIELD(recurse);
2343 : :
2344 : 67429 : return newnode;
2345 : : }
2346 : :
2347 : : static ATAlterConstraint *
2348 : 1008 : _copyATAlterConstraint(const ATAlterConstraint *from)
2349 : : {
2350 : 1008 : ATAlterConstraint *newnode = makeNode(ATAlterConstraint);
2351 : :
2352 [ + - ]: 1008 : COPY_STRING_FIELD(conname);
2353 : 1008 : COPY_SCALAR_FIELD(alterEnforceability);
2354 : 1008 : COPY_SCALAR_FIELD(is_enforced);
2355 : 1008 : COPY_SCALAR_FIELD(alterDeferrability);
2356 : 1008 : COPY_SCALAR_FIELD(deferrable);
2357 : 1008 : COPY_SCALAR_FIELD(initdeferred);
2358 : 1008 : COPY_SCALAR_FIELD(alterInheritability);
2359 : 1008 : COPY_SCALAR_FIELD(noinherit);
2360 : :
2361 : 1008 : return newnode;
2362 : : }
2363 : :
2364 : : static ReplicaIdentityStmt *
2365 : 945 : _copyReplicaIdentityStmt(const ReplicaIdentityStmt *from)
2366 : : {
2367 : 945 : ReplicaIdentityStmt *newnode = makeNode(ReplicaIdentityStmt);
2368 : :
2369 : 945 : COPY_SCALAR_FIELD(identity_type);
2370 [ + + ]: 945 : COPY_STRING_FIELD(name);
2371 : :
2372 : 945 : return newnode;
2373 : : }
2374 : :
2375 : : static AlterCollationStmt *
2376 : 8 : _copyAlterCollationStmt(const AlterCollationStmt *from)
2377 : : {
2378 : 8 : AlterCollationStmt *newnode = makeNode(AlterCollationStmt);
2379 : :
2380 : 8 : COPY_NODE_FIELD(collname);
2381 : :
2382 : 8 : return newnode;
2383 : : }
2384 : :
2385 : : static AlterDomainStmt *
2386 : 390 : _copyAlterDomainStmt(const AlterDomainStmt *from)
2387 : : {
2388 : 390 : AlterDomainStmt *newnode = makeNode(AlterDomainStmt);
2389 : :
2390 : 390 : COPY_SCALAR_FIELD(subtype);
2391 : 390 : COPY_NODE_FIELD(typeName);
2392 [ + + ]: 390 : COPY_STRING_FIELD(name);
2393 : 390 : COPY_NODE_FIELD(def);
2394 : 390 : COPY_SCALAR_FIELD(behavior);
2395 : 390 : COPY_SCALAR_FIELD(missing_ok);
2396 : :
2397 : 390 : return newnode;
2398 : : }
2399 : :
2400 : : static GrantStmt *
2401 : 23231 : _copyGrantStmt(const GrantStmt *from)
2402 : : {
2403 : 23231 : GrantStmt *newnode = makeNode(GrantStmt);
2404 : :
2405 : 23231 : COPY_SCALAR_FIELD(is_grant);
2406 : 23231 : COPY_SCALAR_FIELD(targtype);
2407 : 23231 : COPY_SCALAR_FIELD(objtype);
2408 : 23231 : COPY_NODE_FIELD(objects);
2409 : 23231 : COPY_NODE_FIELD(privileges);
2410 : 23231 : COPY_NODE_FIELD(grantees);
2411 : 23231 : COPY_SCALAR_FIELD(grant_option);
2412 : 23231 : COPY_NODE_FIELD(grantor);
2413 : 23231 : COPY_SCALAR_FIELD(behavior);
2414 : :
2415 : 23231 : return newnode;
2416 : : }
2417 : :
2418 : : static ObjectWithArgs *
2419 : 16529 : _copyObjectWithArgs(const ObjectWithArgs *from)
2420 : : {
2421 : 16529 : ObjectWithArgs *newnode = makeNode(ObjectWithArgs);
2422 : :
2423 : 16529 : COPY_NODE_FIELD(objname);
2424 : 16529 : COPY_NODE_FIELD(objargs);
2425 : 16529 : COPY_NODE_FIELD(objfuncargs);
2426 : 16529 : COPY_SCALAR_FIELD(args_unspecified);
2427 : :
2428 : 16529 : return newnode;
2429 : : }
2430 : :
2431 : : static AccessPriv *
2432 : 21660 : _copyAccessPriv(const AccessPriv *from)
2433 : : {
2434 : 21660 : AccessPriv *newnode = makeNode(AccessPriv);
2435 : :
2436 [ + + ]: 21660 : COPY_STRING_FIELD(priv_name);
2437 : 21660 : COPY_NODE_FIELD(cols);
2438 : :
2439 : 21660 : return newnode;
2440 : : }
2441 : :
2442 : : static GrantRoleStmt *
2443 : 974 : _copyGrantRoleStmt(const GrantRoleStmt *from)
2444 : : {
2445 : 974 : GrantRoleStmt *newnode = makeNode(GrantRoleStmt);
2446 : :
2447 : 974 : COPY_NODE_FIELD(granted_roles);
2448 : 974 : COPY_NODE_FIELD(grantee_roles);
2449 : 974 : COPY_SCALAR_FIELD(is_grant);
2450 : 974 : COPY_NODE_FIELD(opt);
2451 : 974 : COPY_NODE_FIELD(grantor);
2452 : 974 : COPY_SCALAR_FIELD(behavior);
2453 : :
2454 : 974 : return newnode;
2455 : : }
2456 : :
2457 : : static AlterDefaultPrivilegesStmt *
2458 : 275 : _copyAlterDefaultPrivilegesStmt(const AlterDefaultPrivilegesStmt *from)
2459 : : {
2460 : 275 : AlterDefaultPrivilegesStmt *newnode = makeNode(AlterDefaultPrivilegesStmt);
2461 : :
2462 : 275 : COPY_NODE_FIELD(options);
2463 : 275 : COPY_NODE_FIELD(action);
2464 : :
2465 : 275 : return newnode;
2466 : : }
2467 : :
2468 : : static CopyStmt *
2469 : 13468 : _copyCopyStmt(const CopyStmt *from)
2470 : : {
2471 : 13468 : CopyStmt *newnode = makeNode(CopyStmt);
2472 : :
2473 : 13468 : COPY_NODE_FIELD(relation);
2474 : 13468 : COPY_NODE_FIELD(query);
2475 : 13468 : COPY_NODE_FIELD(attlist);
2476 : 13468 : COPY_SCALAR_FIELD(is_from);
2477 : 13468 : COPY_SCALAR_FIELD(is_program);
2478 [ + + ]: 13468 : COPY_STRING_FIELD(filename);
2479 : 13468 : COPY_NODE_FIELD(options);
2480 : 13468 : COPY_NODE_FIELD(whereClause);
2481 : :
2482 : 13468 : return newnode;
2483 : : }
2484 : :
2485 : : static VariableSetStmt *
2486 : 46062 : _copyVariableSetStmt(const VariableSetStmt *from)
2487 : : {
2488 : 46062 : VariableSetStmt *newnode = makeNode(VariableSetStmt);
2489 : :
2490 : 46062 : COPY_SCALAR_FIELD(kind);
2491 [ + + ]: 46062 : COPY_STRING_FIELD(name);
2492 : 46062 : COPY_NODE_FIELD(args);
2493 : 46062 : COPY_SCALAR_FIELD(jumble_args);
2494 : 46062 : COPY_SCALAR_FIELD(is_local);
2495 : 46062 : COPY_LOCATION_FIELD(location);
2496 : :
2497 : 46062 : return newnode;
2498 : : }
2499 : :
2500 : : static VariableShowStmt *
2501 : 1230 : _copyVariableShowStmt(const VariableShowStmt *from)
2502 : : {
2503 : 1230 : VariableShowStmt *newnode = makeNode(VariableShowStmt);
2504 : :
2505 [ + - ]: 1230 : COPY_STRING_FIELD(name);
2506 : :
2507 : 1230 : return newnode;
2508 : : }
2509 : :
2510 : : static CreateStmt *
2511 : 52285 : _copyCreateStmt(const CreateStmt *from)
2512 : : {
2513 : 52285 : CreateStmt *newnode = makeNode(CreateStmt);
2514 : :
2515 : 52285 : COPY_NODE_FIELD(relation);
2516 : 52285 : COPY_NODE_FIELD(tableElts);
2517 : 52285 : COPY_NODE_FIELD(inhRelations);
2518 : 52285 : COPY_NODE_FIELD(partbound);
2519 : 52285 : COPY_NODE_FIELD(partspec);
2520 : 52285 : COPY_NODE_FIELD(ofTypename);
2521 : 52285 : COPY_NODE_FIELD(constraints);
2522 : 52285 : COPY_NODE_FIELD(nnconstraints);
2523 : 52285 : COPY_NODE_FIELD(options);
2524 : 52285 : COPY_SCALAR_FIELD(oncommit);
2525 [ + + ]: 52285 : COPY_STRING_FIELD(tablespacename);
2526 [ + + ]: 52285 : COPY_STRING_FIELD(accessMethod);
2527 : 52285 : COPY_SCALAR_FIELD(if_not_exists);
2528 : :
2529 : 52285 : return newnode;
2530 : : }
2531 : :
2532 : : static Constraint *
2533 : 67665 : _copyConstraint(const Constraint *from)
2534 : : {
2535 : 67665 : Constraint *newnode = makeNode(Constraint);
2536 : :
2537 : 67665 : COPY_SCALAR_FIELD(contype);
2538 [ + + ]: 67665 : COPY_STRING_FIELD(conname);
2539 : 67665 : COPY_SCALAR_FIELD(deferrable);
2540 : 67665 : COPY_SCALAR_FIELD(initdeferred);
2541 : 67665 : COPY_SCALAR_FIELD(is_enforced);
2542 : 67665 : COPY_SCALAR_FIELD(skip_validation);
2543 : 67665 : COPY_SCALAR_FIELD(initially_valid);
2544 : 67665 : COPY_SCALAR_FIELD(is_no_inherit);
2545 : 67665 : COPY_NODE_FIELD(raw_expr);
2546 [ + + ]: 67665 : COPY_STRING_FIELD(cooked_expr);
2547 : 67665 : COPY_SCALAR_FIELD(generated_when);
2548 : 67665 : COPY_SCALAR_FIELD(generated_kind);
2549 : 67665 : COPY_SCALAR_FIELD(nulls_not_distinct);
2550 : 67665 : COPY_NODE_FIELD(keys);
2551 : 67665 : COPY_SCALAR_FIELD(without_overlaps);
2552 : 67665 : COPY_NODE_FIELD(including);
2553 : 67665 : COPY_NODE_FIELD(exclusions);
2554 : 67665 : COPY_NODE_FIELD(options);
2555 [ + + ]: 67665 : COPY_STRING_FIELD(indexname);
2556 [ + + ]: 67665 : COPY_STRING_FIELD(indexspace);
2557 : 67665 : COPY_SCALAR_FIELD(reset_default_tblspc);
2558 [ + + ]: 67665 : COPY_STRING_FIELD(access_method);
2559 : 67665 : COPY_NODE_FIELD(where_clause);
2560 : 67665 : COPY_NODE_FIELD(pktable);
2561 : 67665 : COPY_NODE_FIELD(fk_attrs);
2562 : 67665 : COPY_NODE_FIELD(pk_attrs);
2563 : 67665 : COPY_SCALAR_FIELD(fk_with_period);
2564 : 67665 : COPY_SCALAR_FIELD(pk_with_period);
2565 : 67665 : COPY_SCALAR_FIELD(fk_matchtype);
2566 : 67665 : COPY_SCALAR_FIELD(fk_upd_action);
2567 : 67665 : COPY_SCALAR_FIELD(fk_del_action);
2568 : 67665 : COPY_NODE_FIELD(fk_del_set_cols);
2569 : 67665 : COPY_NODE_FIELD(old_conpfeqop);
2570 : 67665 : COPY_SCALAR_FIELD(old_pktable_oid);
2571 : 67665 : COPY_LOCATION_FIELD(location);
2572 : :
2573 : 67665 : return newnode;
2574 : : }
2575 : :
2576 : : static CreateTableSpaceStmt *
2577 : 150 : _copyCreateTableSpaceStmt(const CreateTableSpaceStmt *from)
2578 : : {
2579 : 150 : CreateTableSpaceStmt *newnode = makeNode(CreateTableSpaceStmt);
2580 : :
2581 [ + - ]: 150 : COPY_STRING_FIELD(tablespacename);
2582 : 150 : COPY_NODE_FIELD(owner);
2583 [ + - ]: 150 : COPY_STRING_FIELD(location);
2584 : 150 : COPY_NODE_FIELD(options);
2585 : :
2586 : 150 : return newnode;
2587 : : }
2588 : :
2589 : : static DropTableSpaceStmt *
2590 : 72 : _copyDropTableSpaceStmt(const DropTableSpaceStmt *from)
2591 : : {
2592 : 72 : DropTableSpaceStmt *newnode = makeNode(DropTableSpaceStmt);
2593 : :
2594 [ + - ]: 72 : COPY_STRING_FIELD(tablespacename);
2595 : 72 : COPY_SCALAR_FIELD(missing_ok);
2596 : :
2597 : 72 : return newnode;
2598 : : }
2599 : :
2600 : : static AlterTableSpaceOptionsStmt *
2601 : 34 : _copyAlterTableSpaceOptionsStmt(const AlterTableSpaceOptionsStmt *from)
2602 : : {
2603 : 34 : AlterTableSpaceOptionsStmt *newnode = makeNode(AlterTableSpaceOptionsStmt);
2604 : :
2605 [ + - ]: 34 : COPY_STRING_FIELD(tablespacename);
2606 : 34 : COPY_NODE_FIELD(options);
2607 : 34 : COPY_SCALAR_FIELD(isReset);
2608 : :
2609 : 34 : return newnode;
2610 : : }
2611 : :
2612 : : static AlterTableMoveAllStmt *
2613 : 62 : _copyAlterTableMoveAllStmt(const AlterTableMoveAllStmt *from)
2614 : : {
2615 : 62 : AlterTableMoveAllStmt *newnode = makeNode(AlterTableMoveAllStmt);
2616 : :
2617 [ + - ]: 62 : COPY_STRING_FIELD(orig_tablespacename);
2618 : 62 : COPY_SCALAR_FIELD(objtype);
2619 : 62 : COPY_NODE_FIELD(roles);
2620 [ + - ]: 62 : COPY_STRING_FIELD(new_tablespacename);
2621 : 62 : COPY_SCALAR_FIELD(nowait);
2622 : :
2623 : 62 : return newnode;
2624 : : }
2625 : :
2626 : : static CreateExtensionStmt *
2627 : 687 : _copyCreateExtensionStmt(const CreateExtensionStmt *from)
2628 : : {
2629 : 687 : CreateExtensionStmt *newnode = makeNode(CreateExtensionStmt);
2630 : :
2631 [ + - ]: 687 : COPY_STRING_FIELD(extname);
2632 : 687 : COPY_SCALAR_FIELD(if_not_exists);
2633 : 687 : COPY_NODE_FIELD(options);
2634 : :
2635 : 687 : return newnode;
2636 : : }
2637 : :
2638 : : static AlterExtensionStmt *
2639 : 43 : _copyAlterExtensionStmt(const AlterExtensionStmt *from)
2640 : : {
2641 : 43 : AlterExtensionStmt *newnode = makeNode(AlterExtensionStmt);
2642 : :
2643 [ + - ]: 43 : COPY_STRING_FIELD(extname);
2644 : 43 : COPY_NODE_FIELD(options);
2645 : :
2646 : 43 : return newnode;
2647 : : }
2648 : :
2649 : : static AlterExtensionContentsStmt *
2650 : 303 : _copyAlterExtensionContentsStmt(const AlterExtensionContentsStmt *from)
2651 : : {
2652 : 303 : AlterExtensionContentsStmt *newnode = makeNode(AlterExtensionContentsStmt);
2653 : :
2654 [ + - ]: 303 : COPY_STRING_FIELD(extname);
2655 : 303 : COPY_SCALAR_FIELD(action);
2656 : 303 : COPY_SCALAR_FIELD(objtype);
2657 : 303 : COPY_NODE_FIELD(object);
2658 : :
2659 : 303 : return newnode;
2660 : : }
2661 : :
2662 : : static CreateFdwStmt *
2663 : 314 : _copyCreateFdwStmt(const CreateFdwStmt *from)
2664 : : {
2665 : 314 : CreateFdwStmt *newnode = makeNode(CreateFdwStmt);
2666 : :
2667 [ + - ]: 314 : COPY_STRING_FIELD(fdwname);
2668 : 314 : COPY_NODE_FIELD(func_options);
2669 : 314 : COPY_NODE_FIELD(options);
2670 : :
2671 : 314 : return newnode;
2672 : : }
2673 : :
2674 : : static AlterFdwStmt *
2675 : 206 : _copyAlterFdwStmt(const AlterFdwStmt *from)
2676 : : {
2677 : 206 : AlterFdwStmt *newnode = makeNode(AlterFdwStmt);
2678 : :
2679 [ + - ]: 206 : COPY_STRING_FIELD(fdwname);
2680 : 206 : COPY_NODE_FIELD(func_options);
2681 : 206 : COPY_NODE_FIELD(options);
2682 : :
2683 : 206 : return newnode;
2684 : : }
2685 : :
2686 : : static CreateForeignServerStmt *
2687 : 398 : _copyCreateForeignServerStmt(const CreateForeignServerStmt *from)
2688 : : {
2689 : 398 : CreateForeignServerStmt *newnode = makeNode(CreateForeignServerStmt);
2690 : :
2691 [ + - ]: 398 : COPY_STRING_FIELD(servername);
2692 [ + + ]: 398 : COPY_STRING_FIELD(servertype);
2693 [ + + ]: 398 : COPY_STRING_FIELD(version);
2694 [ + - ]: 398 : COPY_STRING_FIELD(fdwname);
2695 : 398 : COPY_SCALAR_FIELD(if_not_exists);
2696 : 398 : COPY_NODE_FIELD(options);
2697 : :
2698 : 398 : return newnode;
2699 : : }
2700 : :
2701 : : static AlterForeignServerStmt *
2702 : 258 : _copyAlterForeignServerStmt(const AlterForeignServerStmt *from)
2703 : : {
2704 : 258 : AlterForeignServerStmt *newnode = makeNode(AlterForeignServerStmt);
2705 : :
2706 [ + - ]: 258 : COPY_STRING_FIELD(servername);
2707 [ + + ]: 258 : COPY_STRING_FIELD(version);
2708 : 258 : COPY_NODE_FIELD(options);
2709 : 258 : COPY_SCALAR_FIELD(has_version);
2710 : :
2711 : 258 : return newnode;
2712 : : }
2713 : :
2714 : : static CreateForeignTableStmt *
2715 : 586 : _copyCreateForeignTableStmt(const CreateForeignTableStmt *from)
2716 : : {
2717 : 586 : CreateForeignTableStmt *newnode = makeNode(CreateForeignTableStmt);
2718 : :
2719 : 586 : COPY_NODE_FIELD(base.relation);
2720 : 586 : COPY_NODE_FIELD(base.tableElts);
2721 : 586 : COPY_NODE_FIELD(base.inhRelations);
2722 : 586 : COPY_NODE_FIELD(base.partbound);
2723 : 586 : COPY_NODE_FIELD(base.partspec);
2724 : 586 : COPY_NODE_FIELD(base.ofTypename);
2725 : 586 : COPY_NODE_FIELD(base.constraints);
2726 : 586 : COPY_NODE_FIELD(base.nnconstraints);
2727 : 586 : COPY_NODE_FIELD(base.options);
2728 : 586 : COPY_SCALAR_FIELD(base.oncommit);
2729 [ - + ]: 586 : COPY_STRING_FIELD(base.tablespacename);
2730 [ - + ]: 586 : COPY_STRING_FIELD(base.accessMethod);
2731 : 586 : COPY_SCALAR_FIELD(base.if_not_exists);
2732 [ + - ]: 586 : COPY_STRING_FIELD(servername);
2733 : 586 : COPY_NODE_FIELD(options);
2734 : :
2735 : 586 : return newnode;
2736 : : }
2737 : :
2738 : : static CreateUserMappingStmt *
2739 : 338 : _copyCreateUserMappingStmt(const CreateUserMappingStmt *from)
2740 : : {
2741 : 338 : CreateUserMappingStmt *newnode = makeNode(CreateUserMappingStmt);
2742 : :
2743 : 338 : COPY_NODE_FIELD(user);
2744 [ + - ]: 338 : COPY_STRING_FIELD(servername);
2745 : 338 : COPY_SCALAR_FIELD(if_not_exists);
2746 : 338 : COPY_NODE_FIELD(options);
2747 : :
2748 : 338 : return newnode;
2749 : : }
2750 : :
2751 : : static AlterUserMappingStmt *
2752 : 146 : _copyAlterUserMappingStmt(const AlterUserMappingStmt *from)
2753 : : {
2754 : 146 : AlterUserMappingStmt *newnode = makeNode(AlterUserMappingStmt);
2755 : :
2756 : 146 : COPY_NODE_FIELD(user);
2757 [ + - ]: 146 : COPY_STRING_FIELD(servername);
2758 : 146 : COPY_NODE_FIELD(options);
2759 : :
2760 : 146 : return newnode;
2761 : : }
2762 : :
2763 : : static DropUserMappingStmt *
2764 : 158 : _copyDropUserMappingStmt(const DropUserMappingStmt *from)
2765 : : {
2766 : 158 : DropUserMappingStmt *newnode = makeNode(DropUserMappingStmt);
2767 : :
2768 : 158 : COPY_NODE_FIELD(user);
2769 [ + - ]: 158 : COPY_STRING_FIELD(servername);
2770 : 158 : COPY_SCALAR_FIELD(missing_ok);
2771 : :
2772 : 158 : return newnode;
2773 : : }
2774 : :
2775 : : static ImportForeignSchemaStmt *
2776 : 56 : _copyImportForeignSchemaStmt(const ImportForeignSchemaStmt *from)
2777 : : {
2778 : 56 : ImportForeignSchemaStmt *newnode = makeNode(ImportForeignSchemaStmt);
2779 : :
2780 [ + - ]: 56 : COPY_STRING_FIELD(server_name);
2781 [ + - ]: 56 : COPY_STRING_FIELD(remote_schema);
2782 [ + - ]: 56 : COPY_STRING_FIELD(local_schema);
2783 : 56 : COPY_SCALAR_FIELD(list_type);
2784 : 56 : COPY_NODE_FIELD(table_list);
2785 : 56 : COPY_NODE_FIELD(options);
2786 : :
2787 : 56 : return newnode;
2788 : : }
2789 : :
2790 : : static CreatePolicyStmt *
2791 : 1250 : _copyCreatePolicyStmt(const CreatePolicyStmt *from)
2792 : : {
2793 : 1250 : CreatePolicyStmt *newnode = makeNode(CreatePolicyStmt);
2794 : :
2795 [ + - ]: 1250 : COPY_STRING_FIELD(policy_name);
2796 : 1250 : COPY_NODE_FIELD(table);
2797 [ + - ]: 1250 : COPY_STRING_FIELD(cmd_name);
2798 : 1250 : COPY_SCALAR_FIELD(permissive);
2799 : 1250 : COPY_NODE_FIELD(roles);
2800 : 1250 : COPY_NODE_FIELD(qual);
2801 : 1250 : COPY_NODE_FIELD(with_check);
2802 : :
2803 : 1250 : return newnode;
2804 : : }
2805 : :
2806 : : static AlterPolicyStmt *
2807 : 116 : _copyAlterPolicyStmt(const AlterPolicyStmt *from)
2808 : : {
2809 : 116 : AlterPolicyStmt *newnode = makeNode(AlterPolicyStmt);
2810 : :
2811 [ + - ]: 116 : COPY_STRING_FIELD(policy_name);
2812 : 116 : COPY_NODE_FIELD(table);
2813 : 116 : COPY_NODE_FIELD(roles);
2814 : 116 : COPY_NODE_FIELD(qual);
2815 : 116 : COPY_NODE_FIELD(with_check);
2816 : :
2817 : 116 : return newnode;
2818 : : }
2819 : :
2820 : : static CreateAmStmt *
2821 : 76 : _copyCreateAmStmt(const CreateAmStmt *from)
2822 : : {
2823 : 76 : CreateAmStmt *newnode = makeNode(CreateAmStmt);
2824 : :
2825 [ + - ]: 76 : COPY_STRING_FIELD(amname);
2826 : 76 : COPY_NODE_FIELD(handler_name);
2827 : 76 : COPY_SCALAR_FIELD(amtype);
2828 : :
2829 : 76 : return newnode;
2830 : : }
2831 : :
2832 : : static CreateTrigStmt *
2833 : 4803 : _copyCreateTrigStmt(const CreateTrigStmt *from)
2834 : : {
2835 : 4803 : CreateTrigStmt *newnode = makeNode(CreateTrigStmt);
2836 : :
2837 : 4803 : COPY_SCALAR_FIELD(replace);
2838 : 4803 : COPY_SCALAR_FIELD(isconstraint);
2839 [ + - ]: 4803 : COPY_STRING_FIELD(trigname);
2840 : 4803 : COPY_NODE_FIELD(relation);
2841 : 4803 : COPY_NODE_FIELD(funcname);
2842 : 4803 : COPY_NODE_FIELD(args);
2843 : 4803 : COPY_SCALAR_FIELD(row);
2844 : 4803 : COPY_SCALAR_FIELD(timing);
2845 : 4803 : COPY_SCALAR_FIELD(events);
2846 : 4803 : COPY_NODE_FIELD(columns);
2847 : 4803 : COPY_NODE_FIELD(whenClause);
2848 : 4803 : COPY_NODE_FIELD(transitionRels);
2849 : 4803 : COPY_SCALAR_FIELD(deferrable);
2850 : 4803 : COPY_SCALAR_FIELD(initdeferred);
2851 : 4803 : COPY_NODE_FIELD(constrrel);
2852 : :
2853 : 4803 : return newnode;
2854 : : }
2855 : :
2856 : : static CreateEventTrigStmt *
2857 : 258 : _copyCreateEventTrigStmt(const CreateEventTrigStmt *from)
2858 : : {
2859 : 258 : CreateEventTrigStmt *newnode = makeNode(CreateEventTrigStmt);
2860 : :
2861 [ + - ]: 258 : COPY_STRING_FIELD(trigname);
2862 [ + - ]: 258 : COPY_STRING_FIELD(eventname);
2863 : 258 : COPY_NODE_FIELD(whenclause);
2864 : 258 : COPY_NODE_FIELD(funcname);
2865 : :
2866 : 258 : return newnode;
2867 : : }
2868 : :
2869 : : static AlterEventTrigStmt *
2870 : 64 : _copyAlterEventTrigStmt(const AlterEventTrigStmt *from)
2871 : : {
2872 : 64 : AlterEventTrigStmt *newnode = makeNode(AlterEventTrigStmt);
2873 : :
2874 [ + - ]: 64 : COPY_STRING_FIELD(trigname);
2875 : 64 : COPY_SCALAR_FIELD(tgenabled);
2876 : :
2877 : 64 : return newnode;
2878 : : }
2879 : :
2880 : : static CreatePLangStmt *
2881 : 158 : _copyCreatePLangStmt(const CreatePLangStmt *from)
2882 : : {
2883 : 158 : CreatePLangStmt *newnode = makeNode(CreatePLangStmt);
2884 : :
2885 : 158 : COPY_SCALAR_FIELD(replace);
2886 [ + - ]: 158 : COPY_STRING_FIELD(plname);
2887 : 158 : COPY_NODE_FIELD(plhandler);
2888 : 158 : COPY_NODE_FIELD(plinline);
2889 : 158 : COPY_NODE_FIELD(plvalidator);
2890 : 158 : COPY_SCALAR_FIELD(pltrusted);
2891 : :
2892 : 158 : return newnode;
2893 : : }
2894 : :
2895 : : static CreateRoleStmt *
2896 : 2612 : _copyCreateRoleStmt(const CreateRoleStmt *from)
2897 : : {
2898 : 2612 : CreateRoleStmt *newnode = makeNode(CreateRoleStmt);
2899 : :
2900 : 2612 : COPY_SCALAR_FIELD(stmt_type);
2901 [ + - ]: 2612 : COPY_STRING_FIELD(role);
2902 : 2612 : COPY_NODE_FIELD(options);
2903 : :
2904 : 2612 : return newnode;
2905 : : }
2906 : :
2907 : : static AlterRoleStmt *
2908 : 588 : _copyAlterRoleStmt(const AlterRoleStmt *from)
2909 : : {
2910 : 588 : AlterRoleStmt *newnode = makeNode(AlterRoleStmt);
2911 : :
2912 : 588 : COPY_NODE_FIELD(role);
2913 : 588 : COPY_NODE_FIELD(options);
2914 : 588 : COPY_SCALAR_FIELD(action);
2915 : :
2916 : 588 : return newnode;
2917 : : }
2918 : :
2919 : : static AlterRoleSetStmt *
2920 : 104 : _copyAlterRoleSetStmt(const AlterRoleSetStmt *from)
2921 : : {
2922 : 104 : AlterRoleSetStmt *newnode = makeNode(AlterRoleSetStmt);
2923 : :
2924 : 104 : COPY_NODE_FIELD(role);
2925 [ + + ]: 104 : COPY_STRING_FIELD(database);
2926 : 104 : COPY_NODE_FIELD(setstmt);
2927 : :
2928 : 104 : return newnode;
2929 : : }
2930 : :
2931 : : static DropRoleStmt *
2932 : 2494 : _copyDropRoleStmt(const DropRoleStmt *from)
2933 : : {
2934 : 2494 : DropRoleStmt *newnode = makeNode(DropRoleStmt);
2935 : :
2936 : 2494 : COPY_NODE_FIELD(roles);
2937 : 2494 : COPY_SCALAR_FIELD(missing_ok);
2938 : :
2939 : 2494 : return newnode;
2940 : : }
2941 : :
2942 : : static CreateSeqStmt *
2943 : 956 : _copyCreateSeqStmt(const CreateSeqStmt *from)
2944 : : {
2945 : 956 : CreateSeqStmt *newnode = makeNode(CreateSeqStmt);
2946 : :
2947 : 956 : COPY_NODE_FIELD(sequence);
2948 : 956 : COPY_NODE_FIELD(options);
2949 : 956 : COPY_SCALAR_FIELD(ownerId);
2950 : 956 : COPY_SCALAR_FIELD(for_identity);
2951 : 956 : COPY_SCALAR_FIELD(if_not_exists);
2952 : :
2953 : 956 : return newnode;
2954 : : }
2955 : :
2956 : : static AlterSeqStmt *
2957 : 333 : _copyAlterSeqStmt(const AlterSeqStmt *from)
2958 : : {
2959 : 333 : AlterSeqStmt *newnode = makeNode(AlterSeqStmt);
2960 : :
2961 : 333 : COPY_NODE_FIELD(sequence);
2962 : 333 : COPY_NODE_FIELD(options);
2963 : 333 : COPY_SCALAR_FIELD(for_identity);
2964 : 333 : COPY_SCALAR_FIELD(missing_ok);
2965 : :
2966 : 333 : return newnode;
2967 : : }
2968 : :
2969 : : static DefineStmt *
2970 : 11207 : _copyDefineStmt(const DefineStmt *from)
2971 : : {
2972 : 11207 : DefineStmt *newnode = makeNode(DefineStmt);
2973 : :
2974 : 11207 : COPY_SCALAR_FIELD(kind);
2975 : 11207 : COPY_SCALAR_FIELD(oldstyle);
2976 : 11207 : COPY_NODE_FIELD(defnames);
2977 : 11207 : COPY_NODE_FIELD(args);
2978 : 11207 : COPY_NODE_FIELD(definition);
2979 : 11207 : COPY_SCALAR_FIELD(if_not_exists);
2980 : 11207 : COPY_SCALAR_FIELD(replace);
2981 : :
2982 : 11207 : return newnode;
2983 : : }
2984 : :
2985 : : static CreateDomainStmt *
2986 : 2053 : _copyCreateDomainStmt(const CreateDomainStmt *from)
2987 : : {
2988 : 2053 : CreateDomainStmt *newnode = makeNode(CreateDomainStmt);
2989 : :
2990 : 2053 : COPY_NODE_FIELD(domainname);
2991 : 2053 : COPY_NODE_FIELD(typeName);
2992 : 2053 : COPY_NODE_FIELD(collClause);
2993 : 2053 : COPY_NODE_FIELD(constraints);
2994 : :
2995 : 2053 : return newnode;
2996 : : }
2997 : :
2998 : : static CreateOpClassStmt *
2999 : 595 : _copyCreateOpClassStmt(const CreateOpClassStmt *from)
3000 : : {
3001 : 595 : CreateOpClassStmt *newnode = makeNode(CreateOpClassStmt);
3002 : :
3003 : 595 : COPY_NODE_FIELD(opclassname);
3004 : 595 : COPY_NODE_FIELD(opfamilyname);
3005 [ + - ]: 595 : COPY_STRING_FIELD(amname);
3006 : 595 : COPY_NODE_FIELD(datatype);
3007 : 595 : COPY_NODE_FIELD(items);
3008 : 595 : COPY_SCALAR_FIELD(isDefault);
3009 : :
3010 : 595 : return newnode;
3011 : : }
3012 : :
3013 : : static CreateOpClassItem *
3014 : 7176 : _copyCreateOpClassItem(const CreateOpClassItem *from)
3015 : : {
3016 : 7176 : CreateOpClassItem *newnode = makeNode(CreateOpClassItem);
3017 : :
3018 : 7176 : COPY_SCALAR_FIELD(itemtype);
3019 : 7176 : COPY_NODE_FIELD(name);
3020 : 7176 : COPY_SCALAR_FIELD(number);
3021 : 7176 : COPY_NODE_FIELD(order_family);
3022 : 7176 : COPY_NODE_FIELD(class_args);
3023 : 7176 : COPY_NODE_FIELD(storedtype);
3024 : :
3025 : 7176 : return newnode;
3026 : : }
3027 : :
3028 : : static CreateOpFamilyStmt *
3029 : 195 : _copyCreateOpFamilyStmt(const CreateOpFamilyStmt *from)
3030 : : {
3031 : 195 : CreateOpFamilyStmt *newnode = makeNode(CreateOpFamilyStmt);
3032 : :
3033 : 195 : COPY_NODE_FIELD(opfamilyname);
3034 [ + - ]: 195 : COPY_STRING_FIELD(amname);
3035 : :
3036 : 195 : return newnode;
3037 : : }
3038 : :
3039 : : static AlterOpFamilyStmt *
3040 : 553 : _copyAlterOpFamilyStmt(const AlterOpFamilyStmt *from)
3041 : : {
3042 : 553 : AlterOpFamilyStmt *newnode = makeNode(AlterOpFamilyStmt);
3043 : :
3044 : 553 : COPY_NODE_FIELD(opfamilyname);
3045 [ + - ]: 553 : COPY_STRING_FIELD(amname);
3046 : 553 : COPY_SCALAR_FIELD(isDrop);
3047 : 553 : COPY_NODE_FIELD(items);
3048 : :
3049 : 553 : return newnode;
3050 : : }
3051 : :
3052 : : static DropStmt *
3053 : 35998 : _copyDropStmt(const DropStmt *from)
3054 : : {
3055 : 35998 : DropStmt *newnode = makeNode(DropStmt);
3056 : :
3057 : 35998 : COPY_NODE_FIELD(objects);
3058 : 35998 : COPY_SCALAR_FIELD(removeType);
3059 : 35998 : COPY_SCALAR_FIELD(behavior);
3060 : 35998 : COPY_SCALAR_FIELD(missing_ok);
3061 : 35998 : COPY_SCALAR_FIELD(concurrent);
3062 : :
3063 : 35998 : return newnode;
3064 : : }
3065 : :
3066 : : static TruncateStmt *
3067 : 2400 : _copyTruncateStmt(const TruncateStmt *from)
3068 : : {
3069 : 2400 : TruncateStmt *newnode = makeNode(TruncateStmt);
3070 : :
3071 : 2400 : COPY_NODE_FIELD(relations);
3072 : 2400 : COPY_SCALAR_FIELD(restart_seqs);
3073 : 2400 : COPY_SCALAR_FIELD(behavior);
3074 : :
3075 : 2400 : return newnode;
3076 : : }
3077 : :
3078 : : static CommentStmt *
3079 : 8593 : _copyCommentStmt(const CommentStmt *from)
3080 : : {
3081 : 8593 : CommentStmt *newnode = makeNode(CommentStmt);
3082 : :
3083 : 8593 : COPY_SCALAR_FIELD(objtype);
3084 : 8593 : COPY_NODE_FIELD(object);
3085 [ + + ]: 8593 : COPY_STRING_FIELD(comment);
3086 : :
3087 : 8593 : return newnode;
3088 : : }
3089 : :
3090 : : static SecLabelStmt *
3091 : 135 : _copySecLabelStmt(const SecLabelStmt *from)
3092 : : {
3093 : 135 : SecLabelStmt *newnode = makeNode(SecLabelStmt);
3094 : :
3095 : 135 : COPY_SCALAR_FIELD(objtype);
3096 : 135 : COPY_NODE_FIELD(object);
3097 [ + + ]: 135 : COPY_STRING_FIELD(provider);
3098 [ + - ]: 135 : COPY_STRING_FIELD(label);
3099 : :
3100 : 135 : return newnode;
3101 : : }
3102 : :
3103 : : static DeclareCursorStmt *
3104 : 9409 : _copyDeclareCursorStmt(const DeclareCursorStmt *from)
3105 : : {
3106 : 9409 : DeclareCursorStmt *newnode = makeNode(DeclareCursorStmt);
3107 : :
3108 [ + - ]: 9409 : COPY_STRING_FIELD(portalname);
3109 : 9409 : COPY_SCALAR_FIELD(options);
3110 : 9409 : COPY_NODE_FIELD(query);
3111 : :
3112 : 9409 : return newnode;
3113 : : }
3114 : :
3115 : : static ClosePortalStmt *
3116 : 2478 : _copyClosePortalStmt(const ClosePortalStmt *from)
3117 : : {
3118 : 2478 : ClosePortalStmt *newnode = makeNode(ClosePortalStmt);
3119 : :
3120 [ + + ]: 2478 : COPY_STRING_FIELD(portalname);
3121 : :
3122 : 2478 : return newnode;
3123 : : }
3124 : :
3125 : : static FetchStmt *
3126 : 9022 : _copyFetchStmt(const FetchStmt *from)
3127 : : {
3128 : 9022 : FetchStmt *newnode = makeNode(FetchStmt);
3129 : :
3130 : 9022 : COPY_SCALAR_FIELD(direction);
3131 : 9022 : COPY_SCALAR_FIELD(howMany);
3132 [ + - ]: 9022 : COPY_STRING_FIELD(portalname);
3133 : 9022 : COPY_SCALAR_FIELD(ismove);
3134 : 9022 : COPY_SCALAR_FIELD(direction_keyword);
3135 : 9022 : COPY_LOCATION_FIELD(location);
3136 : :
3137 : 9022 : return newnode;
3138 : : }
3139 : :
3140 : : static IndexStmt *
3141 : 9258 : _copyIndexStmt(const IndexStmt *from)
3142 : : {
3143 : 9258 : IndexStmt *newnode = makeNode(IndexStmt);
3144 : :
3145 [ + + ]: 9258 : COPY_STRING_FIELD(idxname);
3146 : 9258 : COPY_NODE_FIELD(relation);
3147 [ + - ]: 9258 : COPY_STRING_FIELD(accessMethod);
3148 [ + + ]: 9258 : COPY_STRING_FIELD(tableSpace);
3149 : 9258 : COPY_NODE_FIELD(indexParams);
3150 : 9258 : COPY_NODE_FIELD(indexIncludingParams);
3151 : 9258 : COPY_NODE_FIELD(options);
3152 : 9258 : COPY_NODE_FIELD(whereClause);
3153 : 9258 : COPY_NODE_FIELD(excludeOpNames);
3154 [ - + ]: 9258 : COPY_STRING_FIELD(idxcomment);
3155 : 9258 : COPY_SCALAR_FIELD(indexOid);
3156 : 9258 : COPY_SCALAR_FIELD(oldNumber);
3157 : 9258 : COPY_SCALAR_FIELD(oldCreateSubid);
3158 : 9258 : COPY_SCALAR_FIELD(oldFirstRelfilelocatorSubid);
3159 : 9258 : COPY_SCALAR_FIELD(unique);
3160 : 9258 : COPY_SCALAR_FIELD(nulls_not_distinct);
3161 : 9258 : COPY_SCALAR_FIELD(primary);
3162 : 9258 : COPY_SCALAR_FIELD(isconstraint);
3163 : 9258 : COPY_SCALAR_FIELD(iswithoutoverlaps);
3164 : 9258 : COPY_SCALAR_FIELD(deferrable);
3165 : 9258 : COPY_SCALAR_FIELD(initdeferred);
3166 : 9258 : COPY_SCALAR_FIELD(transformed);
3167 : 9258 : COPY_SCALAR_FIELD(concurrent);
3168 : 9258 : COPY_SCALAR_FIELD(if_not_exists);
3169 : 9258 : COPY_SCALAR_FIELD(reset_default_tblspc);
3170 : :
3171 : 9258 : return newnode;
3172 : : }
3173 : :
3174 : : static CreateStatsStmt *
3175 : 1202 : _copyCreateStatsStmt(const CreateStatsStmt *from)
3176 : : {
3177 : 1202 : CreateStatsStmt *newnode = makeNode(CreateStatsStmt);
3178 : :
3179 : 1202 : COPY_NODE_FIELD(defnames);
3180 : 1202 : COPY_NODE_FIELD(stat_types);
3181 : 1202 : COPY_NODE_FIELD(exprs);
3182 : 1202 : COPY_NODE_FIELD(relations);
3183 [ - + ]: 1202 : COPY_STRING_FIELD(stxcomment);
3184 : 1202 : COPY_SCALAR_FIELD(transformed);
3185 : 1202 : COPY_SCALAR_FIELD(if_not_exists);
3186 : 1202 : COPY_SCALAR_FIELD(owner);
3187 : :
3188 : 1202 : return newnode;
3189 : : }
3190 : :
3191 : : static StatsElem *
3192 : 2836 : _copyStatsElem(const StatsElem *from)
3193 : : {
3194 : 2836 : StatsElem *newnode = makeNode(StatsElem);
3195 : :
3196 [ + + ]: 2836 : COPY_STRING_FIELD(name);
3197 : 2836 : COPY_NODE_FIELD(expr);
3198 : :
3199 : 2836 : return newnode;
3200 : : }
3201 : :
3202 : : static AlterStatsStmt *
3203 : 34 : _copyAlterStatsStmt(const AlterStatsStmt *from)
3204 : : {
3205 : 34 : AlterStatsStmt *newnode = makeNode(AlterStatsStmt);
3206 : :
3207 : 34 : COPY_NODE_FIELD(defnames);
3208 : 34 : COPY_NODE_FIELD(stxstattarget);
3209 : 34 : COPY_SCALAR_FIELD(missing_ok);
3210 : :
3211 : 34 : return newnode;
3212 : : }
3213 : :
3214 : : static CreateFunctionStmt *
3215 : 26696 : _copyCreateFunctionStmt(const CreateFunctionStmt *from)
3216 : : {
3217 : 26696 : CreateFunctionStmt *newnode = makeNode(CreateFunctionStmt);
3218 : :
3219 : 26696 : COPY_SCALAR_FIELD(is_procedure);
3220 : 26696 : COPY_SCALAR_FIELD(replace);
3221 : 26696 : COPY_NODE_FIELD(funcname);
3222 : 26696 : COPY_NODE_FIELD(parameters);
3223 : 26696 : COPY_NODE_FIELD(returnType);
3224 : 26696 : COPY_NODE_FIELD(options);
3225 : 26696 : COPY_NODE_FIELD(sql_body);
3226 : :
3227 : 26696 : return newnode;
3228 : : }
3229 : :
3230 : : static FunctionParameter *
3231 : 69278 : _copyFunctionParameter(const FunctionParameter *from)
3232 : : {
3233 : 69278 : FunctionParameter *newnode = makeNode(FunctionParameter);
3234 : :
3235 [ + + ]: 69278 : COPY_STRING_FIELD(name);
3236 : 69278 : COPY_NODE_FIELD(argType);
3237 : 69278 : COPY_SCALAR_FIELD(mode);
3238 : 69278 : COPY_NODE_FIELD(defexpr);
3239 : 69278 : COPY_LOCATION_FIELD(location);
3240 : :
3241 : 69278 : return newnode;
3242 : : }
3243 : :
3244 : : static AlterFunctionStmt *
3245 : 446 : _copyAlterFunctionStmt(const AlterFunctionStmt *from)
3246 : : {
3247 : 446 : AlterFunctionStmt *newnode = makeNode(AlterFunctionStmt);
3248 : :
3249 : 446 : COPY_SCALAR_FIELD(objtype);
3250 : 446 : COPY_NODE_FIELD(func);
3251 : 446 : COPY_NODE_FIELD(actions);
3252 : :
3253 : 446 : return newnode;
3254 : : }
3255 : :
3256 : : static DoStmt *
3257 : 1618 : _copyDoStmt(const DoStmt *from)
3258 : : {
3259 : 1618 : DoStmt *newnode = makeNode(DoStmt);
3260 : :
3261 : 1618 : COPY_NODE_FIELD(args);
3262 : :
3263 : 1618 : return newnode;
3264 : : }
3265 : :
3266 : : static CallStmt *
3267 : 975 : _copyCallStmt(const CallStmt *from)
3268 : : {
3269 : 975 : CallStmt *newnode = makeNode(CallStmt);
3270 : :
3271 : 975 : COPY_NODE_FIELD(funccall);
3272 : 975 : COPY_NODE_FIELD(funcexpr);
3273 : 975 : COPY_NODE_FIELD(outargs);
3274 : :
3275 : 975 : return newnode;
3276 : : }
3277 : :
3278 : : static RenameStmt *
3279 : 2084 : _copyRenameStmt(const RenameStmt *from)
3280 : : {
3281 : 2084 : RenameStmt *newnode = makeNode(RenameStmt);
3282 : :
3283 : 2084 : COPY_SCALAR_FIELD(renameType);
3284 : 2084 : COPY_SCALAR_FIELD(relationType);
3285 : 2084 : COPY_NODE_FIELD(relation);
3286 : 2084 : COPY_NODE_FIELD(object);
3287 [ + + ]: 2084 : COPY_STRING_FIELD(subname);
3288 [ + - ]: 2084 : COPY_STRING_FIELD(newname);
3289 : 2084 : COPY_SCALAR_FIELD(behavior);
3290 : 2084 : COPY_SCALAR_FIELD(missing_ok);
3291 : :
3292 : 2084 : return newnode;
3293 : : }
3294 : :
3295 : : static AlterObjectDependsStmt *
3296 : 46 : _copyAlterObjectDependsStmt(const AlterObjectDependsStmt *from)
3297 : : {
3298 : 46 : AlterObjectDependsStmt *newnode = makeNode(AlterObjectDependsStmt);
3299 : :
3300 : 46 : COPY_SCALAR_FIELD(objectType);
3301 : 46 : COPY_NODE_FIELD(relation);
3302 : 46 : COPY_NODE_FIELD(object);
3303 : 46 : COPY_NODE_FIELD(extname);
3304 : 46 : COPY_SCALAR_FIELD(remove);
3305 : :
3306 : 46 : return newnode;
3307 : : }
3308 : :
3309 : : static AlterObjectSchemaStmt *
3310 : 584 : _copyAlterObjectSchemaStmt(const AlterObjectSchemaStmt *from)
3311 : : {
3312 : 584 : AlterObjectSchemaStmt *newnode = makeNode(AlterObjectSchemaStmt);
3313 : :
3314 : 584 : COPY_SCALAR_FIELD(objectType);
3315 : 584 : COPY_NODE_FIELD(relation);
3316 : 584 : COPY_NODE_FIELD(object);
3317 [ + - ]: 584 : COPY_STRING_FIELD(newschema);
3318 : 584 : COPY_SCALAR_FIELD(missing_ok);
3319 : :
3320 : 584 : return newnode;
3321 : : }
3322 : :
3323 : : static AlterOwnerStmt *
3324 : 2042 : _copyAlterOwnerStmt(const AlterOwnerStmt *from)
3325 : : {
3326 : 2042 : AlterOwnerStmt *newnode = makeNode(AlterOwnerStmt);
3327 : :
3328 : 2042 : COPY_SCALAR_FIELD(objectType);
3329 : 2042 : COPY_NODE_FIELD(relation);
3330 : 2042 : COPY_NODE_FIELD(object);
3331 : 2042 : COPY_NODE_FIELD(newowner);
3332 : :
3333 : 2042 : return newnode;
3334 : : }
3335 : :
3336 : : static AlterOperatorStmt *
3337 : 664 : _copyAlterOperatorStmt(const AlterOperatorStmt *from)
3338 : : {
3339 : 664 : AlterOperatorStmt *newnode = makeNode(AlterOperatorStmt);
3340 : :
3341 : 664 : COPY_NODE_FIELD(opername);
3342 : 664 : COPY_NODE_FIELD(options);
3343 : :
3344 : 664 : return newnode;
3345 : : }
3346 : :
3347 : : static AlterTypeStmt *
3348 : 72 : _copyAlterTypeStmt(const AlterTypeStmt *from)
3349 : : {
3350 : 72 : AlterTypeStmt *newnode = makeNode(AlterTypeStmt);
3351 : :
3352 : 72 : COPY_NODE_FIELD(typeName);
3353 : 72 : COPY_NODE_FIELD(options);
3354 : :
3355 : 72 : return newnode;
3356 : : }
3357 : :
3358 : : static RuleStmt *
3359 : 1524 : _copyRuleStmt(const RuleStmt *from)
3360 : : {
3361 : 1524 : RuleStmt *newnode = makeNode(RuleStmt);
3362 : :
3363 : 1524 : COPY_NODE_FIELD(relation);
3364 [ + - ]: 1524 : COPY_STRING_FIELD(rulename);
3365 : 1524 : COPY_NODE_FIELD(whereClause);
3366 : 1524 : COPY_SCALAR_FIELD(event);
3367 : 1524 : COPY_SCALAR_FIELD(instead);
3368 : 1524 : COPY_NODE_FIELD(actions);
3369 : 1524 : COPY_SCALAR_FIELD(replace);
3370 : :
3371 : 1524 : return newnode;
3372 : : }
3373 : :
3374 : : static NotifyStmt *
3375 : 200 : _copyNotifyStmt(const NotifyStmt *from)
3376 : : {
3377 : 200 : NotifyStmt *newnode = makeNode(NotifyStmt);
3378 : :
3379 [ + - ]: 200 : COPY_STRING_FIELD(conditionname);
3380 [ + + ]: 200 : COPY_STRING_FIELD(payload);
3381 : :
3382 : 200 : return newnode;
3383 : : }
3384 : :
3385 : : static ListenStmt *
3386 : 104 : _copyListenStmt(const ListenStmt *from)
3387 : : {
3388 : 104 : ListenStmt *newnode = makeNode(ListenStmt);
3389 : :
3390 [ + - ]: 104 : COPY_STRING_FIELD(conditionname);
3391 : :
3392 : 104 : return newnode;
3393 : : }
3394 : :
3395 : : static UnlistenStmt *
3396 : 124 : _copyUnlistenStmt(const UnlistenStmt *from)
3397 : : {
3398 : 124 : UnlistenStmt *newnode = makeNode(UnlistenStmt);
3399 : :
3400 [ + + ]: 124 : COPY_STRING_FIELD(conditionname);
3401 : :
3402 : 124 : return newnode;
3403 : : }
3404 : :
3405 : : static TransactionStmt *
3406 : 55761 : _copyTransactionStmt(const TransactionStmt *from)
3407 : : {
3408 : 55761 : TransactionStmt *newnode = makeNode(TransactionStmt);
3409 : :
3410 : 55761 : COPY_SCALAR_FIELD(kind);
3411 : 55761 : COPY_NODE_FIELD(options);
3412 [ + + ]: 55761 : COPY_STRING_FIELD(savepoint_name);
3413 [ + + ]: 55761 : COPY_STRING_FIELD(gid);
3414 : 55761 : COPY_SCALAR_FIELD(chain);
3415 : 55761 : COPY_LOCATION_FIELD(location);
3416 : :
3417 : 55761 : return newnode;
3418 : : }
3419 : :
3420 : : static CompositeTypeStmt *
3421 : 4777 : _copyCompositeTypeStmt(const CompositeTypeStmt *from)
3422 : : {
3423 : 4777 : CompositeTypeStmt *newnode = makeNode(CompositeTypeStmt);
3424 : :
3425 : 4777 : COPY_NODE_FIELD(typevar);
3426 : 4777 : COPY_NODE_FIELD(coldeflist);
3427 : :
3428 : 4777 : return newnode;
3429 : : }
3430 : :
3431 : : static CreateEnumStmt *
3432 : 480 : _copyCreateEnumStmt(const CreateEnumStmt *from)
3433 : : {
3434 : 480 : CreateEnumStmt *newnode = makeNode(CreateEnumStmt);
3435 : :
3436 : 480 : COPY_NODE_FIELD(typeName);
3437 : 480 : COPY_NODE_FIELD(vals);
3438 : :
3439 : 480 : return newnode;
3440 : : }
3441 : :
3442 : : static CreateRangeStmt *
3443 : 317 : _copyCreateRangeStmt(const CreateRangeStmt *from)
3444 : : {
3445 : 317 : CreateRangeStmt *newnode = makeNode(CreateRangeStmt);
3446 : :
3447 : 317 : COPY_NODE_FIELD(typeName);
3448 : 317 : COPY_NODE_FIELD(params);
3449 : :
3450 : 317 : return newnode;
3451 : : }
3452 : :
3453 : : static AlterEnumStmt *
3454 : 494 : _copyAlterEnumStmt(const AlterEnumStmt *from)
3455 : : {
3456 : 494 : AlterEnumStmt *newnode = makeNode(AlterEnumStmt);
3457 : :
3458 : 494 : COPY_NODE_FIELD(typeName);
3459 [ + + ]: 494 : COPY_STRING_FIELD(oldVal);
3460 [ + - ]: 494 : COPY_STRING_FIELD(newVal);
3461 [ + + ]: 494 : COPY_STRING_FIELD(newValNeighbor);
3462 : 494 : COPY_SCALAR_FIELD(newValIsAfter);
3463 : 494 : COPY_SCALAR_FIELD(skipIfNewValExists);
3464 : :
3465 : 494 : return newnode;
3466 : : }
3467 : :
3468 : : static ViewStmt *
3469 : 21846 : _copyViewStmt(const ViewStmt *from)
3470 : : {
3471 : 21846 : ViewStmt *newnode = makeNode(ViewStmt);
3472 : :
3473 : 21846 : COPY_NODE_FIELD(view);
3474 : 21846 : COPY_NODE_FIELD(aliases);
3475 : 21846 : COPY_NODE_FIELD(query);
3476 : 21846 : COPY_SCALAR_FIELD(replace);
3477 : 21846 : COPY_NODE_FIELD(options);
3478 : 21846 : COPY_SCALAR_FIELD(withCheckOption);
3479 : :
3480 : 21846 : return newnode;
3481 : : }
3482 : :
3483 : : static LoadStmt *
3484 : 100 : _copyLoadStmt(const LoadStmt *from)
3485 : : {
3486 : 100 : LoadStmt *newnode = makeNode(LoadStmt);
3487 : :
3488 [ + - ]: 100 : COPY_STRING_FIELD(filename);
3489 : :
3490 : 100 : return newnode;
3491 : : }
3492 : :
3493 : : static CreatedbStmt *
3494 : 902 : _copyCreatedbStmt(const CreatedbStmt *from)
3495 : : {
3496 : 902 : CreatedbStmt *newnode = makeNode(CreatedbStmt);
3497 : :
3498 [ + - ]: 902 : COPY_STRING_FIELD(dbname);
3499 : 902 : COPY_NODE_FIELD(options);
3500 : :
3501 : 902 : return newnode;
3502 : : }
3503 : :
3504 : : static AlterDatabaseStmt *
3505 : 106 : _copyAlterDatabaseStmt(const AlterDatabaseStmt *from)
3506 : : {
3507 : 106 : AlterDatabaseStmt *newnode = makeNode(AlterDatabaseStmt);
3508 : :
3509 [ + - ]: 106 : COPY_STRING_FIELD(dbname);
3510 : 106 : COPY_NODE_FIELD(options);
3511 : :
3512 : 106 : return newnode;
3513 : : }
3514 : :
3515 : : static AlterDatabaseRefreshCollStmt *
3516 : 8 : _copyAlterDatabaseRefreshCollStmt(const AlterDatabaseRefreshCollStmt *from)
3517 : : {
3518 : 8 : AlterDatabaseRefreshCollStmt *newnode = makeNode(AlterDatabaseRefreshCollStmt);
3519 : :
3520 [ + - ]: 8 : COPY_STRING_FIELD(dbname);
3521 : :
3522 : 8 : return newnode;
3523 : : }
3524 : :
3525 : : static AlterDatabaseSetStmt *
3526 : 1376 : _copyAlterDatabaseSetStmt(const AlterDatabaseSetStmt *from)
3527 : : {
3528 : 1376 : AlterDatabaseSetStmt *newnode = makeNode(AlterDatabaseSetStmt);
3529 : :
3530 [ + - ]: 1376 : COPY_STRING_FIELD(dbname);
3531 : 1376 : COPY_NODE_FIELD(setstmt);
3532 : :
3533 : 1376 : return newnode;
3534 : : }
3535 : :
3536 : : static DropdbStmt *
3537 : 160 : _copyDropdbStmt(const DropdbStmt *from)
3538 : : {
3539 : 160 : DropdbStmt *newnode = makeNode(DropdbStmt);
3540 : :
3541 [ + - ]: 160 : COPY_STRING_FIELD(dbname);
3542 : 160 : COPY_SCALAR_FIELD(missing_ok);
3543 : 160 : COPY_NODE_FIELD(options);
3544 : :
3545 : 160 : return newnode;
3546 : : }
3547 : :
3548 : : static AlterSystemStmt *
3549 : 248 : _copyAlterSystemStmt(const AlterSystemStmt *from)
3550 : : {
3551 : 248 : AlterSystemStmt *newnode = makeNode(AlterSystemStmt);
3552 : :
3553 : 248 : COPY_NODE_FIELD(setstmt);
3554 : :
3555 : 248 : return newnode;
3556 : : }
3557 : :
3558 : : static VacuumStmt *
3559 : 18342 : _copyVacuumStmt(const VacuumStmt *from)
3560 : : {
3561 : 18342 : VacuumStmt *newnode = makeNode(VacuumStmt);
3562 : :
3563 : 18342 : COPY_NODE_FIELD(options);
3564 : 18342 : COPY_NODE_FIELD(rels);
3565 : 18342 : COPY_SCALAR_FIELD(is_vacuumcmd);
3566 : :
3567 : 18342 : return newnode;
3568 : : }
3569 : :
3570 : : static VacuumRelation *
3571 : 18610 : _copyVacuumRelation(const VacuumRelation *from)
3572 : : {
3573 : 18610 : VacuumRelation *newnode = makeNode(VacuumRelation);
3574 : :
3575 : 18610 : COPY_NODE_FIELD(relation);
3576 : 18610 : COPY_SCALAR_FIELD(oid);
3577 : 18610 : COPY_NODE_FIELD(va_cols);
3578 : :
3579 : 18610 : return newnode;
3580 : : }
3581 : :
3582 : : static RepackStmt *
3583 : 462 : _copyRepackStmt(const RepackStmt *from)
3584 : : {
3585 : 462 : RepackStmt *newnode = makeNode(RepackStmt);
3586 : :
3587 : 462 : COPY_SCALAR_FIELD(command);
3588 : 462 : COPY_NODE_FIELD(relation);
3589 [ + + ]: 462 : COPY_STRING_FIELD(indexname);
3590 : 462 : COPY_SCALAR_FIELD(usingindex);
3591 : 462 : COPY_NODE_FIELD(params);
3592 : :
3593 : 462 : return newnode;
3594 : : }
3595 : :
3596 : : static ExplainStmt *
3597 : 55705 : _copyExplainStmt(const ExplainStmt *from)
3598 : : {
3599 : 55705 : ExplainStmt *newnode = makeNode(ExplainStmt);
3600 : :
3601 : 55705 : COPY_NODE_FIELD(query);
3602 : 55705 : COPY_NODE_FIELD(options);
3603 : :
3604 : 55705 : return newnode;
3605 : : }
3606 : :
3607 : : static CreateTableAsStmt *
3608 : 2740 : _copyCreateTableAsStmt(const CreateTableAsStmt *from)
3609 : : {
3610 : 2740 : CreateTableAsStmt *newnode = makeNode(CreateTableAsStmt);
3611 : :
3612 : 2740 : COPY_NODE_FIELD(query);
3613 : 2740 : COPY_NODE_FIELD(into);
3614 : 2740 : COPY_SCALAR_FIELD(objtype);
3615 : 2740 : COPY_SCALAR_FIELD(is_select_into);
3616 : 2740 : COPY_SCALAR_FIELD(if_not_exists);
3617 : :
3618 : 2740 : return newnode;
3619 : : }
3620 : :
3621 : : static RefreshMatViewStmt *
3622 : 353 : _copyRefreshMatViewStmt(const RefreshMatViewStmt *from)
3623 : : {
3624 : 353 : RefreshMatViewStmt *newnode = makeNode(RefreshMatViewStmt);
3625 : :
3626 : 353 : COPY_SCALAR_FIELD(concurrent);
3627 : 353 : COPY_SCALAR_FIELD(skipData);
3628 : 353 : COPY_NODE_FIELD(relation);
3629 : :
3630 : 353 : return newnode;
3631 : : }
3632 : :
3633 : : static CheckPointStmt *
3634 : 613 : _copyCheckPointStmt(const CheckPointStmt *from)
3635 : : {
3636 : 613 : CheckPointStmt *newnode = makeNode(CheckPointStmt);
3637 : :
3638 : 613 : COPY_NODE_FIELD(options);
3639 : :
3640 : 613 : return newnode;
3641 : : }
3642 : :
3643 : : static DiscardStmt *
3644 : 48 : _copyDiscardStmt(const DiscardStmt *from)
3645 : : {
3646 : 48 : DiscardStmt *newnode = makeNode(DiscardStmt);
3647 : :
3648 : 48 : COPY_SCALAR_FIELD(target);
3649 : :
3650 : 48 : return newnode;
3651 : : }
3652 : :
3653 : : static LockStmt *
3654 : 1234 : _copyLockStmt(const LockStmt *from)
3655 : : {
3656 : 1234 : LockStmt *newnode = makeNode(LockStmt);
3657 : :
3658 : 1234 : COPY_NODE_FIELD(relations);
3659 : 1234 : COPY_SCALAR_FIELD(mode);
3660 : 1234 : COPY_SCALAR_FIELD(nowait);
3661 : :
3662 : 1234 : return newnode;
3663 : : }
3664 : :
3665 : : static ConstraintsSetStmt *
3666 : 146 : _copyConstraintsSetStmt(const ConstraintsSetStmt *from)
3667 : : {
3668 : 146 : ConstraintsSetStmt *newnode = makeNode(ConstraintsSetStmt);
3669 : :
3670 : 146 : COPY_NODE_FIELD(constraints);
3671 : 146 : COPY_SCALAR_FIELD(deferred);
3672 : :
3673 : 146 : return newnode;
3674 : : }
3675 : :
3676 : : static ReindexStmt *
3677 : 1562 : _copyReindexStmt(const ReindexStmt *from)
3678 : : {
3679 : 1562 : ReindexStmt *newnode = makeNode(ReindexStmt);
3680 : :
3681 : 1562 : COPY_SCALAR_FIELD(kind);
3682 : 1562 : COPY_NODE_FIELD(relation);
3683 [ + + ]: 1562 : COPY_STRING_FIELD(name);
3684 : 1562 : COPY_NODE_FIELD(params);
3685 : :
3686 : 1562 : return newnode;
3687 : : }
3688 : :
3689 : : static CreateConversionStmt *
3690 : 85 : _copyCreateConversionStmt(const CreateConversionStmt *from)
3691 : : {
3692 : 85 : CreateConversionStmt *newnode = makeNode(CreateConversionStmt);
3693 : :
3694 : 85 : COPY_NODE_FIELD(conversion_name);
3695 [ + - ]: 85 : COPY_STRING_FIELD(for_encoding_name);
3696 [ + - ]: 85 : COPY_STRING_FIELD(to_encoding_name);
3697 : 85 : COPY_NODE_FIELD(func_name);
3698 : 85 : COPY_SCALAR_FIELD(def);
3699 : :
3700 : 85 : return newnode;
3701 : : }
3702 : :
3703 : : static CreateCastStmt *
3704 : 364 : _copyCreateCastStmt(const CreateCastStmt *from)
3705 : : {
3706 : 364 : CreateCastStmt *newnode = makeNode(CreateCastStmt);
3707 : :
3708 : 364 : COPY_NODE_FIELD(sourcetype);
3709 : 364 : COPY_NODE_FIELD(targettype);
3710 : 364 : COPY_NODE_FIELD(func);
3711 : 364 : COPY_SCALAR_FIELD(context);
3712 : 364 : COPY_SCALAR_FIELD(inout);
3713 : :
3714 : 364 : return newnode;
3715 : : }
3716 : :
3717 : : static CreatePropGraphStmt *
3718 : 440 : _copyCreatePropGraphStmt(const CreatePropGraphStmt *from)
3719 : : {
3720 : 440 : CreatePropGraphStmt *newnode = makeNode(CreatePropGraphStmt);
3721 : :
3722 : 440 : COPY_NODE_FIELD(pgname);
3723 : 440 : COPY_NODE_FIELD(vertex_tables);
3724 : 440 : COPY_NODE_FIELD(edge_tables);
3725 : :
3726 : 440 : return newnode;
3727 : : }
3728 : :
3729 : : static PropGraphVertex *
3730 : 846 : _copyPropGraphVertex(const PropGraphVertex *from)
3731 : : {
3732 : 846 : PropGraphVertex *newnode = makeNode(PropGraphVertex);
3733 : :
3734 : 846 : COPY_NODE_FIELD(vtable);
3735 : 846 : COPY_NODE_FIELD(vkey);
3736 : 846 : COPY_NODE_FIELD(labels);
3737 : 846 : COPY_LOCATION_FIELD(location);
3738 : :
3739 : 846 : return newnode;
3740 : : }
3741 : :
3742 : : static PropGraphEdge *
3743 : 438 : _copyPropGraphEdge(const PropGraphEdge *from)
3744 : : {
3745 : 438 : PropGraphEdge *newnode = makeNode(PropGraphEdge);
3746 : :
3747 : 438 : COPY_NODE_FIELD(etable);
3748 : 438 : COPY_NODE_FIELD(ekey);
3749 : 438 : COPY_NODE_FIELD(esrckey);
3750 [ + - ]: 438 : COPY_STRING_FIELD(esrcvertex);
3751 : 438 : COPY_NODE_FIELD(esrcvertexcols);
3752 : 438 : COPY_NODE_FIELD(edestkey);
3753 [ + - ]: 438 : COPY_STRING_FIELD(edestvertex);
3754 : 438 : COPY_NODE_FIELD(edestvertexcols);
3755 : 438 : COPY_NODE_FIELD(labels);
3756 : 438 : COPY_LOCATION_FIELD(location);
3757 : :
3758 : 438 : return newnode;
3759 : : }
3760 : :
3761 : : static PropGraphLabelAndProperties *
3762 : 1594 : _copyPropGraphLabelAndProperties(const PropGraphLabelAndProperties *from)
3763 : : {
3764 : 1594 : PropGraphLabelAndProperties *newnode = makeNode(PropGraphLabelAndProperties);
3765 : :
3766 [ + + ]: 1594 : COPY_STRING_FIELD(label);
3767 : 1594 : COPY_NODE_FIELD(properties);
3768 : 1594 : COPY_LOCATION_FIELD(location);
3769 : :
3770 : 1594 : return newnode;
3771 : : }
3772 : :
3773 : : static PropGraphProperties *
3774 : 1618 : _copyPropGraphProperties(const PropGraphProperties *from)
3775 : : {
3776 : 1618 : PropGraphProperties *newnode = makeNode(PropGraphProperties);
3777 : :
3778 : 1618 : COPY_NODE_FIELD(properties);
3779 : 1618 : COPY_SCALAR_FIELD(all);
3780 : 1618 : COPY_LOCATION_FIELD(location);
3781 : :
3782 : 1618 : return newnode;
3783 : : }
3784 : :
3785 : : static AlterPropGraphStmt *
3786 : 364 : _copyAlterPropGraphStmt(const AlterPropGraphStmt *from)
3787 : : {
3788 : 364 : AlterPropGraphStmt *newnode = makeNode(AlterPropGraphStmt);
3789 : :
3790 : 364 : COPY_NODE_FIELD(pgname);
3791 : 364 : COPY_SCALAR_FIELD(missing_ok);
3792 : 364 : COPY_NODE_FIELD(add_vertex_tables);
3793 : 364 : COPY_NODE_FIELD(add_edge_tables);
3794 : 364 : COPY_NODE_FIELD(drop_vertex_tables);
3795 : 364 : COPY_NODE_FIELD(drop_edge_tables);
3796 : 364 : COPY_SCALAR_FIELD(drop_behavior);
3797 : 364 : COPY_SCALAR_FIELD(element_kind);
3798 [ + + ]: 364 : COPY_STRING_FIELD(element_alias);
3799 : 364 : COPY_NODE_FIELD(add_labels);
3800 [ + + ]: 364 : COPY_STRING_FIELD(drop_label);
3801 [ + + ]: 364 : COPY_STRING_FIELD(alter_label);
3802 : 364 : COPY_NODE_FIELD(add_properties);
3803 : 364 : COPY_NODE_FIELD(drop_properties);
3804 : :
3805 : 364 : return newnode;
3806 : : }
3807 : :
3808 : : static CreateTransformStmt *
3809 : 53 : _copyCreateTransformStmt(const CreateTransformStmt *from)
3810 : : {
3811 : 53 : CreateTransformStmt *newnode = makeNode(CreateTransformStmt);
3812 : :
3813 : 53 : COPY_SCALAR_FIELD(replace);
3814 : 53 : COPY_NODE_FIELD(type_name);
3815 [ + - ]: 53 : COPY_STRING_FIELD(lang);
3816 : 53 : COPY_NODE_FIELD(fromsql);
3817 : 53 : COPY_NODE_FIELD(tosql);
3818 : :
3819 : 53 : return newnode;
3820 : : }
3821 : :
3822 : : static PrepareStmt *
3823 : 2272 : _copyPrepareStmt(const PrepareStmt *from)
3824 : : {
3825 : 2272 : PrepareStmt *newnode = makeNode(PrepareStmt);
3826 : :
3827 [ + - ]: 2272 : COPY_STRING_FIELD(name);
3828 : 2272 : COPY_NODE_FIELD(argtypes);
3829 : 2272 : COPY_NODE_FIELD(query);
3830 : :
3831 : 2272 : return newnode;
3832 : : }
3833 : :
3834 : : static ExecuteStmt *
3835 : 18116 : _copyExecuteStmt(const ExecuteStmt *from)
3836 : : {
3837 : 18116 : ExecuteStmt *newnode = makeNode(ExecuteStmt);
3838 : :
3839 [ + - ]: 18116 : COPY_STRING_FIELD(name);
3840 : 18116 : COPY_NODE_FIELD(params);
3841 : :
3842 : 18116 : return newnode;
3843 : : }
3844 : :
3845 : : static DeallocateStmt *
3846 : 4190 : _copyDeallocateStmt(const DeallocateStmt *from)
3847 : : {
3848 : 4190 : DeallocateStmt *newnode = makeNode(DeallocateStmt);
3849 : :
3850 [ + + ]: 4190 : COPY_STRING_FIELD(name);
3851 : 4190 : COPY_SCALAR_FIELD(isall);
3852 : 4190 : COPY_LOCATION_FIELD(location);
3853 : :
3854 : 4190 : return newnode;
3855 : : }
3856 : :
3857 : : static DropOwnedStmt *
3858 : 192 : _copyDropOwnedStmt(const DropOwnedStmt *from)
3859 : : {
3860 : 192 : DropOwnedStmt *newnode = makeNode(DropOwnedStmt);
3861 : :
3862 : 192 : COPY_NODE_FIELD(roles);
3863 : 192 : COPY_SCALAR_FIELD(behavior);
3864 : :
3865 : 192 : return newnode;
3866 : : }
3867 : :
3868 : : static ReassignOwnedStmt *
3869 : 72 : _copyReassignOwnedStmt(const ReassignOwnedStmt *from)
3870 : : {
3871 : 72 : ReassignOwnedStmt *newnode = makeNode(ReassignOwnedStmt);
3872 : :
3873 : 72 : COPY_NODE_FIELD(roles);
3874 : 72 : COPY_NODE_FIELD(newrole);
3875 : :
3876 : 72 : return newnode;
3877 : : }
3878 : :
3879 : : static AlterTSDictionaryStmt *
3880 : 46 : _copyAlterTSDictionaryStmt(const AlterTSDictionaryStmt *from)
3881 : : {
3882 : 46 : AlterTSDictionaryStmt *newnode = makeNode(AlterTSDictionaryStmt);
3883 : :
3884 : 46 : COPY_NODE_FIELD(dictname);
3885 : 46 : COPY_NODE_FIELD(options);
3886 : :
3887 : 46 : return newnode;
3888 : : }
3889 : :
3890 : : static AlterTSConfigurationStmt *
3891 : 10316 : _copyAlterTSConfigurationStmt(const AlterTSConfigurationStmt *from)
3892 : : {
3893 : 10316 : AlterTSConfigurationStmt *newnode = makeNode(AlterTSConfigurationStmt);
3894 : :
3895 : 10316 : COPY_SCALAR_FIELD(kind);
3896 : 10316 : COPY_NODE_FIELD(cfgname);
3897 : 10316 : COPY_NODE_FIELD(tokentype);
3898 : 10316 : COPY_NODE_FIELD(dicts);
3899 : 10316 : COPY_SCALAR_FIELD(override);
3900 : 10316 : COPY_SCALAR_FIELD(replace);
3901 : 10316 : COPY_SCALAR_FIELD(missing_ok);
3902 : :
3903 : 10316 : return newnode;
3904 : : }
3905 : :
3906 : : static PublicationTable *
3907 : 2056 : _copyPublicationTable(const PublicationTable *from)
3908 : : {
3909 : 2056 : PublicationTable *newnode = makeNode(PublicationTable);
3910 : :
3911 : 2056 : COPY_NODE_FIELD(relation);
3912 : 2056 : COPY_NODE_FIELD(whereClause);
3913 : 2056 : COPY_NODE_FIELD(columns);
3914 : 2056 : COPY_SCALAR_FIELD(except);
3915 : :
3916 : 2056 : return newnode;
3917 : : }
3918 : :
3919 : : static PublicationObjSpec *
3920 : 2586 : _copyPublicationObjSpec(const PublicationObjSpec *from)
3921 : : {
3922 : 2586 : PublicationObjSpec *newnode = makeNode(PublicationObjSpec);
3923 : :
3924 : 2586 : COPY_SCALAR_FIELD(pubobjtype);
3925 [ + + ]: 2586 : COPY_STRING_FIELD(name);
3926 : 2586 : COPY_NODE_FIELD(pubtable);
3927 : 2586 : COPY_LOCATION_FIELD(location);
3928 : :
3929 : 2586 : return newnode;
3930 : : }
3931 : :
3932 : : static PublicationAllObjSpec *
3933 : 0 : _copyPublicationAllObjSpec(const PublicationAllObjSpec *from)
3934 : : {
3935 : 0 : PublicationAllObjSpec *newnode = makeNode(PublicationAllObjSpec);
3936 : :
3937 : 0 : COPY_SCALAR_FIELD(pubobjtype);
3938 : 0 : COPY_NODE_FIELD(except_tables);
3939 : 0 : COPY_LOCATION_FIELD(location);
3940 : :
3941 : 0 : return newnode;
3942 : : }
3943 : :
3944 : : static CreatePublicationStmt *
3945 : 1278 : _copyCreatePublicationStmt(const CreatePublicationStmt *from)
3946 : : {
3947 : 1278 : CreatePublicationStmt *newnode = makeNode(CreatePublicationStmt);
3948 : :
3949 [ + - ]: 1278 : COPY_STRING_FIELD(pubname);
3950 : 1278 : COPY_NODE_FIELD(options);
3951 : 1278 : COPY_NODE_FIELD(pubobjects);
3952 : 1278 : COPY_SCALAR_FIELD(for_all_tables);
3953 : 1278 : COPY_SCALAR_FIELD(for_all_sequences);
3954 : :
3955 : 1278 : return newnode;
3956 : : }
3957 : :
3958 : : static AlterPublicationStmt *
3959 : 1564 : _copyAlterPublicationStmt(const AlterPublicationStmt *from)
3960 : : {
3961 : 1564 : AlterPublicationStmt *newnode = makeNode(AlterPublicationStmt);
3962 : :
3963 [ + - ]: 1564 : COPY_STRING_FIELD(pubname);
3964 : 1564 : COPY_NODE_FIELD(options);
3965 : 1564 : COPY_NODE_FIELD(pubobjects);
3966 : 1564 : COPY_SCALAR_FIELD(action);
3967 : 1564 : COPY_SCALAR_FIELD(for_all_tables);
3968 : 1564 : COPY_SCALAR_FIELD(for_all_sequences);
3969 : :
3970 : 1564 : return newnode;
3971 : : }
3972 : :
3973 : : static CreateSubscriptionStmt *
3974 : 676 : _copyCreateSubscriptionStmt(const CreateSubscriptionStmt *from)
3975 : : {
3976 : 676 : CreateSubscriptionStmt *newnode = makeNode(CreateSubscriptionStmt);
3977 : :
3978 [ + - ]: 676 : COPY_STRING_FIELD(subname);
3979 [ + + ]: 676 : COPY_STRING_FIELD(servername);
3980 [ + + ]: 676 : COPY_STRING_FIELD(conninfo);
3981 : 676 : COPY_NODE_FIELD(publication);
3982 : 676 : COPY_NODE_FIELD(options);
3983 : :
3984 : 676 : return newnode;
3985 : : }
3986 : :
3987 : : static AlterSubscriptionStmt *
3988 : 927 : _copyAlterSubscriptionStmt(const AlterSubscriptionStmt *from)
3989 : : {
3990 : 927 : AlterSubscriptionStmt *newnode = makeNode(AlterSubscriptionStmt);
3991 : :
3992 : 927 : COPY_SCALAR_FIELD(kind);
3993 [ + - ]: 927 : COPY_STRING_FIELD(subname);
3994 [ + + ]: 927 : COPY_STRING_FIELD(servername);
3995 [ + + ]: 927 : COPY_STRING_FIELD(conninfo);
3996 : 927 : COPY_NODE_FIELD(publication);
3997 : 927 : COPY_NODE_FIELD(options);
3998 : :
3999 : 927 : return newnode;
4000 : : }
4001 : :
4002 : : static DropSubscriptionStmt *
4003 : 366 : _copyDropSubscriptionStmt(const DropSubscriptionStmt *from)
4004 : : {
4005 : 366 : DropSubscriptionStmt *newnode = makeNode(DropSubscriptionStmt);
4006 : :
4007 [ + - ]: 366 : COPY_STRING_FIELD(subname);
4008 : 366 : COPY_SCALAR_FIELD(missing_ok);
4009 : 366 : COPY_SCALAR_FIELD(behavior);
4010 : :
4011 : 366 : return newnode;
4012 : : }
4013 : :
4014 : : static WaitStmt *
4015 : 548 : _copyWaitStmt(const WaitStmt *from)
4016 : : {
4017 : 548 : WaitStmt *newnode = makeNode(WaitStmt);
4018 : :
4019 [ + - ]: 548 : COPY_STRING_FIELD(lsn_literal);
4020 : 548 : COPY_NODE_FIELD(options);
4021 : 548 : COPY_LOCATION_FIELD(lsn_location);
4022 : :
4023 : 548 : return newnode;
4024 : : }
4025 : :
4026 : : static PathKey *
4027 : 0 : _copyPathKey(const PathKey *from)
4028 : : {
4029 : 0 : PathKey *newnode = makeNode(PathKey);
4030 : :
4031 : 0 : COPY_SCALAR_FIELD(pk_eclass);
4032 : 0 : COPY_SCALAR_FIELD(pk_opfamily);
4033 : 0 : COPY_SCALAR_FIELD(pk_cmptype);
4034 : 0 : COPY_SCALAR_FIELD(pk_nulls_first);
4035 : :
4036 : 0 : return newnode;
4037 : : }
4038 : :
4039 : : static GroupByOrdering *
4040 : 0 : _copyGroupByOrdering(const GroupByOrdering *from)
4041 : : {
4042 : 0 : GroupByOrdering *newnode = makeNode(GroupByOrdering);
4043 : :
4044 : 0 : COPY_NODE_FIELD(pathkeys);
4045 : 0 : COPY_NODE_FIELD(clauses);
4046 : :
4047 : 0 : return newnode;
4048 : : }
4049 : :
4050 : : static RestrictInfo *
4051 : 0 : _copyRestrictInfo(const RestrictInfo *from)
4052 : : {
4053 : 0 : RestrictInfo *newnode = makeNode(RestrictInfo);
4054 : :
4055 : 0 : COPY_NODE_FIELD(clause);
4056 : 0 : COPY_SCALAR_FIELD(is_pushed_down);
4057 : 0 : COPY_SCALAR_FIELD(can_join);
4058 : 0 : COPY_SCALAR_FIELD(pseudoconstant);
4059 : 0 : COPY_SCALAR_FIELD(has_clone);
4060 : 0 : COPY_SCALAR_FIELD(is_clone);
4061 : 0 : COPY_SCALAR_FIELD(leakproof);
4062 : 0 : COPY_SCALAR_FIELD(has_volatile);
4063 : 0 : COPY_SCALAR_FIELD(security_level);
4064 : 0 : COPY_SCALAR_FIELD(num_base_rels);
4065 : 0 : COPY_BITMAPSET_FIELD(clause_relids);
4066 : 0 : COPY_BITMAPSET_FIELD(required_relids);
4067 : 0 : COPY_BITMAPSET_FIELD(incompatible_relids);
4068 : 0 : COPY_BITMAPSET_FIELD(outer_relids);
4069 : 0 : COPY_BITMAPSET_FIELD(left_relids);
4070 : 0 : COPY_BITMAPSET_FIELD(right_relids);
4071 : 0 : COPY_NODE_FIELD(orclause);
4072 : 0 : COPY_SCALAR_FIELD(rinfo_serial);
4073 : 0 : COPY_SCALAR_FIELD(parent_ec);
4074 : 0 : COPY_SCALAR_FIELD(eval_cost);
4075 : 0 : COPY_SCALAR_FIELD(norm_selec);
4076 : 0 : COPY_SCALAR_FIELD(outer_selec);
4077 : 0 : COPY_NODE_FIELD(mergeopfamilies);
4078 : 0 : COPY_SCALAR_FIELD(left_ec);
4079 : 0 : COPY_SCALAR_FIELD(right_ec);
4080 : 0 : COPY_SCALAR_FIELD(left_em);
4081 : 0 : COPY_SCALAR_FIELD(right_em);
4082 : 0 : newnode->scansel_cache = NIL;
4083 : 0 : COPY_SCALAR_FIELD(outer_is_left);
4084 : 0 : COPY_SCALAR_FIELD(hashjoinoperator);
4085 : 0 : COPY_SCALAR_FIELD(left_bucketsize);
4086 : 0 : COPY_SCALAR_FIELD(right_bucketsize);
4087 : 0 : COPY_SCALAR_FIELD(left_mcvfreq);
4088 : 0 : COPY_SCALAR_FIELD(right_mcvfreq);
4089 : 0 : COPY_SCALAR_FIELD(left_hasheqoperator);
4090 : 0 : COPY_SCALAR_FIELD(right_hasheqoperator);
4091 : :
4092 : 0 : return newnode;
4093 : : }
4094 : :
4095 : : static PlaceHolderVar *
4096 : 14445 : _copyPlaceHolderVar(const PlaceHolderVar *from)
4097 : : {
4098 : 14445 : PlaceHolderVar *newnode = makeNode(PlaceHolderVar);
4099 : :
4100 : 14445 : COPY_NODE_FIELD(phexpr);
4101 : 14445 : COPY_BITMAPSET_FIELD(phrels);
4102 : 14445 : COPY_BITMAPSET_FIELD(phnullingrels);
4103 : 14445 : COPY_SCALAR_FIELD(phid);
4104 : 14445 : COPY_SCALAR_FIELD(phlevelsup);
4105 : :
4106 : 14445 : return newnode;
4107 : : }
4108 : :
4109 : : static SpecialJoinInfo *
4110 : 0 : _copySpecialJoinInfo(const SpecialJoinInfo *from)
4111 : : {
4112 : 0 : SpecialJoinInfo *newnode = makeNode(SpecialJoinInfo);
4113 : :
4114 : 0 : COPY_BITMAPSET_FIELD(min_lefthand);
4115 : 0 : COPY_BITMAPSET_FIELD(min_righthand);
4116 : 0 : COPY_BITMAPSET_FIELD(syn_lefthand);
4117 : 0 : COPY_BITMAPSET_FIELD(syn_righthand);
4118 : 0 : COPY_SCALAR_FIELD(jointype);
4119 : 0 : COPY_SCALAR_FIELD(ojrelid);
4120 : 0 : COPY_BITMAPSET_FIELD(commute_above_l);
4121 : 0 : COPY_BITMAPSET_FIELD(commute_above_r);
4122 : 0 : COPY_BITMAPSET_FIELD(commute_below_l);
4123 : 0 : COPY_BITMAPSET_FIELD(commute_below_r);
4124 : 0 : COPY_SCALAR_FIELD(lhs_strict);
4125 : 0 : COPY_SCALAR_FIELD(semi_can_btree);
4126 : 0 : COPY_SCALAR_FIELD(semi_can_hash);
4127 : 0 : COPY_NODE_FIELD(semi_operators);
4128 : 0 : COPY_NODE_FIELD(semi_rhs_exprs);
4129 : :
4130 : 0 : return newnode;
4131 : : }
4132 : :
4133 : : static AppendRelInfo *
4134 : 43605 : _copyAppendRelInfo(const AppendRelInfo *from)
4135 : : {
4136 : 43605 : AppendRelInfo *newnode = makeNode(AppendRelInfo);
4137 : :
4138 : 43605 : COPY_SCALAR_FIELD(parent_relid);
4139 : 43605 : COPY_SCALAR_FIELD(child_relid);
4140 : 43605 : COPY_SCALAR_FIELD(parent_reltype);
4141 : 43605 : COPY_SCALAR_FIELD(child_reltype);
4142 : 43605 : COPY_NODE_FIELD(translated_vars);
4143 : 43605 : COPY_SCALAR_FIELD(num_child_cols);
4144 [ + + ]: 43605 : COPY_POINTER_FIELD(parent_colnos, from->num_child_cols * sizeof(AttrNumber));
4145 : 43605 : COPY_SCALAR_FIELD(parent_reloid);
4146 : :
4147 : 43605 : return newnode;
4148 : : }
4149 : :
4150 : : static PlaceHolderInfo *
4151 : 0 : _copyPlaceHolderInfo(const PlaceHolderInfo *from)
4152 : : {
4153 : 0 : PlaceHolderInfo *newnode = makeNode(PlaceHolderInfo);
4154 : :
4155 : 0 : COPY_SCALAR_FIELD(phid);
4156 : 0 : COPY_NODE_FIELD(ph_var);
4157 : 0 : COPY_BITMAPSET_FIELD(ph_eval_at);
4158 : 0 : COPY_BITMAPSET_FIELD(ph_lateral);
4159 : 0 : COPY_BITMAPSET_FIELD(ph_needed);
4160 : 0 : COPY_SCALAR_FIELD(ph_width);
4161 : :
4162 : 0 : return newnode;
4163 : : }
4164 : :
4165 : : static AggClauseInfo *
4166 : 0 : _copyAggClauseInfo(const AggClauseInfo *from)
4167 : : {
4168 : 0 : AggClauseInfo *newnode = makeNode(AggClauseInfo);
4169 : :
4170 : 0 : COPY_NODE_FIELD(aggref);
4171 : 0 : COPY_BITMAPSET_FIELD(agg_eval_at);
4172 : :
4173 : 0 : return newnode;
4174 : : }
4175 : :
4176 : : static GroupingExprInfo *
4177 : 0 : _copyGroupingExprInfo(const GroupingExprInfo *from)
4178 : : {
4179 : 0 : GroupingExprInfo *newnode = makeNode(GroupingExprInfo);
4180 : :
4181 : 0 : COPY_NODE_FIELD(expr);
4182 : 0 : COPY_SCALAR_FIELD(sortgroupref);
4183 : 0 : COPY_SCALAR_FIELD(ec);
4184 : :
4185 : 0 : return newnode;
4186 : : }
4187 : :
4188 : : static PlannedStmt *
4189 : 367185 : _copyPlannedStmt(const PlannedStmt *from)
4190 : : {
4191 : 367185 : PlannedStmt *newnode = makeNode(PlannedStmt);
4192 : :
4193 : 367185 : COPY_SCALAR_FIELD(commandType);
4194 : 367185 : COPY_SCALAR_FIELD(queryId);
4195 : 367185 : COPY_SCALAR_FIELD(planId);
4196 : 367185 : COPY_SCALAR_FIELD(planOrigin);
4197 : 367185 : COPY_SCALAR_FIELD(hasReturning);
4198 : 367185 : COPY_SCALAR_FIELD(hasModifyingCTE);
4199 : 367185 : COPY_SCALAR_FIELD(canSetTag);
4200 : 367185 : COPY_SCALAR_FIELD(transientPlan);
4201 : 367185 : COPY_SCALAR_FIELD(dependsOnRole);
4202 : 367185 : COPY_SCALAR_FIELD(parallelModeNeeded);
4203 : 367185 : COPY_SCALAR_FIELD(jitFlags);
4204 : 367185 : COPY_NODE_FIELD(planTree);
4205 : 367185 : COPY_NODE_FIELD(partPruneInfos);
4206 : 367185 : COPY_NODE_FIELD(rtable);
4207 : 367185 : COPY_BITMAPSET_FIELD(unprunableRelids);
4208 : 367185 : COPY_NODE_FIELD(permInfos);
4209 : 367185 : COPY_BITMAPSET_FIELD(resultRelationRelids);
4210 : 367185 : COPY_NODE_FIELD(appendRelations);
4211 : 367185 : COPY_NODE_FIELD(subplans);
4212 : 367185 : COPY_NODE_FIELD(subrtinfos);
4213 : 367185 : COPY_BITMAPSET_FIELD(rewindPlanIDs);
4214 : 367185 : COPY_NODE_FIELD(rowMarks);
4215 : 367185 : COPY_BITMAPSET_FIELD(rowMarkRelids);
4216 : 367185 : COPY_NODE_FIELD(relationOids);
4217 : 367185 : COPY_NODE_FIELD(invalItems);
4218 : 367185 : COPY_NODE_FIELD(paramExecTypes);
4219 : 367185 : COPY_NODE_FIELD(utilityStmt);
4220 : 367185 : COPY_NODE_FIELD(elidedNodes);
4221 : 367185 : COPY_NODE_FIELD(extension_state);
4222 : 367185 : COPY_LOCATION_FIELD(stmt_location);
4223 : 367185 : COPY_LOCATION_FIELD(stmt_len);
4224 : :
4225 : 367185 : return newnode;
4226 : : }
4227 : :
4228 : : static Result *
4229 : 163241 : _copyResult(const Result *from)
4230 : : {
4231 : 163241 : Result *newnode = makeNode(Result);
4232 : :
4233 : 163241 : COPY_SCALAR_FIELD(plan.disabled_nodes);
4234 : 163241 : COPY_SCALAR_FIELD(plan.startup_cost);
4235 : 163241 : COPY_SCALAR_FIELD(plan.total_cost);
4236 : 163241 : COPY_SCALAR_FIELD(plan.plan_rows);
4237 : 163241 : COPY_SCALAR_FIELD(plan.plan_width);
4238 : 163241 : COPY_SCALAR_FIELD(plan.parallel_aware);
4239 : 163241 : COPY_SCALAR_FIELD(plan.parallel_safe);
4240 : 163241 : COPY_SCALAR_FIELD(plan.async_capable);
4241 : 163241 : COPY_SCALAR_FIELD(plan.plan_node_id);
4242 : 163241 : COPY_NODE_FIELD(plan.targetlist);
4243 : 163241 : COPY_NODE_FIELD(plan.qual);
4244 : 163241 : COPY_NODE_FIELD(plan.lefttree);
4245 : 163241 : COPY_NODE_FIELD(plan.righttree);
4246 : 163241 : COPY_NODE_FIELD(plan.initPlan);
4247 : 163241 : COPY_BITMAPSET_FIELD(plan.extParam);
4248 : 163241 : COPY_BITMAPSET_FIELD(plan.allParam);
4249 : 163241 : COPY_SCALAR_FIELD(result_type);
4250 : 163241 : COPY_NODE_FIELD(resconstantqual);
4251 : 163241 : COPY_BITMAPSET_FIELD(relids);
4252 : :
4253 : 163241 : return newnode;
4254 : : }
4255 : :
4256 : : static ProjectSet *
4257 : 8855 : _copyProjectSet(const ProjectSet *from)
4258 : : {
4259 : 8855 : ProjectSet *newnode = makeNode(ProjectSet);
4260 : :
4261 : 8855 : COPY_SCALAR_FIELD(plan.disabled_nodes);
4262 : 8855 : COPY_SCALAR_FIELD(plan.startup_cost);
4263 : 8855 : COPY_SCALAR_FIELD(plan.total_cost);
4264 : 8855 : COPY_SCALAR_FIELD(plan.plan_rows);
4265 : 8855 : COPY_SCALAR_FIELD(plan.plan_width);
4266 : 8855 : COPY_SCALAR_FIELD(plan.parallel_aware);
4267 : 8855 : COPY_SCALAR_FIELD(plan.parallel_safe);
4268 : 8855 : COPY_SCALAR_FIELD(plan.async_capable);
4269 : 8855 : COPY_SCALAR_FIELD(plan.plan_node_id);
4270 : 8855 : COPY_NODE_FIELD(plan.targetlist);
4271 : 8855 : COPY_NODE_FIELD(plan.qual);
4272 : 8855 : COPY_NODE_FIELD(plan.lefttree);
4273 : 8855 : COPY_NODE_FIELD(plan.righttree);
4274 : 8855 : COPY_NODE_FIELD(plan.initPlan);
4275 : 8855 : COPY_BITMAPSET_FIELD(plan.extParam);
4276 : 8855 : COPY_BITMAPSET_FIELD(plan.allParam);
4277 : :
4278 : 8855 : return newnode;
4279 : : }
4280 : :
4281 : : static ModifyTable *
4282 : 62864 : _copyModifyTable(const ModifyTable *from)
4283 : : {
4284 : 62864 : ModifyTable *newnode = makeNode(ModifyTable);
4285 : :
4286 : 62864 : COPY_SCALAR_FIELD(plan.disabled_nodes);
4287 : 62864 : COPY_SCALAR_FIELD(plan.startup_cost);
4288 : 62864 : COPY_SCALAR_FIELD(plan.total_cost);
4289 : 62864 : COPY_SCALAR_FIELD(plan.plan_rows);
4290 : 62864 : COPY_SCALAR_FIELD(plan.plan_width);
4291 : 62864 : COPY_SCALAR_FIELD(plan.parallel_aware);
4292 : 62864 : COPY_SCALAR_FIELD(plan.parallel_safe);
4293 : 62864 : COPY_SCALAR_FIELD(plan.async_capable);
4294 : 62864 : COPY_SCALAR_FIELD(plan.plan_node_id);
4295 : 62864 : COPY_NODE_FIELD(plan.targetlist);
4296 : 62864 : COPY_NODE_FIELD(plan.qual);
4297 : 62864 : COPY_NODE_FIELD(plan.lefttree);
4298 : 62864 : COPY_NODE_FIELD(plan.righttree);
4299 : 62864 : COPY_NODE_FIELD(plan.initPlan);
4300 : 62864 : COPY_BITMAPSET_FIELD(plan.extParam);
4301 : 62864 : COPY_BITMAPSET_FIELD(plan.allParam);
4302 : 62864 : COPY_SCALAR_FIELD(operation);
4303 : 62864 : COPY_SCALAR_FIELD(canSetTag);
4304 : 62864 : COPY_SCALAR_FIELD(nominalRelation);
4305 : 62864 : COPY_SCALAR_FIELD(rootRelation);
4306 : 62864 : COPY_NODE_FIELD(resultRelations);
4307 : 62864 : COPY_NODE_FIELD(updateColnosLists);
4308 : 62864 : COPY_NODE_FIELD(withCheckOptionLists);
4309 [ + + ]: 62864 : COPY_STRING_FIELD(returningOldAlias);
4310 [ + + ]: 62864 : COPY_STRING_FIELD(returningNewAlias);
4311 : 62864 : COPY_NODE_FIELD(returningLists);
4312 : 62864 : COPY_NODE_FIELD(fdwPrivLists);
4313 : 62864 : COPY_BITMAPSET_FIELD(fdwDirectModifyPlans);
4314 : 62864 : COPY_NODE_FIELD(rowMarks);
4315 : 62864 : COPY_SCALAR_FIELD(epqParam);
4316 : 62864 : COPY_SCALAR_FIELD(onConflictAction);
4317 : 62864 : COPY_NODE_FIELD(arbiterIndexes);
4318 : 62864 : COPY_SCALAR_FIELD(onConflictLockStrength);
4319 : 62864 : COPY_NODE_FIELD(onConflictSet);
4320 : 62864 : COPY_NODE_FIELD(onConflictCols);
4321 : 62864 : COPY_NODE_FIELD(onConflictWhere);
4322 : 62864 : COPY_NODE_FIELD(forPortionOf);
4323 : 62864 : COPY_SCALAR_FIELD(exclRelRTI);
4324 : 62864 : COPY_NODE_FIELD(exclRelTlist);
4325 : 62864 : COPY_NODE_FIELD(mergeActionLists);
4326 : 62864 : COPY_NODE_FIELD(mergeJoinConditions);
4327 : :
4328 : 62864 : return newnode;
4329 : : }
4330 : :
4331 : : static Append *
4332 : 12967 : _copyAppend(const Append *from)
4333 : : {
4334 : 12967 : Append *newnode = makeNode(Append);
4335 : :
4336 : 12967 : COPY_SCALAR_FIELD(plan.disabled_nodes);
4337 : 12967 : COPY_SCALAR_FIELD(plan.startup_cost);
4338 : 12967 : COPY_SCALAR_FIELD(plan.total_cost);
4339 : 12967 : COPY_SCALAR_FIELD(plan.plan_rows);
4340 : 12967 : COPY_SCALAR_FIELD(plan.plan_width);
4341 : 12967 : COPY_SCALAR_FIELD(plan.parallel_aware);
4342 : 12967 : COPY_SCALAR_FIELD(plan.parallel_safe);
4343 : 12967 : COPY_SCALAR_FIELD(plan.async_capable);
4344 : 12967 : COPY_SCALAR_FIELD(plan.plan_node_id);
4345 : 12967 : COPY_NODE_FIELD(plan.targetlist);
4346 : 12967 : COPY_NODE_FIELD(plan.qual);
4347 : 12967 : COPY_NODE_FIELD(plan.lefttree);
4348 : 12967 : COPY_NODE_FIELD(plan.righttree);
4349 : 12967 : COPY_NODE_FIELD(plan.initPlan);
4350 : 12967 : COPY_BITMAPSET_FIELD(plan.extParam);
4351 : 12967 : COPY_BITMAPSET_FIELD(plan.allParam);
4352 : 12967 : COPY_BITMAPSET_FIELD(apprelids);
4353 : 12967 : COPY_NODE_FIELD(child_append_relid_sets);
4354 : 12967 : COPY_NODE_FIELD(appendplans);
4355 : 12967 : COPY_SCALAR_FIELD(nasyncplans);
4356 : 12967 : COPY_SCALAR_FIELD(first_partial_plan);
4357 : 12967 : COPY_SCALAR_FIELD(part_prune_index);
4358 : :
4359 : 12967 : return newnode;
4360 : : }
4361 : :
4362 : : static MergeAppend *
4363 : 394 : _copyMergeAppend(const MergeAppend *from)
4364 : : {
4365 : 394 : MergeAppend *newnode = makeNode(MergeAppend);
4366 : :
4367 : 394 : COPY_SCALAR_FIELD(plan.disabled_nodes);
4368 : 394 : COPY_SCALAR_FIELD(plan.startup_cost);
4369 : 394 : COPY_SCALAR_FIELD(plan.total_cost);
4370 : 394 : COPY_SCALAR_FIELD(plan.plan_rows);
4371 : 394 : COPY_SCALAR_FIELD(plan.plan_width);
4372 : 394 : COPY_SCALAR_FIELD(plan.parallel_aware);
4373 : 394 : COPY_SCALAR_FIELD(plan.parallel_safe);
4374 : 394 : COPY_SCALAR_FIELD(plan.async_capable);
4375 : 394 : COPY_SCALAR_FIELD(plan.plan_node_id);
4376 : 394 : COPY_NODE_FIELD(plan.targetlist);
4377 : 394 : COPY_NODE_FIELD(plan.qual);
4378 : 394 : COPY_NODE_FIELD(plan.lefttree);
4379 : 394 : COPY_NODE_FIELD(plan.righttree);
4380 : 394 : COPY_NODE_FIELD(plan.initPlan);
4381 : 394 : COPY_BITMAPSET_FIELD(plan.extParam);
4382 : 394 : COPY_BITMAPSET_FIELD(plan.allParam);
4383 : 394 : COPY_BITMAPSET_FIELD(apprelids);
4384 : 394 : COPY_NODE_FIELD(child_append_relid_sets);
4385 : 394 : COPY_NODE_FIELD(mergeplans);
4386 : 394 : COPY_SCALAR_FIELD(numCols);
4387 [ + - ]: 394 : COPY_POINTER_FIELD(sortColIdx, from->numCols * sizeof(AttrNumber));
4388 [ + - ]: 394 : COPY_POINTER_FIELD(sortOperators, from->numCols * sizeof(Oid));
4389 [ + - ]: 394 : COPY_POINTER_FIELD(collations, from->numCols * sizeof(Oid));
4390 [ + - ]: 394 : COPY_POINTER_FIELD(nullsFirst, from->numCols * sizeof(bool));
4391 : 394 : COPY_SCALAR_FIELD(part_prune_index);
4392 : :
4393 : 394 : return newnode;
4394 : : }
4395 : :
4396 : : static RecursiveUnion *
4397 : 573 : _copyRecursiveUnion(const RecursiveUnion *from)
4398 : : {
4399 : 573 : RecursiveUnion *newnode = makeNode(RecursiveUnion);
4400 : :
4401 : 573 : COPY_SCALAR_FIELD(plan.disabled_nodes);
4402 : 573 : COPY_SCALAR_FIELD(plan.startup_cost);
4403 : 573 : COPY_SCALAR_FIELD(plan.total_cost);
4404 : 573 : COPY_SCALAR_FIELD(plan.plan_rows);
4405 : 573 : COPY_SCALAR_FIELD(plan.plan_width);
4406 : 573 : COPY_SCALAR_FIELD(plan.parallel_aware);
4407 : 573 : COPY_SCALAR_FIELD(plan.parallel_safe);
4408 : 573 : COPY_SCALAR_FIELD(plan.async_capable);
4409 : 573 : COPY_SCALAR_FIELD(plan.plan_node_id);
4410 : 573 : COPY_NODE_FIELD(plan.targetlist);
4411 : 573 : COPY_NODE_FIELD(plan.qual);
4412 : 573 : COPY_NODE_FIELD(plan.lefttree);
4413 : 573 : COPY_NODE_FIELD(plan.righttree);
4414 : 573 : COPY_NODE_FIELD(plan.initPlan);
4415 : 573 : COPY_BITMAPSET_FIELD(plan.extParam);
4416 : 573 : COPY_BITMAPSET_FIELD(plan.allParam);
4417 : 573 : COPY_SCALAR_FIELD(wtParam);
4418 : 573 : COPY_SCALAR_FIELD(numCols);
4419 [ + + ]: 573 : COPY_POINTER_FIELD(dupColIdx, from->numCols * sizeof(AttrNumber));
4420 [ + + ]: 573 : COPY_POINTER_FIELD(dupOperators, from->numCols * sizeof(Oid));
4421 [ + + ]: 573 : COPY_POINTER_FIELD(dupCollations, from->numCols * sizeof(Oid));
4422 : 573 : COPY_SCALAR_FIELD(numGroups);
4423 : :
4424 : 573 : return newnode;
4425 : : }
4426 : :
4427 : : static BitmapAnd *
4428 : 150 : _copyBitmapAnd(const BitmapAnd *from)
4429 : : {
4430 : 150 : BitmapAnd *newnode = makeNode(BitmapAnd);
4431 : :
4432 : 150 : COPY_SCALAR_FIELD(plan.disabled_nodes);
4433 : 150 : COPY_SCALAR_FIELD(plan.startup_cost);
4434 : 150 : COPY_SCALAR_FIELD(plan.total_cost);
4435 : 150 : COPY_SCALAR_FIELD(plan.plan_rows);
4436 : 150 : COPY_SCALAR_FIELD(plan.plan_width);
4437 : 150 : COPY_SCALAR_FIELD(plan.parallel_aware);
4438 : 150 : COPY_SCALAR_FIELD(plan.parallel_safe);
4439 : 150 : COPY_SCALAR_FIELD(plan.async_capable);
4440 : 150 : COPY_SCALAR_FIELD(plan.plan_node_id);
4441 : 150 : COPY_NODE_FIELD(plan.targetlist);
4442 : 150 : COPY_NODE_FIELD(plan.qual);
4443 : 150 : COPY_NODE_FIELD(plan.lefttree);
4444 : 150 : COPY_NODE_FIELD(plan.righttree);
4445 : 150 : COPY_NODE_FIELD(plan.initPlan);
4446 : 150 : COPY_BITMAPSET_FIELD(plan.extParam);
4447 : 150 : COPY_BITMAPSET_FIELD(plan.allParam);
4448 : 150 : COPY_NODE_FIELD(bitmapplans);
4449 : :
4450 : 150 : return newnode;
4451 : : }
4452 : :
4453 : : static BitmapOr *
4454 : 266 : _copyBitmapOr(const BitmapOr *from)
4455 : : {
4456 : 266 : BitmapOr *newnode = makeNode(BitmapOr);
4457 : :
4458 : 266 : COPY_SCALAR_FIELD(plan.disabled_nodes);
4459 : 266 : COPY_SCALAR_FIELD(plan.startup_cost);
4460 : 266 : COPY_SCALAR_FIELD(plan.total_cost);
4461 : 266 : COPY_SCALAR_FIELD(plan.plan_rows);
4462 : 266 : COPY_SCALAR_FIELD(plan.plan_width);
4463 : 266 : COPY_SCALAR_FIELD(plan.parallel_aware);
4464 : 266 : COPY_SCALAR_FIELD(plan.parallel_safe);
4465 : 266 : COPY_SCALAR_FIELD(plan.async_capable);
4466 : 266 : COPY_SCALAR_FIELD(plan.plan_node_id);
4467 : 266 : COPY_NODE_FIELD(plan.targetlist);
4468 : 266 : COPY_NODE_FIELD(plan.qual);
4469 : 266 : COPY_NODE_FIELD(plan.lefttree);
4470 : 266 : COPY_NODE_FIELD(plan.righttree);
4471 : 266 : COPY_NODE_FIELD(plan.initPlan);
4472 : 266 : COPY_BITMAPSET_FIELD(plan.extParam);
4473 : 266 : COPY_BITMAPSET_FIELD(plan.allParam);
4474 : 266 : COPY_SCALAR_FIELD(isshared);
4475 : 266 : COPY_NODE_FIELD(bitmapplans);
4476 : :
4477 : 266 : return newnode;
4478 : : }
4479 : :
4480 : : static SeqScan *
4481 : 162758 : _copySeqScan(const SeqScan *from)
4482 : : {
4483 : 162758 : SeqScan *newnode = makeNode(SeqScan);
4484 : :
4485 : 162758 : COPY_SCALAR_FIELD(scan.plan.disabled_nodes);
4486 : 162758 : COPY_SCALAR_FIELD(scan.plan.startup_cost);
4487 : 162758 : COPY_SCALAR_FIELD(scan.plan.total_cost);
4488 : 162758 : COPY_SCALAR_FIELD(scan.plan.plan_rows);
4489 : 162758 : COPY_SCALAR_FIELD(scan.plan.plan_width);
4490 : 162758 : COPY_SCALAR_FIELD(scan.plan.parallel_aware);
4491 : 162758 : COPY_SCALAR_FIELD(scan.plan.parallel_safe);
4492 : 162758 : COPY_SCALAR_FIELD(scan.plan.async_capable);
4493 : 162758 : COPY_SCALAR_FIELD(scan.plan.plan_node_id);
4494 : 162758 : COPY_NODE_FIELD(scan.plan.targetlist);
4495 : 162758 : COPY_NODE_FIELD(scan.plan.qual);
4496 : 162758 : COPY_NODE_FIELD(scan.plan.lefttree);
4497 : 162758 : COPY_NODE_FIELD(scan.plan.righttree);
4498 : 162758 : COPY_NODE_FIELD(scan.plan.initPlan);
4499 : 162758 : COPY_BITMAPSET_FIELD(scan.plan.extParam);
4500 : 162758 : COPY_BITMAPSET_FIELD(scan.plan.allParam);
4501 : 162758 : COPY_SCALAR_FIELD(scan.scanrelid);
4502 : :
4503 : 162758 : return newnode;
4504 : : }
4505 : :
4506 : : static SampleScan *
4507 : 206 : _copySampleScan(const SampleScan *from)
4508 : : {
4509 : 206 : SampleScan *newnode = makeNode(SampleScan);
4510 : :
4511 : 206 : COPY_SCALAR_FIELD(scan.plan.disabled_nodes);
4512 : 206 : COPY_SCALAR_FIELD(scan.plan.startup_cost);
4513 : 206 : COPY_SCALAR_FIELD(scan.plan.total_cost);
4514 : 206 : COPY_SCALAR_FIELD(scan.plan.plan_rows);
4515 : 206 : COPY_SCALAR_FIELD(scan.plan.plan_width);
4516 : 206 : COPY_SCALAR_FIELD(scan.plan.parallel_aware);
4517 : 206 : COPY_SCALAR_FIELD(scan.plan.parallel_safe);
4518 : 206 : COPY_SCALAR_FIELD(scan.plan.async_capable);
4519 : 206 : COPY_SCALAR_FIELD(scan.plan.plan_node_id);
4520 : 206 : COPY_NODE_FIELD(scan.plan.targetlist);
4521 : 206 : COPY_NODE_FIELD(scan.plan.qual);
4522 : 206 : COPY_NODE_FIELD(scan.plan.lefttree);
4523 : 206 : COPY_NODE_FIELD(scan.plan.righttree);
4524 : 206 : COPY_NODE_FIELD(scan.plan.initPlan);
4525 : 206 : COPY_BITMAPSET_FIELD(scan.plan.extParam);
4526 : 206 : COPY_BITMAPSET_FIELD(scan.plan.allParam);
4527 : 206 : COPY_SCALAR_FIELD(scan.scanrelid);
4528 : 206 : COPY_NODE_FIELD(tablesample);
4529 : :
4530 : 206 : return newnode;
4531 : : }
4532 : :
4533 : : static IndexScan *
4534 : 101345 : _copyIndexScan(const IndexScan *from)
4535 : : {
4536 : 101345 : IndexScan *newnode = makeNode(IndexScan);
4537 : :
4538 : 101345 : COPY_SCALAR_FIELD(scan.plan.disabled_nodes);
4539 : 101345 : COPY_SCALAR_FIELD(scan.plan.startup_cost);
4540 : 101345 : COPY_SCALAR_FIELD(scan.plan.total_cost);
4541 : 101345 : COPY_SCALAR_FIELD(scan.plan.plan_rows);
4542 : 101345 : COPY_SCALAR_FIELD(scan.plan.plan_width);
4543 : 101345 : COPY_SCALAR_FIELD(scan.plan.parallel_aware);
4544 : 101345 : COPY_SCALAR_FIELD(scan.plan.parallel_safe);
4545 : 101345 : COPY_SCALAR_FIELD(scan.plan.async_capable);
4546 : 101345 : COPY_SCALAR_FIELD(scan.plan.plan_node_id);
4547 : 101345 : COPY_NODE_FIELD(scan.plan.targetlist);
4548 : 101345 : COPY_NODE_FIELD(scan.plan.qual);
4549 : 101345 : COPY_NODE_FIELD(scan.plan.lefttree);
4550 : 101345 : COPY_NODE_FIELD(scan.plan.righttree);
4551 : 101345 : COPY_NODE_FIELD(scan.plan.initPlan);
4552 : 101345 : COPY_BITMAPSET_FIELD(scan.plan.extParam);
4553 : 101345 : COPY_BITMAPSET_FIELD(scan.plan.allParam);
4554 : 101345 : COPY_SCALAR_FIELD(scan.scanrelid);
4555 : 101345 : COPY_SCALAR_FIELD(indexid);
4556 : 101345 : COPY_NODE_FIELD(indexqual);
4557 : 101345 : COPY_NODE_FIELD(indexqualorig);
4558 : 101345 : COPY_NODE_FIELD(indexorderby);
4559 : 101345 : COPY_NODE_FIELD(indexorderbyorig);
4560 : 101345 : COPY_NODE_FIELD(indexorderbyops);
4561 : 101345 : COPY_SCALAR_FIELD(indexorderdir);
4562 : :
4563 : 101345 : return newnode;
4564 : : }
4565 : :
4566 : : static IndexOnlyScan *
4567 : 12961 : _copyIndexOnlyScan(const IndexOnlyScan *from)
4568 : : {
4569 : 12961 : IndexOnlyScan *newnode = makeNode(IndexOnlyScan);
4570 : :
4571 : 12961 : COPY_SCALAR_FIELD(scan.plan.disabled_nodes);
4572 : 12961 : COPY_SCALAR_FIELD(scan.plan.startup_cost);
4573 : 12961 : COPY_SCALAR_FIELD(scan.plan.total_cost);
4574 : 12961 : COPY_SCALAR_FIELD(scan.plan.plan_rows);
4575 : 12961 : COPY_SCALAR_FIELD(scan.plan.plan_width);
4576 : 12961 : COPY_SCALAR_FIELD(scan.plan.parallel_aware);
4577 : 12961 : COPY_SCALAR_FIELD(scan.plan.parallel_safe);
4578 : 12961 : COPY_SCALAR_FIELD(scan.plan.async_capable);
4579 : 12961 : COPY_SCALAR_FIELD(scan.plan.plan_node_id);
4580 : 12961 : COPY_NODE_FIELD(scan.plan.targetlist);
4581 : 12961 : COPY_NODE_FIELD(scan.plan.qual);
4582 : 12961 : COPY_NODE_FIELD(scan.plan.lefttree);
4583 : 12961 : COPY_NODE_FIELD(scan.plan.righttree);
4584 : 12961 : COPY_NODE_FIELD(scan.plan.initPlan);
4585 : 12961 : COPY_BITMAPSET_FIELD(scan.plan.extParam);
4586 : 12961 : COPY_BITMAPSET_FIELD(scan.plan.allParam);
4587 : 12961 : COPY_SCALAR_FIELD(scan.scanrelid);
4588 : 12961 : COPY_SCALAR_FIELD(indexid);
4589 : 12961 : COPY_NODE_FIELD(indexqual);
4590 : 12961 : COPY_NODE_FIELD(recheckqual);
4591 : 12961 : COPY_NODE_FIELD(indexorderby);
4592 : 12961 : COPY_NODE_FIELD(indextlist);
4593 : 12961 : COPY_SCALAR_FIELD(indexorderdir);
4594 : :
4595 : 12961 : return newnode;
4596 : : }
4597 : :
4598 : : static BitmapIndexScan *
4599 : 17062 : _copyBitmapIndexScan(const BitmapIndexScan *from)
4600 : : {
4601 : 17062 : BitmapIndexScan *newnode = makeNode(BitmapIndexScan);
4602 : :
4603 : 17062 : COPY_SCALAR_FIELD(scan.plan.disabled_nodes);
4604 : 17062 : COPY_SCALAR_FIELD(scan.plan.startup_cost);
4605 : 17062 : COPY_SCALAR_FIELD(scan.plan.total_cost);
4606 : 17062 : COPY_SCALAR_FIELD(scan.plan.plan_rows);
4607 : 17062 : COPY_SCALAR_FIELD(scan.plan.plan_width);
4608 : 17062 : COPY_SCALAR_FIELD(scan.plan.parallel_aware);
4609 : 17062 : COPY_SCALAR_FIELD(scan.plan.parallel_safe);
4610 : 17062 : COPY_SCALAR_FIELD(scan.plan.async_capable);
4611 : 17062 : COPY_SCALAR_FIELD(scan.plan.plan_node_id);
4612 : 17062 : COPY_NODE_FIELD(scan.plan.targetlist);
4613 : 17062 : COPY_NODE_FIELD(scan.plan.qual);
4614 : 17062 : COPY_NODE_FIELD(scan.plan.lefttree);
4615 : 17062 : COPY_NODE_FIELD(scan.plan.righttree);
4616 : 17062 : COPY_NODE_FIELD(scan.plan.initPlan);
4617 : 17062 : COPY_BITMAPSET_FIELD(scan.plan.extParam);
4618 : 17062 : COPY_BITMAPSET_FIELD(scan.plan.allParam);
4619 : 17062 : COPY_SCALAR_FIELD(scan.scanrelid);
4620 : 17062 : COPY_SCALAR_FIELD(indexid);
4621 : 17062 : COPY_SCALAR_FIELD(isshared);
4622 : 17062 : COPY_NODE_FIELD(indexqual);
4623 : 17062 : COPY_NODE_FIELD(indexqualorig);
4624 : :
4625 : 17062 : return newnode;
4626 : : }
4627 : :
4628 : : static BitmapHeapScan *
4629 : 16642 : _copyBitmapHeapScan(const BitmapHeapScan *from)
4630 : : {
4631 : 16642 : BitmapHeapScan *newnode = makeNode(BitmapHeapScan);
4632 : :
4633 : 16642 : COPY_SCALAR_FIELD(scan.plan.disabled_nodes);
4634 : 16642 : COPY_SCALAR_FIELD(scan.plan.startup_cost);
4635 : 16642 : COPY_SCALAR_FIELD(scan.plan.total_cost);
4636 : 16642 : COPY_SCALAR_FIELD(scan.plan.plan_rows);
4637 : 16642 : COPY_SCALAR_FIELD(scan.plan.plan_width);
4638 : 16642 : COPY_SCALAR_FIELD(scan.plan.parallel_aware);
4639 : 16642 : COPY_SCALAR_FIELD(scan.plan.parallel_safe);
4640 : 16642 : COPY_SCALAR_FIELD(scan.plan.async_capable);
4641 : 16642 : COPY_SCALAR_FIELD(scan.plan.plan_node_id);
4642 : 16642 : COPY_NODE_FIELD(scan.plan.targetlist);
4643 : 16642 : COPY_NODE_FIELD(scan.plan.qual);
4644 : 16642 : COPY_NODE_FIELD(scan.plan.lefttree);
4645 : 16642 : COPY_NODE_FIELD(scan.plan.righttree);
4646 : 16642 : COPY_NODE_FIELD(scan.plan.initPlan);
4647 : 16642 : COPY_BITMAPSET_FIELD(scan.plan.extParam);
4648 : 16642 : COPY_BITMAPSET_FIELD(scan.plan.allParam);
4649 : 16642 : COPY_SCALAR_FIELD(scan.scanrelid);
4650 : 16642 : COPY_NODE_FIELD(bitmapqualorig);
4651 : :
4652 : 16642 : return newnode;
4653 : : }
4654 : :
4655 : : static TidScan *
4656 : 625 : _copyTidScan(const TidScan *from)
4657 : : {
4658 : 625 : TidScan *newnode = makeNode(TidScan);
4659 : :
4660 : 625 : COPY_SCALAR_FIELD(scan.plan.disabled_nodes);
4661 : 625 : COPY_SCALAR_FIELD(scan.plan.startup_cost);
4662 : 625 : COPY_SCALAR_FIELD(scan.plan.total_cost);
4663 : 625 : COPY_SCALAR_FIELD(scan.plan.plan_rows);
4664 : 625 : COPY_SCALAR_FIELD(scan.plan.plan_width);
4665 : 625 : COPY_SCALAR_FIELD(scan.plan.parallel_aware);
4666 : 625 : COPY_SCALAR_FIELD(scan.plan.parallel_safe);
4667 : 625 : COPY_SCALAR_FIELD(scan.plan.async_capable);
4668 : 625 : COPY_SCALAR_FIELD(scan.plan.plan_node_id);
4669 : 625 : COPY_NODE_FIELD(scan.plan.targetlist);
4670 : 625 : COPY_NODE_FIELD(scan.plan.qual);
4671 : 625 : COPY_NODE_FIELD(scan.plan.lefttree);
4672 : 625 : COPY_NODE_FIELD(scan.plan.righttree);
4673 : 625 : COPY_NODE_FIELD(scan.plan.initPlan);
4674 : 625 : COPY_BITMAPSET_FIELD(scan.plan.extParam);
4675 : 625 : COPY_BITMAPSET_FIELD(scan.plan.allParam);
4676 : 625 : COPY_SCALAR_FIELD(scan.scanrelid);
4677 : 625 : COPY_NODE_FIELD(tidquals);
4678 : :
4679 : 625 : return newnode;
4680 : : }
4681 : :
4682 : : static TidRangeScan *
4683 : 2504 : _copyTidRangeScan(const TidRangeScan *from)
4684 : : {
4685 : 2504 : TidRangeScan *newnode = makeNode(TidRangeScan);
4686 : :
4687 : 2504 : COPY_SCALAR_FIELD(scan.plan.disabled_nodes);
4688 : 2504 : COPY_SCALAR_FIELD(scan.plan.startup_cost);
4689 : 2504 : COPY_SCALAR_FIELD(scan.plan.total_cost);
4690 : 2504 : COPY_SCALAR_FIELD(scan.plan.plan_rows);
4691 : 2504 : COPY_SCALAR_FIELD(scan.plan.plan_width);
4692 : 2504 : COPY_SCALAR_FIELD(scan.plan.parallel_aware);
4693 : 2504 : COPY_SCALAR_FIELD(scan.plan.parallel_safe);
4694 : 2504 : COPY_SCALAR_FIELD(scan.plan.async_capable);
4695 : 2504 : COPY_SCALAR_FIELD(scan.plan.plan_node_id);
4696 : 2504 : COPY_NODE_FIELD(scan.plan.targetlist);
4697 : 2504 : COPY_NODE_FIELD(scan.plan.qual);
4698 : 2504 : COPY_NODE_FIELD(scan.plan.lefttree);
4699 : 2504 : COPY_NODE_FIELD(scan.plan.righttree);
4700 : 2504 : COPY_NODE_FIELD(scan.plan.initPlan);
4701 : 2504 : COPY_BITMAPSET_FIELD(scan.plan.extParam);
4702 : 2504 : COPY_BITMAPSET_FIELD(scan.plan.allParam);
4703 : 2504 : COPY_SCALAR_FIELD(scan.scanrelid);
4704 : 2504 : COPY_NODE_FIELD(tidrangequals);
4705 : :
4706 : 2504 : return newnode;
4707 : : }
4708 : :
4709 : : static SubqueryScan *
4710 : 14725 : _copySubqueryScan(const SubqueryScan *from)
4711 : : {
4712 : 14725 : SubqueryScan *newnode = makeNode(SubqueryScan);
4713 : :
4714 : 14725 : COPY_SCALAR_FIELD(scan.plan.disabled_nodes);
4715 : 14725 : COPY_SCALAR_FIELD(scan.plan.startup_cost);
4716 : 14725 : COPY_SCALAR_FIELD(scan.plan.total_cost);
4717 : 14725 : COPY_SCALAR_FIELD(scan.plan.plan_rows);
4718 : 14725 : COPY_SCALAR_FIELD(scan.plan.plan_width);
4719 : 14725 : COPY_SCALAR_FIELD(scan.plan.parallel_aware);
4720 : 14725 : COPY_SCALAR_FIELD(scan.plan.parallel_safe);
4721 : 14725 : COPY_SCALAR_FIELD(scan.plan.async_capable);
4722 : 14725 : COPY_SCALAR_FIELD(scan.plan.plan_node_id);
4723 : 14725 : COPY_NODE_FIELD(scan.plan.targetlist);
4724 : 14725 : COPY_NODE_FIELD(scan.plan.qual);
4725 : 14725 : COPY_NODE_FIELD(scan.plan.lefttree);
4726 : 14725 : COPY_NODE_FIELD(scan.plan.righttree);
4727 : 14725 : COPY_NODE_FIELD(scan.plan.initPlan);
4728 : 14725 : COPY_BITMAPSET_FIELD(scan.plan.extParam);
4729 : 14725 : COPY_BITMAPSET_FIELD(scan.plan.allParam);
4730 : 14725 : COPY_SCALAR_FIELD(scan.scanrelid);
4731 : 14725 : COPY_NODE_FIELD(subplan);
4732 : 14725 : COPY_SCALAR_FIELD(scanstatus);
4733 : :
4734 : 14725 : return newnode;
4735 : : }
4736 : :
4737 : : static FunctionScan *
4738 : 34042 : _copyFunctionScan(const FunctionScan *from)
4739 : : {
4740 : 34042 : FunctionScan *newnode = makeNode(FunctionScan);
4741 : :
4742 : 34042 : COPY_SCALAR_FIELD(scan.plan.disabled_nodes);
4743 : 34042 : COPY_SCALAR_FIELD(scan.plan.startup_cost);
4744 : 34042 : COPY_SCALAR_FIELD(scan.plan.total_cost);
4745 : 34042 : COPY_SCALAR_FIELD(scan.plan.plan_rows);
4746 : 34042 : COPY_SCALAR_FIELD(scan.plan.plan_width);
4747 : 34042 : COPY_SCALAR_FIELD(scan.plan.parallel_aware);
4748 : 34042 : COPY_SCALAR_FIELD(scan.plan.parallel_safe);
4749 : 34042 : COPY_SCALAR_FIELD(scan.plan.async_capable);
4750 : 34042 : COPY_SCALAR_FIELD(scan.plan.plan_node_id);
4751 : 34042 : COPY_NODE_FIELD(scan.plan.targetlist);
4752 : 34042 : COPY_NODE_FIELD(scan.plan.qual);
4753 : 34042 : COPY_NODE_FIELD(scan.plan.lefttree);
4754 : 34042 : COPY_NODE_FIELD(scan.plan.righttree);
4755 : 34042 : COPY_NODE_FIELD(scan.plan.initPlan);
4756 : 34042 : COPY_BITMAPSET_FIELD(scan.plan.extParam);
4757 : 34042 : COPY_BITMAPSET_FIELD(scan.plan.allParam);
4758 : 34042 : COPY_SCALAR_FIELD(scan.scanrelid);
4759 : 34042 : COPY_NODE_FIELD(functions);
4760 : 34042 : COPY_SCALAR_FIELD(funcordinality);
4761 : :
4762 : 34042 : return newnode;
4763 : : }
4764 : :
4765 : : static ValuesScan *
4766 : 5919 : _copyValuesScan(const ValuesScan *from)
4767 : : {
4768 : 5919 : ValuesScan *newnode = makeNode(ValuesScan);
4769 : :
4770 : 5919 : COPY_SCALAR_FIELD(scan.plan.disabled_nodes);
4771 : 5919 : COPY_SCALAR_FIELD(scan.plan.startup_cost);
4772 : 5919 : COPY_SCALAR_FIELD(scan.plan.total_cost);
4773 : 5919 : COPY_SCALAR_FIELD(scan.plan.plan_rows);
4774 : 5919 : COPY_SCALAR_FIELD(scan.plan.plan_width);
4775 : 5919 : COPY_SCALAR_FIELD(scan.plan.parallel_aware);
4776 : 5919 : COPY_SCALAR_FIELD(scan.plan.parallel_safe);
4777 : 5919 : COPY_SCALAR_FIELD(scan.plan.async_capable);
4778 : 5919 : COPY_SCALAR_FIELD(scan.plan.plan_node_id);
4779 : 5919 : COPY_NODE_FIELD(scan.plan.targetlist);
4780 : 5919 : COPY_NODE_FIELD(scan.plan.qual);
4781 : 5919 : COPY_NODE_FIELD(scan.plan.lefttree);
4782 : 5919 : COPY_NODE_FIELD(scan.plan.righttree);
4783 : 5919 : COPY_NODE_FIELD(scan.plan.initPlan);
4784 : 5919 : COPY_BITMAPSET_FIELD(scan.plan.extParam);
4785 : 5919 : COPY_BITMAPSET_FIELD(scan.plan.allParam);
4786 : 5919 : COPY_SCALAR_FIELD(scan.scanrelid);
4787 : 5919 : COPY_NODE_FIELD(values_lists);
4788 : :
4789 : 5919 : return newnode;
4790 : : }
4791 : :
4792 : : static TableFuncScan *
4793 : 488 : _copyTableFuncScan(const TableFuncScan *from)
4794 : : {
4795 : 488 : TableFuncScan *newnode = makeNode(TableFuncScan);
4796 : :
4797 : 488 : COPY_SCALAR_FIELD(scan.plan.disabled_nodes);
4798 : 488 : COPY_SCALAR_FIELD(scan.plan.startup_cost);
4799 : 488 : COPY_SCALAR_FIELD(scan.plan.total_cost);
4800 : 488 : COPY_SCALAR_FIELD(scan.plan.plan_rows);
4801 : 488 : COPY_SCALAR_FIELD(scan.plan.plan_width);
4802 : 488 : COPY_SCALAR_FIELD(scan.plan.parallel_aware);
4803 : 488 : COPY_SCALAR_FIELD(scan.plan.parallel_safe);
4804 : 488 : COPY_SCALAR_FIELD(scan.plan.async_capable);
4805 : 488 : COPY_SCALAR_FIELD(scan.plan.plan_node_id);
4806 : 488 : COPY_NODE_FIELD(scan.plan.targetlist);
4807 : 488 : COPY_NODE_FIELD(scan.plan.qual);
4808 : 488 : COPY_NODE_FIELD(scan.plan.lefttree);
4809 : 488 : COPY_NODE_FIELD(scan.plan.righttree);
4810 : 488 : COPY_NODE_FIELD(scan.plan.initPlan);
4811 : 488 : COPY_BITMAPSET_FIELD(scan.plan.extParam);
4812 : 488 : COPY_BITMAPSET_FIELD(scan.plan.allParam);
4813 : 488 : COPY_SCALAR_FIELD(scan.scanrelid);
4814 : 488 : COPY_NODE_FIELD(tablefunc);
4815 : :
4816 : 488 : return newnode;
4817 : : }
4818 : :
4819 : : static CteScan *
4820 : 2935 : _copyCteScan(const CteScan *from)
4821 : : {
4822 : 2935 : CteScan *newnode = makeNode(CteScan);
4823 : :
4824 : 2935 : COPY_SCALAR_FIELD(scan.plan.disabled_nodes);
4825 : 2935 : COPY_SCALAR_FIELD(scan.plan.startup_cost);
4826 : 2935 : COPY_SCALAR_FIELD(scan.plan.total_cost);
4827 : 2935 : COPY_SCALAR_FIELD(scan.plan.plan_rows);
4828 : 2935 : COPY_SCALAR_FIELD(scan.plan.plan_width);
4829 : 2935 : COPY_SCALAR_FIELD(scan.plan.parallel_aware);
4830 : 2935 : COPY_SCALAR_FIELD(scan.plan.parallel_safe);
4831 : 2935 : COPY_SCALAR_FIELD(scan.plan.async_capable);
4832 : 2935 : COPY_SCALAR_FIELD(scan.plan.plan_node_id);
4833 : 2935 : COPY_NODE_FIELD(scan.plan.targetlist);
4834 : 2935 : COPY_NODE_FIELD(scan.plan.qual);
4835 : 2935 : COPY_NODE_FIELD(scan.plan.lefttree);
4836 : 2935 : COPY_NODE_FIELD(scan.plan.righttree);
4837 : 2935 : COPY_NODE_FIELD(scan.plan.initPlan);
4838 : 2935 : COPY_BITMAPSET_FIELD(scan.plan.extParam);
4839 : 2935 : COPY_BITMAPSET_FIELD(scan.plan.allParam);
4840 : 2935 : COPY_SCALAR_FIELD(scan.scanrelid);
4841 : 2935 : COPY_SCALAR_FIELD(ctePlanId);
4842 : 2935 : COPY_SCALAR_FIELD(cteParam);
4843 : :
4844 : 2935 : return newnode;
4845 : : }
4846 : :
4847 : : static NamedTuplestoreScan *
4848 : 678 : _copyNamedTuplestoreScan(const NamedTuplestoreScan *from)
4849 : : {
4850 : 678 : NamedTuplestoreScan *newnode = makeNode(NamedTuplestoreScan);
4851 : :
4852 : 678 : COPY_SCALAR_FIELD(scan.plan.disabled_nodes);
4853 : 678 : COPY_SCALAR_FIELD(scan.plan.startup_cost);
4854 : 678 : COPY_SCALAR_FIELD(scan.plan.total_cost);
4855 : 678 : COPY_SCALAR_FIELD(scan.plan.plan_rows);
4856 : 678 : COPY_SCALAR_FIELD(scan.plan.plan_width);
4857 : 678 : COPY_SCALAR_FIELD(scan.plan.parallel_aware);
4858 : 678 : COPY_SCALAR_FIELD(scan.plan.parallel_safe);
4859 : 678 : COPY_SCALAR_FIELD(scan.plan.async_capable);
4860 : 678 : COPY_SCALAR_FIELD(scan.plan.plan_node_id);
4861 : 678 : COPY_NODE_FIELD(scan.plan.targetlist);
4862 : 678 : COPY_NODE_FIELD(scan.plan.qual);
4863 : 678 : COPY_NODE_FIELD(scan.plan.lefttree);
4864 : 678 : COPY_NODE_FIELD(scan.plan.righttree);
4865 : 678 : COPY_NODE_FIELD(scan.plan.initPlan);
4866 : 678 : COPY_BITMAPSET_FIELD(scan.plan.extParam);
4867 : 678 : COPY_BITMAPSET_FIELD(scan.plan.allParam);
4868 : 678 : COPY_SCALAR_FIELD(scan.scanrelid);
4869 [ + - ]: 678 : COPY_STRING_FIELD(enrname);
4870 : :
4871 : 678 : return newnode;
4872 : : }
4873 : :
4874 : : static WorkTableScan *
4875 : 573 : _copyWorkTableScan(const WorkTableScan *from)
4876 : : {
4877 : 573 : WorkTableScan *newnode = makeNode(WorkTableScan);
4878 : :
4879 : 573 : COPY_SCALAR_FIELD(scan.plan.disabled_nodes);
4880 : 573 : COPY_SCALAR_FIELD(scan.plan.startup_cost);
4881 : 573 : COPY_SCALAR_FIELD(scan.plan.total_cost);
4882 : 573 : COPY_SCALAR_FIELD(scan.plan.plan_rows);
4883 : 573 : COPY_SCALAR_FIELD(scan.plan.plan_width);
4884 : 573 : COPY_SCALAR_FIELD(scan.plan.parallel_aware);
4885 : 573 : COPY_SCALAR_FIELD(scan.plan.parallel_safe);
4886 : 573 : COPY_SCALAR_FIELD(scan.plan.async_capable);
4887 : 573 : COPY_SCALAR_FIELD(scan.plan.plan_node_id);
4888 : 573 : COPY_NODE_FIELD(scan.plan.targetlist);
4889 : 573 : COPY_NODE_FIELD(scan.plan.qual);
4890 : 573 : COPY_NODE_FIELD(scan.plan.lefttree);
4891 : 573 : COPY_NODE_FIELD(scan.plan.righttree);
4892 : 573 : COPY_NODE_FIELD(scan.plan.initPlan);
4893 : 573 : COPY_BITMAPSET_FIELD(scan.plan.extParam);
4894 : 573 : COPY_BITMAPSET_FIELD(scan.plan.allParam);
4895 : 573 : COPY_SCALAR_FIELD(scan.scanrelid);
4896 : 573 : COPY_SCALAR_FIELD(wtParam);
4897 : :
4898 : 573 : return newnode;
4899 : : }
4900 : :
4901 : : static ForeignScan *
4902 : 1165 : _copyForeignScan(const ForeignScan *from)
4903 : : {
4904 : 1165 : ForeignScan *newnode = makeNode(ForeignScan);
4905 : :
4906 : 1165 : COPY_SCALAR_FIELD(scan.plan.disabled_nodes);
4907 : 1165 : COPY_SCALAR_FIELD(scan.plan.startup_cost);
4908 : 1165 : COPY_SCALAR_FIELD(scan.plan.total_cost);
4909 : 1165 : COPY_SCALAR_FIELD(scan.plan.plan_rows);
4910 : 1165 : COPY_SCALAR_FIELD(scan.plan.plan_width);
4911 : 1165 : COPY_SCALAR_FIELD(scan.plan.parallel_aware);
4912 : 1165 : COPY_SCALAR_FIELD(scan.plan.parallel_safe);
4913 : 1165 : COPY_SCALAR_FIELD(scan.plan.async_capable);
4914 : 1165 : COPY_SCALAR_FIELD(scan.plan.plan_node_id);
4915 : 1165 : COPY_NODE_FIELD(scan.plan.targetlist);
4916 : 1165 : COPY_NODE_FIELD(scan.plan.qual);
4917 : 1165 : COPY_NODE_FIELD(scan.plan.lefttree);
4918 : 1165 : COPY_NODE_FIELD(scan.plan.righttree);
4919 : 1165 : COPY_NODE_FIELD(scan.plan.initPlan);
4920 : 1165 : COPY_BITMAPSET_FIELD(scan.plan.extParam);
4921 : 1165 : COPY_BITMAPSET_FIELD(scan.plan.allParam);
4922 : 1165 : COPY_SCALAR_FIELD(scan.scanrelid);
4923 : 1165 : COPY_SCALAR_FIELD(operation);
4924 : 1165 : COPY_SCALAR_FIELD(resultRelation);
4925 : 1165 : COPY_SCALAR_FIELD(checkAsUser);
4926 : 1165 : COPY_SCALAR_FIELD(fs_server);
4927 : 1165 : COPY_NODE_FIELD(fdw_exprs);
4928 : 1165 : COPY_NODE_FIELD(fdw_private);
4929 : 1165 : COPY_NODE_FIELD(fdw_scan_tlist);
4930 : 1165 : COPY_NODE_FIELD(fdw_recheck_quals);
4931 : 1165 : COPY_BITMAPSET_FIELD(fs_relids);
4932 : 1165 : COPY_BITMAPSET_FIELD(fs_base_relids);
4933 : 1165 : COPY_SCALAR_FIELD(fsSystemCol);
4934 : :
4935 : 1165 : return newnode;
4936 : : }
4937 : :
4938 : : static CustomScan *
4939 : 11 : _copyCustomScan(const CustomScan *from)
4940 : : {
4941 : 11 : CustomScan *newnode = makeNode(CustomScan);
4942 : :
4943 : 11 : COPY_SCALAR_FIELD(scan.plan.disabled_nodes);
4944 : 11 : COPY_SCALAR_FIELD(scan.plan.startup_cost);
4945 : 11 : COPY_SCALAR_FIELD(scan.plan.total_cost);
4946 : 11 : COPY_SCALAR_FIELD(scan.plan.plan_rows);
4947 : 11 : COPY_SCALAR_FIELD(scan.plan.plan_width);
4948 : 11 : COPY_SCALAR_FIELD(scan.plan.parallel_aware);
4949 : 11 : COPY_SCALAR_FIELD(scan.plan.parallel_safe);
4950 : 11 : COPY_SCALAR_FIELD(scan.plan.async_capable);
4951 : 11 : COPY_SCALAR_FIELD(scan.plan.plan_node_id);
4952 : 11 : COPY_NODE_FIELD(scan.plan.targetlist);
4953 : 11 : COPY_NODE_FIELD(scan.plan.qual);
4954 : 11 : COPY_NODE_FIELD(scan.plan.lefttree);
4955 : 11 : COPY_NODE_FIELD(scan.plan.righttree);
4956 : 11 : COPY_NODE_FIELD(scan.plan.initPlan);
4957 : 11 : COPY_BITMAPSET_FIELD(scan.plan.extParam);
4958 : 11 : COPY_BITMAPSET_FIELD(scan.plan.allParam);
4959 : 11 : COPY_SCALAR_FIELD(scan.scanrelid);
4960 : 11 : COPY_SCALAR_FIELD(flags);
4961 : 11 : COPY_NODE_FIELD(custom_plans);
4962 : 11 : COPY_NODE_FIELD(custom_exprs);
4963 : 11 : COPY_NODE_FIELD(custom_private);
4964 : 11 : COPY_NODE_FIELD(custom_scan_tlist);
4965 : 11 : COPY_BITMAPSET_FIELD(custom_relids);
4966 : 11 : COPY_SCALAR_FIELD(methods);
4967 : :
4968 : 11 : return newnode;
4969 : : }
4970 : :
4971 : : static NestLoop *
4972 : 67200 : _copyNestLoop(const NestLoop *from)
4973 : : {
4974 : 67200 : NestLoop *newnode = makeNode(NestLoop);
4975 : :
4976 : 67200 : COPY_SCALAR_FIELD(join.plan.disabled_nodes);
4977 : 67200 : COPY_SCALAR_FIELD(join.plan.startup_cost);
4978 : 67200 : COPY_SCALAR_FIELD(join.plan.total_cost);
4979 : 67200 : COPY_SCALAR_FIELD(join.plan.plan_rows);
4980 : 67200 : COPY_SCALAR_FIELD(join.plan.plan_width);
4981 : 67200 : COPY_SCALAR_FIELD(join.plan.parallel_aware);
4982 : 67200 : COPY_SCALAR_FIELD(join.plan.parallel_safe);
4983 : 67200 : COPY_SCALAR_FIELD(join.plan.async_capable);
4984 : 67200 : COPY_SCALAR_FIELD(join.plan.plan_node_id);
4985 : 67200 : COPY_NODE_FIELD(join.plan.targetlist);
4986 : 67200 : COPY_NODE_FIELD(join.plan.qual);
4987 : 67200 : COPY_NODE_FIELD(join.plan.lefttree);
4988 : 67200 : COPY_NODE_FIELD(join.plan.righttree);
4989 : 67200 : COPY_NODE_FIELD(join.plan.initPlan);
4990 : 67200 : COPY_BITMAPSET_FIELD(join.plan.extParam);
4991 : 67200 : COPY_BITMAPSET_FIELD(join.plan.allParam);
4992 : 67200 : COPY_SCALAR_FIELD(join.jointype);
4993 : 67200 : COPY_SCALAR_FIELD(join.inner_unique);
4994 : 67200 : COPY_NODE_FIELD(join.joinqual);
4995 : 67200 : COPY_BITMAPSET_FIELD(join.ojrelids);
4996 : 67200 : COPY_NODE_FIELD(nestParams);
4997 : :
4998 : 67200 : return newnode;
4999 : : }
5000 : :
5001 : : static NestLoopParam *
5002 : 42307 : _copyNestLoopParam(const NestLoopParam *from)
5003 : : {
5004 : 42307 : NestLoopParam *newnode = makeNode(NestLoopParam);
5005 : :
5006 : 42307 : COPY_SCALAR_FIELD(paramno);
5007 : 42307 : COPY_NODE_FIELD(paramval);
5008 : :
5009 : 42307 : return newnode;
5010 : : }
5011 : :
5012 : : static MergeJoin *
5013 : 6068 : _copyMergeJoin(const MergeJoin *from)
5014 : : {
5015 : 6068 : MergeJoin *newnode = makeNode(MergeJoin);
5016 : :
5017 : 6068 : COPY_SCALAR_FIELD(join.plan.disabled_nodes);
5018 : 6068 : COPY_SCALAR_FIELD(join.plan.startup_cost);
5019 : 6068 : COPY_SCALAR_FIELD(join.plan.total_cost);
5020 : 6068 : COPY_SCALAR_FIELD(join.plan.plan_rows);
5021 : 6068 : COPY_SCALAR_FIELD(join.plan.plan_width);
5022 : 6068 : COPY_SCALAR_FIELD(join.plan.parallel_aware);
5023 : 6068 : COPY_SCALAR_FIELD(join.plan.parallel_safe);
5024 : 6068 : COPY_SCALAR_FIELD(join.plan.async_capable);
5025 : 6068 : COPY_SCALAR_FIELD(join.plan.plan_node_id);
5026 : 6068 : COPY_NODE_FIELD(join.plan.targetlist);
5027 : 6068 : COPY_NODE_FIELD(join.plan.qual);
5028 : 6068 : COPY_NODE_FIELD(join.plan.lefttree);
5029 : 6068 : COPY_NODE_FIELD(join.plan.righttree);
5030 : 6068 : COPY_NODE_FIELD(join.plan.initPlan);
5031 : 6068 : COPY_BITMAPSET_FIELD(join.plan.extParam);
5032 : 6068 : COPY_BITMAPSET_FIELD(join.plan.allParam);
5033 : 6068 : COPY_SCALAR_FIELD(join.jointype);
5034 : 6068 : COPY_SCALAR_FIELD(join.inner_unique);
5035 : 6068 : COPY_NODE_FIELD(join.joinqual);
5036 : 6068 : COPY_BITMAPSET_FIELD(join.ojrelids);
5037 : 6068 : COPY_SCALAR_FIELD(skip_mark_restore);
5038 : 6068 : COPY_NODE_FIELD(mergeclauses);
5039 [ + + ]: 6068 : COPY_POINTER_FIELD(mergeFamilies, list_length(from->mergeclauses) * sizeof(Oid));
5040 [ + + ]: 6068 : COPY_POINTER_FIELD(mergeCollations, list_length(from->mergeclauses) * sizeof(Oid));
5041 [ + + ]: 6068 : COPY_POINTER_FIELD(mergeReversals, list_length(from->mergeclauses) * sizeof(bool));
5042 [ + + ]: 6068 : COPY_POINTER_FIELD(mergeNullsFirst, list_length(from->mergeclauses) * sizeof(bool));
5043 : :
5044 : 6068 : return newnode;
5045 : : }
5046 : :
5047 : : static HashJoin *
5048 : 32231 : _copyHashJoin(const HashJoin *from)
5049 : : {
5050 : 32231 : HashJoin *newnode = makeNode(HashJoin);
5051 : :
5052 : 32231 : COPY_SCALAR_FIELD(join.plan.disabled_nodes);
5053 : 32231 : COPY_SCALAR_FIELD(join.plan.startup_cost);
5054 : 32231 : COPY_SCALAR_FIELD(join.plan.total_cost);
5055 : 32231 : COPY_SCALAR_FIELD(join.plan.plan_rows);
5056 : 32231 : COPY_SCALAR_FIELD(join.plan.plan_width);
5057 : 32231 : COPY_SCALAR_FIELD(join.plan.parallel_aware);
5058 : 32231 : COPY_SCALAR_FIELD(join.plan.parallel_safe);
5059 : 32231 : COPY_SCALAR_FIELD(join.plan.async_capable);
5060 : 32231 : COPY_SCALAR_FIELD(join.plan.plan_node_id);
5061 : 32231 : COPY_NODE_FIELD(join.plan.targetlist);
5062 : 32231 : COPY_NODE_FIELD(join.plan.qual);
5063 : 32231 : COPY_NODE_FIELD(join.plan.lefttree);
5064 : 32231 : COPY_NODE_FIELD(join.plan.righttree);
5065 : 32231 : COPY_NODE_FIELD(join.plan.initPlan);
5066 : 32231 : COPY_BITMAPSET_FIELD(join.plan.extParam);
5067 : 32231 : COPY_BITMAPSET_FIELD(join.plan.allParam);
5068 : 32231 : COPY_SCALAR_FIELD(join.jointype);
5069 : 32231 : COPY_SCALAR_FIELD(join.inner_unique);
5070 : 32231 : COPY_NODE_FIELD(join.joinqual);
5071 : 32231 : COPY_BITMAPSET_FIELD(join.ojrelids);
5072 : 32231 : COPY_NODE_FIELD(hashclauses);
5073 : 32231 : COPY_NODE_FIELD(hashoperators);
5074 : 32231 : COPY_NODE_FIELD(hashcollations);
5075 : 32231 : COPY_NODE_FIELD(hashkeys);
5076 : :
5077 : 32231 : return newnode;
5078 : : }
5079 : :
5080 : : static Material *
5081 : 3067 : _copyMaterial(const Material *from)
5082 : : {
5083 : 3067 : Material *newnode = makeNode(Material);
5084 : :
5085 : 3067 : COPY_SCALAR_FIELD(plan.disabled_nodes);
5086 : 3067 : COPY_SCALAR_FIELD(plan.startup_cost);
5087 : 3067 : COPY_SCALAR_FIELD(plan.total_cost);
5088 : 3067 : COPY_SCALAR_FIELD(plan.plan_rows);
5089 : 3067 : COPY_SCALAR_FIELD(plan.plan_width);
5090 : 3067 : COPY_SCALAR_FIELD(plan.parallel_aware);
5091 : 3067 : COPY_SCALAR_FIELD(plan.parallel_safe);
5092 : 3067 : COPY_SCALAR_FIELD(plan.async_capable);
5093 : 3067 : COPY_SCALAR_FIELD(plan.plan_node_id);
5094 : 3067 : COPY_NODE_FIELD(plan.targetlist);
5095 : 3067 : COPY_NODE_FIELD(plan.qual);
5096 : 3067 : COPY_NODE_FIELD(plan.lefttree);
5097 : 3067 : COPY_NODE_FIELD(plan.righttree);
5098 : 3067 : COPY_NODE_FIELD(plan.initPlan);
5099 : 3067 : COPY_BITMAPSET_FIELD(plan.extParam);
5100 : 3067 : COPY_BITMAPSET_FIELD(plan.allParam);
5101 : :
5102 : 3067 : return newnode;
5103 : : }
5104 : :
5105 : : static Memoize *
5106 : 1793 : _copyMemoize(const Memoize *from)
5107 : : {
5108 : 1793 : Memoize *newnode = makeNode(Memoize);
5109 : :
5110 : 1793 : COPY_SCALAR_FIELD(plan.disabled_nodes);
5111 : 1793 : COPY_SCALAR_FIELD(plan.startup_cost);
5112 : 1793 : COPY_SCALAR_FIELD(plan.total_cost);
5113 : 1793 : COPY_SCALAR_FIELD(plan.plan_rows);
5114 : 1793 : COPY_SCALAR_FIELD(plan.plan_width);
5115 : 1793 : COPY_SCALAR_FIELD(plan.parallel_aware);
5116 : 1793 : COPY_SCALAR_FIELD(plan.parallel_safe);
5117 : 1793 : COPY_SCALAR_FIELD(plan.async_capable);
5118 : 1793 : COPY_SCALAR_FIELD(plan.plan_node_id);
5119 : 1793 : COPY_NODE_FIELD(plan.targetlist);
5120 : 1793 : COPY_NODE_FIELD(plan.qual);
5121 : 1793 : COPY_NODE_FIELD(plan.lefttree);
5122 : 1793 : COPY_NODE_FIELD(plan.righttree);
5123 : 1793 : COPY_NODE_FIELD(plan.initPlan);
5124 : 1793 : COPY_BITMAPSET_FIELD(plan.extParam);
5125 : 1793 : COPY_BITMAPSET_FIELD(plan.allParam);
5126 : 1793 : COPY_SCALAR_FIELD(numKeys);
5127 [ + - ]: 1793 : COPY_POINTER_FIELD(hashOperators, from->numKeys * sizeof(Oid));
5128 [ + - ]: 1793 : COPY_POINTER_FIELD(collations, from->numKeys * sizeof(Oid));
5129 : 1793 : COPY_NODE_FIELD(param_exprs);
5130 : 1793 : COPY_SCALAR_FIELD(singlerow);
5131 : 1793 : COPY_SCALAR_FIELD(binary_mode);
5132 : 1793 : COPY_SCALAR_FIELD(est_entries);
5133 : 1793 : COPY_BITMAPSET_FIELD(keyparamids);
5134 : 1793 : COPY_SCALAR_FIELD(est_calls);
5135 : 1793 : COPY_SCALAR_FIELD(est_unique_keys);
5136 : 1793 : COPY_SCALAR_FIELD(est_hit_ratio);
5137 : :
5138 : 1793 : return newnode;
5139 : : }
5140 : :
5141 : : static Sort *
5142 : 57105 : _copySort(const Sort *from)
5143 : : {
5144 : 57105 : Sort *newnode = makeNode(Sort);
5145 : :
5146 : 57105 : COPY_SCALAR_FIELD(plan.disabled_nodes);
5147 : 57105 : COPY_SCALAR_FIELD(plan.startup_cost);
5148 : 57105 : COPY_SCALAR_FIELD(plan.total_cost);
5149 : 57105 : COPY_SCALAR_FIELD(plan.plan_rows);
5150 : 57105 : COPY_SCALAR_FIELD(plan.plan_width);
5151 : 57105 : COPY_SCALAR_FIELD(plan.parallel_aware);
5152 : 57105 : COPY_SCALAR_FIELD(plan.parallel_safe);
5153 : 57105 : COPY_SCALAR_FIELD(plan.async_capable);
5154 : 57105 : COPY_SCALAR_FIELD(plan.plan_node_id);
5155 : 57105 : COPY_NODE_FIELD(plan.targetlist);
5156 : 57105 : COPY_NODE_FIELD(plan.qual);
5157 : 57105 : COPY_NODE_FIELD(plan.lefttree);
5158 : 57105 : COPY_NODE_FIELD(plan.righttree);
5159 : 57105 : COPY_NODE_FIELD(plan.initPlan);
5160 : 57105 : COPY_BITMAPSET_FIELD(plan.extParam);
5161 : 57105 : COPY_BITMAPSET_FIELD(plan.allParam);
5162 : 57105 : COPY_SCALAR_FIELD(numCols);
5163 [ + - ]: 57105 : COPY_POINTER_FIELD(sortColIdx, from->numCols * sizeof(AttrNumber));
5164 [ + - ]: 57105 : COPY_POINTER_FIELD(sortOperators, from->numCols * sizeof(Oid));
5165 [ + - ]: 57105 : COPY_POINTER_FIELD(collations, from->numCols * sizeof(Oid));
5166 [ + - ]: 57105 : COPY_POINTER_FIELD(nullsFirst, from->numCols * sizeof(bool));
5167 : :
5168 : 57105 : return newnode;
5169 : : }
5170 : :
5171 : : static IncrementalSort *
5172 : 773 : _copyIncrementalSort(const IncrementalSort *from)
5173 : : {
5174 : 773 : IncrementalSort *newnode = makeNode(IncrementalSort);
5175 : :
5176 : 773 : COPY_SCALAR_FIELD(sort.plan.disabled_nodes);
5177 : 773 : COPY_SCALAR_FIELD(sort.plan.startup_cost);
5178 : 773 : COPY_SCALAR_FIELD(sort.plan.total_cost);
5179 : 773 : COPY_SCALAR_FIELD(sort.plan.plan_rows);
5180 : 773 : COPY_SCALAR_FIELD(sort.plan.plan_width);
5181 : 773 : COPY_SCALAR_FIELD(sort.plan.parallel_aware);
5182 : 773 : COPY_SCALAR_FIELD(sort.plan.parallel_safe);
5183 : 773 : COPY_SCALAR_FIELD(sort.plan.async_capable);
5184 : 773 : COPY_SCALAR_FIELD(sort.plan.plan_node_id);
5185 : 773 : COPY_NODE_FIELD(sort.plan.targetlist);
5186 : 773 : COPY_NODE_FIELD(sort.plan.qual);
5187 : 773 : COPY_NODE_FIELD(sort.plan.lefttree);
5188 : 773 : COPY_NODE_FIELD(sort.plan.righttree);
5189 : 773 : COPY_NODE_FIELD(sort.plan.initPlan);
5190 : 773 : COPY_BITMAPSET_FIELD(sort.plan.extParam);
5191 : 773 : COPY_BITMAPSET_FIELD(sort.plan.allParam);
5192 : 773 : COPY_SCALAR_FIELD(sort.numCols);
5193 [ + - ]: 773 : COPY_POINTER_FIELD(sort.sortColIdx, from->sort.numCols * sizeof(AttrNumber));
5194 [ + - ]: 773 : COPY_POINTER_FIELD(sort.sortOperators, from->sort.numCols * sizeof(Oid));
5195 [ + - ]: 773 : COPY_POINTER_FIELD(sort.collations, from->sort.numCols * sizeof(Oid));
5196 [ + - ]: 773 : COPY_POINTER_FIELD(sort.nullsFirst, from->sort.numCols * sizeof(bool));
5197 : 773 : COPY_SCALAR_FIELD(nPresortedCols);
5198 : 773 : COPY_SCALAR_FIELD(numGroups);
5199 : :
5200 : 773 : return newnode;
5201 : : }
5202 : :
5203 : : static Group *
5204 : 186 : _copyGroup(const Group *from)
5205 : : {
5206 : 186 : Group *newnode = makeNode(Group);
5207 : :
5208 : 186 : COPY_SCALAR_FIELD(plan.disabled_nodes);
5209 : 186 : COPY_SCALAR_FIELD(plan.startup_cost);
5210 : 186 : COPY_SCALAR_FIELD(plan.total_cost);
5211 : 186 : COPY_SCALAR_FIELD(plan.plan_rows);
5212 : 186 : COPY_SCALAR_FIELD(plan.plan_width);
5213 : 186 : COPY_SCALAR_FIELD(plan.parallel_aware);
5214 : 186 : COPY_SCALAR_FIELD(plan.parallel_safe);
5215 : 186 : COPY_SCALAR_FIELD(plan.async_capable);
5216 : 186 : COPY_SCALAR_FIELD(plan.plan_node_id);
5217 : 186 : COPY_NODE_FIELD(plan.targetlist);
5218 : 186 : COPY_NODE_FIELD(plan.qual);
5219 : 186 : COPY_NODE_FIELD(plan.lefttree);
5220 : 186 : COPY_NODE_FIELD(plan.righttree);
5221 : 186 : COPY_NODE_FIELD(plan.initPlan);
5222 : 186 : COPY_BITMAPSET_FIELD(plan.extParam);
5223 : 186 : COPY_BITMAPSET_FIELD(plan.allParam);
5224 : 186 : COPY_SCALAR_FIELD(numCols);
5225 [ + + ]: 186 : COPY_POINTER_FIELD(grpColIdx, from->numCols * sizeof(AttrNumber));
5226 [ + + ]: 186 : COPY_POINTER_FIELD(grpOperators, from->numCols * sizeof(Oid));
5227 [ + + ]: 186 : COPY_POINTER_FIELD(grpCollations, from->numCols * sizeof(Oid));
5228 : :
5229 : 186 : return newnode;
5230 : : }
5231 : :
5232 : : static Agg *
5233 : 35656 : _copyAgg(const Agg *from)
5234 : : {
5235 : 35656 : Agg *newnode = makeNode(Agg);
5236 : :
5237 : 35656 : COPY_SCALAR_FIELD(plan.disabled_nodes);
5238 : 35656 : COPY_SCALAR_FIELD(plan.startup_cost);
5239 : 35656 : COPY_SCALAR_FIELD(plan.total_cost);
5240 : 35656 : COPY_SCALAR_FIELD(plan.plan_rows);
5241 : 35656 : COPY_SCALAR_FIELD(plan.plan_width);
5242 : 35656 : COPY_SCALAR_FIELD(plan.parallel_aware);
5243 : 35656 : COPY_SCALAR_FIELD(plan.parallel_safe);
5244 : 35656 : COPY_SCALAR_FIELD(plan.async_capable);
5245 : 35656 : COPY_SCALAR_FIELD(plan.plan_node_id);
5246 : 35656 : COPY_NODE_FIELD(plan.targetlist);
5247 : 35656 : COPY_NODE_FIELD(plan.qual);
5248 : 35656 : COPY_NODE_FIELD(plan.lefttree);
5249 : 35656 : COPY_NODE_FIELD(plan.righttree);
5250 : 35656 : COPY_NODE_FIELD(plan.initPlan);
5251 : 35656 : COPY_BITMAPSET_FIELD(plan.extParam);
5252 : 35656 : COPY_BITMAPSET_FIELD(plan.allParam);
5253 : 35656 : COPY_SCALAR_FIELD(aggstrategy);
5254 : 35656 : COPY_SCALAR_FIELD(aggsplit);
5255 : 35656 : COPY_SCALAR_FIELD(numCols);
5256 [ + + ]: 35656 : COPY_POINTER_FIELD(grpColIdx, from->numCols * sizeof(AttrNumber));
5257 [ + + ]: 35656 : COPY_POINTER_FIELD(grpOperators, from->numCols * sizeof(Oid));
5258 [ + + ]: 35656 : COPY_POINTER_FIELD(grpCollations, from->numCols * sizeof(Oid));
5259 : 35656 : COPY_SCALAR_FIELD(numGroups);
5260 : 35656 : COPY_SCALAR_FIELD(transitionSpace);
5261 : 35656 : COPY_BITMAPSET_FIELD(aggParams);
5262 : 35656 : COPY_NODE_FIELD(groupingSets);
5263 : 35656 : COPY_NODE_FIELD(chain);
5264 : :
5265 : 35656 : return newnode;
5266 : : }
5267 : :
5268 : : static WindowAgg *
5269 : 2048 : _copyWindowAgg(const WindowAgg *from)
5270 : : {
5271 : 2048 : WindowAgg *newnode = makeNode(WindowAgg);
5272 : :
5273 : 2048 : COPY_SCALAR_FIELD(plan.disabled_nodes);
5274 : 2048 : COPY_SCALAR_FIELD(plan.startup_cost);
5275 : 2048 : COPY_SCALAR_FIELD(plan.total_cost);
5276 : 2048 : COPY_SCALAR_FIELD(plan.plan_rows);
5277 : 2048 : COPY_SCALAR_FIELD(plan.plan_width);
5278 : 2048 : COPY_SCALAR_FIELD(plan.parallel_aware);
5279 : 2048 : COPY_SCALAR_FIELD(plan.parallel_safe);
5280 : 2048 : COPY_SCALAR_FIELD(plan.async_capable);
5281 : 2048 : COPY_SCALAR_FIELD(plan.plan_node_id);
5282 : 2048 : COPY_NODE_FIELD(plan.targetlist);
5283 : 2048 : COPY_NODE_FIELD(plan.qual);
5284 : 2048 : COPY_NODE_FIELD(plan.lefttree);
5285 : 2048 : COPY_NODE_FIELD(plan.righttree);
5286 : 2048 : COPY_NODE_FIELD(plan.initPlan);
5287 : 2048 : COPY_BITMAPSET_FIELD(plan.extParam);
5288 : 2048 : COPY_BITMAPSET_FIELD(plan.allParam);
5289 [ + - ]: 2048 : COPY_STRING_FIELD(winname);
5290 : 2048 : COPY_SCALAR_FIELD(winref);
5291 : 2048 : COPY_SCALAR_FIELD(partNumCols);
5292 [ + + ]: 2048 : COPY_POINTER_FIELD(partColIdx, from->partNumCols * sizeof(AttrNumber));
5293 [ + + ]: 2048 : COPY_POINTER_FIELD(partOperators, from->partNumCols * sizeof(Oid));
5294 [ + + ]: 2048 : COPY_POINTER_FIELD(partCollations, from->partNumCols * sizeof(Oid));
5295 : 2048 : COPY_SCALAR_FIELD(ordNumCols);
5296 [ + + ]: 2048 : COPY_POINTER_FIELD(ordColIdx, from->ordNumCols * sizeof(AttrNumber));
5297 [ + + ]: 2048 : COPY_POINTER_FIELD(ordOperators, from->ordNumCols * sizeof(Oid));
5298 [ + + ]: 2048 : COPY_POINTER_FIELD(ordCollations, from->ordNumCols * sizeof(Oid));
5299 : 2048 : COPY_SCALAR_FIELD(frameOptions);
5300 : 2048 : COPY_NODE_FIELD(startOffset);
5301 : 2048 : COPY_NODE_FIELD(endOffset);
5302 : 2048 : COPY_NODE_FIELD(runCondition);
5303 : 2048 : COPY_NODE_FIELD(runConditionOrig);
5304 : 2048 : COPY_SCALAR_FIELD(startInRangeFunc);
5305 : 2048 : COPY_SCALAR_FIELD(endInRangeFunc);
5306 : 2048 : COPY_SCALAR_FIELD(inRangeColl);
5307 : 2048 : COPY_SCALAR_FIELD(inRangeAsc);
5308 : 2048 : COPY_SCALAR_FIELD(inRangeNullsFirst);
5309 : 2048 : COPY_SCALAR_FIELD(topWindow);
5310 : :
5311 : 2048 : return newnode;
5312 : : }
5313 : :
5314 : : static Unique *
5315 : 3523 : _copyUnique(const Unique *from)
5316 : : {
5317 : 3523 : Unique *newnode = makeNode(Unique);
5318 : :
5319 : 3523 : COPY_SCALAR_FIELD(plan.disabled_nodes);
5320 : 3523 : COPY_SCALAR_FIELD(plan.startup_cost);
5321 : 3523 : COPY_SCALAR_FIELD(plan.total_cost);
5322 : 3523 : COPY_SCALAR_FIELD(plan.plan_rows);
5323 : 3523 : COPY_SCALAR_FIELD(plan.plan_width);
5324 : 3523 : COPY_SCALAR_FIELD(plan.parallel_aware);
5325 : 3523 : COPY_SCALAR_FIELD(plan.parallel_safe);
5326 : 3523 : COPY_SCALAR_FIELD(plan.async_capable);
5327 : 3523 : COPY_SCALAR_FIELD(plan.plan_node_id);
5328 : 3523 : COPY_NODE_FIELD(plan.targetlist);
5329 : 3523 : COPY_NODE_FIELD(plan.qual);
5330 : 3523 : COPY_NODE_FIELD(plan.lefttree);
5331 : 3523 : COPY_NODE_FIELD(plan.righttree);
5332 : 3523 : COPY_NODE_FIELD(plan.initPlan);
5333 : 3523 : COPY_BITMAPSET_FIELD(plan.extParam);
5334 : 3523 : COPY_BITMAPSET_FIELD(plan.allParam);
5335 : 3523 : COPY_SCALAR_FIELD(numCols);
5336 [ + + ]: 3523 : COPY_POINTER_FIELD(uniqColIdx, from->numCols * sizeof(AttrNumber));
5337 [ + + ]: 3523 : COPY_POINTER_FIELD(uniqOperators, from->numCols * sizeof(Oid));
5338 [ + + ]: 3523 : COPY_POINTER_FIELD(uniqCollations, from->numCols * sizeof(Oid));
5339 : :
5340 : 3523 : return newnode;
5341 : : }
5342 : :
5343 : : static Gather *
5344 : 832 : _copyGather(const Gather *from)
5345 : : {
5346 : 832 : Gather *newnode = makeNode(Gather);
5347 : :
5348 : 832 : COPY_SCALAR_FIELD(plan.disabled_nodes);
5349 : 832 : COPY_SCALAR_FIELD(plan.startup_cost);
5350 : 832 : COPY_SCALAR_FIELD(plan.total_cost);
5351 : 832 : COPY_SCALAR_FIELD(plan.plan_rows);
5352 : 832 : COPY_SCALAR_FIELD(plan.plan_width);
5353 : 832 : COPY_SCALAR_FIELD(plan.parallel_aware);
5354 : 832 : COPY_SCALAR_FIELD(plan.parallel_safe);
5355 : 832 : COPY_SCALAR_FIELD(plan.async_capable);
5356 : 832 : COPY_SCALAR_FIELD(plan.plan_node_id);
5357 : 832 : COPY_NODE_FIELD(plan.targetlist);
5358 : 832 : COPY_NODE_FIELD(plan.qual);
5359 : 832 : COPY_NODE_FIELD(plan.lefttree);
5360 : 832 : COPY_NODE_FIELD(plan.righttree);
5361 : 832 : COPY_NODE_FIELD(plan.initPlan);
5362 : 832 : COPY_BITMAPSET_FIELD(plan.extParam);
5363 : 832 : COPY_BITMAPSET_FIELD(plan.allParam);
5364 : 832 : COPY_SCALAR_FIELD(num_workers);
5365 : 832 : COPY_SCALAR_FIELD(rescan_param);
5366 : 832 : COPY_SCALAR_FIELD(single_copy);
5367 : 832 : COPY_SCALAR_FIELD(invisible);
5368 : 832 : COPY_BITMAPSET_FIELD(initParam);
5369 : :
5370 : 832 : return newnode;
5371 : : }
5372 : :
5373 : : static GatherMerge *
5374 : 264 : _copyGatherMerge(const GatherMerge *from)
5375 : : {
5376 : 264 : GatherMerge *newnode = makeNode(GatherMerge);
5377 : :
5378 : 264 : COPY_SCALAR_FIELD(plan.disabled_nodes);
5379 : 264 : COPY_SCALAR_FIELD(plan.startup_cost);
5380 : 264 : COPY_SCALAR_FIELD(plan.total_cost);
5381 : 264 : COPY_SCALAR_FIELD(plan.plan_rows);
5382 : 264 : COPY_SCALAR_FIELD(plan.plan_width);
5383 : 264 : COPY_SCALAR_FIELD(plan.parallel_aware);
5384 : 264 : COPY_SCALAR_FIELD(plan.parallel_safe);
5385 : 264 : COPY_SCALAR_FIELD(plan.async_capable);
5386 : 264 : COPY_SCALAR_FIELD(plan.plan_node_id);
5387 : 264 : COPY_NODE_FIELD(plan.targetlist);
5388 : 264 : COPY_NODE_FIELD(plan.qual);
5389 : 264 : COPY_NODE_FIELD(plan.lefttree);
5390 : 264 : COPY_NODE_FIELD(plan.righttree);
5391 : 264 : COPY_NODE_FIELD(plan.initPlan);
5392 : 264 : COPY_BITMAPSET_FIELD(plan.extParam);
5393 : 264 : COPY_BITMAPSET_FIELD(plan.allParam);
5394 : 264 : COPY_SCALAR_FIELD(num_workers);
5395 : 264 : COPY_SCALAR_FIELD(rescan_param);
5396 : 264 : COPY_SCALAR_FIELD(numCols);
5397 [ + - ]: 264 : COPY_POINTER_FIELD(sortColIdx, from->numCols * sizeof(AttrNumber));
5398 [ + - ]: 264 : COPY_POINTER_FIELD(sortOperators, from->numCols * sizeof(Oid));
5399 [ + - ]: 264 : COPY_POINTER_FIELD(collations, from->numCols * sizeof(Oid));
5400 [ + - ]: 264 : COPY_POINTER_FIELD(nullsFirst, from->numCols * sizeof(bool));
5401 : 264 : COPY_BITMAPSET_FIELD(initParam);
5402 : :
5403 : 264 : return newnode;
5404 : : }
5405 : :
5406 : : static Hash *
5407 : 32231 : _copyHash(const Hash *from)
5408 : : {
5409 : 32231 : Hash *newnode = makeNode(Hash);
5410 : :
5411 : 32231 : COPY_SCALAR_FIELD(plan.disabled_nodes);
5412 : 32231 : COPY_SCALAR_FIELD(plan.startup_cost);
5413 : 32231 : COPY_SCALAR_FIELD(plan.total_cost);
5414 : 32231 : COPY_SCALAR_FIELD(plan.plan_rows);
5415 : 32231 : COPY_SCALAR_FIELD(plan.plan_width);
5416 : 32231 : COPY_SCALAR_FIELD(plan.parallel_aware);
5417 : 32231 : COPY_SCALAR_FIELD(plan.parallel_safe);
5418 : 32231 : COPY_SCALAR_FIELD(plan.async_capable);
5419 : 32231 : COPY_SCALAR_FIELD(plan.plan_node_id);
5420 : 32231 : COPY_NODE_FIELD(plan.targetlist);
5421 : 32231 : COPY_NODE_FIELD(plan.qual);
5422 : 32231 : COPY_NODE_FIELD(plan.lefttree);
5423 : 32231 : COPY_NODE_FIELD(plan.righttree);
5424 : 32231 : COPY_NODE_FIELD(plan.initPlan);
5425 : 32231 : COPY_BITMAPSET_FIELD(plan.extParam);
5426 : 32231 : COPY_BITMAPSET_FIELD(plan.allParam);
5427 : 32231 : COPY_NODE_FIELD(hashkeys);
5428 : 32231 : COPY_SCALAR_FIELD(skewTable);
5429 : 32231 : COPY_SCALAR_FIELD(skewColumn);
5430 : 32231 : COPY_SCALAR_FIELD(skewInherit);
5431 : 32231 : COPY_SCALAR_FIELD(rows_total);
5432 : :
5433 : 32231 : return newnode;
5434 : : }
5435 : :
5436 : : static SetOp *
5437 : 563 : _copySetOp(const SetOp *from)
5438 : : {
5439 : 563 : SetOp *newnode = makeNode(SetOp);
5440 : :
5441 : 563 : COPY_SCALAR_FIELD(plan.disabled_nodes);
5442 : 563 : COPY_SCALAR_FIELD(plan.startup_cost);
5443 : 563 : COPY_SCALAR_FIELD(plan.total_cost);
5444 : 563 : COPY_SCALAR_FIELD(plan.plan_rows);
5445 : 563 : COPY_SCALAR_FIELD(plan.plan_width);
5446 : 563 : COPY_SCALAR_FIELD(plan.parallel_aware);
5447 : 563 : COPY_SCALAR_FIELD(plan.parallel_safe);
5448 : 563 : COPY_SCALAR_FIELD(plan.async_capable);
5449 : 563 : COPY_SCALAR_FIELD(plan.plan_node_id);
5450 : 563 : COPY_NODE_FIELD(plan.targetlist);
5451 : 563 : COPY_NODE_FIELD(plan.qual);
5452 : 563 : COPY_NODE_FIELD(plan.lefttree);
5453 : 563 : COPY_NODE_FIELD(plan.righttree);
5454 : 563 : COPY_NODE_FIELD(plan.initPlan);
5455 : 563 : COPY_BITMAPSET_FIELD(plan.extParam);
5456 : 563 : COPY_BITMAPSET_FIELD(plan.allParam);
5457 : 563 : COPY_SCALAR_FIELD(cmd);
5458 : 563 : COPY_SCALAR_FIELD(strategy);
5459 : 563 : COPY_SCALAR_FIELD(numCols);
5460 [ + + ]: 563 : COPY_POINTER_FIELD(cmpColIdx, from->numCols * sizeof(AttrNumber));
5461 [ + + ]: 563 : COPY_POINTER_FIELD(cmpOperators, from->numCols * sizeof(Oid));
5462 [ + + ]: 563 : COPY_POINTER_FIELD(cmpCollations, from->numCols * sizeof(Oid));
5463 [ + + ]: 563 : COPY_POINTER_FIELD(cmpNullsFirst, from->numCols * sizeof(bool));
5464 : 563 : COPY_SCALAR_FIELD(numGroups);
5465 : :
5466 : 563 : return newnode;
5467 : : }
5468 : :
5469 : : static LockRows *
5470 : 8285 : _copyLockRows(const LockRows *from)
5471 : : {
5472 : 8285 : LockRows *newnode = makeNode(LockRows);
5473 : :
5474 : 8285 : COPY_SCALAR_FIELD(plan.disabled_nodes);
5475 : 8285 : COPY_SCALAR_FIELD(plan.startup_cost);
5476 : 8285 : COPY_SCALAR_FIELD(plan.total_cost);
5477 : 8285 : COPY_SCALAR_FIELD(plan.plan_rows);
5478 : 8285 : COPY_SCALAR_FIELD(plan.plan_width);
5479 : 8285 : COPY_SCALAR_FIELD(plan.parallel_aware);
5480 : 8285 : COPY_SCALAR_FIELD(plan.parallel_safe);
5481 : 8285 : COPY_SCALAR_FIELD(plan.async_capable);
5482 : 8285 : COPY_SCALAR_FIELD(plan.plan_node_id);
5483 : 8285 : COPY_NODE_FIELD(plan.targetlist);
5484 : 8285 : COPY_NODE_FIELD(plan.qual);
5485 : 8285 : COPY_NODE_FIELD(plan.lefttree);
5486 : 8285 : COPY_NODE_FIELD(plan.righttree);
5487 : 8285 : COPY_NODE_FIELD(plan.initPlan);
5488 : 8285 : COPY_BITMAPSET_FIELD(plan.extParam);
5489 : 8285 : COPY_BITMAPSET_FIELD(plan.allParam);
5490 : 8285 : COPY_NODE_FIELD(rowMarks);
5491 : 8285 : COPY_SCALAR_FIELD(epqParam);
5492 : :
5493 : 8285 : return newnode;
5494 : : }
5495 : :
5496 : : static Limit *
5497 : 3410 : _copyLimit(const Limit *from)
5498 : : {
5499 : 3410 : Limit *newnode = makeNode(Limit);
5500 : :
5501 : 3410 : COPY_SCALAR_FIELD(plan.disabled_nodes);
5502 : 3410 : COPY_SCALAR_FIELD(plan.startup_cost);
5503 : 3410 : COPY_SCALAR_FIELD(plan.total_cost);
5504 : 3410 : COPY_SCALAR_FIELD(plan.plan_rows);
5505 : 3410 : COPY_SCALAR_FIELD(plan.plan_width);
5506 : 3410 : COPY_SCALAR_FIELD(plan.parallel_aware);
5507 : 3410 : COPY_SCALAR_FIELD(plan.parallel_safe);
5508 : 3410 : COPY_SCALAR_FIELD(plan.async_capable);
5509 : 3410 : COPY_SCALAR_FIELD(plan.plan_node_id);
5510 : 3410 : COPY_NODE_FIELD(plan.targetlist);
5511 : 3410 : COPY_NODE_FIELD(plan.qual);
5512 : 3410 : COPY_NODE_FIELD(plan.lefttree);
5513 : 3410 : COPY_NODE_FIELD(plan.righttree);
5514 : 3410 : COPY_NODE_FIELD(plan.initPlan);
5515 : 3410 : COPY_BITMAPSET_FIELD(plan.extParam);
5516 : 3410 : COPY_BITMAPSET_FIELD(plan.allParam);
5517 : 3410 : COPY_NODE_FIELD(limitOffset);
5518 : 3410 : COPY_NODE_FIELD(limitCount);
5519 : 3410 : COPY_SCALAR_FIELD(limitOption);
5520 : 3410 : COPY_SCALAR_FIELD(uniqNumCols);
5521 [ + + ]: 3410 : COPY_POINTER_FIELD(uniqColIdx, from->uniqNumCols * sizeof(AttrNumber));
5522 [ + + ]: 3410 : COPY_POINTER_FIELD(uniqOperators, from->uniqNumCols * sizeof(Oid));
5523 [ + + ]: 3410 : COPY_POINTER_FIELD(uniqCollations, from->uniqNumCols * sizeof(Oid));
5524 : :
5525 : 3410 : return newnode;
5526 : : }
5527 : :
5528 : : static PlanRowMark *
5529 : 26032 : _copyPlanRowMark(const PlanRowMark *from)
5530 : : {
5531 : 26032 : PlanRowMark *newnode = makeNode(PlanRowMark);
5532 : :
5533 : 26032 : COPY_SCALAR_FIELD(rti);
5534 : 26032 : COPY_SCALAR_FIELD(prti);
5535 : 26032 : COPY_SCALAR_FIELD(rowmarkId);
5536 : 26032 : COPY_SCALAR_FIELD(markType);
5537 : 26032 : COPY_SCALAR_FIELD(allMarkTypes);
5538 : 26032 : COPY_SCALAR_FIELD(strength);
5539 : 26032 : COPY_SCALAR_FIELD(waitPolicy);
5540 : 26032 : COPY_SCALAR_FIELD(isParent);
5541 : :
5542 : 26032 : return newnode;
5543 : : }
5544 : :
5545 : : static PartitionPruneInfo *
5546 : 489 : _copyPartitionPruneInfo(const PartitionPruneInfo *from)
5547 : : {
5548 : 489 : PartitionPruneInfo *newnode = makeNode(PartitionPruneInfo);
5549 : :
5550 : 489 : COPY_BITMAPSET_FIELD(relids);
5551 : 489 : COPY_NODE_FIELD(prune_infos);
5552 : 489 : COPY_BITMAPSET_FIELD(other_subplans);
5553 : :
5554 : 489 : return newnode;
5555 : : }
5556 : :
5557 : : static PartitionedRelPruneInfo *
5558 : 895 : _copyPartitionedRelPruneInfo(const PartitionedRelPruneInfo *from)
5559 : : {
5560 : 895 : PartitionedRelPruneInfo *newnode = makeNode(PartitionedRelPruneInfo);
5561 : :
5562 : 895 : COPY_SCALAR_FIELD(rtindex);
5563 : 895 : COPY_BITMAPSET_FIELD(present_parts);
5564 : 895 : COPY_SCALAR_FIELD(nparts);
5565 [ + - ]: 895 : COPY_POINTER_FIELD(subplan_map, from->nparts * sizeof(int));
5566 [ + - ]: 895 : COPY_POINTER_FIELD(subpart_map, from->nparts * sizeof(int));
5567 [ + - ]: 895 : COPY_POINTER_FIELD(leafpart_rti_map, from->nparts * sizeof(int));
5568 [ + - ]: 895 : COPY_POINTER_FIELD(relid_map, from->nparts * sizeof(Oid));
5569 : 895 : COPY_NODE_FIELD(initial_pruning_steps);
5570 : 895 : COPY_NODE_FIELD(exec_pruning_steps);
5571 : 895 : COPY_BITMAPSET_FIELD(execparamids);
5572 : :
5573 : 895 : return newnode;
5574 : : }
5575 : :
5576 : : static PartitionPruneStepOp *
5577 : 910 : _copyPartitionPruneStepOp(const PartitionPruneStepOp *from)
5578 : : {
5579 : 910 : PartitionPruneStepOp *newnode = makeNode(PartitionPruneStepOp);
5580 : :
5581 : 910 : COPY_SCALAR_FIELD(step.step_id);
5582 : 910 : COPY_SCALAR_FIELD(opstrategy);
5583 : 910 : COPY_NODE_FIELD(exprs);
5584 : 910 : COPY_NODE_FIELD(cmpfns);
5585 : 910 : COPY_BITMAPSET_FIELD(nullkeys);
5586 : :
5587 : 910 : return newnode;
5588 : : }
5589 : :
5590 : : static PartitionPruneStepCombine *
5591 : 189 : _copyPartitionPruneStepCombine(const PartitionPruneStepCombine *from)
5592 : : {
5593 : 189 : PartitionPruneStepCombine *newnode = makeNode(PartitionPruneStepCombine);
5594 : :
5595 : 189 : COPY_SCALAR_FIELD(step.step_id);
5596 : 189 : COPY_SCALAR_FIELD(combineOp);
5597 : 189 : COPY_NODE_FIELD(source_stepids);
5598 : :
5599 : 189 : return newnode;
5600 : : }
5601 : :
5602 : : static PlanInvalItem *
5603 : 38551 : _copyPlanInvalItem(const PlanInvalItem *from)
5604 : : {
5605 : 38551 : PlanInvalItem *newnode = makeNode(PlanInvalItem);
5606 : :
5607 : 38551 : COPY_SCALAR_FIELD(cacheId);
5608 : 38551 : COPY_SCALAR_FIELD(hashValue);
5609 : :
5610 : 38551 : return newnode;
5611 : : }
5612 : :
5613 : : static SubPlanRTInfo *
5614 : 57666 : _copySubPlanRTInfo(const SubPlanRTInfo *from)
5615 : : {
5616 : 57666 : SubPlanRTInfo *newnode = makeNode(SubPlanRTInfo);
5617 : :
5618 [ + - ]: 57666 : COPY_STRING_FIELD(plan_name);
5619 : 57666 : COPY_SCALAR_FIELD(rtoffset);
5620 : 57666 : COPY_SCALAR_FIELD(dummy);
5621 : :
5622 : 57666 : return newnode;
5623 : : }
5624 : :
5625 : : static ElidedNode *
5626 : 18976 : _copyElidedNode(const ElidedNode *from)
5627 : : {
5628 : 18976 : ElidedNode *newnode = makeNode(ElidedNode);
5629 : :
5630 : 18976 : COPY_SCALAR_FIELD(plan_node_id);
5631 : 18976 : COPY_SCALAR_FIELD(elided_type);
5632 : 18976 : COPY_BITMAPSET_FIELD(relids);
5633 : :
5634 : 18976 : return newnode;
5635 : : }
5636 : :
5637 : : static Integer *
5638 : 184828 : _copyInteger(const Integer *from)
5639 : : {
5640 : 184828 : Integer *newnode = makeNode(Integer);
5641 : :
5642 : 184828 : COPY_SCALAR_FIELD(ival);
5643 : :
5644 : 184828 : return newnode;
5645 : : }
5646 : :
5647 : : static Float *
5648 : 186 : _copyFloat(const Float *from)
5649 : : {
5650 : 186 : Float *newnode = makeNode(Float);
5651 : :
5652 [ + - ]: 186 : COPY_STRING_FIELD(fval);
5653 : :
5654 : 186 : return newnode;
5655 : : }
5656 : :
5657 : : static Boolean *
5658 : 16966 : _copyBoolean(const Boolean *from)
5659 : : {
5660 : 16966 : Boolean *newnode = makeNode(Boolean);
5661 : :
5662 : 16966 : COPY_SCALAR_FIELD(boolval);
5663 : :
5664 : 16966 : return newnode;
5665 : : }
5666 : :
5667 : : static String *
5668 : 23004979 : _copyString(const String *from)
5669 : : {
5670 : 23004979 : String *newnode = makeNode(String);
5671 : :
5672 [ + - ]: 23004979 : COPY_STRING_FIELD(sval);
5673 : :
5674 : 23004979 : return newnode;
5675 : : }
5676 : :
5677 : : static BitString *
5678 : 0 : _copyBitString(const BitString *from)
5679 : : {
5680 : 0 : BitString *newnode = makeNode(BitString);
5681 : :
5682 [ # # ]: 0 : COPY_STRING_FIELD(bsval);
5683 : :
5684 : 0 : return newnode;
5685 : : }
5686 : :
5687 : : static ForeignKeyCacheInfo *
5688 : 2958 : _copyForeignKeyCacheInfo(const ForeignKeyCacheInfo *from)
5689 : : {
5690 : 2958 : ForeignKeyCacheInfo *newnode = makeNode(ForeignKeyCacheInfo);
5691 : :
5692 : 2958 : COPY_SCALAR_FIELD(conoid);
5693 : 2958 : COPY_SCALAR_FIELD(conrelid);
5694 : 2958 : COPY_SCALAR_FIELD(confrelid);
5695 : 2958 : COPY_SCALAR_FIELD(nkeys);
5696 : 2958 : COPY_SCALAR_FIELD(conenforced);
5697 : 2958 : COPY_ARRAY_FIELD(conkey);
5698 : 2958 : COPY_ARRAY_FIELD(confkey);
5699 : 2958 : COPY_ARRAY_FIELD(conpfeqop);
5700 : :
5701 : 2958 : return newnode;
5702 : : }
|