LCOV - code coverage report
Current view: top level - src/backend/nodes - copyfuncs.funcs.c (source / functions) Coverage Total Hit
Test: PostgreSQL 20devel Lines: 96.4 % 3607 3477
Test Date: 2026-07-28 19:15:32 Functions: 96.8 % 344 333
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
Branches: 73.5 % 446 328

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

Generated by: LCOV version 2.0-1