Line data Source code
1 : /*-------------------------------------------------------------------------
2 : *
3 : * readfuncs.funcs.c
4 : * Generated node infrastructure code
5 : *
6 : * Portions Copyright (c) 1996-2025, 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 2905052 : _readAlias(void)
44 : {
45 2905052 : READ_LOCALS(Alias);
46 :
47 2905052 : READ_STRING_FIELD(aliasname);
48 2905052 : READ_NODE_FIELD(colnames);
49 :
50 2905052 : READ_DONE();
51 : }
52 :
53 : static RangeVar *
54 904302 : _readRangeVar(void)
55 : {
56 904302 : READ_LOCALS(RangeVar);
57 :
58 904302 : READ_STRING_FIELD(catalogname);
59 904302 : READ_STRING_FIELD(schemaname);
60 904302 : READ_STRING_FIELD(relname);
61 904302 : READ_BOOL_FIELD(inh);
62 904302 : READ_CHAR_FIELD(relpersistence);
63 904302 : READ_NODE_FIELD(alias);
64 904302 : READ_LOCATION_FIELD(location);
65 :
66 904302 : READ_DONE();
67 : }
68 :
69 : static TableFunc *
70 1520 : _readTableFunc(void)
71 : {
72 1520 : READ_LOCALS(TableFunc);
73 :
74 1520 : READ_ENUM_FIELD(functype, TableFuncType);
75 1520 : READ_NODE_FIELD(ns_uris);
76 1520 : READ_NODE_FIELD(ns_names);
77 1520 : READ_NODE_FIELD(docexpr);
78 1520 : READ_NODE_FIELD(rowexpr);
79 1520 : READ_NODE_FIELD(colnames);
80 1520 : READ_NODE_FIELD(coltypes);
81 1520 : READ_NODE_FIELD(coltypmods);
82 1520 : READ_NODE_FIELD(colcollations);
83 1520 : READ_NODE_FIELD(colexprs);
84 1520 : READ_NODE_FIELD(coldefexprs);
85 1520 : READ_NODE_FIELD(colvalexprs);
86 1520 : READ_NODE_FIELD(passingvalexprs);
87 1520 : READ_BITMAPSET_FIELD(notnulls);
88 1520 : READ_NODE_FIELD(plan);
89 1520 : READ_INT_FIELD(ordinalitycol);
90 1520 : READ_LOCATION_FIELD(location);
91 :
92 1520 : READ_DONE();
93 : }
94 :
95 : static IntoClause *
96 3932 : _readIntoClause(void)
97 : {
98 3932 : READ_LOCALS(IntoClause);
99 :
100 3932 : READ_NODE_FIELD(rel);
101 3932 : READ_NODE_FIELD(colNames);
102 3932 : READ_STRING_FIELD(accessMethod);
103 3932 : READ_NODE_FIELD(options);
104 3932 : READ_ENUM_FIELD(onCommit, OnCommitAction);
105 3932 : READ_STRING_FIELD(tableSpaceName);
106 3932 : READ_NODE_FIELD(viewQuery);
107 3932 : READ_BOOL_FIELD(skipData);
108 :
109 3932 : READ_DONE();
110 : }
111 :
112 : static Var *
113 13433390 : _readVar(void)
114 : {
115 13433390 : READ_LOCALS(Var);
116 :
117 13433390 : READ_INT_FIELD(varno);
118 13433390 : READ_INT_FIELD(varattno);
119 13433390 : READ_OID_FIELD(vartype);
120 13433390 : READ_INT_FIELD(vartypmod);
121 13433390 : READ_OID_FIELD(varcollid);
122 13433390 : READ_BITMAPSET_FIELD(varnullingrels);
123 13433390 : READ_UINT_FIELD(varlevelsup);
124 13433390 : READ_ENUM_FIELD(varreturningtype, VarReturningType);
125 13433390 : READ_UINT_FIELD(varnosyn);
126 13433390 : READ_INT_FIELD(varattnosyn);
127 13433390 : READ_LOCATION_FIELD(location);
128 :
129 13433390 : READ_DONE();
130 : }
131 :
132 : static Param *
133 326124 : _readParam(void)
134 : {
135 326124 : READ_LOCALS(Param);
136 :
137 326124 : READ_ENUM_FIELD(paramkind, ParamKind);
138 326124 : READ_INT_FIELD(paramid);
139 326124 : READ_OID_FIELD(paramtype);
140 326124 : READ_INT_FIELD(paramtypmod);
141 326124 : READ_OID_FIELD(paramcollid);
142 326124 : READ_LOCATION_FIELD(location);
143 :
144 326124 : READ_DONE();
145 : }
146 :
147 : static Aggref *
148 95438 : _readAggref(void)
149 : {
150 95438 : READ_LOCALS(Aggref);
151 :
152 95438 : READ_OID_FIELD(aggfnoid);
153 95438 : READ_OID_FIELD(aggtype);
154 95438 : READ_OID_FIELD(aggcollid);
155 95438 : READ_OID_FIELD(inputcollid);
156 95438 : READ_OID_FIELD(aggtranstype);
157 95438 : READ_NODE_FIELD(aggargtypes);
158 95438 : READ_NODE_FIELD(aggdirectargs);
159 95438 : READ_NODE_FIELD(args);
160 95438 : READ_NODE_FIELD(aggorder);
161 95438 : READ_NODE_FIELD(aggdistinct);
162 95438 : READ_NODE_FIELD(aggfilter);
163 95438 : READ_BOOL_FIELD(aggstar);
164 95438 : READ_BOOL_FIELD(aggvariadic);
165 95438 : READ_CHAR_FIELD(aggkind);
166 95438 : READ_BOOL_FIELD(aggpresorted);
167 95438 : READ_UINT_FIELD(agglevelsup);
168 95438 : READ_ENUM_FIELD(aggsplit, AggSplit);
169 95438 : READ_INT_FIELD(aggno);
170 95438 : READ_INT_FIELD(aggtransno);
171 95438 : READ_LOCATION_FIELD(location);
172 :
173 95438 : READ_DONE();
174 : }
175 :
176 : static GroupingFunc *
177 1092 : _readGroupingFunc(void)
178 : {
179 1092 : READ_LOCALS(GroupingFunc);
180 :
181 1092 : READ_NODE_FIELD(args);
182 1092 : READ_NODE_FIELD(refs);
183 1092 : READ_NODE_FIELD(cols);
184 1092 : READ_UINT_FIELD(agglevelsup);
185 1092 : READ_LOCATION_FIELD(location);
186 :
187 1092 : READ_DONE();
188 : }
189 :
190 : static WindowFunc *
191 7028 : _readWindowFunc(void)
192 : {
193 7028 : READ_LOCALS(WindowFunc);
194 :
195 7028 : READ_OID_FIELD(winfnoid);
196 7028 : READ_OID_FIELD(wintype);
197 7028 : READ_OID_FIELD(wincollid);
198 7028 : READ_OID_FIELD(inputcollid);
199 7028 : READ_NODE_FIELD(args);
200 7028 : READ_NODE_FIELD(aggfilter);
201 7028 : READ_NODE_FIELD(runCondition);
202 7028 : READ_UINT_FIELD(winref);
203 7028 : READ_BOOL_FIELD(winstar);
204 7028 : READ_BOOL_FIELD(winagg);
205 7028 : READ_LOCATION_FIELD(location);
206 :
207 7028 : READ_DONE();
208 : }
209 :
210 : static WindowFuncRunCondition *
211 360 : _readWindowFuncRunCondition(void)
212 : {
213 360 : READ_LOCALS(WindowFuncRunCondition);
214 :
215 360 : READ_OID_FIELD(opno);
216 360 : READ_OID_FIELD(inputcollid);
217 360 : READ_BOOL_FIELD(wfunc_left);
218 360 : READ_NODE_FIELD(arg);
219 :
220 360 : READ_DONE();
221 : }
222 :
223 : static MergeSupportFunc *
224 834 : _readMergeSupportFunc(void)
225 : {
226 834 : READ_LOCALS(MergeSupportFunc);
227 :
228 834 : READ_OID_FIELD(msftype);
229 834 : READ_OID_FIELD(msfcollid);
230 834 : READ_LOCATION_FIELD(location);
231 :
232 834 : READ_DONE();
233 : }
234 :
235 : static SubscriptingRef *
236 37206 : _readSubscriptingRef(void)
237 : {
238 37206 : READ_LOCALS(SubscriptingRef);
239 :
240 37206 : READ_OID_FIELD(refcontainertype);
241 37206 : READ_OID_FIELD(refelemtype);
242 37206 : READ_OID_FIELD(refrestype);
243 37206 : READ_INT_FIELD(reftypmod);
244 37206 : READ_OID_FIELD(refcollid);
245 37206 : READ_NODE_FIELD(refupperindexpr);
246 37206 : READ_NODE_FIELD(reflowerindexpr);
247 37206 : READ_NODE_FIELD(refexpr);
248 37206 : READ_NODE_FIELD(refassgnexpr);
249 :
250 37206 : READ_DONE();
251 : }
252 :
253 : static FuncExpr *
254 955476 : _readFuncExpr(void)
255 : {
256 955476 : READ_LOCALS(FuncExpr);
257 :
258 955476 : READ_OID_FIELD(funcid);
259 955476 : READ_OID_FIELD(funcresulttype);
260 955476 : READ_BOOL_FIELD(funcretset);
261 955476 : READ_BOOL_FIELD(funcvariadic);
262 955476 : READ_ENUM_FIELD(funcformat, CoercionForm);
263 955476 : READ_OID_FIELD(funccollid);
264 955476 : READ_OID_FIELD(inputcollid);
265 955476 : READ_NODE_FIELD(args);
266 955476 : READ_LOCATION_FIELD(location);
267 :
268 955476 : READ_DONE();
269 : }
270 :
271 : static NamedArgExpr *
272 94086 : _readNamedArgExpr(void)
273 : {
274 94086 : READ_LOCALS(NamedArgExpr);
275 :
276 94086 : READ_NODE_FIELD(arg);
277 94086 : READ_STRING_FIELD(name);
278 94086 : READ_INT_FIELD(argnumber);
279 94086 : READ_LOCATION_FIELD(location);
280 :
281 94086 : READ_DONE();
282 : }
283 :
284 : static OpExpr *
285 1562624 : _readOpExpr(void)
286 : {
287 1562624 : READ_LOCALS(OpExpr);
288 :
289 1562624 : READ_OID_FIELD(opno);
290 1562624 : READ_OID_FIELD(opfuncid);
291 1562624 : READ_OID_FIELD(opresulttype);
292 1562624 : READ_BOOL_FIELD(opretset);
293 1562624 : READ_OID_FIELD(opcollid);
294 1562624 : READ_OID_FIELD(inputcollid);
295 1562624 : READ_NODE_FIELD(args);
296 1562624 : READ_LOCATION_FIELD(location);
297 :
298 1562624 : READ_DONE();
299 : }
300 :
301 : static DistinctExpr *
302 2516 : _readDistinctExpr(void)
303 : {
304 2516 : READ_LOCALS(DistinctExpr);
305 :
306 2516 : READ_OID_FIELD(opno);
307 2516 : READ_OID_FIELD(opfuncid);
308 2516 : READ_OID_FIELD(opresulttype);
309 2516 : READ_BOOL_FIELD(opretset);
310 2516 : READ_OID_FIELD(opcollid);
311 2516 : READ_OID_FIELD(inputcollid);
312 2516 : READ_NODE_FIELD(args);
313 2516 : READ_LOCATION_FIELD(location);
314 :
315 2516 : READ_DONE();
316 : }
317 :
318 : static NullIfExpr *
319 1258 : _readNullIfExpr(void)
320 : {
321 1258 : READ_LOCALS(NullIfExpr);
322 :
323 1258 : READ_OID_FIELD(opno);
324 1258 : READ_OID_FIELD(opfuncid);
325 1258 : READ_OID_FIELD(opresulttype);
326 1258 : READ_BOOL_FIELD(opretset);
327 1258 : READ_OID_FIELD(opcollid);
328 1258 : READ_OID_FIELD(inputcollid);
329 1258 : READ_NODE_FIELD(args);
330 1258 : READ_LOCATION_FIELD(location);
331 :
332 1258 : READ_DONE();
333 : }
334 :
335 : static ScalarArrayOpExpr *
336 78798 : _readScalarArrayOpExpr(void)
337 : {
338 78798 : READ_LOCALS(ScalarArrayOpExpr);
339 :
340 78798 : READ_OID_FIELD(opno);
341 78798 : READ_OID_FIELD(opfuncid);
342 78798 : READ_OID_FIELD(hashfuncid);
343 78798 : READ_OID_FIELD(negfuncid);
344 78798 : READ_BOOL_FIELD(useOr);
345 78798 : READ_OID_FIELD(inputcollid);
346 78798 : READ_NODE_FIELD(args);
347 78798 : READ_LOCATION_FIELD(location);
348 :
349 78798 : READ_DONE();
350 : }
351 :
352 : static SubLink *
353 107904 : _readSubLink(void)
354 : {
355 107904 : READ_LOCALS(SubLink);
356 :
357 107904 : READ_ENUM_FIELD(subLinkType, SubLinkType);
358 107904 : READ_INT_FIELD(subLinkId);
359 107904 : READ_NODE_FIELD(testexpr);
360 107904 : READ_NODE_FIELD(operName);
361 107904 : READ_NODE_FIELD(subselect);
362 107904 : READ_LOCATION_FIELD(location);
363 :
364 107904 : READ_DONE();
365 : }
366 :
367 : static SubPlan *
368 44816 : _readSubPlan(void)
369 : {
370 44816 : READ_LOCALS(SubPlan);
371 :
372 44816 : READ_ENUM_FIELD(subLinkType, SubLinkType);
373 44816 : READ_NODE_FIELD(testexpr);
374 44816 : READ_NODE_FIELD(paramIds);
375 44816 : READ_INT_FIELD(plan_id);
376 44816 : READ_STRING_FIELD(plan_name);
377 44816 : READ_OID_FIELD(firstColType);
378 44816 : READ_INT_FIELD(firstColTypmod);
379 44816 : READ_OID_FIELD(firstColCollation);
380 44816 : READ_BOOL_FIELD(useHashTable);
381 44816 : READ_BOOL_FIELD(unknownEqFalse);
382 44816 : READ_BOOL_FIELD(parallel_safe);
383 44816 : READ_NODE_FIELD(setParam);
384 44816 : READ_NODE_FIELD(parParam);
385 44816 : READ_NODE_FIELD(args);
386 44816 : READ_FLOAT_FIELD(startup_cost);
387 44816 : READ_FLOAT_FIELD(per_call_cost);
388 :
389 44816 : READ_DONE();
390 : }
391 :
392 : static AlternativeSubPlan *
393 0 : _readAlternativeSubPlan(void)
394 : {
395 0 : READ_LOCALS(AlternativeSubPlan);
396 :
397 0 : READ_NODE_FIELD(subplans);
398 :
399 0 : READ_DONE();
400 : }
401 :
402 : static FieldSelect *
403 31016 : _readFieldSelect(void)
404 : {
405 31016 : READ_LOCALS(FieldSelect);
406 :
407 31016 : READ_NODE_FIELD(arg);
408 31016 : READ_INT_FIELD(fieldnum);
409 31016 : READ_OID_FIELD(resulttype);
410 31016 : READ_INT_FIELD(resulttypmod);
411 31016 : READ_OID_FIELD(resultcollid);
412 :
413 31016 : READ_DONE();
414 : }
415 :
416 : static FieldStore *
417 1106 : _readFieldStore(void)
418 : {
419 1106 : READ_LOCALS(FieldStore);
420 :
421 1106 : READ_NODE_FIELD(arg);
422 1106 : READ_NODE_FIELD(newvals);
423 1106 : READ_NODE_FIELD(fieldnums);
424 1106 : READ_OID_FIELD(resulttype);
425 :
426 1106 : READ_DONE();
427 : }
428 :
429 : static RelabelType *
430 275362 : _readRelabelType(void)
431 : {
432 275362 : READ_LOCALS(RelabelType);
433 :
434 275362 : READ_NODE_FIELD(arg);
435 275362 : READ_OID_FIELD(resulttype);
436 275362 : READ_INT_FIELD(resulttypmod);
437 275362 : READ_OID_FIELD(resultcollid);
438 275362 : READ_ENUM_FIELD(relabelformat, CoercionForm);
439 275362 : READ_LOCATION_FIELD(location);
440 :
441 275362 : READ_DONE();
442 : }
443 :
444 : static CoerceViaIO *
445 51902 : _readCoerceViaIO(void)
446 : {
447 51902 : READ_LOCALS(CoerceViaIO);
448 :
449 51902 : READ_NODE_FIELD(arg);
450 51902 : READ_OID_FIELD(resulttype);
451 51902 : READ_OID_FIELD(resultcollid);
452 51902 : READ_ENUM_FIELD(coerceformat, CoercionForm);
453 51902 : READ_LOCATION_FIELD(location);
454 :
455 51902 : READ_DONE();
456 : }
457 :
458 : static ArrayCoerceExpr *
459 11256 : _readArrayCoerceExpr(void)
460 : {
461 11256 : READ_LOCALS(ArrayCoerceExpr);
462 :
463 11256 : READ_NODE_FIELD(arg);
464 11256 : READ_NODE_FIELD(elemexpr);
465 11256 : READ_OID_FIELD(resulttype);
466 11256 : READ_INT_FIELD(resulttypmod);
467 11256 : READ_OID_FIELD(resultcollid);
468 11256 : READ_ENUM_FIELD(coerceformat, CoercionForm);
469 11256 : READ_LOCATION_FIELD(location);
470 :
471 11256 : READ_DONE();
472 : }
473 :
474 : static ConvertRowtypeExpr *
475 842 : _readConvertRowtypeExpr(void)
476 : {
477 842 : READ_LOCALS(ConvertRowtypeExpr);
478 :
479 842 : READ_NODE_FIELD(arg);
480 842 : READ_OID_FIELD(resulttype);
481 842 : READ_ENUM_FIELD(convertformat, CoercionForm);
482 842 : READ_LOCATION_FIELD(location);
483 :
484 842 : READ_DONE();
485 : }
486 :
487 : static CollateExpr *
488 9006 : _readCollateExpr(void)
489 : {
490 9006 : READ_LOCALS(CollateExpr);
491 :
492 9006 : READ_NODE_FIELD(arg);
493 9006 : READ_OID_FIELD(collOid);
494 9006 : READ_LOCATION_FIELD(location);
495 :
496 9006 : READ_DONE();
497 : }
498 :
499 : static CaseExpr *
500 144928 : _readCaseExpr(void)
501 : {
502 144928 : READ_LOCALS(CaseExpr);
503 :
504 144928 : READ_OID_FIELD(casetype);
505 144928 : READ_OID_FIELD(casecollid);
506 144928 : READ_NODE_FIELD(arg);
507 144928 : READ_NODE_FIELD(args);
508 144928 : READ_NODE_FIELD(defresult);
509 144928 : READ_LOCATION_FIELD(location);
510 :
511 144928 : READ_DONE();
512 : }
513 :
514 : static CaseWhen *
515 273158 : _readCaseWhen(void)
516 : {
517 273158 : READ_LOCALS(CaseWhen);
518 :
519 273158 : READ_NODE_FIELD(expr);
520 273158 : READ_NODE_FIELD(result);
521 273158 : READ_LOCATION_FIELD(location);
522 :
523 273158 : READ_DONE();
524 : }
525 :
526 : static CaseTestExpr *
527 61214 : _readCaseTestExpr(void)
528 : {
529 61214 : READ_LOCALS(CaseTestExpr);
530 :
531 61214 : READ_OID_FIELD(typeId);
532 61214 : READ_INT_FIELD(typeMod);
533 61214 : READ_OID_FIELD(collation);
534 :
535 61214 : READ_DONE();
536 : }
537 :
538 : static ArrayExpr *
539 38098 : _readArrayExpr(void)
540 : {
541 38098 : READ_LOCALS(ArrayExpr);
542 :
543 38098 : READ_OID_FIELD(array_typeid);
544 38098 : READ_OID_FIELD(array_collid);
545 38098 : READ_OID_FIELD(element_typeid);
546 38098 : READ_NODE_FIELD(elements);
547 38098 : READ_BOOL_FIELD(multidims);
548 38098 : READ_LOCATION_FIELD(list_start);
549 38098 : READ_LOCATION_FIELD(list_end);
550 38098 : READ_LOCATION_FIELD(location);
551 :
552 38098 : READ_DONE();
553 : }
554 :
555 : static RowExpr *
556 13406 : _readRowExpr(void)
557 : {
558 13406 : READ_LOCALS(RowExpr);
559 :
560 13406 : READ_NODE_FIELD(args);
561 13406 : READ_OID_FIELD(row_typeid);
562 13406 : READ_ENUM_FIELD(row_format, CoercionForm);
563 13406 : READ_NODE_FIELD(colnames);
564 13406 : READ_LOCATION_FIELD(location);
565 :
566 13406 : READ_DONE();
567 : }
568 :
569 : static RowCompareExpr *
570 744 : _readRowCompareExpr(void)
571 : {
572 744 : READ_LOCALS(RowCompareExpr);
573 :
574 744 : READ_ENUM_FIELD(cmptype, CompareType);
575 744 : READ_NODE_FIELD(opnos);
576 744 : READ_NODE_FIELD(opfamilies);
577 744 : READ_NODE_FIELD(inputcollids);
578 744 : READ_NODE_FIELD(largs);
579 744 : READ_NODE_FIELD(rargs);
580 :
581 744 : READ_DONE();
582 : }
583 :
584 : static CoalesceExpr *
585 19518 : _readCoalesceExpr(void)
586 : {
587 19518 : READ_LOCALS(CoalesceExpr);
588 :
589 19518 : READ_OID_FIELD(coalescetype);
590 19518 : READ_OID_FIELD(coalescecollid);
591 19518 : READ_NODE_FIELD(args);
592 19518 : READ_LOCATION_FIELD(location);
593 :
594 19518 : READ_DONE();
595 : }
596 :
597 : static MinMaxExpr *
598 888 : _readMinMaxExpr(void)
599 : {
600 888 : READ_LOCALS(MinMaxExpr);
601 :
602 888 : READ_OID_FIELD(minmaxtype);
603 888 : READ_OID_FIELD(minmaxcollid);
604 888 : READ_OID_FIELD(inputcollid);
605 888 : READ_ENUM_FIELD(op, MinMaxOp);
606 888 : READ_NODE_FIELD(args);
607 888 : READ_LOCATION_FIELD(location);
608 :
609 888 : READ_DONE();
610 : }
611 :
612 : static SQLValueFunction *
613 13956 : _readSQLValueFunction(void)
614 : {
615 13956 : READ_LOCALS(SQLValueFunction);
616 :
617 13956 : READ_ENUM_FIELD(op, SQLValueFunctionOp);
618 13956 : READ_OID_FIELD(type);
619 13956 : READ_INT_FIELD(typmod);
620 13956 : READ_LOCATION_FIELD(location);
621 :
622 13956 : READ_DONE();
623 : }
624 :
625 : static XmlExpr *
626 2706 : _readXmlExpr(void)
627 : {
628 2706 : READ_LOCALS(XmlExpr);
629 :
630 2706 : READ_ENUM_FIELD(op, XmlExprOp);
631 2706 : READ_STRING_FIELD(name);
632 2706 : READ_NODE_FIELD(named_args);
633 2706 : READ_NODE_FIELD(arg_names);
634 2706 : READ_NODE_FIELD(args);
635 2706 : READ_ENUM_FIELD(xmloption, XmlOptionType);
636 2706 : READ_BOOL_FIELD(indent);
637 2706 : READ_OID_FIELD(type);
638 2706 : READ_INT_FIELD(typmod);
639 2706 : READ_LOCATION_FIELD(location);
640 :
641 2706 : READ_DONE();
642 : }
643 :
644 : static JsonFormat *
645 24532 : _readJsonFormat(void)
646 : {
647 24532 : READ_LOCALS(JsonFormat);
648 :
649 24532 : READ_ENUM_FIELD(format_type, JsonFormatType);
650 24532 : READ_ENUM_FIELD(encoding, JsonEncoding);
651 24532 : READ_LOCATION_FIELD(location);
652 :
653 24532 : READ_DONE();
654 : }
655 :
656 : static JsonReturning *
657 10412 : _readJsonReturning(void)
658 : {
659 10412 : READ_LOCALS(JsonReturning);
660 :
661 10412 : READ_NODE_FIELD(format);
662 10412 : READ_OID_FIELD(typid);
663 10412 : READ_INT_FIELD(typmod);
664 :
665 10412 : READ_DONE();
666 : }
667 :
668 : static JsonValueExpr *
669 6350 : _readJsonValueExpr(void)
670 : {
671 6350 : READ_LOCALS(JsonValueExpr);
672 :
673 6350 : READ_NODE_FIELD(raw_expr);
674 6350 : READ_NODE_FIELD(formatted_expr);
675 6350 : READ_NODE_FIELD(format);
676 :
677 6350 : READ_DONE();
678 : }
679 :
680 : static JsonConstructorExpr *
681 2798 : _readJsonConstructorExpr(void)
682 : {
683 2798 : READ_LOCALS(JsonConstructorExpr);
684 :
685 2798 : READ_ENUM_FIELD(type, JsonConstructorType);
686 2798 : READ_NODE_FIELD(args);
687 2798 : READ_NODE_FIELD(func);
688 2798 : READ_NODE_FIELD(coercion);
689 2798 : READ_NODE_FIELD(returning);
690 2798 : READ_BOOL_FIELD(absent_on_null);
691 2798 : READ_BOOL_FIELD(unique);
692 2798 : READ_LOCATION_FIELD(location);
693 :
694 2798 : READ_DONE();
695 : }
696 :
697 : static JsonIsPredicate *
698 1128 : _readJsonIsPredicate(void)
699 : {
700 1128 : READ_LOCALS(JsonIsPredicate);
701 :
702 1128 : READ_NODE_FIELD(expr);
703 1128 : READ_NODE_FIELD(format);
704 1128 : READ_ENUM_FIELD(item_type, JsonValueType);
705 1128 : READ_BOOL_FIELD(unique_keys);
706 1128 : READ_LOCATION_FIELD(location);
707 :
708 1128 : READ_DONE();
709 : }
710 :
711 : static JsonBehavior *
712 11766 : _readJsonBehavior(void)
713 : {
714 11766 : READ_LOCALS(JsonBehavior);
715 :
716 11766 : READ_ENUM_FIELD(btype, JsonBehaviorType);
717 11766 : READ_NODE_FIELD(expr);
718 11766 : READ_BOOL_FIELD(coerce);
719 11766 : READ_LOCATION_FIELD(location);
720 :
721 11766 : READ_DONE();
722 : }
723 :
724 : static JsonExpr *
725 6128 : _readJsonExpr(void)
726 : {
727 6128 : READ_LOCALS(JsonExpr);
728 :
729 6128 : READ_ENUM_FIELD(op, JsonExprOp);
730 6128 : READ_STRING_FIELD(column_name);
731 6128 : READ_NODE_FIELD(formatted_expr);
732 6128 : READ_NODE_FIELD(format);
733 6128 : READ_NODE_FIELD(path_spec);
734 6128 : READ_NODE_FIELD(returning);
735 6128 : READ_NODE_FIELD(passing_names);
736 6128 : READ_NODE_FIELD(passing_values);
737 6128 : READ_NODE_FIELD(on_empty);
738 6128 : READ_NODE_FIELD(on_error);
739 6128 : READ_BOOL_FIELD(use_io_coercion);
740 6128 : READ_BOOL_FIELD(use_json_coercion);
741 6128 : READ_ENUM_FIELD(wrapper, JsonWrapper);
742 6128 : READ_BOOL_FIELD(omit_quotes);
743 6128 : READ_OID_FIELD(collation);
744 6128 : READ_LOCATION_FIELD(location);
745 :
746 6128 : READ_DONE();
747 : }
748 :
749 : static JsonTablePath *
750 1568 : _readJsonTablePath(void)
751 : {
752 1568 : READ_LOCALS(JsonTablePath);
753 :
754 1568 : READ_NODE_FIELD(value);
755 1568 : READ_STRING_FIELD(name);
756 :
757 1568 : READ_DONE();
758 : }
759 :
760 : static JsonTablePathScan *
761 1568 : _readJsonTablePathScan(void)
762 : {
763 1568 : READ_LOCALS(JsonTablePathScan);
764 :
765 1568 : READ_NODE_FIELD(path);
766 1568 : READ_BOOL_FIELD(errorOnError);
767 1568 : READ_NODE_FIELD(child);
768 1568 : READ_INT_FIELD(colMin);
769 1568 : READ_INT_FIELD(colMax);
770 :
771 1568 : READ_DONE();
772 : }
773 :
774 : static JsonTableSiblingJoin *
775 210 : _readJsonTableSiblingJoin(void)
776 : {
777 210 : READ_LOCALS(JsonTableSiblingJoin);
778 :
779 210 : READ_NODE_FIELD(lplan);
780 210 : READ_NODE_FIELD(rplan);
781 :
782 210 : READ_DONE();
783 : }
784 :
785 : static NullTest *
786 57204 : _readNullTest(void)
787 : {
788 57204 : READ_LOCALS(NullTest);
789 :
790 57204 : READ_NODE_FIELD(arg);
791 57204 : READ_ENUM_FIELD(nulltesttype, NullTestType);
792 57204 : READ_BOOL_FIELD(argisrow);
793 57204 : READ_LOCATION_FIELD(location);
794 :
795 57204 : READ_DONE();
796 : }
797 :
798 : static BooleanTest *
799 3792 : _readBooleanTest(void)
800 : {
801 3792 : READ_LOCALS(BooleanTest);
802 :
803 3792 : READ_NODE_FIELD(arg);
804 3792 : READ_ENUM_FIELD(booltesttype, BoolTestType);
805 3792 : READ_LOCATION_FIELD(location);
806 :
807 3792 : READ_DONE();
808 : }
809 :
810 : static MergeAction *
811 6558 : _readMergeAction(void)
812 : {
813 6558 : READ_LOCALS(MergeAction);
814 :
815 6558 : READ_ENUM_FIELD(matchKind, MergeMatchKind);
816 6558 : READ_ENUM_FIELD(commandType, CmdType);
817 6558 : READ_ENUM_FIELD(override, OverridingKind);
818 6558 : READ_NODE_FIELD(qual);
819 6558 : READ_NODE_FIELD(targetList);
820 6558 : READ_NODE_FIELD(updateColnos);
821 :
822 6558 : READ_DONE();
823 : }
824 :
825 : static CoerceToDomain *
826 143072 : _readCoerceToDomain(void)
827 : {
828 143072 : READ_LOCALS(CoerceToDomain);
829 :
830 143072 : READ_NODE_FIELD(arg);
831 143072 : READ_OID_FIELD(resulttype);
832 143072 : READ_INT_FIELD(resulttypmod);
833 143072 : READ_OID_FIELD(resultcollid);
834 143072 : READ_ENUM_FIELD(coercionformat, CoercionForm);
835 143072 : READ_LOCATION_FIELD(location);
836 :
837 143072 : READ_DONE();
838 : }
839 :
840 : static CoerceToDomainValue *
841 2122 : _readCoerceToDomainValue(void)
842 : {
843 2122 : READ_LOCALS(CoerceToDomainValue);
844 :
845 2122 : READ_OID_FIELD(typeId);
846 2122 : READ_INT_FIELD(typeMod);
847 2122 : READ_OID_FIELD(collation);
848 2122 : READ_LOCATION_FIELD(location);
849 :
850 2122 : READ_DONE();
851 : }
852 :
853 : static SetToDefault *
854 1898 : _readSetToDefault(void)
855 : {
856 1898 : READ_LOCALS(SetToDefault);
857 :
858 1898 : READ_OID_FIELD(typeId);
859 1898 : READ_INT_FIELD(typeMod);
860 1898 : READ_OID_FIELD(collation);
861 1898 : READ_LOCATION_FIELD(location);
862 :
863 1898 : READ_DONE();
864 : }
865 :
866 : static CurrentOfExpr *
867 902 : _readCurrentOfExpr(void)
868 : {
869 902 : READ_LOCALS(CurrentOfExpr);
870 :
871 902 : READ_UINT_FIELD(cvarno);
872 902 : READ_STRING_FIELD(cursor_name);
873 902 : READ_INT_FIELD(cursor_param);
874 :
875 902 : READ_DONE();
876 : }
877 :
878 : static NextValueExpr *
879 816 : _readNextValueExpr(void)
880 : {
881 816 : READ_LOCALS(NextValueExpr);
882 :
883 816 : READ_OID_FIELD(seqid);
884 816 : READ_OID_FIELD(typeId);
885 :
886 816 : READ_DONE();
887 : }
888 :
889 : static InferenceElem *
890 1882 : _readInferenceElem(void)
891 : {
892 1882 : READ_LOCALS(InferenceElem);
893 :
894 1882 : READ_NODE_FIELD(expr);
895 1882 : READ_OID_FIELD(infercollid);
896 1882 : READ_OID_FIELD(inferopclass);
897 :
898 1882 : READ_DONE();
899 : }
900 :
901 : static ReturningExpr *
902 1158 : _readReturningExpr(void)
903 : {
904 1158 : READ_LOCALS(ReturningExpr);
905 :
906 1158 : READ_INT_FIELD(retlevelsup);
907 1158 : READ_BOOL_FIELD(retold);
908 1158 : READ_NODE_FIELD(retexpr);
909 :
910 1158 : READ_DONE();
911 : }
912 :
913 : static TargetEntry *
914 7455552 : _readTargetEntry(void)
915 : {
916 7455552 : READ_LOCALS(TargetEntry);
917 :
918 7455552 : READ_NODE_FIELD(expr);
919 7455552 : READ_INT_FIELD(resno);
920 7455552 : READ_STRING_FIELD(resname);
921 7455552 : READ_UINT_FIELD(ressortgroupref);
922 7455552 : READ_OID_FIELD(resorigtbl);
923 7455552 : READ_INT_FIELD(resorigcol);
924 7455552 : READ_BOOL_FIELD(resjunk);
925 :
926 7455552 : READ_DONE();
927 : }
928 :
929 : static RangeTblRef *
930 635758 : _readRangeTblRef(void)
931 : {
932 635758 : READ_LOCALS(RangeTblRef);
933 :
934 635758 : READ_INT_FIELD(rtindex);
935 :
936 635758 : READ_DONE();
937 : }
938 :
939 : static JoinExpr *
940 216152 : _readJoinExpr(void)
941 : {
942 216152 : READ_LOCALS(JoinExpr);
943 :
944 216152 : READ_ENUM_FIELD(jointype, JoinType);
945 216152 : READ_BOOL_FIELD(isNatural);
946 216152 : READ_NODE_FIELD(larg);
947 216152 : READ_NODE_FIELD(rarg);
948 216152 : READ_NODE_FIELD(usingClause);
949 216152 : READ_NODE_FIELD(join_using_alias);
950 216152 : READ_NODE_FIELD(quals);
951 216152 : READ_NODE_FIELD(alias);
952 216152 : READ_INT_FIELD(rtindex);
953 :
954 216152 : READ_DONE();
955 : }
956 :
957 : static FromExpr *
958 641220 : _readFromExpr(void)
959 : {
960 641220 : READ_LOCALS(FromExpr);
961 :
962 641220 : READ_NODE_FIELD(fromlist);
963 641220 : READ_NODE_FIELD(quals);
964 :
965 641220 : READ_DONE();
966 : }
967 :
968 : static OnConflictExpr *
969 1848 : _readOnConflictExpr(void)
970 : {
971 1848 : READ_LOCALS(OnConflictExpr);
972 :
973 1848 : READ_ENUM_FIELD(action, OnConflictAction);
974 1848 : READ_NODE_FIELD(arbiterElems);
975 1848 : READ_NODE_FIELD(arbiterWhere);
976 1848 : READ_OID_FIELD(constraint);
977 1848 : READ_NODE_FIELD(onConflictSet);
978 1848 : READ_NODE_FIELD(onConflictWhere);
979 1848 : READ_INT_FIELD(exclRelIndex);
980 1848 : READ_NODE_FIELD(exclRelTlist);
981 :
982 1848 : READ_DONE();
983 : }
984 :
985 : static Query *
986 1042872 : _readQuery(void)
987 : {
988 1042872 : READ_LOCALS(Query);
989 :
990 1042872 : READ_ENUM_FIELD(commandType, CmdType);
991 1042872 : READ_ENUM_FIELD(querySource, QuerySource);
992 1042872 : local_node->queryId = 0;
993 1042872 : READ_BOOL_FIELD(canSetTag);
994 1042872 : READ_NODE_FIELD(utilityStmt);
995 1042872 : READ_INT_FIELD(resultRelation);
996 1042872 : READ_BOOL_FIELD(hasAggs);
997 1042872 : READ_BOOL_FIELD(hasWindowFuncs);
998 1042872 : READ_BOOL_FIELD(hasTargetSRFs);
999 1042872 : READ_BOOL_FIELD(hasSubLinks);
1000 1042872 : READ_BOOL_FIELD(hasDistinctOn);
1001 1042872 : READ_BOOL_FIELD(hasRecursive);
1002 1042872 : READ_BOOL_FIELD(hasModifyingCTE);
1003 1042872 : READ_BOOL_FIELD(hasForUpdate);
1004 1042872 : READ_BOOL_FIELD(hasRowSecurity);
1005 1042872 : READ_BOOL_FIELD(hasGroupRTE);
1006 1042872 : READ_BOOL_FIELD(isReturn);
1007 1042872 : READ_NODE_FIELD(cteList);
1008 1042872 : READ_NODE_FIELD(rtable);
1009 1042872 : READ_NODE_FIELD(rteperminfos);
1010 1042872 : READ_NODE_FIELD(jointree);
1011 1042872 : READ_NODE_FIELD(mergeActionList);
1012 1042872 : READ_INT_FIELD(mergeTargetRelation);
1013 1042872 : READ_NODE_FIELD(mergeJoinCondition);
1014 1042872 : READ_NODE_FIELD(targetList);
1015 1042872 : READ_ENUM_FIELD(override, OverridingKind);
1016 1042872 : READ_NODE_FIELD(onConflict);
1017 1042872 : READ_STRING_FIELD(returningOldAlias);
1018 1042872 : READ_STRING_FIELD(returningNewAlias);
1019 1042872 : READ_NODE_FIELD(returningList);
1020 1042872 : READ_NODE_FIELD(groupClause);
1021 1042872 : READ_BOOL_FIELD(groupDistinct);
1022 1042872 : READ_NODE_FIELD(groupingSets);
1023 1042872 : READ_NODE_FIELD(havingQual);
1024 1042872 : READ_NODE_FIELD(windowClause);
1025 1042872 : READ_NODE_FIELD(distinctClause);
1026 1042872 : READ_NODE_FIELD(sortClause);
1027 1042872 : READ_NODE_FIELD(limitOffset);
1028 1042872 : READ_NODE_FIELD(limitCount);
1029 1042872 : READ_ENUM_FIELD(limitOption, LimitOption);
1030 1042872 : READ_NODE_FIELD(rowMarks);
1031 1042872 : READ_NODE_FIELD(setOperations);
1032 1042872 : READ_NODE_FIELD(constraintDeps);
1033 1042872 : READ_NODE_FIELD(withCheckOptions);
1034 1042872 : READ_LOCATION_FIELD(stmt_location);
1035 1042872 : READ_LOCATION_FIELD(stmt_len);
1036 :
1037 1042872 : READ_DONE();
1038 : }
1039 :
1040 : static TypeName *
1041 839566 : _readTypeName(void)
1042 : {
1043 839566 : READ_LOCALS(TypeName);
1044 :
1045 839566 : READ_NODE_FIELD(names);
1046 839566 : READ_OID_FIELD(typeOid);
1047 839566 : READ_BOOL_FIELD(setof);
1048 839566 : READ_BOOL_FIELD(pct_type);
1049 839566 : READ_NODE_FIELD(typmods);
1050 839566 : READ_INT_FIELD(typemod);
1051 839566 : READ_NODE_FIELD(arrayBounds);
1052 839566 : READ_LOCATION_FIELD(location);
1053 :
1054 839566 : READ_DONE();
1055 : }
1056 :
1057 : static ColumnRef *
1058 2141124 : _readColumnRef(void)
1059 : {
1060 2141124 : READ_LOCALS(ColumnRef);
1061 :
1062 2141124 : READ_NODE_FIELD(fields);
1063 2141124 : READ_LOCATION_FIELD(location);
1064 :
1065 2141124 : READ_DONE();
1066 : }
1067 :
1068 : static ParamRef *
1069 55206 : _readParamRef(void)
1070 : {
1071 55206 : READ_LOCALS(ParamRef);
1072 :
1073 55206 : READ_INT_FIELD(number);
1074 55206 : READ_LOCATION_FIELD(location);
1075 :
1076 55206 : READ_DONE();
1077 : }
1078 :
1079 : static TypeCast *
1080 382214 : _readTypeCast(void)
1081 : {
1082 382214 : READ_LOCALS(TypeCast);
1083 :
1084 382214 : READ_NODE_FIELD(arg);
1085 382214 : READ_NODE_FIELD(typeName);
1086 382214 : READ_LOCATION_FIELD(location);
1087 :
1088 382214 : READ_DONE();
1089 : }
1090 :
1091 : static CollateClause *
1092 10686 : _readCollateClause(void)
1093 : {
1094 10686 : READ_LOCALS(CollateClause);
1095 :
1096 10686 : READ_NODE_FIELD(arg);
1097 10686 : READ_NODE_FIELD(collname);
1098 10686 : READ_LOCATION_FIELD(location);
1099 :
1100 10686 : READ_DONE();
1101 : }
1102 :
1103 : static RoleSpec *
1104 65408 : _readRoleSpec(void)
1105 : {
1106 65408 : READ_LOCALS(RoleSpec);
1107 :
1108 65408 : READ_ENUM_FIELD(roletype, RoleSpecType);
1109 65408 : READ_STRING_FIELD(rolename);
1110 65408 : READ_LOCATION_FIELD(location);
1111 :
1112 65408 : READ_DONE();
1113 : }
1114 :
1115 : static FuncCall *
1116 416754 : _readFuncCall(void)
1117 : {
1118 416754 : READ_LOCALS(FuncCall);
1119 :
1120 416754 : READ_NODE_FIELD(funcname);
1121 416754 : READ_NODE_FIELD(args);
1122 416754 : READ_NODE_FIELD(agg_order);
1123 416754 : READ_NODE_FIELD(agg_filter);
1124 416754 : READ_NODE_FIELD(over);
1125 416754 : READ_BOOL_FIELD(agg_within_group);
1126 416754 : READ_BOOL_FIELD(agg_star);
1127 416754 : READ_BOOL_FIELD(agg_distinct);
1128 416754 : READ_BOOL_FIELD(func_variadic);
1129 416754 : READ_ENUM_FIELD(funcformat, CoercionForm);
1130 416754 : READ_LOCATION_FIELD(location);
1131 :
1132 416754 : READ_DONE();
1133 : }
1134 :
1135 : static A_Star *
1136 64854 : _readA_Star(void)
1137 : {
1138 64854 : READ_LOCALS_NO_FIELDS(A_Star);
1139 :
1140 :
1141 64854 : READ_DONE();
1142 : }
1143 :
1144 : static A_Indices *
1145 15360 : _readA_Indices(void)
1146 : {
1147 15360 : READ_LOCALS(A_Indices);
1148 :
1149 15360 : READ_BOOL_FIELD(is_slice);
1150 15360 : READ_NODE_FIELD(lidx);
1151 15360 : READ_NODE_FIELD(uidx);
1152 :
1153 15360 : READ_DONE();
1154 : }
1155 :
1156 : static A_Indirection *
1157 36390 : _readA_Indirection(void)
1158 : {
1159 36390 : READ_LOCALS(A_Indirection);
1160 :
1161 36390 : READ_NODE_FIELD(arg);
1162 36390 : READ_NODE_FIELD(indirection);
1163 :
1164 36390 : READ_DONE();
1165 : }
1166 :
1167 : static A_ArrayExpr *
1168 7100 : _readA_ArrayExpr(void)
1169 : {
1170 7100 : READ_LOCALS(A_ArrayExpr);
1171 :
1172 7100 : READ_NODE_FIELD(elements);
1173 7100 : READ_LOCATION_FIELD(list_start);
1174 7100 : READ_LOCATION_FIELD(list_end);
1175 7100 : READ_LOCATION_FIELD(location);
1176 :
1177 7100 : READ_DONE();
1178 : }
1179 :
1180 : static ResTarget *
1181 1352802 : _readResTarget(void)
1182 : {
1183 1352802 : READ_LOCALS(ResTarget);
1184 :
1185 1352802 : READ_STRING_FIELD(name);
1186 1352802 : READ_NODE_FIELD(indirection);
1187 1352802 : READ_NODE_FIELD(val);
1188 1352802 : READ_LOCATION_FIELD(location);
1189 :
1190 1352802 : READ_DONE();
1191 : }
1192 :
1193 : static MultiAssignRef *
1194 402 : _readMultiAssignRef(void)
1195 : {
1196 402 : READ_LOCALS(MultiAssignRef);
1197 :
1198 402 : READ_NODE_FIELD(source);
1199 402 : READ_INT_FIELD(colno);
1200 402 : READ_INT_FIELD(ncolumns);
1201 :
1202 402 : READ_DONE();
1203 : }
1204 :
1205 : static SortBy *
1206 113516 : _readSortBy(void)
1207 : {
1208 113516 : READ_LOCALS(SortBy);
1209 :
1210 113516 : READ_NODE_FIELD(node);
1211 113516 : READ_ENUM_FIELD(sortby_dir, SortByDir);
1212 113516 : READ_ENUM_FIELD(sortby_nulls, SortByNulls);
1213 113516 : READ_NODE_FIELD(useOp);
1214 113516 : READ_LOCATION_FIELD(location);
1215 :
1216 113516 : READ_DONE();
1217 : }
1218 :
1219 : static WindowDef *
1220 4180 : _readWindowDef(void)
1221 : {
1222 4180 : READ_LOCALS(WindowDef);
1223 :
1224 4180 : READ_STRING_FIELD(name);
1225 4180 : READ_STRING_FIELD(refname);
1226 4180 : READ_NODE_FIELD(partitionClause);
1227 4180 : READ_NODE_FIELD(orderClause);
1228 4180 : READ_INT_FIELD(frameOptions);
1229 4180 : READ_NODE_FIELD(startOffset);
1230 4180 : READ_NODE_FIELD(endOffset);
1231 4180 : READ_LOCATION_FIELD(location);
1232 :
1233 4180 : READ_DONE();
1234 : }
1235 :
1236 : static RangeSubselect *
1237 19006 : _readRangeSubselect(void)
1238 : {
1239 19006 : READ_LOCALS(RangeSubselect);
1240 :
1241 19006 : READ_BOOL_FIELD(lateral);
1242 19006 : READ_NODE_FIELD(subquery);
1243 19006 : READ_NODE_FIELD(alias);
1244 :
1245 19006 : READ_DONE();
1246 : }
1247 :
1248 : static RangeFunction *
1249 53366 : _readRangeFunction(void)
1250 : {
1251 53366 : READ_LOCALS(RangeFunction);
1252 :
1253 53366 : READ_BOOL_FIELD(lateral);
1254 53366 : READ_BOOL_FIELD(ordinality);
1255 53366 : READ_BOOL_FIELD(is_rowsfrom);
1256 53366 : READ_NODE_FIELD(functions);
1257 53366 : READ_NODE_FIELD(alias);
1258 53366 : READ_NODE_FIELD(coldeflist);
1259 :
1260 53366 : READ_DONE();
1261 : }
1262 :
1263 : static RangeTableFunc *
1264 250 : _readRangeTableFunc(void)
1265 : {
1266 250 : READ_LOCALS(RangeTableFunc);
1267 :
1268 250 : READ_BOOL_FIELD(lateral);
1269 250 : READ_NODE_FIELD(docexpr);
1270 250 : READ_NODE_FIELD(rowexpr);
1271 250 : READ_NODE_FIELD(namespaces);
1272 250 : READ_NODE_FIELD(columns);
1273 250 : READ_NODE_FIELD(alias);
1274 250 : READ_LOCATION_FIELD(location);
1275 :
1276 250 : READ_DONE();
1277 : }
1278 :
1279 : static RangeTableFuncCol *
1280 906 : _readRangeTableFuncCol(void)
1281 : {
1282 906 : READ_LOCALS(RangeTableFuncCol);
1283 :
1284 906 : READ_STRING_FIELD(colname);
1285 906 : READ_NODE_FIELD(typeName);
1286 906 : READ_BOOL_FIELD(for_ordinality);
1287 906 : READ_BOOL_FIELD(is_not_null);
1288 906 : READ_NODE_FIELD(colexpr);
1289 906 : READ_NODE_FIELD(coldefexpr);
1290 906 : READ_LOCATION_FIELD(location);
1291 :
1292 906 : READ_DONE();
1293 : }
1294 :
1295 : static RangeTableSample *
1296 288 : _readRangeTableSample(void)
1297 : {
1298 288 : READ_LOCALS(RangeTableSample);
1299 :
1300 288 : READ_NODE_FIELD(relation);
1301 288 : READ_NODE_FIELD(method);
1302 288 : READ_NODE_FIELD(args);
1303 288 : READ_NODE_FIELD(repeatable);
1304 288 : READ_LOCATION_FIELD(location);
1305 :
1306 288 : READ_DONE();
1307 : }
1308 :
1309 : static ColumnDef *
1310 153198 : _readColumnDef(void)
1311 : {
1312 153198 : READ_LOCALS(ColumnDef);
1313 :
1314 153198 : READ_STRING_FIELD(colname);
1315 153198 : READ_NODE_FIELD(typeName);
1316 153198 : READ_STRING_FIELD(compression);
1317 153198 : READ_INT_FIELD(inhcount);
1318 153198 : READ_BOOL_FIELD(is_local);
1319 153198 : READ_BOOL_FIELD(is_not_null);
1320 153198 : READ_BOOL_FIELD(is_from_type);
1321 153198 : READ_CHAR_FIELD(storage);
1322 153198 : READ_STRING_FIELD(storage_name);
1323 153198 : READ_NODE_FIELD(raw_default);
1324 153198 : READ_NODE_FIELD(cooked_default);
1325 153198 : READ_CHAR_FIELD(identity);
1326 153198 : READ_NODE_FIELD(identitySequence);
1327 153198 : READ_CHAR_FIELD(generated);
1328 153198 : READ_NODE_FIELD(collClause);
1329 153198 : READ_OID_FIELD(collOid);
1330 153198 : READ_NODE_FIELD(constraints);
1331 153198 : READ_NODE_FIELD(fdwoptions);
1332 153198 : READ_LOCATION_FIELD(location);
1333 :
1334 153198 : READ_DONE();
1335 : }
1336 :
1337 : static TableLikeClause *
1338 1548 : _readTableLikeClause(void)
1339 : {
1340 1548 : READ_LOCALS(TableLikeClause);
1341 :
1342 1548 : READ_NODE_FIELD(relation);
1343 1548 : READ_UINT_FIELD(options);
1344 1548 : READ_OID_FIELD(relationOid);
1345 :
1346 1548 : READ_DONE();
1347 : }
1348 :
1349 : static IndexElem *
1350 20332 : _readIndexElem(void)
1351 : {
1352 20332 : READ_LOCALS(IndexElem);
1353 :
1354 20332 : READ_STRING_FIELD(name);
1355 20332 : READ_NODE_FIELD(expr);
1356 20332 : READ_STRING_FIELD(indexcolname);
1357 20332 : READ_NODE_FIELD(collation);
1358 20332 : READ_NODE_FIELD(opclass);
1359 20332 : READ_NODE_FIELD(opclassopts);
1360 20332 : READ_ENUM_FIELD(ordering, SortByDir);
1361 20332 : READ_ENUM_FIELD(nulls_ordering, SortByNulls);
1362 :
1363 20332 : READ_DONE();
1364 : }
1365 :
1366 : static DefElem *
1367 353724 : _readDefElem(void)
1368 : {
1369 353724 : READ_LOCALS(DefElem);
1370 :
1371 353724 : READ_STRING_FIELD(defnamespace);
1372 353724 : READ_STRING_FIELD(defname);
1373 353724 : READ_NODE_FIELD(arg);
1374 353724 : READ_ENUM_FIELD(defaction, DefElemAction);
1375 353724 : READ_LOCATION_FIELD(location);
1376 :
1377 353724 : READ_DONE();
1378 : }
1379 :
1380 : static LockingClause *
1381 2178 : _readLockingClause(void)
1382 : {
1383 2178 : READ_LOCALS(LockingClause);
1384 :
1385 2178 : READ_NODE_FIELD(lockedRels);
1386 2178 : READ_ENUM_FIELD(strength, LockClauseStrength);
1387 2178 : READ_ENUM_FIELD(waitPolicy, LockWaitPolicy);
1388 :
1389 2178 : READ_DONE();
1390 : }
1391 :
1392 : static XmlSerialize *
1393 266 : _readXmlSerialize(void)
1394 : {
1395 266 : READ_LOCALS(XmlSerialize);
1396 :
1397 266 : READ_ENUM_FIELD(xmloption, XmlOptionType);
1398 266 : READ_NODE_FIELD(expr);
1399 266 : READ_NODE_FIELD(typeName);
1400 266 : READ_BOOL_FIELD(indent);
1401 266 : READ_LOCATION_FIELD(location);
1402 :
1403 266 : READ_DONE();
1404 : }
1405 :
1406 : static PartitionElem *
1407 11224 : _readPartitionElem(void)
1408 : {
1409 11224 : READ_LOCALS(PartitionElem);
1410 :
1411 11224 : READ_STRING_FIELD(name);
1412 11224 : READ_NODE_FIELD(expr);
1413 11224 : READ_NODE_FIELD(collation);
1414 11224 : READ_NODE_FIELD(opclass);
1415 11224 : READ_LOCATION_FIELD(location);
1416 :
1417 11224 : READ_DONE();
1418 : }
1419 :
1420 : static PartitionSpec *
1421 10292 : _readPartitionSpec(void)
1422 : {
1423 10292 : READ_LOCALS(PartitionSpec);
1424 :
1425 10292 : READ_ENUM_FIELD(strategy, PartitionStrategy);
1426 10292 : READ_NODE_FIELD(partParams);
1427 10292 : READ_LOCATION_FIELD(location);
1428 :
1429 10292 : READ_DONE();
1430 : }
1431 :
1432 : static PartitionBoundSpec *
1433 65638 : _readPartitionBoundSpec(void)
1434 : {
1435 65638 : READ_LOCALS(PartitionBoundSpec);
1436 :
1437 65638 : READ_CHAR_FIELD(strategy);
1438 65638 : READ_BOOL_FIELD(is_default);
1439 65638 : READ_INT_FIELD(modulus);
1440 65638 : READ_INT_FIELD(remainder);
1441 65638 : READ_NODE_FIELD(listdatums);
1442 65638 : READ_NODE_FIELD(lowerdatums);
1443 65638 : READ_NODE_FIELD(upperdatums);
1444 65638 : READ_LOCATION_FIELD(location);
1445 :
1446 65638 : READ_DONE();
1447 : }
1448 :
1449 : static PartitionRangeDatum *
1450 51020 : _readPartitionRangeDatum(void)
1451 : {
1452 51020 : READ_LOCALS(PartitionRangeDatum);
1453 :
1454 51020 : READ_ENUM_FIELD(kind, PartitionRangeDatumKind);
1455 51020 : READ_NODE_FIELD(value);
1456 51020 : READ_LOCATION_FIELD(location);
1457 :
1458 51020 : READ_DONE();
1459 : }
1460 :
1461 : static PartitionCmd *
1462 7874 : _readPartitionCmd(void)
1463 : {
1464 7874 : READ_LOCALS(PartitionCmd);
1465 :
1466 7874 : READ_NODE_FIELD(name);
1467 7874 : READ_NODE_FIELD(bound);
1468 7874 : READ_BOOL_FIELD(concurrent);
1469 :
1470 7874 : READ_DONE();
1471 : }
1472 :
1473 : static RTEPermissionInfo *
1474 1067660 : _readRTEPermissionInfo(void)
1475 : {
1476 1067660 : READ_LOCALS(RTEPermissionInfo);
1477 :
1478 1067660 : READ_OID_FIELD(relid);
1479 1067660 : READ_BOOL_FIELD(inh);
1480 1067660 : READ_UINT64_FIELD(requiredPerms);
1481 1067660 : READ_OID_FIELD(checkAsUser);
1482 1067660 : READ_BITMAPSET_FIELD(selectedCols);
1483 1067660 : READ_BITMAPSET_FIELD(insertedCols);
1484 1067660 : READ_BITMAPSET_FIELD(updatedCols);
1485 :
1486 1067660 : READ_DONE();
1487 : }
1488 :
1489 : static RangeTblFunction *
1490 116022 : _readRangeTblFunction(void)
1491 : {
1492 116022 : READ_LOCALS(RangeTblFunction);
1493 :
1494 116022 : READ_NODE_FIELD(funcexpr);
1495 116022 : READ_INT_FIELD(funccolcount);
1496 116022 : READ_NODE_FIELD(funccolnames);
1497 116022 : READ_NODE_FIELD(funccoltypes);
1498 116022 : READ_NODE_FIELD(funccoltypmods);
1499 116022 : READ_NODE_FIELD(funccolcollations);
1500 116022 : READ_BITMAPSET_FIELD(funcparams);
1501 :
1502 116022 : READ_DONE();
1503 : }
1504 :
1505 : static TableSampleClause *
1506 646 : _readTableSampleClause(void)
1507 : {
1508 646 : READ_LOCALS(TableSampleClause);
1509 :
1510 646 : READ_OID_FIELD(tsmhandler);
1511 646 : READ_NODE_FIELD(args);
1512 646 : READ_NODE_FIELD(repeatable);
1513 :
1514 646 : READ_DONE();
1515 : }
1516 :
1517 : static WithCheckOption *
1518 4842 : _readWithCheckOption(void)
1519 : {
1520 4842 : READ_LOCALS(WithCheckOption);
1521 :
1522 4842 : READ_ENUM_FIELD(kind, WCOKind);
1523 4842 : READ_STRING_FIELD(relname);
1524 4842 : READ_STRING_FIELD(polname);
1525 4842 : READ_NODE_FIELD(qual);
1526 4842 : READ_BOOL_FIELD(cascaded);
1527 :
1528 4842 : READ_DONE();
1529 : }
1530 :
1531 : static SortGroupClause *
1532 169548 : _readSortGroupClause(void)
1533 : {
1534 169548 : READ_LOCALS(SortGroupClause);
1535 :
1536 169548 : READ_UINT_FIELD(tleSortGroupRef);
1537 169548 : READ_OID_FIELD(eqop);
1538 169548 : READ_OID_FIELD(sortop);
1539 169548 : READ_BOOL_FIELD(reverse_sort);
1540 169548 : READ_BOOL_FIELD(nulls_first);
1541 169548 : READ_BOOL_FIELD(hashable);
1542 :
1543 169548 : READ_DONE();
1544 : }
1545 :
1546 : static GroupingSet *
1547 4312 : _readGroupingSet(void)
1548 : {
1549 4312 : READ_LOCALS(GroupingSet);
1550 :
1551 4312 : READ_ENUM_FIELD(kind, GroupingSetKind);
1552 4312 : READ_NODE_FIELD(content);
1553 4312 : READ_LOCATION_FIELD(location);
1554 :
1555 4312 : READ_DONE();
1556 : }
1557 :
1558 : static WindowClause *
1559 2946 : _readWindowClause(void)
1560 : {
1561 2946 : READ_LOCALS(WindowClause);
1562 :
1563 2946 : READ_STRING_FIELD(name);
1564 2946 : READ_STRING_FIELD(refname);
1565 2946 : READ_NODE_FIELD(partitionClause);
1566 2946 : READ_NODE_FIELD(orderClause);
1567 2946 : READ_INT_FIELD(frameOptions);
1568 2946 : READ_NODE_FIELD(startOffset);
1569 2946 : READ_NODE_FIELD(endOffset);
1570 2946 : READ_OID_FIELD(startInRangeFunc);
1571 2946 : READ_OID_FIELD(endInRangeFunc);
1572 2946 : READ_OID_FIELD(inRangeColl);
1573 2946 : READ_BOOL_FIELD(inRangeAsc);
1574 2946 : READ_BOOL_FIELD(inRangeNullsFirst);
1575 2946 : READ_UINT_FIELD(winref);
1576 2946 : READ_BOOL_FIELD(copiedOrder);
1577 :
1578 2946 : READ_DONE();
1579 : }
1580 :
1581 : static RowMarkClause *
1582 5356 : _readRowMarkClause(void)
1583 : {
1584 5356 : READ_LOCALS(RowMarkClause);
1585 :
1586 5356 : READ_UINT_FIELD(rti);
1587 5356 : READ_ENUM_FIELD(strength, LockClauseStrength);
1588 5356 : READ_ENUM_FIELD(waitPolicy, LockWaitPolicy);
1589 5356 : READ_BOOL_FIELD(pushedDown);
1590 :
1591 5356 : READ_DONE();
1592 : }
1593 :
1594 : static WithClause *
1595 3380 : _readWithClause(void)
1596 : {
1597 3380 : READ_LOCALS(WithClause);
1598 :
1599 3380 : READ_NODE_FIELD(ctes);
1600 3380 : READ_BOOL_FIELD(recursive);
1601 3380 : READ_LOCATION_FIELD(location);
1602 :
1603 3380 : READ_DONE();
1604 : }
1605 :
1606 : static InferClause *
1607 1632 : _readInferClause(void)
1608 : {
1609 1632 : READ_LOCALS(InferClause);
1610 :
1611 1632 : READ_NODE_FIELD(indexElems);
1612 1632 : READ_NODE_FIELD(whereClause);
1613 1632 : READ_STRING_FIELD(conname);
1614 1632 : READ_LOCATION_FIELD(location);
1615 :
1616 1632 : READ_DONE();
1617 : }
1618 :
1619 : static OnConflictClause *
1620 1872 : _readOnConflictClause(void)
1621 : {
1622 1872 : READ_LOCALS(OnConflictClause);
1623 :
1624 1872 : READ_ENUM_FIELD(action, OnConflictAction);
1625 1872 : READ_NODE_FIELD(infer);
1626 1872 : READ_NODE_FIELD(targetList);
1627 1872 : READ_NODE_FIELD(whereClause);
1628 1872 : READ_LOCATION_FIELD(location);
1629 :
1630 1872 : READ_DONE();
1631 : }
1632 :
1633 : static CTESearchClause *
1634 228 : _readCTESearchClause(void)
1635 : {
1636 228 : READ_LOCALS(CTESearchClause);
1637 :
1638 228 : READ_NODE_FIELD(search_col_list);
1639 228 : READ_BOOL_FIELD(search_breadth_first);
1640 228 : READ_STRING_FIELD(search_seq_column);
1641 228 : READ_LOCATION_FIELD(location);
1642 :
1643 228 : READ_DONE();
1644 : }
1645 :
1646 : static CTECycleClause *
1647 246 : _readCTECycleClause(void)
1648 : {
1649 246 : READ_LOCALS(CTECycleClause);
1650 :
1651 246 : READ_NODE_FIELD(cycle_col_list);
1652 246 : READ_STRING_FIELD(cycle_mark_column);
1653 246 : READ_NODE_FIELD(cycle_mark_value);
1654 246 : READ_NODE_FIELD(cycle_mark_default);
1655 246 : READ_STRING_FIELD(cycle_path_column);
1656 246 : READ_LOCATION_FIELD(location);
1657 246 : READ_OID_FIELD(cycle_mark_type);
1658 246 : READ_INT_FIELD(cycle_mark_typmod);
1659 246 : READ_OID_FIELD(cycle_mark_collation);
1660 246 : READ_OID_FIELD(cycle_mark_neop);
1661 :
1662 246 : READ_DONE();
1663 : }
1664 :
1665 : static CommonTableExpr *
1666 9060 : _readCommonTableExpr(void)
1667 : {
1668 9060 : READ_LOCALS(CommonTableExpr);
1669 :
1670 9060 : READ_STRING_FIELD(ctename);
1671 9060 : READ_NODE_FIELD(aliascolnames);
1672 9060 : READ_ENUM_FIELD(ctematerialized, CTEMaterialize);
1673 9060 : READ_NODE_FIELD(ctequery);
1674 9060 : READ_NODE_FIELD(search_clause);
1675 9060 : READ_NODE_FIELD(cycle_clause);
1676 9060 : READ_LOCATION_FIELD(location);
1677 9060 : READ_BOOL_FIELD(cterecursive);
1678 9060 : READ_INT_FIELD(cterefcount);
1679 9060 : READ_NODE_FIELD(ctecolnames);
1680 9060 : READ_NODE_FIELD(ctecoltypes);
1681 9060 : READ_NODE_FIELD(ctecoltypmods);
1682 9060 : READ_NODE_FIELD(ctecolcollations);
1683 :
1684 9060 : READ_DONE();
1685 : }
1686 :
1687 : static MergeWhenClause *
1688 3014 : _readMergeWhenClause(void)
1689 : {
1690 3014 : READ_LOCALS(MergeWhenClause);
1691 :
1692 3014 : READ_ENUM_FIELD(matchKind, MergeMatchKind);
1693 3014 : READ_ENUM_FIELD(commandType, CmdType);
1694 3014 : READ_ENUM_FIELD(override, OverridingKind);
1695 3014 : READ_NODE_FIELD(condition);
1696 3014 : READ_NODE_FIELD(targetList);
1697 3014 : READ_NODE_FIELD(values);
1698 :
1699 3014 : READ_DONE();
1700 : }
1701 :
1702 : static ReturningOption *
1703 150 : _readReturningOption(void)
1704 : {
1705 150 : READ_LOCALS(ReturningOption);
1706 :
1707 150 : READ_ENUM_FIELD(option, ReturningOptionKind);
1708 150 : READ_STRING_FIELD(value);
1709 150 : READ_LOCATION_FIELD(location);
1710 :
1711 150 : READ_DONE();
1712 : }
1713 :
1714 : static ReturningClause *
1715 3302 : _readReturningClause(void)
1716 : {
1717 3302 : READ_LOCALS(ReturningClause);
1718 :
1719 3302 : READ_NODE_FIELD(options);
1720 3302 : READ_NODE_FIELD(exprs);
1721 :
1722 3302 : READ_DONE();
1723 : }
1724 :
1725 : static TriggerTransition *
1726 1228 : _readTriggerTransition(void)
1727 : {
1728 1228 : READ_LOCALS(TriggerTransition);
1729 :
1730 1228 : READ_STRING_FIELD(name);
1731 1228 : READ_BOOL_FIELD(isNew);
1732 1228 : READ_BOOL_FIELD(isTable);
1733 :
1734 1228 : READ_DONE();
1735 : }
1736 :
1737 : static JsonOutput *
1738 1486 : _readJsonOutput(void)
1739 : {
1740 1486 : READ_LOCALS(JsonOutput);
1741 :
1742 1486 : READ_NODE_FIELD(typeName);
1743 1486 : READ_NODE_FIELD(returning);
1744 :
1745 1486 : READ_DONE();
1746 : }
1747 :
1748 : static JsonArgument *
1749 630 : _readJsonArgument(void)
1750 : {
1751 630 : READ_LOCALS(JsonArgument);
1752 :
1753 630 : READ_NODE_FIELD(val);
1754 630 : READ_STRING_FIELD(name);
1755 :
1756 630 : READ_DONE();
1757 : }
1758 :
1759 : static JsonFuncExpr *
1760 1992 : _readJsonFuncExpr(void)
1761 : {
1762 1992 : READ_LOCALS(JsonFuncExpr);
1763 :
1764 1992 : READ_ENUM_FIELD(op, JsonExprOp);
1765 1992 : READ_STRING_FIELD(column_name);
1766 1992 : READ_NODE_FIELD(context_item);
1767 1992 : READ_NODE_FIELD(pathspec);
1768 1992 : READ_NODE_FIELD(passing);
1769 1992 : READ_NODE_FIELD(output);
1770 1992 : READ_NODE_FIELD(on_empty);
1771 1992 : READ_NODE_FIELD(on_error);
1772 1992 : READ_ENUM_FIELD(wrapper, JsonWrapper);
1773 1992 : READ_ENUM_FIELD(quotes, JsonQuotes);
1774 1992 : READ_LOCATION_FIELD(location);
1775 :
1776 1992 : READ_DONE();
1777 : }
1778 :
1779 : static JsonTablePathSpec *
1780 1972 : _readJsonTablePathSpec(void)
1781 : {
1782 1972 : READ_LOCALS(JsonTablePathSpec);
1783 :
1784 1972 : READ_NODE_FIELD(string);
1785 1972 : READ_STRING_FIELD(name);
1786 1972 : READ_LOCATION_FIELD(name_location);
1787 1972 : READ_LOCATION_FIELD(location);
1788 :
1789 1972 : READ_DONE();
1790 : }
1791 :
1792 : static JsonTable *
1793 590 : _readJsonTable(void)
1794 : {
1795 590 : READ_LOCALS(JsonTable);
1796 :
1797 590 : READ_NODE_FIELD(context_item);
1798 590 : READ_NODE_FIELD(pathspec);
1799 590 : READ_NODE_FIELD(passing);
1800 590 : READ_NODE_FIELD(columns);
1801 590 : READ_NODE_FIELD(on_error);
1802 590 : READ_NODE_FIELD(alias);
1803 590 : READ_BOOL_FIELD(lateral);
1804 590 : READ_LOCATION_FIELD(location);
1805 :
1806 590 : READ_DONE();
1807 : }
1808 :
1809 : static JsonTableColumn *
1810 1648 : _readJsonTableColumn(void)
1811 : {
1812 1648 : READ_LOCALS(JsonTableColumn);
1813 :
1814 1648 : READ_ENUM_FIELD(coltype, JsonTableColumnType);
1815 1648 : READ_STRING_FIELD(name);
1816 1648 : READ_NODE_FIELD(typeName);
1817 1648 : READ_NODE_FIELD(pathspec);
1818 1648 : READ_NODE_FIELD(format);
1819 1648 : READ_ENUM_FIELD(wrapper, JsonWrapper);
1820 1648 : READ_ENUM_FIELD(quotes, JsonQuotes);
1821 1648 : READ_NODE_FIELD(columns);
1822 1648 : READ_NODE_FIELD(on_empty);
1823 1648 : READ_NODE_FIELD(on_error);
1824 1648 : READ_LOCATION_FIELD(location);
1825 :
1826 1648 : READ_DONE();
1827 : }
1828 :
1829 : static JsonKeyValue *
1830 826 : _readJsonKeyValue(void)
1831 : {
1832 826 : READ_LOCALS(JsonKeyValue);
1833 :
1834 826 : READ_NODE_FIELD(key);
1835 826 : READ_NODE_FIELD(value);
1836 :
1837 826 : READ_DONE();
1838 : }
1839 :
1840 : static JsonParseExpr *
1841 164 : _readJsonParseExpr(void)
1842 : {
1843 164 : READ_LOCALS(JsonParseExpr);
1844 :
1845 164 : READ_NODE_FIELD(expr);
1846 164 : READ_NODE_FIELD(output);
1847 164 : READ_BOOL_FIELD(unique_keys);
1848 164 : READ_LOCATION_FIELD(location);
1849 :
1850 164 : READ_DONE();
1851 : }
1852 :
1853 : static JsonScalarExpr *
1854 112 : _readJsonScalarExpr(void)
1855 : {
1856 112 : READ_LOCALS(JsonScalarExpr);
1857 :
1858 112 : READ_NODE_FIELD(expr);
1859 112 : READ_NODE_FIELD(output);
1860 112 : READ_LOCATION_FIELD(location);
1861 :
1862 112 : READ_DONE();
1863 : }
1864 :
1865 : static JsonSerializeExpr *
1866 108 : _readJsonSerializeExpr(void)
1867 : {
1868 108 : READ_LOCALS(JsonSerializeExpr);
1869 :
1870 108 : READ_NODE_FIELD(expr);
1871 108 : READ_NODE_FIELD(output);
1872 108 : READ_LOCATION_FIELD(location);
1873 :
1874 108 : READ_DONE();
1875 : }
1876 :
1877 : static JsonObjectConstructor *
1878 446 : _readJsonObjectConstructor(void)
1879 : {
1880 446 : READ_LOCALS(JsonObjectConstructor);
1881 :
1882 446 : READ_NODE_FIELD(exprs);
1883 446 : READ_NODE_FIELD(output);
1884 446 : READ_BOOL_FIELD(absent_on_null);
1885 446 : READ_BOOL_FIELD(unique);
1886 446 : READ_LOCATION_FIELD(location);
1887 :
1888 446 : READ_DONE();
1889 : }
1890 :
1891 : static JsonArrayConstructor *
1892 200 : _readJsonArrayConstructor(void)
1893 : {
1894 200 : READ_LOCALS(JsonArrayConstructor);
1895 :
1896 200 : READ_NODE_FIELD(exprs);
1897 200 : READ_NODE_FIELD(output);
1898 200 : READ_BOOL_FIELD(absent_on_null);
1899 200 : READ_LOCATION_FIELD(location);
1900 :
1901 200 : READ_DONE();
1902 : }
1903 :
1904 : static JsonArrayQueryConstructor *
1905 66 : _readJsonArrayQueryConstructor(void)
1906 : {
1907 66 : READ_LOCALS(JsonArrayQueryConstructor);
1908 :
1909 66 : READ_NODE_FIELD(query);
1910 66 : READ_NODE_FIELD(output);
1911 66 : READ_NODE_FIELD(format);
1912 66 : READ_BOOL_FIELD(absent_on_null);
1913 66 : READ_LOCATION_FIELD(location);
1914 :
1915 66 : READ_DONE();
1916 : }
1917 :
1918 : static JsonAggConstructor *
1919 372 : _readJsonAggConstructor(void)
1920 : {
1921 372 : READ_LOCALS(JsonAggConstructor);
1922 :
1923 372 : READ_NODE_FIELD(output);
1924 372 : READ_NODE_FIELD(agg_filter);
1925 372 : READ_NODE_FIELD(agg_order);
1926 372 : READ_NODE_FIELD(over);
1927 372 : READ_LOCATION_FIELD(location);
1928 :
1929 372 : READ_DONE();
1930 : }
1931 :
1932 : static JsonObjectAgg *
1933 210 : _readJsonObjectAgg(void)
1934 : {
1935 210 : READ_LOCALS(JsonObjectAgg);
1936 :
1937 210 : READ_NODE_FIELD(constructor);
1938 210 : READ_NODE_FIELD(arg);
1939 210 : READ_BOOL_FIELD(absent_on_null);
1940 210 : READ_BOOL_FIELD(unique);
1941 :
1942 210 : READ_DONE();
1943 : }
1944 :
1945 : static JsonArrayAgg *
1946 162 : _readJsonArrayAgg(void)
1947 : {
1948 162 : READ_LOCALS(JsonArrayAgg);
1949 :
1950 162 : READ_NODE_FIELD(constructor);
1951 162 : READ_NODE_FIELD(arg);
1952 162 : READ_BOOL_FIELD(absent_on_null);
1953 :
1954 162 : READ_DONE();
1955 : }
1956 :
1957 : static RawStmt *
1958 752384 : _readRawStmt(void)
1959 : {
1960 752384 : READ_LOCALS(RawStmt);
1961 :
1962 752384 : READ_NODE_FIELD(stmt);
1963 752378 : READ_LOCATION_FIELD(stmt_location);
1964 752378 : READ_LOCATION_FIELD(stmt_len);
1965 :
1966 752378 : READ_DONE();
1967 : }
1968 :
1969 : static InsertStmt *
1970 71236 : _readInsertStmt(void)
1971 : {
1972 71236 : READ_LOCALS(InsertStmt);
1973 :
1974 71236 : READ_NODE_FIELD(relation);
1975 71236 : READ_NODE_FIELD(cols);
1976 71236 : READ_NODE_FIELD(selectStmt);
1977 71236 : READ_NODE_FIELD(onConflictClause);
1978 71236 : READ_NODE_FIELD(returningClause);
1979 71236 : READ_NODE_FIELD(withClause);
1980 71236 : READ_ENUM_FIELD(override, OverridingKind);
1981 :
1982 71236 : READ_DONE();
1983 : }
1984 :
1985 : static DeleteStmt *
1986 4472 : _readDeleteStmt(void)
1987 : {
1988 4472 : READ_LOCALS(DeleteStmt);
1989 :
1990 4472 : READ_NODE_FIELD(relation);
1991 4472 : READ_NODE_FIELD(usingClause);
1992 4472 : READ_NODE_FIELD(whereClause);
1993 4472 : READ_NODE_FIELD(returningClause);
1994 4472 : READ_NODE_FIELD(withClause);
1995 :
1996 4472 : READ_DONE();
1997 : }
1998 :
1999 : static UpdateStmt *
2000 13614 : _readUpdateStmt(void)
2001 : {
2002 13614 : READ_LOCALS(UpdateStmt);
2003 :
2004 13614 : READ_NODE_FIELD(relation);
2005 13614 : READ_NODE_FIELD(targetList);
2006 13614 : READ_NODE_FIELD(whereClause);
2007 13614 : READ_NODE_FIELD(fromClause);
2008 13614 : READ_NODE_FIELD(returningClause);
2009 13614 : READ_NODE_FIELD(withClause);
2010 :
2011 13614 : READ_DONE();
2012 : }
2013 :
2014 : static MergeStmt *
2015 1960 : _readMergeStmt(void)
2016 : {
2017 1960 : READ_LOCALS(MergeStmt);
2018 :
2019 1960 : READ_NODE_FIELD(relation);
2020 1960 : READ_NODE_FIELD(sourceRelation);
2021 1960 : READ_NODE_FIELD(joinCondition);
2022 1960 : READ_NODE_FIELD(mergeWhenClauses);
2023 1960 : READ_NODE_FIELD(returningClause);
2024 1960 : READ_NODE_FIELD(withClause);
2025 :
2026 1960 : READ_DONE();
2027 : }
2028 :
2029 : static SelectStmt *
2030 523358 : _readSelectStmt(void)
2031 : {
2032 523358 : READ_LOCALS(SelectStmt);
2033 :
2034 523358 : READ_NODE_FIELD(distinctClause);
2035 523358 : READ_NODE_FIELD(intoClause);
2036 523358 : READ_NODE_FIELD(targetList);
2037 523358 : READ_NODE_FIELD(fromClause);
2038 523358 : READ_NODE_FIELD(whereClause);
2039 523358 : READ_NODE_FIELD(groupClause);
2040 523358 : READ_BOOL_FIELD(groupDistinct);
2041 523358 : READ_NODE_FIELD(havingClause);
2042 523358 : READ_NODE_FIELD(windowClause);
2043 523358 : READ_NODE_FIELD(valuesLists);
2044 523358 : READ_NODE_FIELD(sortClause);
2045 523358 : READ_NODE_FIELD(limitOffset);
2046 523358 : READ_NODE_FIELD(limitCount);
2047 523358 : READ_ENUM_FIELD(limitOption, LimitOption);
2048 523358 : READ_NODE_FIELD(lockingClause);
2049 523358 : READ_NODE_FIELD(withClause);
2050 523358 : READ_ENUM_FIELD(op, SetOperation);
2051 523358 : READ_BOOL_FIELD(all);
2052 523358 : READ_NODE_FIELD(larg);
2053 523358 : READ_NODE_FIELD(rarg);
2054 :
2055 523358 : READ_DONE();
2056 : }
2057 :
2058 : static SetOperationStmt *
2059 22056 : _readSetOperationStmt(void)
2060 : {
2061 22056 : READ_LOCALS(SetOperationStmt);
2062 :
2063 22056 : READ_ENUM_FIELD(op, SetOperation);
2064 22056 : READ_BOOL_FIELD(all);
2065 22056 : READ_NODE_FIELD(larg);
2066 22056 : READ_NODE_FIELD(rarg);
2067 22056 : READ_NODE_FIELD(colTypes);
2068 22056 : READ_NODE_FIELD(colTypmods);
2069 22056 : READ_NODE_FIELD(colCollations);
2070 22056 : READ_NODE_FIELD(groupClauses);
2071 :
2072 22056 : READ_DONE();
2073 : }
2074 :
2075 : static ReturnStmt *
2076 9960 : _readReturnStmt(void)
2077 : {
2078 9960 : READ_LOCALS(ReturnStmt);
2079 :
2080 9960 : READ_NODE_FIELD(returnval);
2081 :
2082 9960 : READ_DONE();
2083 : }
2084 :
2085 : static PLAssignStmt *
2086 0 : _readPLAssignStmt(void)
2087 : {
2088 0 : READ_LOCALS(PLAssignStmt);
2089 :
2090 0 : READ_STRING_FIELD(name);
2091 0 : READ_NODE_FIELD(indirection);
2092 0 : READ_INT_FIELD(nnames);
2093 0 : READ_NODE_FIELD(val);
2094 0 : READ_LOCATION_FIELD(location);
2095 :
2096 0 : READ_DONE();
2097 : }
2098 :
2099 : static CreateSchemaStmt *
2100 2136 : _readCreateSchemaStmt(void)
2101 : {
2102 2136 : READ_LOCALS(CreateSchemaStmt);
2103 :
2104 2136 : READ_STRING_FIELD(schemaname);
2105 2136 : READ_NODE_FIELD(authrole);
2106 2136 : READ_NODE_FIELD(schemaElts);
2107 2136 : READ_BOOL_FIELD(if_not_exists);
2108 :
2109 2136 : READ_DONE();
2110 : }
2111 :
2112 : static AlterTableStmt *
2113 66392 : _readAlterTableStmt(void)
2114 : {
2115 66392 : READ_LOCALS(AlterTableStmt);
2116 :
2117 66392 : READ_NODE_FIELD(relation);
2118 66392 : READ_NODE_FIELD(cmds);
2119 66392 : READ_ENUM_FIELD(objtype, ObjectType);
2120 66392 : READ_BOOL_FIELD(missing_ok);
2121 :
2122 66392 : READ_DONE();
2123 : }
2124 :
2125 : static AlterTableCmd *
2126 68408 : _readAlterTableCmd(void)
2127 : {
2128 68408 : READ_LOCALS(AlterTableCmd);
2129 :
2130 68408 : READ_ENUM_FIELD(subtype, AlterTableType);
2131 68408 : READ_STRING_FIELD(name);
2132 68408 : READ_INT_FIELD(num);
2133 68408 : READ_NODE_FIELD(newowner);
2134 68408 : READ_NODE_FIELD(def);
2135 68408 : READ_ENUM_FIELD(behavior, DropBehavior);
2136 68408 : READ_BOOL_FIELD(missing_ok);
2137 68408 : READ_BOOL_FIELD(recurse);
2138 :
2139 68408 : READ_DONE();
2140 : }
2141 :
2142 : static ATAlterConstraint *
2143 588 : _readATAlterConstraint(void)
2144 : {
2145 588 : READ_LOCALS(ATAlterConstraint);
2146 :
2147 588 : READ_STRING_FIELD(conname);
2148 588 : READ_BOOL_FIELD(alterEnforceability);
2149 588 : READ_BOOL_FIELD(is_enforced);
2150 588 : READ_BOOL_FIELD(alterDeferrability);
2151 588 : READ_BOOL_FIELD(deferrable);
2152 588 : READ_BOOL_FIELD(initdeferred);
2153 588 : READ_BOOL_FIELD(alterInheritability);
2154 588 : READ_BOOL_FIELD(noinherit);
2155 :
2156 588 : READ_DONE();
2157 : }
2158 :
2159 : static ReplicaIdentityStmt *
2160 980 : _readReplicaIdentityStmt(void)
2161 : {
2162 980 : READ_LOCALS(ReplicaIdentityStmt);
2163 :
2164 980 : READ_CHAR_FIELD(identity_type);
2165 980 : READ_STRING_FIELD(name);
2166 :
2167 980 : READ_DONE();
2168 : }
2169 :
2170 : static AlterCollationStmt *
2171 12 : _readAlterCollationStmt(void)
2172 : {
2173 12 : READ_LOCALS(AlterCollationStmt);
2174 :
2175 12 : READ_NODE_FIELD(collname);
2176 :
2177 12 : READ_DONE();
2178 : }
2179 :
2180 : static AlterDomainStmt *
2181 564 : _readAlterDomainStmt(void)
2182 : {
2183 564 : READ_LOCALS(AlterDomainStmt);
2184 :
2185 564 : READ_ENUM_FIELD(subtype, AlterDomainType);
2186 564 : READ_NODE_FIELD(typeName);
2187 564 : READ_STRING_FIELD(name);
2188 564 : READ_NODE_FIELD(def);
2189 564 : READ_ENUM_FIELD(behavior, DropBehavior);
2190 564 : READ_BOOL_FIELD(missing_ok);
2191 :
2192 564 : READ_DONE();
2193 : }
2194 :
2195 : static GrantStmt *
2196 41974 : _readGrantStmt(void)
2197 : {
2198 41974 : READ_LOCALS(GrantStmt);
2199 :
2200 41974 : READ_BOOL_FIELD(is_grant);
2201 41974 : READ_ENUM_FIELD(targtype, GrantTargetType);
2202 41974 : READ_ENUM_FIELD(objtype, ObjectType);
2203 41974 : READ_NODE_FIELD(objects);
2204 41974 : READ_NODE_FIELD(privileges);
2205 41974 : READ_NODE_FIELD(grantees);
2206 41974 : READ_BOOL_FIELD(grant_option);
2207 41974 : READ_NODE_FIELD(grantor);
2208 41974 : READ_ENUM_FIELD(behavior, DropBehavior);
2209 :
2210 41974 : READ_DONE();
2211 : }
2212 :
2213 : static ObjectWithArgs *
2214 40934 : _readObjectWithArgs(void)
2215 : {
2216 40934 : READ_LOCALS(ObjectWithArgs);
2217 :
2218 40934 : READ_NODE_FIELD(objname);
2219 40934 : READ_NODE_FIELD(objargs);
2220 40934 : READ_NODE_FIELD(objfuncargs);
2221 40934 : READ_BOOL_FIELD(args_unspecified);
2222 :
2223 40934 : READ_DONE();
2224 : }
2225 :
2226 : static AccessPriv *
2227 39474 : _readAccessPriv(void)
2228 : {
2229 39474 : READ_LOCALS(AccessPriv);
2230 :
2231 39474 : READ_STRING_FIELD(priv_name);
2232 39474 : READ_NODE_FIELD(cols);
2233 :
2234 39474 : READ_DONE();
2235 : }
2236 :
2237 : static GrantRoleStmt *
2238 1836 : _readGrantRoleStmt(void)
2239 : {
2240 1836 : READ_LOCALS(GrantRoleStmt);
2241 :
2242 1836 : READ_NODE_FIELD(granted_roles);
2243 1836 : READ_NODE_FIELD(grantee_roles);
2244 1836 : READ_BOOL_FIELD(is_grant);
2245 1836 : READ_NODE_FIELD(opt);
2246 1836 : READ_NODE_FIELD(grantor);
2247 1836 : READ_ENUM_FIELD(behavior, DropBehavior);
2248 :
2249 1836 : READ_DONE();
2250 : }
2251 :
2252 : static AlterDefaultPrivilegesStmt *
2253 380 : _readAlterDefaultPrivilegesStmt(void)
2254 : {
2255 380 : READ_LOCALS(AlterDefaultPrivilegesStmt);
2256 :
2257 380 : READ_NODE_FIELD(options);
2258 380 : READ_NODE_FIELD(action);
2259 :
2260 380 : READ_DONE();
2261 : }
2262 :
2263 : static CopyStmt *
2264 32740 : _readCopyStmt(void)
2265 : {
2266 32740 : READ_LOCALS(CopyStmt);
2267 :
2268 32740 : READ_NODE_FIELD(relation);
2269 32740 : READ_NODE_FIELD(query);
2270 32740 : READ_NODE_FIELD(attlist);
2271 32740 : READ_BOOL_FIELD(is_from);
2272 32740 : READ_BOOL_FIELD(is_program);
2273 32740 : READ_STRING_FIELD(filename);
2274 32740 : READ_NODE_FIELD(options);
2275 32740 : READ_NODE_FIELD(whereClause);
2276 :
2277 32740 : READ_DONE();
2278 : }
2279 :
2280 : static VariableSetStmt *
2281 58708 : _readVariableSetStmt(void)
2282 : {
2283 58708 : READ_LOCALS(VariableSetStmt);
2284 :
2285 58708 : READ_ENUM_FIELD(kind, VariableSetKind);
2286 58708 : READ_STRING_FIELD(name);
2287 58708 : READ_NODE_FIELD(args);
2288 58708 : READ_BOOL_FIELD(jumble_args);
2289 58708 : READ_BOOL_FIELD(is_local);
2290 58708 : READ_LOCATION_FIELD(location);
2291 :
2292 58708 : READ_DONE();
2293 : }
2294 :
2295 : static VariableShowStmt *
2296 1756 : _readVariableShowStmt(void)
2297 : {
2298 1756 : READ_LOCALS(VariableShowStmt);
2299 :
2300 1756 : READ_STRING_FIELD(name);
2301 :
2302 1756 : READ_DONE();
2303 : }
2304 :
2305 : static CreateStmt *
2306 77540 : _readCreateStmt(void)
2307 : {
2308 77540 : READ_LOCALS(CreateStmt);
2309 :
2310 77540 : READ_NODE_FIELD(relation);
2311 77540 : READ_NODE_FIELD(tableElts);
2312 77540 : READ_NODE_FIELD(inhRelations);
2313 77540 : READ_NODE_FIELD(partbound);
2314 77540 : READ_NODE_FIELD(partspec);
2315 77540 : READ_NODE_FIELD(ofTypename);
2316 77540 : READ_NODE_FIELD(constraints);
2317 77540 : READ_NODE_FIELD(nnconstraints);
2318 77540 : READ_NODE_FIELD(options);
2319 77540 : READ_ENUM_FIELD(oncommit, OnCommitAction);
2320 77540 : READ_STRING_FIELD(tablespacename);
2321 77540 : READ_STRING_FIELD(accessMethod);
2322 77540 : READ_BOOL_FIELD(if_not_exists);
2323 :
2324 77540 : READ_DONE();
2325 : }
2326 :
2327 : static Constraint *
2328 74390 : _readConstraint(void)
2329 : {
2330 74390 : READ_LOCALS(Constraint);
2331 :
2332 74390 : READ_ENUM_FIELD(contype, ConstrType);
2333 74390 : READ_STRING_FIELD(conname);
2334 74390 : READ_BOOL_FIELD(deferrable);
2335 74390 : READ_BOOL_FIELD(initdeferred);
2336 74390 : READ_BOOL_FIELD(is_enforced);
2337 74390 : READ_BOOL_FIELD(skip_validation);
2338 74390 : READ_BOOL_FIELD(initially_valid);
2339 74390 : READ_BOOL_FIELD(is_no_inherit);
2340 74390 : READ_NODE_FIELD(raw_expr);
2341 74390 : READ_STRING_FIELD(cooked_expr);
2342 74390 : READ_CHAR_FIELD(generated_when);
2343 74390 : READ_CHAR_FIELD(generated_kind);
2344 74390 : READ_BOOL_FIELD(nulls_not_distinct);
2345 74390 : READ_NODE_FIELD(keys);
2346 74390 : READ_BOOL_FIELD(without_overlaps);
2347 74390 : READ_NODE_FIELD(including);
2348 74390 : READ_NODE_FIELD(exclusions);
2349 74390 : READ_NODE_FIELD(options);
2350 74390 : READ_STRING_FIELD(indexname);
2351 74390 : READ_STRING_FIELD(indexspace);
2352 74390 : READ_BOOL_FIELD(reset_default_tblspc);
2353 74390 : READ_STRING_FIELD(access_method);
2354 74390 : READ_NODE_FIELD(where_clause);
2355 74390 : READ_NODE_FIELD(pktable);
2356 74390 : READ_NODE_FIELD(fk_attrs);
2357 74390 : READ_NODE_FIELD(pk_attrs);
2358 74390 : READ_BOOL_FIELD(fk_with_period);
2359 74390 : READ_BOOL_FIELD(pk_with_period);
2360 74390 : READ_CHAR_FIELD(fk_matchtype);
2361 74390 : READ_CHAR_FIELD(fk_upd_action);
2362 74390 : READ_CHAR_FIELD(fk_del_action);
2363 74390 : READ_NODE_FIELD(fk_del_set_cols);
2364 74390 : READ_NODE_FIELD(old_conpfeqop);
2365 74390 : READ_OID_FIELD(old_pktable_oid);
2366 74390 : READ_LOCATION_FIELD(location);
2367 :
2368 74390 : READ_DONE();
2369 : }
2370 :
2371 : static CreateTableSpaceStmt *
2372 232 : _readCreateTableSpaceStmt(void)
2373 : {
2374 232 : READ_LOCALS(CreateTableSpaceStmt);
2375 :
2376 232 : READ_STRING_FIELD(tablespacename);
2377 232 : READ_NODE_FIELD(owner);
2378 232 : READ_STRING_FIELD(location);
2379 232 : READ_NODE_FIELD(options);
2380 :
2381 232 : READ_DONE();
2382 : }
2383 :
2384 : static DropTableSpaceStmt *
2385 128 : _readDropTableSpaceStmt(void)
2386 : {
2387 128 : READ_LOCALS(DropTableSpaceStmt);
2388 :
2389 128 : READ_STRING_FIELD(tablespacename);
2390 128 : READ_BOOL_FIELD(missing_ok);
2391 :
2392 128 : READ_DONE();
2393 : }
2394 :
2395 : static AlterTableSpaceOptionsStmt *
2396 48 : _readAlterTableSpaceOptionsStmt(void)
2397 : {
2398 48 : READ_LOCALS(AlterTableSpaceOptionsStmt);
2399 :
2400 48 : READ_STRING_FIELD(tablespacename);
2401 48 : READ_NODE_FIELD(options);
2402 48 : READ_BOOL_FIELD(isReset);
2403 :
2404 48 : READ_DONE();
2405 : }
2406 :
2407 : static AlterTableMoveAllStmt *
2408 60 : _readAlterTableMoveAllStmt(void)
2409 : {
2410 60 : READ_LOCALS(AlterTableMoveAllStmt);
2411 :
2412 60 : READ_STRING_FIELD(orig_tablespacename);
2413 60 : READ_ENUM_FIELD(objtype, ObjectType);
2414 60 : READ_NODE_FIELD(roles);
2415 60 : READ_STRING_FIELD(new_tablespacename);
2416 60 : READ_BOOL_FIELD(nowait);
2417 :
2418 60 : READ_DONE();
2419 : }
2420 :
2421 : static CreateExtensionStmt *
2422 1060 : _readCreateExtensionStmt(void)
2423 : {
2424 1060 : READ_LOCALS(CreateExtensionStmt);
2425 :
2426 1060 : READ_STRING_FIELD(extname);
2427 1060 : READ_BOOL_FIELD(if_not_exists);
2428 1060 : READ_NODE_FIELD(options);
2429 :
2430 1060 : READ_DONE();
2431 : }
2432 :
2433 : static AlterExtensionStmt *
2434 70 : _readAlterExtensionStmt(void)
2435 : {
2436 70 : READ_LOCALS(AlterExtensionStmt);
2437 :
2438 70 : READ_STRING_FIELD(extname);
2439 70 : READ_NODE_FIELD(options);
2440 :
2441 70 : READ_DONE();
2442 : }
2443 :
2444 : static AlterExtensionContentsStmt *
2445 484 : _readAlterExtensionContentsStmt(void)
2446 : {
2447 484 : READ_LOCALS(AlterExtensionContentsStmt);
2448 :
2449 484 : READ_STRING_FIELD(extname);
2450 484 : READ_INT_FIELD(action);
2451 484 : READ_ENUM_FIELD(objtype, ObjectType);
2452 484 : READ_NODE_FIELD(object);
2453 :
2454 484 : READ_DONE();
2455 : }
2456 :
2457 : static CreateFdwStmt *
2458 412 : _readCreateFdwStmt(void)
2459 : {
2460 412 : READ_LOCALS(CreateFdwStmt);
2461 :
2462 412 : READ_STRING_FIELD(fdwname);
2463 412 : READ_NODE_FIELD(func_options);
2464 412 : READ_NODE_FIELD(options);
2465 :
2466 412 : READ_DONE();
2467 : }
2468 :
2469 : static AlterFdwStmt *
2470 244 : _readAlterFdwStmt(void)
2471 : {
2472 244 : READ_LOCALS(AlterFdwStmt);
2473 :
2474 244 : READ_STRING_FIELD(fdwname);
2475 244 : READ_NODE_FIELD(func_options);
2476 244 : READ_NODE_FIELD(options);
2477 :
2478 244 : READ_DONE();
2479 : }
2480 :
2481 : static CreateForeignServerStmt *
2482 582 : _readCreateForeignServerStmt(void)
2483 : {
2484 582 : READ_LOCALS(CreateForeignServerStmt);
2485 :
2486 582 : READ_STRING_FIELD(servername);
2487 582 : READ_STRING_FIELD(servertype);
2488 582 : READ_STRING_FIELD(version);
2489 582 : READ_STRING_FIELD(fdwname);
2490 582 : READ_BOOL_FIELD(if_not_exists);
2491 582 : READ_NODE_FIELD(options);
2492 :
2493 582 : READ_DONE();
2494 : }
2495 :
2496 : static AlterForeignServerStmt *
2497 454 : _readAlterForeignServerStmt(void)
2498 : {
2499 454 : READ_LOCALS(AlterForeignServerStmt);
2500 :
2501 454 : READ_STRING_FIELD(servername);
2502 454 : READ_STRING_FIELD(version);
2503 454 : READ_NODE_FIELD(options);
2504 454 : READ_BOOL_FIELD(has_version);
2505 :
2506 454 : READ_DONE();
2507 : }
2508 :
2509 : static CreateForeignTableStmt *
2510 904 : _readCreateForeignTableStmt(void)
2511 : {
2512 904 : READ_LOCALS(CreateForeignTableStmt);
2513 :
2514 904 : READ_NODE_FIELD(base.relation);
2515 904 : READ_NODE_FIELD(base.tableElts);
2516 904 : READ_NODE_FIELD(base.inhRelations);
2517 904 : READ_NODE_FIELD(base.partbound);
2518 904 : READ_NODE_FIELD(base.partspec);
2519 904 : READ_NODE_FIELD(base.ofTypename);
2520 904 : READ_NODE_FIELD(base.constraints);
2521 904 : READ_NODE_FIELD(base.nnconstraints);
2522 904 : READ_NODE_FIELD(base.options);
2523 904 : READ_ENUM_FIELD(base.oncommit, OnCommitAction);
2524 904 : READ_STRING_FIELD(base.tablespacename);
2525 904 : READ_STRING_FIELD(base.accessMethod);
2526 904 : READ_BOOL_FIELD(base.if_not_exists);
2527 904 : READ_STRING_FIELD(servername);
2528 904 : READ_NODE_FIELD(options);
2529 :
2530 904 : READ_DONE();
2531 : }
2532 :
2533 : static CreateUserMappingStmt *
2534 504 : _readCreateUserMappingStmt(void)
2535 : {
2536 504 : READ_LOCALS(CreateUserMappingStmt);
2537 :
2538 504 : READ_NODE_FIELD(user);
2539 504 : READ_STRING_FIELD(servername);
2540 504 : READ_BOOL_FIELD(if_not_exists);
2541 504 : READ_NODE_FIELD(options);
2542 :
2543 504 : READ_DONE();
2544 : }
2545 :
2546 : static AlterUserMappingStmt *
2547 236 : _readAlterUserMappingStmt(void)
2548 : {
2549 236 : READ_LOCALS(AlterUserMappingStmt);
2550 :
2551 236 : READ_NODE_FIELD(user);
2552 236 : READ_STRING_FIELD(servername);
2553 236 : READ_NODE_FIELD(options);
2554 :
2555 236 : READ_DONE();
2556 : }
2557 :
2558 : static DropUserMappingStmt *
2559 252 : _readDropUserMappingStmt(void)
2560 : {
2561 252 : READ_LOCALS(DropUserMappingStmt);
2562 :
2563 252 : READ_NODE_FIELD(user);
2564 252 : READ_STRING_FIELD(servername);
2565 252 : READ_BOOL_FIELD(missing_ok);
2566 :
2567 252 : READ_DONE();
2568 : }
2569 :
2570 : static ImportForeignSchemaStmt *
2571 96 : _readImportForeignSchemaStmt(void)
2572 : {
2573 96 : READ_LOCALS(ImportForeignSchemaStmt);
2574 :
2575 96 : READ_STRING_FIELD(server_name);
2576 96 : READ_STRING_FIELD(remote_schema);
2577 96 : READ_STRING_FIELD(local_schema);
2578 96 : READ_ENUM_FIELD(list_type, ImportForeignSchemaType);
2579 96 : READ_NODE_FIELD(table_list);
2580 96 : READ_NODE_FIELD(options);
2581 :
2582 96 : READ_DONE();
2583 : }
2584 :
2585 : static CreatePolicyStmt *
2586 1412 : _readCreatePolicyStmt(void)
2587 : {
2588 1412 : READ_LOCALS(CreatePolicyStmt);
2589 :
2590 1412 : READ_STRING_FIELD(policy_name);
2591 1412 : READ_NODE_FIELD(table);
2592 1412 : READ_STRING_FIELD(cmd_name);
2593 1412 : READ_BOOL_FIELD(permissive);
2594 1412 : READ_NODE_FIELD(roles);
2595 1412 : READ_NODE_FIELD(qual);
2596 1412 : READ_NODE_FIELD(with_check);
2597 :
2598 1412 : READ_DONE();
2599 : }
2600 :
2601 : static AlterPolicyStmt *
2602 168 : _readAlterPolicyStmt(void)
2603 : {
2604 168 : READ_LOCALS(AlterPolicyStmt);
2605 :
2606 168 : READ_STRING_FIELD(policy_name);
2607 168 : READ_NODE_FIELD(table);
2608 168 : READ_NODE_FIELD(roles);
2609 168 : READ_NODE_FIELD(qual);
2610 168 : READ_NODE_FIELD(with_check);
2611 :
2612 168 : READ_DONE();
2613 : }
2614 :
2615 : static CreateAmStmt *
2616 128 : _readCreateAmStmt(void)
2617 : {
2618 128 : READ_LOCALS(CreateAmStmt);
2619 :
2620 128 : READ_STRING_FIELD(amname);
2621 128 : READ_NODE_FIELD(handler_name);
2622 128 : READ_CHAR_FIELD(amtype);
2623 :
2624 128 : READ_DONE();
2625 : }
2626 :
2627 : static CreateTrigStmt *
2628 6644 : _readCreateTrigStmt(void)
2629 : {
2630 6644 : READ_LOCALS(CreateTrigStmt);
2631 :
2632 6644 : READ_BOOL_FIELD(replace);
2633 6644 : READ_BOOL_FIELD(isconstraint);
2634 6644 : READ_STRING_FIELD(trigname);
2635 6644 : READ_NODE_FIELD(relation);
2636 6644 : READ_NODE_FIELD(funcname);
2637 6644 : READ_NODE_FIELD(args);
2638 6644 : READ_BOOL_FIELD(row);
2639 6644 : READ_INT_FIELD(timing);
2640 6644 : READ_INT_FIELD(events);
2641 6644 : READ_NODE_FIELD(columns);
2642 6644 : READ_NODE_FIELD(whenClause);
2643 6644 : READ_NODE_FIELD(transitionRels);
2644 6644 : READ_BOOL_FIELD(deferrable);
2645 6644 : READ_BOOL_FIELD(initdeferred);
2646 6644 : READ_NODE_FIELD(constrrel);
2647 :
2648 6644 : READ_DONE();
2649 : }
2650 :
2651 : static CreateEventTrigStmt *
2652 396 : _readCreateEventTrigStmt(void)
2653 : {
2654 396 : READ_LOCALS(CreateEventTrigStmt);
2655 :
2656 396 : READ_STRING_FIELD(trigname);
2657 396 : READ_STRING_FIELD(eventname);
2658 396 : READ_NODE_FIELD(whenclause);
2659 396 : READ_NODE_FIELD(funcname);
2660 :
2661 396 : READ_DONE();
2662 : }
2663 :
2664 : static AlterEventTrigStmt *
2665 96 : _readAlterEventTrigStmt(void)
2666 : {
2667 96 : READ_LOCALS(AlterEventTrigStmt);
2668 :
2669 96 : READ_STRING_FIELD(trigname);
2670 96 : READ_CHAR_FIELD(tgenabled);
2671 :
2672 96 : READ_DONE();
2673 : }
2674 :
2675 : static CreatePLangStmt *
2676 288 : _readCreatePLangStmt(void)
2677 : {
2678 288 : READ_LOCALS(CreatePLangStmt);
2679 :
2680 288 : READ_BOOL_FIELD(replace);
2681 288 : READ_STRING_FIELD(plname);
2682 288 : READ_NODE_FIELD(plhandler);
2683 288 : READ_NODE_FIELD(plinline);
2684 288 : READ_NODE_FIELD(plvalidator);
2685 288 : READ_BOOL_FIELD(pltrusted);
2686 :
2687 288 : READ_DONE();
2688 : }
2689 :
2690 : static CreateRoleStmt *
2691 3688 : _readCreateRoleStmt(void)
2692 : {
2693 3688 : READ_LOCALS(CreateRoleStmt);
2694 :
2695 3688 : READ_ENUM_FIELD(stmt_type, RoleStmtType);
2696 3688 : READ_STRING_FIELD(role);
2697 3688 : READ_NODE_FIELD(options);
2698 :
2699 3688 : READ_DONE();
2700 : }
2701 :
2702 : static AlterRoleStmt *
2703 920 : _readAlterRoleStmt(void)
2704 : {
2705 920 : READ_LOCALS(AlterRoleStmt);
2706 :
2707 920 : READ_NODE_FIELD(role);
2708 920 : READ_NODE_FIELD(options);
2709 920 : READ_INT_FIELD(action);
2710 :
2711 920 : READ_DONE();
2712 : }
2713 :
2714 : static AlterRoleSetStmt *
2715 164 : _readAlterRoleSetStmt(void)
2716 : {
2717 164 : READ_LOCALS(AlterRoleSetStmt);
2718 :
2719 164 : READ_NODE_FIELD(role);
2720 164 : READ_STRING_FIELD(database);
2721 164 : READ_NODE_FIELD(setstmt);
2722 :
2723 164 : READ_DONE();
2724 : }
2725 :
2726 : static DropRoleStmt *
2727 3436 : _readDropRoleStmt(void)
2728 : {
2729 3436 : READ_LOCALS(DropRoleStmt);
2730 :
2731 3436 : READ_NODE_FIELD(roles);
2732 3436 : READ_BOOL_FIELD(missing_ok);
2733 :
2734 3436 : READ_DONE();
2735 : }
2736 :
2737 : static CreateSeqStmt *
2738 1468 : _readCreateSeqStmt(void)
2739 : {
2740 1468 : READ_LOCALS(CreateSeqStmt);
2741 :
2742 1468 : READ_NODE_FIELD(sequence);
2743 1468 : READ_NODE_FIELD(options);
2744 1468 : READ_OID_FIELD(ownerId);
2745 1468 : READ_BOOL_FIELD(for_identity);
2746 1468 : READ_BOOL_FIELD(if_not_exists);
2747 :
2748 1468 : READ_DONE();
2749 : }
2750 :
2751 : static AlterSeqStmt *
2752 448 : _readAlterSeqStmt(void)
2753 : {
2754 448 : READ_LOCALS(AlterSeqStmt);
2755 :
2756 448 : READ_NODE_FIELD(sequence);
2757 448 : READ_NODE_FIELD(options);
2758 448 : READ_BOOL_FIELD(for_identity);
2759 448 : READ_BOOL_FIELD(missing_ok);
2760 :
2761 448 : READ_DONE();
2762 : }
2763 :
2764 : static DefineStmt *
2765 18992 : _readDefineStmt(void)
2766 : {
2767 18992 : READ_LOCALS(DefineStmt);
2768 :
2769 18992 : READ_ENUM_FIELD(kind, ObjectType);
2770 18992 : READ_BOOL_FIELD(oldstyle);
2771 18992 : READ_NODE_FIELD(defnames);
2772 18992 : READ_NODE_FIELD(args);
2773 18992 : READ_NODE_FIELD(definition);
2774 18992 : READ_BOOL_FIELD(if_not_exists);
2775 18992 : READ_BOOL_FIELD(replace);
2776 :
2777 18992 : READ_DONE();
2778 : }
2779 :
2780 : static CreateDomainStmt *
2781 3000 : _readCreateDomainStmt(void)
2782 : {
2783 3000 : READ_LOCALS(CreateDomainStmt);
2784 :
2785 3000 : READ_NODE_FIELD(domainname);
2786 3000 : READ_NODE_FIELD(typeName);
2787 3000 : READ_NODE_FIELD(collClause);
2788 3000 : READ_NODE_FIELD(constraints);
2789 :
2790 3000 : READ_DONE();
2791 : }
2792 :
2793 : static CreateOpClassStmt *
2794 788 : _readCreateOpClassStmt(void)
2795 : {
2796 788 : READ_LOCALS(CreateOpClassStmt);
2797 :
2798 788 : READ_NODE_FIELD(opclassname);
2799 788 : READ_NODE_FIELD(opfamilyname);
2800 788 : READ_STRING_FIELD(amname);
2801 788 : READ_NODE_FIELD(datatype);
2802 788 : READ_NODE_FIELD(items);
2803 788 : READ_BOOL_FIELD(isDefault);
2804 :
2805 788 : READ_DONE();
2806 : }
2807 :
2808 : static CreateOpClassItem *
2809 8500 : _readCreateOpClassItem(void)
2810 : {
2811 8500 : READ_LOCALS(CreateOpClassItem);
2812 :
2813 8500 : READ_INT_FIELD(itemtype);
2814 8500 : READ_NODE_FIELD(name);
2815 8500 : READ_INT_FIELD(number);
2816 8500 : READ_NODE_FIELD(order_family);
2817 8500 : READ_NODE_FIELD(class_args);
2818 8500 : READ_NODE_FIELD(storedtype);
2819 :
2820 8500 : READ_DONE();
2821 : }
2822 :
2823 : static CreateOpFamilyStmt *
2824 324 : _readCreateOpFamilyStmt(void)
2825 : {
2826 324 : READ_LOCALS(CreateOpFamilyStmt);
2827 :
2828 324 : READ_NODE_FIELD(opfamilyname);
2829 324 : READ_STRING_FIELD(amname);
2830 :
2831 324 : READ_DONE();
2832 : }
2833 :
2834 : static AlterOpFamilyStmt *
2835 1196 : _readAlterOpFamilyStmt(void)
2836 : {
2837 1196 : READ_LOCALS(AlterOpFamilyStmt);
2838 :
2839 1196 : READ_NODE_FIELD(opfamilyname);
2840 1196 : READ_STRING_FIELD(amname);
2841 1196 : READ_BOOL_FIELD(isDrop);
2842 1196 : READ_NODE_FIELD(items);
2843 :
2844 1196 : READ_DONE();
2845 : }
2846 :
2847 : static DropStmt *
2848 50742 : _readDropStmt(void)
2849 : {
2850 50742 : READ_LOCALS(DropStmt);
2851 :
2852 50742 : READ_NODE_FIELD(objects);
2853 50742 : READ_ENUM_FIELD(removeType, ObjectType);
2854 50742 : READ_ENUM_FIELD(behavior, DropBehavior);
2855 50742 : READ_BOOL_FIELD(missing_ok);
2856 50742 : READ_BOOL_FIELD(concurrent);
2857 :
2858 50742 : READ_DONE();
2859 : }
2860 :
2861 : static TruncateStmt *
2862 5886 : _readTruncateStmt(void)
2863 : {
2864 5886 : READ_LOCALS(TruncateStmt);
2865 :
2866 5886 : READ_NODE_FIELD(relations);
2867 5886 : READ_BOOL_FIELD(restart_seqs);
2868 5886 : READ_ENUM_FIELD(behavior, DropBehavior);
2869 :
2870 5886 : READ_DONE();
2871 : }
2872 :
2873 : static CommentStmt *
2874 14364 : _readCommentStmt(void)
2875 : {
2876 14364 : READ_LOCALS(CommentStmt);
2877 :
2878 14364 : READ_ENUM_FIELD(objtype, ObjectType);
2879 14364 : READ_NODE_FIELD(object);
2880 14364 : READ_STRING_FIELD(comment);
2881 :
2882 14364 : READ_DONE();
2883 : }
2884 :
2885 : static SecLabelStmt *
2886 200 : _readSecLabelStmt(void)
2887 : {
2888 200 : READ_LOCALS(SecLabelStmt);
2889 :
2890 200 : READ_ENUM_FIELD(objtype, ObjectType);
2891 200 : READ_NODE_FIELD(object);
2892 200 : READ_STRING_FIELD(provider);
2893 200 : READ_STRING_FIELD(label);
2894 :
2895 200 : READ_DONE();
2896 : }
2897 :
2898 : static DeclareCursorStmt *
2899 7380 : _readDeclareCursorStmt(void)
2900 : {
2901 7380 : READ_LOCALS(DeclareCursorStmt);
2902 :
2903 7380 : READ_STRING_FIELD(portalname);
2904 7380 : READ_INT_FIELD(options);
2905 7380 : READ_NODE_FIELD(query);
2906 :
2907 7380 : READ_DONE();
2908 : }
2909 :
2910 : static ClosePortalStmt *
2911 4444 : _readClosePortalStmt(void)
2912 : {
2913 4444 : READ_LOCALS(ClosePortalStmt);
2914 :
2915 4444 : READ_STRING_FIELD(portalname);
2916 :
2917 4444 : READ_DONE();
2918 : }
2919 :
2920 : static FetchStmt *
2921 13434 : _readFetchStmt(void)
2922 : {
2923 13434 : READ_LOCALS(FetchStmt);
2924 :
2925 13434 : READ_ENUM_FIELD(direction, FetchDirection);
2926 13434 : READ_LONG_FIELD(howMany);
2927 13434 : READ_STRING_FIELD(portalname);
2928 13434 : READ_BOOL_FIELD(ismove);
2929 13434 : READ_ENUM_FIELD(direction_keyword, FetchDirectionKeywords);
2930 13434 : READ_LOCATION_FIELD(location);
2931 :
2932 13434 : READ_DONE();
2933 : }
2934 :
2935 : static IndexStmt *
2936 13364 : _readIndexStmt(void)
2937 : {
2938 13364 : READ_LOCALS(IndexStmt);
2939 :
2940 13364 : READ_STRING_FIELD(idxname);
2941 13364 : READ_NODE_FIELD(relation);
2942 13364 : READ_STRING_FIELD(accessMethod);
2943 13364 : READ_STRING_FIELD(tableSpace);
2944 13364 : READ_NODE_FIELD(indexParams);
2945 13364 : READ_NODE_FIELD(indexIncludingParams);
2946 13364 : READ_NODE_FIELD(options);
2947 13364 : READ_NODE_FIELD(whereClause);
2948 13364 : READ_NODE_FIELD(excludeOpNames);
2949 13364 : READ_STRING_FIELD(idxcomment);
2950 13364 : READ_OID_FIELD(indexOid);
2951 13364 : READ_OID_FIELD(oldNumber);
2952 13364 : READ_UINT_FIELD(oldCreateSubid);
2953 13364 : READ_UINT_FIELD(oldFirstRelfilelocatorSubid);
2954 13364 : READ_BOOL_FIELD(unique);
2955 13364 : READ_BOOL_FIELD(nulls_not_distinct);
2956 13364 : READ_BOOL_FIELD(primary);
2957 13364 : READ_BOOL_FIELD(isconstraint);
2958 13364 : READ_BOOL_FIELD(iswithoutoverlaps);
2959 13364 : READ_BOOL_FIELD(deferrable);
2960 13364 : READ_BOOL_FIELD(initdeferred);
2961 13364 : READ_BOOL_FIELD(transformed);
2962 13364 : READ_BOOL_FIELD(concurrent);
2963 13364 : READ_BOOL_FIELD(if_not_exists);
2964 13364 : READ_BOOL_FIELD(reset_default_tblspc);
2965 :
2966 13364 : READ_DONE();
2967 : }
2968 :
2969 : static CreateStatsStmt *
2970 1346 : _readCreateStatsStmt(void)
2971 : {
2972 1346 : READ_LOCALS(CreateStatsStmt);
2973 :
2974 1346 : READ_NODE_FIELD(defnames);
2975 1346 : READ_NODE_FIELD(stat_types);
2976 1346 : READ_NODE_FIELD(exprs);
2977 1346 : READ_NODE_FIELD(relations);
2978 1346 : READ_STRING_FIELD(stxcomment);
2979 1346 : READ_BOOL_FIELD(transformed);
2980 1346 : READ_BOOL_FIELD(if_not_exists);
2981 :
2982 1346 : READ_DONE();
2983 : }
2984 :
2985 : static StatsElem *
2986 3240 : _readStatsElem(void)
2987 : {
2988 3240 : READ_LOCALS(StatsElem);
2989 :
2990 3240 : READ_STRING_FIELD(name);
2991 3240 : READ_NODE_FIELD(expr);
2992 :
2993 3240 : READ_DONE();
2994 : }
2995 :
2996 : static AlterStatsStmt *
2997 52 : _readAlterStatsStmt(void)
2998 : {
2999 52 : READ_LOCALS(AlterStatsStmt);
3000 :
3001 52 : READ_NODE_FIELD(defnames);
3002 52 : READ_NODE_FIELD(stxstattarget);
3003 52 : READ_BOOL_FIELD(missing_ok);
3004 :
3005 52 : READ_DONE();
3006 : }
3007 :
3008 : static CreateFunctionStmt *
3009 49908 : _readCreateFunctionStmt(void)
3010 : {
3011 49908 : READ_LOCALS(CreateFunctionStmt);
3012 :
3013 49908 : READ_BOOL_FIELD(is_procedure);
3014 49908 : READ_BOOL_FIELD(replace);
3015 49908 : READ_NODE_FIELD(funcname);
3016 49908 : READ_NODE_FIELD(parameters);
3017 49908 : READ_NODE_FIELD(returnType);
3018 49908 : READ_NODE_FIELD(options);
3019 49908 : READ_NODE_FIELD(sql_body);
3020 :
3021 49908 : READ_DONE();
3022 : }
3023 :
3024 : static FunctionParameter *
3025 149038 : _readFunctionParameter(void)
3026 : {
3027 149038 : READ_LOCALS(FunctionParameter);
3028 :
3029 149038 : READ_STRING_FIELD(name);
3030 149038 : READ_NODE_FIELD(argType);
3031 149038 : READ_ENUM_FIELD(mode, FunctionParameterMode);
3032 149038 : READ_NODE_FIELD(defexpr);
3033 149038 : READ_LOCATION_FIELD(location);
3034 :
3035 149038 : READ_DONE();
3036 : }
3037 :
3038 : static AlterFunctionStmt *
3039 1344 : _readAlterFunctionStmt(void)
3040 : {
3041 1344 : READ_LOCALS(AlterFunctionStmt);
3042 :
3043 1344 : READ_ENUM_FIELD(objtype, ObjectType);
3044 1344 : READ_NODE_FIELD(func);
3045 1344 : READ_NODE_FIELD(actions);
3046 :
3047 1344 : READ_DONE();
3048 : }
3049 :
3050 : static DoStmt *
3051 2208 : _readDoStmt(void)
3052 : {
3053 2208 : READ_LOCALS(DoStmt);
3054 :
3055 2208 : READ_NODE_FIELD(args);
3056 :
3057 2208 : READ_DONE();
3058 : }
3059 :
3060 : static CallStmt *
3061 898 : _readCallStmt(void)
3062 : {
3063 898 : READ_LOCALS(CallStmt);
3064 :
3065 898 : READ_NODE_FIELD(funccall);
3066 898 : READ_NODE_FIELD(funcexpr);
3067 898 : READ_NODE_FIELD(outargs);
3068 :
3069 898 : READ_DONE();
3070 : }
3071 :
3072 : static RenameStmt *
3073 2832 : _readRenameStmt(void)
3074 : {
3075 2832 : READ_LOCALS(RenameStmt);
3076 :
3077 2832 : READ_ENUM_FIELD(renameType, ObjectType);
3078 2832 : READ_ENUM_FIELD(relationType, ObjectType);
3079 2832 : READ_NODE_FIELD(relation);
3080 2832 : READ_NODE_FIELD(object);
3081 2832 : READ_STRING_FIELD(subname);
3082 2832 : READ_STRING_FIELD(newname);
3083 2832 : READ_ENUM_FIELD(behavior, DropBehavior);
3084 2832 : READ_BOOL_FIELD(missing_ok);
3085 :
3086 2832 : READ_DONE();
3087 : }
3088 :
3089 : static AlterObjectDependsStmt *
3090 92 : _readAlterObjectDependsStmt(void)
3091 : {
3092 92 : READ_LOCALS(AlterObjectDependsStmt);
3093 :
3094 92 : READ_ENUM_FIELD(objectType, ObjectType);
3095 92 : READ_NODE_FIELD(relation);
3096 92 : READ_NODE_FIELD(object);
3097 92 : READ_NODE_FIELD(extname);
3098 92 : READ_BOOL_FIELD(remove);
3099 :
3100 92 : READ_DONE();
3101 : }
3102 :
3103 : static AlterObjectSchemaStmt *
3104 796 : _readAlterObjectSchemaStmt(void)
3105 : {
3106 796 : READ_LOCALS(AlterObjectSchemaStmt);
3107 :
3108 796 : READ_ENUM_FIELD(objectType, ObjectType);
3109 796 : READ_NODE_FIELD(relation);
3110 796 : READ_NODE_FIELD(object);
3111 796 : READ_STRING_FIELD(newschema);
3112 796 : READ_BOOL_FIELD(missing_ok);
3113 :
3114 796 : READ_DONE();
3115 : }
3116 :
3117 : static AlterOwnerStmt *
3118 5018 : _readAlterOwnerStmt(void)
3119 : {
3120 5018 : READ_LOCALS(AlterOwnerStmt);
3121 :
3122 5018 : READ_ENUM_FIELD(objectType, ObjectType);
3123 5018 : READ_NODE_FIELD(relation);
3124 5018 : READ_NODE_FIELD(object);
3125 5018 : READ_NODE_FIELD(newowner);
3126 :
3127 5018 : READ_DONE();
3128 : }
3129 :
3130 : static AlterOperatorStmt *
3131 1216 : _readAlterOperatorStmt(void)
3132 : {
3133 1216 : READ_LOCALS(AlterOperatorStmt);
3134 :
3135 1216 : READ_NODE_FIELD(opername);
3136 1216 : READ_NODE_FIELD(options);
3137 :
3138 1216 : READ_DONE();
3139 : }
3140 :
3141 : static AlterTypeStmt *
3142 120 : _readAlterTypeStmt(void)
3143 : {
3144 120 : READ_LOCALS(AlterTypeStmt);
3145 :
3146 120 : READ_NODE_FIELD(typeName);
3147 120 : READ_NODE_FIELD(options);
3148 :
3149 120 : READ_DONE();
3150 : }
3151 :
3152 : static RuleStmt *
3153 2348 : _readRuleStmt(void)
3154 : {
3155 2348 : READ_LOCALS(RuleStmt);
3156 :
3157 2348 : READ_NODE_FIELD(relation);
3158 2348 : READ_STRING_FIELD(rulename);
3159 2348 : READ_NODE_FIELD(whereClause);
3160 2348 : READ_ENUM_FIELD(event, CmdType);
3161 2348 : READ_BOOL_FIELD(instead);
3162 2348 : READ_NODE_FIELD(actions);
3163 2348 : READ_BOOL_FIELD(replace);
3164 :
3165 2348 : READ_DONE();
3166 : }
3167 :
3168 : static NotifyStmt *
3169 406 : _readNotifyStmt(void)
3170 : {
3171 406 : READ_LOCALS(NotifyStmt);
3172 :
3173 406 : READ_STRING_FIELD(conditionname);
3174 406 : READ_STRING_FIELD(payload);
3175 :
3176 406 : READ_DONE();
3177 : }
3178 :
3179 : static ListenStmt *
3180 148 : _readListenStmt(void)
3181 : {
3182 148 : READ_LOCALS(ListenStmt);
3183 :
3184 148 : READ_STRING_FIELD(conditionname);
3185 :
3186 148 : READ_DONE();
3187 : }
3188 :
3189 : static UnlistenStmt *
3190 76 : _readUnlistenStmt(void)
3191 : {
3192 76 : READ_LOCALS(UnlistenStmt);
3193 :
3194 76 : READ_STRING_FIELD(conditionname);
3195 :
3196 76 : READ_DONE();
3197 : }
3198 :
3199 : static TransactionStmt *
3200 75310 : _readTransactionStmt(void)
3201 : {
3202 75310 : READ_LOCALS(TransactionStmt);
3203 :
3204 75310 : READ_ENUM_FIELD(kind, TransactionStmtKind);
3205 75310 : READ_NODE_FIELD(options);
3206 75310 : READ_STRING_FIELD(savepoint_name);
3207 75310 : READ_STRING_FIELD(gid);
3208 75310 : READ_BOOL_FIELD(chain);
3209 75310 : READ_LOCATION_FIELD(location);
3210 :
3211 75310 : READ_DONE();
3212 : }
3213 :
3214 : static CompositeTypeStmt *
3215 5288 : _readCompositeTypeStmt(void)
3216 : {
3217 5288 : READ_LOCALS(CompositeTypeStmt);
3218 :
3219 5288 : READ_NODE_FIELD(typevar);
3220 5288 : READ_NODE_FIELD(coldeflist);
3221 :
3222 5288 : READ_DONE();
3223 : }
3224 :
3225 : static CreateEnumStmt *
3226 412 : _readCreateEnumStmt(void)
3227 : {
3228 412 : READ_LOCALS(CreateEnumStmt);
3229 :
3230 412 : READ_NODE_FIELD(typeName);
3231 412 : READ_NODE_FIELD(vals);
3232 :
3233 412 : READ_DONE();
3234 : }
3235 :
3236 : static CreateRangeStmt *
3237 392 : _readCreateRangeStmt(void)
3238 : {
3239 392 : READ_LOCALS(CreateRangeStmt);
3240 :
3241 392 : READ_NODE_FIELD(typeName);
3242 392 : READ_NODE_FIELD(params);
3243 :
3244 392 : READ_DONE();
3245 : }
3246 :
3247 : static AlterEnumStmt *
3248 792 : _readAlterEnumStmt(void)
3249 : {
3250 792 : READ_LOCALS(AlterEnumStmt);
3251 :
3252 792 : READ_NODE_FIELD(typeName);
3253 792 : READ_STRING_FIELD(oldVal);
3254 792 : READ_STRING_FIELD(newVal);
3255 792 : READ_STRING_FIELD(newValNeighbor);
3256 792 : READ_BOOL_FIELD(newValIsAfter);
3257 792 : READ_BOOL_FIELD(skipIfNewValExists);
3258 :
3259 792 : READ_DONE();
3260 : }
3261 :
3262 : static ViewStmt *
3263 34460 : _readViewStmt(void)
3264 : {
3265 34460 : READ_LOCALS(ViewStmt);
3266 :
3267 34460 : READ_NODE_FIELD(view);
3268 34460 : READ_NODE_FIELD(aliases);
3269 34460 : READ_NODE_FIELD(query);
3270 34460 : READ_BOOL_FIELD(replace);
3271 34460 : READ_NODE_FIELD(options);
3272 34460 : READ_ENUM_FIELD(withCheckOption, ViewCheckOption);
3273 :
3274 34460 : READ_DONE();
3275 : }
3276 :
3277 : static LoadStmt *
3278 104 : _readLoadStmt(void)
3279 : {
3280 104 : READ_LOCALS(LoadStmt);
3281 :
3282 104 : READ_STRING_FIELD(filename);
3283 :
3284 104 : READ_DONE();
3285 : }
3286 :
3287 : static CreatedbStmt *
3288 1584 : _readCreatedbStmt(void)
3289 : {
3290 1584 : READ_LOCALS(CreatedbStmt);
3291 :
3292 1584 : READ_STRING_FIELD(dbname);
3293 1584 : READ_NODE_FIELD(options);
3294 :
3295 1584 : READ_DONE();
3296 : }
3297 :
3298 : static AlterDatabaseStmt *
3299 152 : _readAlterDatabaseStmt(void)
3300 : {
3301 152 : READ_LOCALS(AlterDatabaseStmt);
3302 :
3303 152 : READ_STRING_FIELD(dbname);
3304 152 : READ_NODE_FIELD(options);
3305 :
3306 152 : READ_DONE();
3307 : }
3308 :
3309 : static AlterDatabaseRefreshCollStmt *
3310 12 : _readAlterDatabaseRefreshCollStmt(void)
3311 : {
3312 12 : READ_LOCALS(AlterDatabaseRefreshCollStmt);
3313 :
3314 12 : READ_STRING_FIELD(dbname);
3315 :
3316 12 : READ_DONE();
3317 : }
3318 :
3319 : static AlterDatabaseSetStmt *
3320 2388 : _readAlterDatabaseSetStmt(void)
3321 : {
3322 2388 : READ_LOCALS(AlterDatabaseSetStmt);
3323 :
3324 2388 : READ_STRING_FIELD(dbname);
3325 2388 : READ_NODE_FIELD(setstmt);
3326 :
3327 2388 : READ_DONE();
3328 : }
3329 :
3330 : static DropdbStmt *
3331 244 : _readDropdbStmt(void)
3332 : {
3333 244 : READ_LOCALS(DropdbStmt);
3334 :
3335 244 : READ_STRING_FIELD(dbname);
3336 244 : READ_BOOL_FIELD(missing_ok);
3337 244 : READ_NODE_FIELD(options);
3338 :
3339 244 : READ_DONE();
3340 : }
3341 :
3342 : static AlterSystemStmt *
3343 364 : _readAlterSystemStmt(void)
3344 : {
3345 364 : READ_LOCALS(AlterSystemStmt);
3346 :
3347 364 : READ_NODE_FIELD(setstmt);
3348 :
3349 364 : READ_DONE();
3350 : }
3351 :
3352 : static ClusterStmt *
3353 460 : _readClusterStmt(void)
3354 : {
3355 460 : READ_LOCALS(ClusterStmt);
3356 :
3357 460 : READ_NODE_FIELD(relation);
3358 460 : READ_STRING_FIELD(indexname);
3359 460 : READ_NODE_FIELD(params);
3360 :
3361 460 : READ_DONE();
3362 : }
3363 :
3364 : static VacuumStmt *
3365 26950 : _readVacuumStmt(void)
3366 : {
3367 26950 : READ_LOCALS(VacuumStmt);
3368 :
3369 26950 : READ_NODE_FIELD(options);
3370 26950 : READ_NODE_FIELD(rels);
3371 26950 : READ_BOOL_FIELD(is_vacuumcmd);
3372 :
3373 26950 : READ_DONE();
3374 : }
3375 :
3376 : static VacuumRelation *
3377 26486 : _readVacuumRelation(void)
3378 : {
3379 26486 : READ_LOCALS(VacuumRelation);
3380 :
3381 26486 : READ_NODE_FIELD(relation);
3382 26486 : READ_OID_FIELD(oid);
3383 26486 : READ_NODE_FIELD(va_cols);
3384 :
3385 26486 : READ_DONE();
3386 : }
3387 :
3388 : static ExplainStmt *
3389 39582 : _readExplainStmt(void)
3390 : {
3391 39582 : READ_LOCALS(ExplainStmt);
3392 :
3393 39582 : READ_NODE_FIELD(query);
3394 39582 : READ_NODE_FIELD(options);
3395 :
3396 39582 : READ_DONE();
3397 : }
3398 :
3399 : static CreateTableAsStmt *
3400 3816 : _readCreateTableAsStmt(void)
3401 : {
3402 3816 : READ_LOCALS(CreateTableAsStmt);
3403 :
3404 3816 : READ_NODE_FIELD(query);
3405 3816 : READ_NODE_FIELD(into);
3406 3816 : READ_ENUM_FIELD(objtype, ObjectType);
3407 3816 : READ_BOOL_FIELD(is_select_into);
3408 3816 : READ_BOOL_FIELD(if_not_exists);
3409 :
3410 3816 : READ_DONE();
3411 : }
3412 :
3413 : static RefreshMatViewStmt *
3414 568 : _readRefreshMatViewStmt(void)
3415 : {
3416 568 : READ_LOCALS(RefreshMatViewStmt);
3417 :
3418 568 : READ_BOOL_FIELD(concurrent);
3419 568 : READ_BOOL_FIELD(skipData);
3420 568 : READ_NODE_FIELD(relation);
3421 :
3422 568 : READ_DONE();
3423 : }
3424 :
3425 : static CheckPointStmt *
3426 446 : _readCheckPointStmt(void)
3427 : {
3428 446 : READ_LOCALS_NO_FIELDS(CheckPointStmt);
3429 :
3430 :
3431 446 : READ_DONE();
3432 : }
3433 :
3434 : static DiscardStmt *
3435 60 : _readDiscardStmt(void)
3436 : {
3437 60 : READ_LOCALS(DiscardStmt);
3438 :
3439 60 : READ_ENUM_FIELD(target, DiscardMode);
3440 :
3441 60 : READ_DONE();
3442 : }
3443 :
3444 : static LockStmt *
3445 5032 : _readLockStmt(void)
3446 : {
3447 5032 : READ_LOCALS(LockStmt);
3448 :
3449 5032 : READ_NODE_FIELD(relations);
3450 5032 : READ_INT_FIELD(mode);
3451 5032 : READ_BOOL_FIELD(nowait);
3452 :
3453 5032 : READ_DONE();
3454 : }
3455 :
3456 : static ConstraintsSetStmt *
3457 202 : _readConstraintsSetStmt(void)
3458 : {
3459 202 : READ_LOCALS(ConstraintsSetStmt);
3460 :
3461 202 : READ_NODE_FIELD(constraints);
3462 202 : READ_BOOL_FIELD(deferred);
3463 :
3464 202 : READ_DONE();
3465 : }
3466 :
3467 : static ReindexStmt *
3468 2212 : _readReindexStmt(void)
3469 : {
3470 2212 : READ_LOCALS(ReindexStmt);
3471 :
3472 2212 : READ_ENUM_FIELD(kind, ReindexObjectType);
3473 2212 : READ_NODE_FIELD(relation);
3474 2212 : READ_STRING_FIELD(name);
3475 2212 : READ_NODE_FIELD(params);
3476 :
3477 2212 : READ_DONE();
3478 : }
3479 :
3480 : static CreateConversionStmt *
3481 128 : _readCreateConversionStmt(void)
3482 : {
3483 128 : READ_LOCALS(CreateConversionStmt);
3484 :
3485 128 : READ_NODE_FIELD(conversion_name);
3486 128 : READ_STRING_FIELD(for_encoding_name);
3487 128 : READ_STRING_FIELD(to_encoding_name);
3488 128 : READ_NODE_FIELD(func_name);
3489 128 : READ_BOOL_FIELD(def);
3490 :
3491 128 : READ_DONE();
3492 : }
3493 :
3494 : static CreateCastStmt *
3495 580 : _readCreateCastStmt(void)
3496 : {
3497 580 : READ_LOCALS(CreateCastStmt);
3498 :
3499 580 : READ_NODE_FIELD(sourcetype);
3500 580 : READ_NODE_FIELD(targettype);
3501 580 : READ_NODE_FIELD(func);
3502 580 : READ_ENUM_FIELD(context, CoercionContext);
3503 580 : READ_BOOL_FIELD(inout);
3504 :
3505 580 : READ_DONE();
3506 : }
3507 :
3508 : static CreateTransformStmt *
3509 104 : _readCreateTransformStmt(void)
3510 : {
3511 104 : READ_LOCALS(CreateTransformStmt);
3512 :
3513 104 : READ_BOOL_FIELD(replace);
3514 104 : READ_NODE_FIELD(type_name);
3515 104 : READ_STRING_FIELD(lang);
3516 104 : READ_NODE_FIELD(fromsql);
3517 104 : READ_NODE_FIELD(tosql);
3518 :
3519 104 : READ_DONE();
3520 : }
3521 :
3522 : static PrepareStmt *
3523 4280 : _readPrepareStmt(void)
3524 : {
3525 4280 : READ_LOCALS(PrepareStmt);
3526 :
3527 4280 : READ_STRING_FIELD(name);
3528 4280 : READ_NODE_FIELD(argtypes);
3529 4280 : READ_NODE_FIELD(query);
3530 :
3531 4280 : READ_DONE();
3532 : }
3533 :
3534 : static ExecuteStmt *
3535 40050 : _readExecuteStmt(void)
3536 : {
3537 40050 : READ_LOCALS(ExecuteStmt);
3538 :
3539 40050 : READ_STRING_FIELD(name);
3540 40050 : READ_NODE_FIELD(params);
3541 :
3542 40050 : READ_DONE();
3543 : }
3544 :
3545 : static DeallocateStmt *
3546 8128 : _readDeallocateStmt(void)
3547 : {
3548 8128 : READ_LOCALS(DeallocateStmt);
3549 :
3550 8128 : READ_STRING_FIELD(name);
3551 8128 : READ_BOOL_FIELD(isall);
3552 8128 : READ_LOCATION_FIELD(location);
3553 :
3554 8128 : READ_DONE();
3555 : }
3556 :
3557 : static DropOwnedStmt *
3558 308 : _readDropOwnedStmt(void)
3559 : {
3560 308 : READ_LOCALS(DropOwnedStmt);
3561 :
3562 308 : READ_NODE_FIELD(roles);
3563 308 : READ_ENUM_FIELD(behavior, DropBehavior);
3564 :
3565 308 : READ_DONE();
3566 : }
3567 :
3568 : static ReassignOwnedStmt *
3569 104 : _readReassignOwnedStmt(void)
3570 : {
3571 104 : READ_LOCALS(ReassignOwnedStmt);
3572 :
3573 104 : READ_NODE_FIELD(roles);
3574 104 : READ_NODE_FIELD(newrole);
3575 :
3576 104 : READ_DONE();
3577 : }
3578 :
3579 : static AlterTSDictionaryStmt *
3580 80 : _readAlterTSDictionaryStmt(void)
3581 : {
3582 80 : READ_LOCALS(AlterTSDictionaryStmt);
3583 :
3584 80 : READ_NODE_FIELD(dictname);
3585 80 : READ_NODE_FIELD(options);
3586 :
3587 80 : READ_DONE();
3588 : }
3589 :
3590 : static AlterTSConfigurationStmt *
3591 17836 : _readAlterTSConfigurationStmt(void)
3592 : {
3593 17836 : READ_LOCALS(AlterTSConfigurationStmt);
3594 :
3595 17836 : READ_ENUM_FIELD(kind, AlterTSConfigType);
3596 17836 : READ_NODE_FIELD(cfgname);
3597 17836 : READ_NODE_FIELD(tokentype);
3598 17836 : READ_NODE_FIELD(dicts);
3599 17836 : READ_BOOL_FIELD(override);
3600 17836 : READ_BOOL_FIELD(replace);
3601 17836 : READ_BOOL_FIELD(missing_ok);
3602 :
3603 17836 : READ_DONE();
3604 : }
3605 :
3606 : static PublicationTable *
3607 2772 : _readPublicationTable(void)
3608 : {
3609 2772 : READ_LOCALS(PublicationTable);
3610 :
3611 2772 : READ_NODE_FIELD(relation);
3612 2772 : READ_NODE_FIELD(whereClause);
3613 2772 : READ_NODE_FIELD(columns);
3614 :
3615 2772 : READ_DONE();
3616 : }
3617 :
3618 : static PublicationObjSpec *
3619 3484 : _readPublicationObjSpec(void)
3620 : {
3621 3484 : READ_LOCALS(PublicationObjSpec);
3622 :
3623 3484 : READ_ENUM_FIELD(pubobjtype, PublicationObjSpecType);
3624 3484 : READ_STRING_FIELD(name);
3625 3484 : READ_NODE_FIELD(pubtable);
3626 3484 : READ_LOCATION_FIELD(location);
3627 :
3628 3484 : READ_DONE();
3629 : }
3630 :
3631 : static CreatePublicationStmt *
3632 1620 : _readCreatePublicationStmt(void)
3633 : {
3634 1620 : READ_LOCALS(CreatePublicationStmt);
3635 :
3636 1620 : READ_STRING_FIELD(pubname);
3637 1620 : READ_NODE_FIELD(options);
3638 1620 : READ_NODE_FIELD(pubobjects);
3639 1620 : READ_BOOL_FIELD(for_all_tables);
3640 :
3641 1620 : READ_DONE();
3642 : }
3643 :
3644 : static AlterPublicationStmt *
3645 2140 : _readAlterPublicationStmt(void)
3646 : {
3647 2140 : READ_LOCALS(AlterPublicationStmt);
3648 :
3649 2140 : READ_STRING_FIELD(pubname);
3650 2140 : READ_NODE_FIELD(options);
3651 2140 : READ_NODE_FIELD(pubobjects);
3652 2140 : READ_BOOL_FIELD(for_all_tables);
3653 2140 : READ_ENUM_FIELD(action, AlterPublicationAction);
3654 :
3655 2140 : READ_DONE();
3656 : }
3657 :
3658 : static CreateSubscriptionStmt *
3659 896 : _readCreateSubscriptionStmt(void)
3660 : {
3661 896 : READ_LOCALS(CreateSubscriptionStmt);
3662 :
3663 896 : READ_STRING_FIELD(subname);
3664 896 : READ_STRING_FIELD(conninfo);
3665 896 : READ_NODE_FIELD(publication);
3666 896 : READ_NODE_FIELD(options);
3667 :
3668 896 : READ_DONE();
3669 : }
3670 :
3671 : static AlterSubscriptionStmt *
3672 946 : _readAlterSubscriptionStmt(void)
3673 : {
3674 946 : READ_LOCALS(AlterSubscriptionStmt);
3675 :
3676 946 : READ_ENUM_FIELD(kind, AlterSubscriptionType);
3677 946 : READ_STRING_FIELD(subname);
3678 946 : READ_STRING_FIELD(conninfo);
3679 946 : READ_NODE_FIELD(publication);
3680 946 : READ_NODE_FIELD(options);
3681 :
3682 946 : READ_DONE();
3683 : }
3684 :
3685 : static DropSubscriptionStmt *
3686 456 : _readDropSubscriptionStmt(void)
3687 : {
3688 456 : READ_LOCALS(DropSubscriptionStmt);
3689 :
3690 456 : READ_STRING_FIELD(subname);
3691 456 : READ_BOOL_FIELD(missing_ok);
3692 456 : READ_ENUM_FIELD(behavior, DropBehavior);
3693 :
3694 456 : READ_DONE();
3695 : }
3696 :
3697 : static GroupByOrdering *
3698 0 : _readGroupByOrdering(void)
3699 : {
3700 0 : READ_LOCALS(GroupByOrdering);
3701 :
3702 0 : READ_NODE_FIELD(pathkeys);
3703 0 : READ_NODE_FIELD(clauses);
3704 :
3705 0 : READ_DONE();
3706 : }
3707 :
3708 : static PlaceHolderVar *
3709 0 : _readPlaceHolderVar(void)
3710 : {
3711 0 : READ_LOCALS(PlaceHolderVar);
3712 :
3713 0 : READ_NODE_FIELD(phexpr);
3714 0 : READ_BITMAPSET_FIELD(phrels);
3715 0 : READ_BITMAPSET_FIELD(phnullingrels);
3716 0 : READ_UINT_FIELD(phid);
3717 0 : READ_UINT_FIELD(phlevelsup);
3718 :
3719 0 : READ_DONE();
3720 : }
3721 :
3722 : static AppendRelInfo *
3723 50340 : _readAppendRelInfo(void)
3724 : {
3725 50340 : READ_LOCALS(AppendRelInfo);
3726 :
3727 50340 : READ_UINT_FIELD(parent_relid);
3728 50340 : READ_UINT_FIELD(child_relid);
3729 50340 : READ_OID_FIELD(parent_reltype);
3730 50340 : READ_OID_FIELD(child_reltype);
3731 50340 : READ_NODE_FIELD(translated_vars);
3732 50340 : READ_INT_FIELD(num_child_cols);
3733 50340 : READ_ATTRNUMBER_ARRAY(parent_colnos, local_node->num_child_cols);
3734 50340 : READ_OID_FIELD(parent_reloid);
3735 :
3736 50340 : READ_DONE();
3737 : }
3738 :
3739 : static PlannedStmt *
3740 454168 : _readPlannedStmt(void)
3741 : {
3742 454168 : READ_LOCALS(PlannedStmt);
3743 :
3744 454168 : READ_ENUM_FIELD(commandType, CmdType);
3745 454168 : READ_INT64_FIELD(queryId);
3746 454168 : READ_INT64_FIELD(planId);
3747 454168 : READ_BOOL_FIELD(hasReturning);
3748 454168 : READ_BOOL_FIELD(hasModifyingCTE);
3749 454168 : READ_BOOL_FIELD(canSetTag);
3750 454168 : READ_BOOL_FIELD(transientPlan);
3751 454168 : READ_BOOL_FIELD(dependsOnRole);
3752 454168 : READ_BOOL_FIELD(parallelModeNeeded);
3753 454168 : READ_INT_FIELD(jitFlags);
3754 454168 : READ_NODE_FIELD(planTree);
3755 454168 : READ_NODE_FIELD(partPruneInfos);
3756 454168 : READ_NODE_FIELD(rtable);
3757 454168 : READ_BITMAPSET_FIELD(unprunableRelids);
3758 454168 : READ_NODE_FIELD(permInfos);
3759 454168 : READ_NODE_FIELD(resultRelations);
3760 454168 : READ_NODE_FIELD(appendRelations);
3761 454168 : READ_NODE_FIELD(subplans);
3762 454168 : READ_BITMAPSET_FIELD(rewindPlanIDs);
3763 454168 : READ_NODE_FIELD(rowMarks);
3764 454168 : READ_NODE_FIELD(relationOids);
3765 454168 : READ_NODE_FIELD(invalItems);
3766 454168 : READ_NODE_FIELD(paramExecTypes);
3767 454168 : READ_NODE_FIELD(utilityStmt);
3768 454168 : READ_LOCATION_FIELD(stmt_location);
3769 454168 : READ_LOCATION_FIELD(stmt_len);
3770 :
3771 454168 : READ_DONE();
3772 : }
3773 :
3774 : static Result *
3775 210750 : _readResult(void)
3776 : {
3777 210750 : READ_LOCALS(Result);
3778 :
3779 210750 : READ_INT_FIELD(plan.disabled_nodes);
3780 210750 : READ_FLOAT_FIELD(plan.startup_cost);
3781 210750 : READ_FLOAT_FIELD(plan.total_cost);
3782 210750 : READ_FLOAT_FIELD(plan.plan_rows);
3783 210750 : READ_INT_FIELD(plan.plan_width);
3784 210750 : READ_BOOL_FIELD(plan.parallel_aware);
3785 210750 : READ_BOOL_FIELD(plan.parallel_safe);
3786 210750 : READ_BOOL_FIELD(plan.async_capable);
3787 210750 : READ_INT_FIELD(plan.plan_node_id);
3788 210750 : READ_NODE_FIELD(plan.targetlist);
3789 210750 : READ_NODE_FIELD(plan.qual);
3790 210750 : READ_NODE_FIELD(plan.lefttree);
3791 210750 : READ_NODE_FIELD(plan.righttree);
3792 210750 : READ_NODE_FIELD(plan.initPlan);
3793 210750 : READ_BITMAPSET_FIELD(plan.extParam);
3794 210750 : READ_BITMAPSET_FIELD(plan.allParam);
3795 210750 : READ_NODE_FIELD(resconstantqual);
3796 :
3797 210750 : READ_DONE();
3798 : }
3799 :
3800 : static ProjectSet *
3801 12066 : _readProjectSet(void)
3802 : {
3803 12066 : READ_LOCALS(ProjectSet);
3804 :
3805 12066 : READ_INT_FIELD(plan.disabled_nodes);
3806 12066 : READ_FLOAT_FIELD(plan.startup_cost);
3807 12066 : READ_FLOAT_FIELD(plan.total_cost);
3808 12066 : READ_FLOAT_FIELD(plan.plan_rows);
3809 12066 : READ_INT_FIELD(plan.plan_width);
3810 12066 : READ_BOOL_FIELD(plan.parallel_aware);
3811 12066 : READ_BOOL_FIELD(plan.parallel_safe);
3812 12066 : READ_BOOL_FIELD(plan.async_capable);
3813 12066 : READ_INT_FIELD(plan.plan_node_id);
3814 12066 : READ_NODE_FIELD(plan.targetlist);
3815 12066 : READ_NODE_FIELD(plan.qual);
3816 12066 : READ_NODE_FIELD(plan.lefttree);
3817 12066 : READ_NODE_FIELD(plan.righttree);
3818 12066 : READ_NODE_FIELD(plan.initPlan);
3819 12066 : READ_BITMAPSET_FIELD(plan.extParam);
3820 12066 : READ_BITMAPSET_FIELD(plan.allParam);
3821 :
3822 12066 : READ_DONE();
3823 : }
3824 :
3825 : static ModifyTable *
3826 89922 : _readModifyTable(void)
3827 : {
3828 89922 : READ_LOCALS(ModifyTable);
3829 :
3830 89922 : READ_INT_FIELD(plan.disabled_nodes);
3831 89922 : READ_FLOAT_FIELD(plan.startup_cost);
3832 89922 : READ_FLOAT_FIELD(plan.total_cost);
3833 89922 : READ_FLOAT_FIELD(plan.plan_rows);
3834 89922 : READ_INT_FIELD(plan.plan_width);
3835 89922 : READ_BOOL_FIELD(plan.parallel_aware);
3836 89922 : READ_BOOL_FIELD(plan.parallel_safe);
3837 89922 : READ_BOOL_FIELD(plan.async_capable);
3838 89922 : READ_INT_FIELD(plan.plan_node_id);
3839 89922 : READ_NODE_FIELD(plan.targetlist);
3840 89922 : READ_NODE_FIELD(plan.qual);
3841 89922 : READ_NODE_FIELD(plan.lefttree);
3842 89922 : READ_NODE_FIELD(plan.righttree);
3843 89922 : READ_NODE_FIELD(plan.initPlan);
3844 89922 : READ_BITMAPSET_FIELD(plan.extParam);
3845 89922 : READ_BITMAPSET_FIELD(plan.allParam);
3846 89922 : READ_ENUM_FIELD(operation, CmdType);
3847 89922 : READ_BOOL_FIELD(canSetTag);
3848 89922 : READ_UINT_FIELD(nominalRelation);
3849 89922 : READ_UINT_FIELD(rootRelation);
3850 89922 : READ_BOOL_FIELD(partColsUpdated);
3851 89922 : READ_NODE_FIELD(resultRelations);
3852 89922 : READ_NODE_FIELD(updateColnosLists);
3853 89922 : READ_NODE_FIELD(withCheckOptionLists);
3854 89922 : READ_STRING_FIELD(returningOldAlias);
3855 89922 : READ_STRING_FIELD(returningNewAlias);
3856 89922 : READ_NODE_FIELD(returningLists);
3857 89922 : READ_NODE_FIELD(fdwPrivLists);
3858 89922 : READ_BITMAPSET_FIELD(fdwDirectModifyPlans);
3859 89922 : READ_NODE_FIELD(rowMarks);
3860 89922 : READ_INT_FIELD(epqParam);
3861 89922 : READ_ENUM_FIELD(onConflictAction, OnConflictAction);
3862 89922 : READ_NODE_FIELD(arbiterIndexes);
3863 89922 : READ_NODE_FIELD(onConflictSet);
3864 89922 : READ_NODE_FIELD(onConflictCols);
3865 89922 : READ_NODE_FIELD(onConflictWhere);
3866 89922 : READ_UINT_FIELD(exclRelRTI);
3867 89922 : READ_NODE_FIELD(exclRelTlist);
3868 89922 : READ_NODE_FIELD(mergeActionLists);
3869 89922 : READ_NODE_FIELD(mergeJoinConditions);
3870 :
3871 89922 : READ_DONE();
3872 : }
3873 :
3874 : static Append *
3875 17176 : _readAppend(void)
3876 : {
3877 17176 : READ_LOCALS(Append);
3878 :
3879 17176 : READ_INT_FIELD(plan.disabled_nodes);
3880 17176 : READ_FLOAT_FIELD(plan.startup_cost);
3881 17176 : READ_FLOAT_FIELD(plan.total_cost);
3882 17176 : READ_FLOAT_FIELD(plan.plan_rows);
3883 17176 : READ_INT_FIELD(plan.plan_width);
3884 17176 : READ_BOOL_FIELD(plan.parallel_aware);
3885 17176 : READ_BOOL_FIELD(plan.parallel_safe);
3886 17176 : READ_BOOL_FIELD(plan.async_capable);
3887 17176 : READ_INT_FIELD(plan.plan_node_id);
3888 17176 : READ_NODE_FIELD(plan.targetlist);
3889 17176 : READ_NODE_FIELD(plan.qual);
3890 17176 : READ_NODE_FIELD(plan.lefttree);
3891 17176 : READ_NODE_FIELD(plan.righttree);
3892 17176 : READ_NODE_FIELD(plan.initPlan);
3893 17176 : READ_BITMAPSET_FIELD(plan.extParam);
3894 17176 : READ_BITMAPSET_FIELD(plan.allParam);
3895 17176 : READ_BITMAPSET_FIELD(apprelids);
3896 17176 : READ_NODE_FIELD(appendplans);
3897 17176 : READ_INT_FIELD(nasyncplans);
3898 17176 : READ_INT_FIELD(first_partial_plan);
3899 17176 : READ_INT_FIELD(part_prune_index);
3900 :
3901 17176 : READ_DONE();
3902 : }
3903 :
3904 : static MergeAppend *
3905 526 : _readMergeAppend(void)
3906 : {
3907 526 : READ_LOCALS(MergeAppend);
3908 :
3909 526 : READ_INT_FIELD(plan.disabled_nodes);
3910 526 : READ_FLOAT_FIELD(plan.startup_cost);
3911 526 : READ_FLOAT_FIELD(plan.total_cost);
3912 526 : READ_FLOAT_FIELD(plan.plan_rows);
3913 526 : READ_INT_FIELD(plan.plan_width);
3914 526 : READ_BOOL_FIELD(plan.parallel_aware);
3915 526 : READ_BOOL_FIELD(plan.parallel_safe);
3916 526 : READ_BOOL_FIELD(plan.async_capable);
3917 526 : READ_INT_FIELD(plan.plan_node_id);
3918 526 : READ_NODE_FIELD(plan.targetlist);
3919 526 : READ_NODE_FIELD(plan.qual);
3920 526 : READ_NODE_FIELD(plan.lefttree);
3921 526 : READ_NODE_FIELD(plan.righttree);
3922 526 : READ_NODE_FIELD(plan.initPlan);
3923 526 : READ_BITMAPSET_FIELD(plan.extParam);
3924 526 : READ_BITMAPSET_FIELD(plan.allParam);
3925 526 : READ_BITMAPSET_FIELD(apprelids);
3926 526 : READ_NODE_FIELD(mergeplans);
3927 526 : READ_INT_FIELD(numCols);
3928 526 : READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
3929 526 : READ_OID_ARRAY(sortOperators, local_node->numCols);
3930 526 : READ_OID_ARRAY(collations, local_node->numCols);
3931 526 : READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
3932 526 : READ_INT_FIELD(part_prune_index);
3933 :
3934 526 : READ_DONE();
3935 : }
3936 :
3937 : static RecursiveUnion *
3938 1000 : _readRecursiveUnion(void)
3939 : {
3940 1000 : READ_LOCALS(RecursiveUnion);
3941 :
3942 1000 : READ_INT_FIELD(plan.disabled_nodes);
3943 1000 : READ_FLOAT_FIELD(plan.startup_cost);
3944 1000 : READ_FLOAT_FIELD(plan.total_cost);
3945 1000 : READ_FLOAT_FIELD(plan.plan_rows);
3946 1000 : READ_INT_FIELD(plan.plan_width);
3947 1000 : READ_BOOL_FIELD(plan.parallel_aware);
3948 1000 : READ_BOOL_FIELD(plan.parallel_safe);
3949 1000 : READ_BOOL_FIELD(plan.async_capable);
3950 1000 : READ_INT_FIELD(plan.plan_node_id);
3951 1000 : READ_NODE_FIELD(plan.targetlist);
3952 1000 : READ_NODE_FIELD(plan.qual);
3953 1000 : READ_NODE_FIELD(plan.lefttree);
3954 1000 : READ_NODE_FIELD(plan.righttree);
3955 1000 : READ_NODE_FIELD(plan.initPlan);
3956 1000 : READ_BITMAPSET_FIELD(plan.extParam);
3957 1000 : READ_BITMAPSET_FIELD(plan.allParam);
3958 1000 : READ_INT_FIELD(wtParam);
3959 1000 : READ_INT_FIELD(numCols);
3960 1000 : READ_ATTRNUMBER_ARRAY(dupColIdx, local_node->numCols);
3961 1000 : READ_OID_ARRAY(dupOperators, local_node->numCols);
3962 1000 : READ_OID_ARRAY(dupCollations, local_node->numCols);
3963 1000 : READ_LONG_FIELD(numGroups);
3964 :
3965 1000 : READ_DONE();
3966 : }
3967 :
3968 : static BitmapAnd *
3969 226 : _readBitmapAnd(void)
3970 : {
3971 226 : READ_LOCALS(BitmapAnd);
3972 :
3973 226 : READ_INT_FIELD(plan.disabled_nodes);
3974 226 : READ_FLOAT_FIELD(plan.startup_cost);
3975 226 : READ_FLOAT_FIELD(plan.total_cost);
3976 226 : READ_FLOAT_FIELD(plan.plan_rows);
3977 226 : READ_INT_FIELD(plan.plan_width);
3978 226 : READ_BOOL_FIELD(plan.parallel_aware);
3979 226 : READ_BOOL_FIELD(plan.parallel_safe);
3980 226 : READ_BOOL_FIELD(plan.async_capable);
3981 226 : READ_INT_FIELD(plan.plan_node_id);
3982 226 : READ_NODE_FIELD(plan.targetlist);
3983 226 : READ_NODE_FIELD(plan.qual);
3984 226 : READ_NODE_FIELD(plan.lefttree);
3985 226 : READ_NODE_FIELD(plan.righttree);
3986 226 : READ_NODE_FIELD(plan.initPlan);
3987 226 : READ_BITMAPSET_FIELD(plan.extParam);
3988 226 : READ_BITMAPSET_FIELD(plan.allParam);
3989 226 : READ_NODE_FIELD(bitmapplans);
3990 :
3991 226 : READ_DONE();
3992 : }
3993 :
3994 : static BitmapOr *
3995 396 : _readBitmapOr(void)
3996 : {
3997 396 : READ_LOCALS(BitmapOr);
3998 :
3999 396 : READ_INT_FIELD(plan.disabled_nodes);
4000 396 : READ_FLOAT_FIELD(plan.startup_cost);
4001 396 : READ_FLOAT_FIELD(plan.total_cost);
4002 396 : READ_FLOAT_FIELD(plan.plan_rows);
4003 396 : READ_INT_FIELD(plan.plan_width);
4004 396 : READ_BOOL_FIELD(plan.parallel_aware);
4005 396 : READ_BOOL_FIELD(plan.parallel_safe);
4006 396 : READ_BOOL_FIELD(plan.async_capable);
4007 396 : READ_INT_FIELD(plan.plan_node_id);
4008 396 : READ_NODE_FIELD(plan.targetlist);
4009 396 : READ_NODE_FIELD(plan.qual);
4010 396 : READ_NODE_FIELD(plan.lefttree);
4011 396 : READ_NODE_FIELD(plan.righttree);
4012 396 : READ_NODE_FIELD(plan.initPlan);
4013 396 : READ_BITMAPSET_FIELD(plan.extParam);
4014 396 : READ_BITMAPSET_FIELD(plan.allParam);
4015 396 : READ_BOOL_FIELD(isshared);
4016 396 : READ_NODE_FIELD(bitmapplans);
4017 :
4018 396 : READ_DONE();
4019 : }
4020 :
4021 : static SeqScan *
4022 218068 : _readSeqScan(void)
4023 : {
4024 218068 : READ_LOCALS(SeqScan);
4025 :
4026 218068 : READ_INT_FIELD(scan.plan.disabled_nodes);
4027 218068 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4028 218068 : READ_FLOAT_FIELD(scan.plan.total_cost);
4029 218068 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4030 218068 : READ_INT_FIELD(scan.plan.plan_width);
4031 218068 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4032 218068 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4033 218068 : READ_BOOL_FIELD(scan.plan.async_capable);
4034 218068 : READ_INT_FIELD(scan.plan.plan_node_id);
4035 218068 : READ_NODE_FIELD(scan.plan.targetlist);
4036 218068 : READ_NODE_FIELD(scan.plan.qual);
4037 218068 : READ_NODE_FIELD(scan.plan.lefttree);
4038 218068 : READ_NODE_FIELD(scan.plan.righttree);
4039 218068 : READ_NODE_FIELD(scan.plan.initPlan);
4040 218068 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4041 218068 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4042 218068 : READ_UINT_FIELD(scan.scanrelid);
4043 :
4044 218068 : READ_DONE();
4045 : }
4046 :
4047 : static SampleScan *
4048 306 : _readSampleScan(void)
4049 : {
4050 306 : READ_LOCALS(SampleScan);
4051 :
4052 306 : READ_INT_FIELD(scan.plan.disabled_nodes);
4053 306 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4054 306 : READ_FLOAT_FIELD(scan.plan.total_cost);
4055 306 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4056 306 : READ_INT_FIELD(scan.plan.plan_width);
4057 306 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4058 306 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4059 306 : READ_BOOL_FIELD(scan.plan.async_capable);
4060 306 : READ_INT_FIELD(scan.plan.plan_node_id);
4061 306 : READ_NODE_FIELD(scan.plan.targetlist);
4062 306 : READ_NODE_FIELD(scan.plan.qual);
4063 306 : READ_NODE_FIELD(scan.plan.lefttree);
4064 306 : READ_NODE_FIELD(scan.plan.righttree);
4065 306 : READ_NODE_FIELD(scan.plan.initPlan);
4066 306 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4067 306 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4068 306 : READ_UINT_FIELD(scan.scanrelid);
4069 306 : READ_NODE_FIELD(tablesample);
4070 :
4071 306 : READ_DONE();
4072 : }
4073 :
4074 : static IndexScan *
4075 143030 : _readIndexScan(void)
4076 : {
4077 143030 : READ_LOCALS(IndexScan);
4078 :
4079 143030 : READ_INT_FIELD(scan.plan.disabled_nodes);
4080 143030 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4081 143030 : READ_FLOAT_FIELD(scan.plan.total_cost);
4082 143030 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4083 143030 : READ_INT_FIELD(scan.plan.plan_width);
4084 143030 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4085 143030 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4086 143030 : READ_BOOL_FIELD(scan.plan.async_capable);
4087 143030 : READ_INT_FIELD(scan.plan.plan_node_id);
4088 143030 : READ_NODE_FIELD(scan.plan.targetlist);
4089 143030 : READ_NODE_FIELD(scan.plan.qual);
4090 143030 : READ_NODE_FIELD(scan.plan.lefttree);
4091 143030 : READ_NODE_FIELD(scan.plan.righttree);
4092 143030 : READ_NODE_FIELD(scan.plan.initPlan);
4093 143030 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4094 143030 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4095 143030 : READ_UINT_FIELD(scan.scanrelid);
4096 143030 : READ_OID_FIELD(indexid);
4097 143030 : READ_NODE_FIELD(indexqual);
4098 143030 : READ_NODE_FIELD(indexqualorig);
4099 143030 : READ_NODE_FIELD(indexorderby);
4100 143030 : READ_NODE_FIELD(indexorderbyorig);
4101 143030 : READ_NODE_FIELD(indexorderbyops);
4102 143030 : READ_ENUM_FIELD(indexorderdir, ScanDirection);
4103 :
4104 143030 : READ_DONE();
4105 : }
4106 :
4107 : static IndexOnlyScan *
4108 16614 : _readIndexOnlyScan(void)
4109 : {
4110 16614 : READ_LOCALS(IndexOnlyScan);
4111 :
4112 16614 : READ_INT_FIELD(scan.plan.disabled_nodes);
4113 16614 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4114 16614 : READ_FLOAT_FIELD(scan.plan.total_cost);
4115 16614 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4116 16614 : READ_INT_FIELD(scan.plan.plan_width);
4117 16614 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4118 16614 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4119 16614 : READ_BOOL_FIELD(scan.plan.async_capable);
4120 16614 : READ_INT_FIELD(scan.plan.plan_node_id);
4121 16614 : READ_NODE_FIELD(scan.plan.targetlist);
4122 16614 : READ_NODE_FIELD(scan.plan.qual);
4123 16614 : READ_NODE_FIELD(scan.plan.lefttree);
4124 16614 : READ_NODE_FIELD(scan.plan.righttree);
4125 16614 : READ_NODE_FIELD(scan.plan.initPlan);
4126 16614 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4127 16614 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4128 16614 : READ_UINT_FIELD(scan.scanrelid);
4129 16614 : READ_OID_FIELD(indexid);
4130 16614 : READ_NODE_FIELD(indexqual);
4131 16614 : READ_NODE_FIELD(recheckqual);
4132 16614 : READ_NODE_FIELD(indexorderby);
4133 16614 : READ_NODE_FIELD(indextlist);
4134 16614 : READ_ENUM_FIELD(indexorderdir, ScanDirection);
4135 :
4136 16614 : READ_DONE();
4137 : }
4138 :
4139 : static BitmapIndexScan *
4140 21806 : _readBitmapIndexScan(void)
4141 : {
4142 21806 : READ_LOCALS(BitmapIndexScan);
4143 :
4144 21806 : READ_INT_FIELD(scan.plan.disabled_nodes);
4145 21806 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4146 21806 : READ_FLOAT_FIELD(scan.plan.total_cost);
4147 21806 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4148 21806 : READ_INT_FIELD(scan.plan.plan_width);
4149 21806 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4150 21806 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4151 21806 : READ_BOOL_FIELD(scan.plan.async_capable);
4152 21806 : READ_INT_FIELD(scan.plan.plan_node_id);
4153 21806 : READ_NODE_FIELD(scan.plan.targetlist);
4154 21806 : READ_NODE_FIELD(scan.plan.qual);
4155 21806 : READ_NODE_FIELD(scan.plan.lefttree);
4156 21806 : READ_NODE_FIELD(scan.plan.righttree);
4157 21806 : READ_NODE_FIELD(scan.plan.initPlan);
4158 21806 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4159 21806 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4160 21806 : READ_UINT_FIELD(scan.scanrelid);
4161 21806 : READ_OID_FIELD(indexid);
4162 21806 : READ_BOOL_FIELD(isshared);
4163 21806 : READ_NODE_FIELD(indexqual);
4164 21806 : READ_NODE_FIELD(indexqualorig);
4165 :
4166 21806 : READ_DONE();
4167 : }
4168 :
4169 : static BitmapHeapScan *
4170 21178 : _readBitmapHeapScan(void)
4171 : {
4172 21178 : READ_LOCALS(BitmapHeapScan);
4173 :
4174 21178 : READ_INT_FIELD(scan.plan.disabled_nodes);
4175 21178 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4176 21178 : READ_FLOAT_FIELD(scan.plan.total_cost);
4177 21178 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4178 21178 : READ_INT_FIELD(scan.plan.plan_width);
4179 21178 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4180 21178 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4181 21178 : READ_BOOL_FIELD(scan.plan.async_capable);
4182 21178 : READ_INT_FIELD(scan.plan.plan_node_id);
4183 21178 : READ_NODE_FIELD(scan.plan.targetlist);
4184 21178 : READ_NODE_FIELD(scan.plan.qual);
4185 21178 : READ_NODE_FIELD(scan.plan.lefttree);
4186 21178 : READ_NODE_FIELD(scan.plan.righttree);
4187 21178 : READ_NODE_FIELD(scan.plan.initPlan);
4188 21178 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4189 21178 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4190 21178 : READ_UINT_FIELD(scan.scanrelid);
4191 21178 : READ_NODE_FIELD(bitmapqualorig);
4192 :
4193 21178 : READ_DONE();
4194 : }
4195 :
4196 : static TidScan *
4197 732 : _readTidScan(void)
4198 : {
4199 732 : READ_LOCALS(TidScan);
4200 :
4201 732 : READ_INT_FIELD(scan.plan.disabled_nodes);
4202 732 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4203 732 : READ_FLOAT_FIELD(scan.plan.total_cost);
4204 732 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4205 732 : READ_INT_FIELD(scan.plan.plan_width);
4206 732 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4207 732 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4208 732 : READ_BOOL_FIELD(scan.plan.async_capable);
4209 732 : READ_INT_FIELD(scan.plan.plan_node_id);
4210 732 : READ_NODE_FIELD(scan.plan.targetlist);
4211 732 : READ_NODE_FIELD(scan.plan.qual);
4212 732 : READ_NODE_FIELD(scan.plan.lefttree);
4213 732 : READ_NODE_FIELD(scan.plan.righttree);
4214 732 : READ_NODE_FIELD(scan.plan.initPlan);
4215 732 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4216 732 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4217 732 : READ_UINT_FIELD(scan.scanrelid);
4218 732 : READ_NODE_FIELD(tidquals);
4219 :
4220 732 : READ_DONE();
4221 : }
4222 :
4223 : static TidRangeScan *
4224 1940 : _readTidRangeScan(void)
4225 : {
4226 1940 : READ_LOCALS(TidRangeScan);
4227 :
4228 1940 : READ_INT_FIELD(scan.plan.disabled_nodes);
4229 1940 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4230 1940 : READ_FLOAT_FIELD(scan.plan.total_cost);
4231 1940 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4232 1940 : READ_INT_FIELD(scan.plan.plan_width);
4233 1940 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4234 1940 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4235 1940 : READ_BOOL_FIELD(scan.plan.async_capable);
4236 1940 : READ_INT_FIELD(scan.plan.plan_node_id);
4237 1940 : READ_NODE_FIELD(scan.plan.targetlist);
4238 1940 : READ_NODE_FIELD(scan.plan.qual);
4239 1940 : READ_NODE_FIELD(scan.plan.lefttree);
4240 1940 : READ_NODE_FIELD(scan.plan.righttree);
4241 1940 : READ_NODE_FIELD(scan.plan.initPlan);
4242 1940 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4243 1940 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4244 1940 : READ_UINT_FIELD(scan.scanrelid);
4245 1940 : READ_NODE_FIELD(tidrangequals);
4246 :
4247 1940 : READ_DONE();
4248 : }
4249 :
4250 : static SubqueryScan *
4251 10906 : _readSubqueryScan(void)
4252 : {
4253 10906 : READ_LOCALS(SubqueryScan);
4254 :
4255 10906 : READ_INT_FIELD(scan.plan.disabled_nodes);
4256 10906 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4257 10906 : READ_FLOAT_FIELD(scan.plan.total_cost);
4258 10906 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4259 10906 : READ_INT_FIELD(scan.plan.plan_width);
4260 10906 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4261 10906 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4262 10906 : READ_BOOL_FIELD(scan.plan.async_capable);
4263 10906 : READ_INT_FIELD(scan.plan.plan_node_id);
4264 10906 : READ_NODE_FIELD(scan.plan.targetlist);
4265 10906 : READ_NODE_FIELD(scan.plan.qual);
4266 10906 : READ_NODE_FIELD(scan.plan.lefttree);
4267 10906 : READ_NODE_FIELD(scan.plan.righttree);
4268 10906 : READ_NODE_FIELD(scan.plan.initPlan);
4269 10906 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4270 10906 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4271 10906 : READ_UINT_FIELD(scan.scanrelid);
4272 10906 : READ_NODE_FIELD(subplan);
4273 10906 : READ_ENUM_FIELD(scanstatus, SubqueryScanStatus);
4274 :
4275 10906 : READ_DONE();
4276 : }
4277 :
4278 : static FunctionScan *
4279 51694 : _readFunctionScan(void)
4280 : {
4281 51694 : READ_LOCALS(FunctionScan);
4282 :
4283 51694 : READ_INT_FIELD(scan.plan.disabled_nodes);
4284 51694 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4285 51694 : READ_FLOAT_FIELD(scan.plan.total_cost);
4286 51694 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4287 51694 : READ_INT_FIELD(scan.plan.plan_width);
4288 51694 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4289 51694 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4290 51694 : READ_BOOL_FIELD(scan.plan.async_capable);
4291 51694 : READ_INT_FIELD(scan.plan.plan_node_id);
4292 51694 : READ_NODE_FIELD(scan.plan.targetlist);
4293 51694 : READ_NODE_FIELD(scan.plan.qual);
4294 51694 : READ_NODE_FIELD(scan.plan.lefttree);
4295 51694 : READ_NODE_FIELD(scan.plan.righttree);
4296 51694 : READ_NODE_FIELD(scan.plan.initPlan);
4297 51694 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4298 51694 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4299 51694 : READ_UINT_FIELD(scan.scanrelid);
4300 51694 : READ_NODE_FIELD(functions);
4301 51694 : READ_BOOL_FIELD(funcordinality);
4302 :
4303 51694 : READ_DONE();
4304 : }
4305 :
4306 : static ValuesScan *
4307 8240 : _readValuesScan(void)
4308 : {
4309 8240 : READ_LOCALS(ValuesScan);
4310 :
4311 8240 : READ_INT_FIELD(scan.plan.disabled_nodes);
4312 8240 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4313 8240 : READ_FLOAT_FIELD(scan.plan.total_cost);
4314 8240 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4315 8240 : READ_INT_FIELD(scan.plan.plan_width);
4316 8240 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4317 8240 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4318 8240 : READ_BOOL_FIELD(scan.plan.async_capable);
4319 8240 : READ_INT_FIELD(scan.plan.plan_node_id);
4320 8240 : READ_NODE_FIELD(scan.plan.targetlist);
4321 8240 : READ_NODE_FIELD(scan.plan.qual);
4322 8240 : READ_NODE_FIELD(scan.plan.lefttree);
4323 8240 : READ_NODE_FIELD(scan.plan.righttree);
4324 8240 : READ_NODE_FIELD(scan.plan.initPlan);
4325 8240 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4326 8240 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4327 8240 : READ_UINT_FIELD(scan.scanrelid);
4328 8240 : READ_NODE_FIELD(values_lists);
4329 :
4330 8240 : READ_DONE();
4331 : }
4332 :
4333 : static TableFuncScan *
4334 626 : _readTableFuncScan(void)
4335 : {
4336 626 : READ_LOCALS(TableFuncScan);
4337 :
4338 626 : READ_INT_FIELD(scan.plan.disabled_nodes);
4339 626 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4340 626 : READ_FLOAT_FIELD(scan.plan.total_cost);
4341 626 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4342 626 : READ_INT_FIELD(scan.plan.plan_width);
4343 626 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4344 626 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4345 626 : READ_BOOL_FIELD(scan.plan.async_capable);
4346 626 : READ_INT_FIELD(scan.plan.plan_node_id);
4347 626 : READ_NODE_FIELD(scan.plan.targetlist);
4348 626 : READ_NODE_FIELD(scan.plan.qual);
4349 626 : READ_NODE_FIELD(scan.plan.lefttree);
4350 626 : READ_NODE_FIELD(scan.plan.righttree);
4351 626 : READ_NODE_FIELD(scan.plan.initPlan);
4352 626 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4353 626 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4354 626 : READ_UINT_FIELD(scan.scanrelid);
4355 626 : READ_NODE_FIELD(tablefunc);
4356 :
4357 626 : READ_DONE();
4358 : }
4359 :
4360 : static CteScan *
4361 4060 : _readCteScan(void)
4362 : {
4363 4060 : READ_LOCALS(CteScan);
4364 :
4365 4060 : READ_INT_FIELD(scan.plan.disabled_nodes);
4366 4060 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4367 4060 : READ_FLOAT_FIELD(scan.plan.total_cost);
4368 4060 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4369 4060 : READ_INT_FIELD(scan.plan.plan_width);
4370 4060 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4371 4060 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4372 4060 : READ_BOOL_FIELD(scan.plan.async_capable);
4373 4060 : READ_INT_FIELD(scan.plan.plan_node_id);
4374 4060 : READ_NODE_FIELD(scan.plan.targetlist);
4375 4060 : READ_NODE_FIELD(scan.plan.qual);
4376 4060 : READ_NODE_FIELD(scan.plan.lefttree);
4377 4060 : READ_NODE_FIELD(scan.plan.righttree);
4378 4060 : READ_NODE_FIELD(scan.plan.initPlan);
4379 4060 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4380 4060 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4381 4060 : READ_UINT_FIELD(scan.scanrelid);
4382 4060 : READ_INT_FIELD(ctePlanId);
4383 4060 : READ_INT_FIELD(cteParam);
4384 :
4385 4060 : READ_DONE();
4386 : }
4387 :
4388 : static NamedTuplestoreScan *
4389 462 : _readNamedTuplestoreScan(void)
4390 : {
4391 462 : READ_LOCALS(NamedTuplestoreScan);
4392 :
4393 462 : READ_INT_FIELD(scan.plan.disabled_nodes);
4394 462 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4395 462 : READ_FLOAT_FIELD(scan.plan.total_cost);
4396 462 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4397 462 : READ_INT_FIELD(scan.plan.plan_width);
4398 462 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4399 462 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4400 462 : READ_BOOL_FIELD(scan.plan.async_capable);
4401 462 : READ_INT_FIELD(scan.plan.plan_node_id);
4402 462 : READ_NODE_FIELD(scan.plan.targetlist);
4403 462 : READ_NODE_FIELD(scan.plan.qual);
4404 462 : READ_NODE_FIELD(scan.plan.lefttree);
4405 462 : READ_NODE_FIELD(scan.plan.righttree);
4406 462 : READ_NODE_FIELD(scan.plan.initPlan);
4407 462 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4408 462 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4409 462 : READ_UINT_FIELD(scan.scanrelid);
4410 462 : READ_STRING_FIELD(enrname);
4411 :
4412 462 : READ_DONE();
4413 : }
4414 :
4415 : static WorkTableScan *
4416 1000 : _readWorkTableScan(void)
4417 : {
4418 1000 : READ_LOCALS(WorkTableScan);
4419 :
4420 1000 : READ_INT_FIELD(scan.plan.disabled_nodes);
4421 1000 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4422 1000 : READ_FLOAT_FIELD(scan.plan.total_cost);
4423 1000 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4424 1000 : READ_INT_FIELD(scan.plan.plan_width);
4425 1000 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4426 1000 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4427 1000 : READ_BOOL_FIELD(scan.plan.async_capable);
4428 1000 : READ_INT_FIELD(scan.plan.plan_node_id);
4429 1000 : READ_NODE_FIELD(scan.plan.targetlist);
4430 1000 : READ_NODE_FIELD(scan.plan.qual);
4431 1000 : READ_NODE_FIELD(scan.plan.lefttree);
4432 1000 : READ_NODE_FIELD(scan.plan.righttree);
4433 1000 : READ_NODE_FIELD(scan.plan.initPlan);
4434 1000 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4435 1000 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4436 1000 : READ_UINT_FIELD(scan.scanrelid);
4437 1000 : READ_INT_FIELD(wtParam);
4438 :
4439 1000 : READ_DONE();
4440 : }
4441 :
4442 : static ForeignScan *
4443 2002 : _readForeignScan(void)
4444 : {
4445 2002 : READ_LOCALS(ForeignScan);
4446 :
4447 2002 : READ_INT_FIELD(scan.plan.disabled_nodes);
4448 2002 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4449 2002 : READ_FLOAT_FIELD(scan.plan.total_cost);
4450 2002 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4451 2002 : READ_INT_FIELD(scan.plan.plan_width);
4452 2002 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4453 2002 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4454 2002 : READ_BOOL_FIELD(scan.plan.async_capable);
4455 2002 : READ_INT_FIELD(scan.plan.plan_node_id);
4456 2002 : READ_NODE_FIELD(scan.plan.targetlist);
4457 2002 : READ_NODE_FIELD(scan.plan.qual);
4458 2002 : READ_NODE_FIELD(scan.plan.lefttree);
4459 2002 : READ_NODE_FIELD(scan.plan.righttree);
4460 2002 : READ_NODE_FIELD(scan.plan.initPlan);
4461 2002 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4462 2002 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4463 2002 : READ_UINT_FIELD(scan.scanrelid);
4464 2002 : READ_ENUM_FIELD(operation, CmdType);
4465 2002 : READ_UINT_FIELD(resultRelation);
4466 2002 : READ_OID_FIELD(checkAsUser);
4467 2002 : READ_OID_FIELD(fs_server);
4468 2002 : READ_NODE_FIELD(fdw_exprs);
4469 2002 : READ_NODE_FIELD(fdw_private);
4470 2002 : READ_NODE_FIELD(fdw_scan_tlist);
4471 2002 : READ_NODE_FIELD(fdw_recheck_quals);
4472 2002 : READ_BITMAPSET_FIELD(fs_relids);
4473 2002 : READ_BITMAPSET_FIELD(fs_base_relids);
4474 2002 : READ_BOOL_FIELD(fsSystemCol);
4475 :
4476 2002 : READ_DONE();
4477 : }
4478 :
4479 : static CustomScan *
4480 0 : _readCustomScan(void)
4481 : {
4482 0 : READ_LOCALS(CustomScan);
4483 :
4484 0 : READ_INT_FIELD(scan.plan.disabled_nodes);
4485 0 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4486 0 : READ_FLOAT_FIELD(scan.plan.total_cost);
4487 0 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4488 0 : READ_INT_FIELD(scan.plan.plan_width);
4489 0 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4490 0 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4491 0 : READ_BOOL_FIELD(scan.plan.async_capable);
4492 0 : READ_INT_FIELD(scan.plan.plan_node_id);
4493 0 : READ_NODE_FIELD(scan.plan.targetlist);
4494 0 : READ_NODE_FIELD(scan.plan.qual);
4495 0 : READ_NODE_FIELD(scan.plan.lefttree);
4496 0 : READ_NODE_FIELD(scan.plan.righttree);
4497 0 : READ_NODE_FIELD(scan.plan.initPlan);
4498 0 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4499 0 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4500 0 : READ_UINT_FIELD(scan.scanrelid);
4501 0 : READ_UINT_FIELD(flags);
4502 0 : READ_NODE_FIELD(custom_plans);
4503 0 : READ_NODE_FIELD(custom_exprs);
4504 0 : READ_NODE_FIELD(custom_private);
4505 0 : READ_NODE_FIELD(custom_scan_tlist);
4506 0 : READ_BITMAPSET_FIELD(custom_relids);
4507 :
4508 : {
4509 : /* Lookup CustomScanMethods by CustomName */
4510 : char *custom_name;
4511 : const CustomScanMethods *methods;
4512 0 : token = pg_strtok(&length); /* skip methods: */
4513 0 : token = pg_strtok(&length); /* CustomName */
4514 0 : custom_name = nullable_string(token, length);
4515 0 : methods = GetCustomScanMethods(custom_name, false);
4516 0 : local_node->methods = methods;
4517 : }
4518 :
4519 0 : READ_DONE();
4520 : }
4521 :
4522 : static NestLoop *
4523 94164 : _readNestLoop(void)
4524 : {
4525 94164 : READ_LOCALS(NestLoop);
4526 :
4527 94164 : READ_INT_FIELD(join.plan.disabled_nodes);
4528 94164 : READ_FLOAT_FIELD(join.plan.startup_cost);
4529 94164 : READ_FLOAT_FIELD(join.plan.total_cost);
4530 94164 : READ_FLOAT_FIELD(join.plan.plan_rows);
4531 94164 : READ_INT_FIELD(join.plan.plan_width);
4532 94164 : READ_BOOL_FIELD(join.plan.parallel_aware);
4533 94164 : READ_BOOL_FIELD(join.plan.parallel_safe);
4534 94164 : READ_BOOL_FIELD(join.plan.async_capable);
4535 94164 : READ_INT_FIELD(join.plan.plan_node_id);
4536 94164 : READ_NODE_FIELD(join.plan.targetlist);
4537 94164 : READ_NODE_FIELD(join.plan.qual);
4538 94164 : READ_NODE_FIELD(join.plan.lefttree);
4539 94164 : READ_NODE_FIELD(join.plan.righttree);
4540 94164 : READ_NODE_FIELD(join.plan.initPlan);
4541 94164 : READ_BITMAPSET_FIELD(join.plan.extParam);
4542 94164 : READ_BITMAPSET_FIELD(join.plan.allParam);
4543 94164 : READ_ENUM_FIELD(join.jointype, JoinType);
4544 94164 : READ_BOOL_FIELD(join.inner_unique);
4545 94164 : READ_NODE_FIELD(join.joinqual);
4546 94164 : READ_NODE_FIELD(nestParams);
4547 :
4548 94164 : READ_DONE();
4549 : }
4550 :
4551 : static NestLoopParam *
4552 53172 : _readNestLoopParam(void)
4553 : {
4554 53172 : READ_LOCALS(NestLoopParam);
4555 :
4556 53172 : READ_INT_FIELD(paramno);
4557 53172 : READ_NODE_FIELD(paramval);
4558 :
4559 53172 : READ_DONE();
4560 : }
4561 :
4562 : static MergeJoin *
4563 8090 : _readMergeJoin(void)
4564 : {
4565 8090 : READ_LOCALS(MergeJoin);
4566 :
4567 8090 : READ_INT_FIELD(join.plan.disabled_nodes);
4568 8090 : READ_FLOAT_FIELD(join.plan.startup_cost);
4569 8090 : READ_FLOAT_FIELD(join.plan.total_cost);
4570 8090 : READ_FLOAT_FIELD(join.plan.plan_rows);
4571 8090 : READ_INT_FIELD(join.plan.plan_width);
4572 8090 : READ_BOOL_FIELD(join.plan.parallel_aware);
4573 8090 : READ_BOOL_FIELD(join.plan.parallel_safe);
4574 8090 : READ_BOOL_FIELD(join.plan.async_capable);
4575 8090 : READ_INT_FIELD(join.plan.plan_node_id);
4576 8090 : READ_NODE_FIELD(join.plan.targetlist);
4577 8090 : READ_NODE_FIELD(join.plan.qual);
4578 8090 : READ_NODE_FIELD(join.plan.lefttree);
4579 8090 : READ_NODE_FIELD(join.plan.righttree);
4580 8090 : READ_NODE_FIELD(join.plan.initPlan);
4581 8090 : READ_BITMAPSET_FIELD(join.plan.extParam);
4582 8090 : READ_BITMAPSET_FIELD(join.plan.allParam);
4583 8090 : READ_ENUM_FIELD(join.jointype, JoinType);
4584 8090 : READ_BOOL_FIELD(join.inner_unique);
4585 8090 : READ_NODE_FIELD(join.joinqual);
4586 8090 : READ_BOOL_FIELD(skip_mark_restore);
4587 8090 : READ_NODE_FIELD(mergeclauses);
4588 8090 : READ_OID_ARRAY(mergeFamilies, list_length(local_node->mergeclauses));
4589 8090 : READ_OID_ARRAY(mergeCollations, list_length(local_node->mergeclauses));
4590 8090 : READ_BOOL_ARRAY(mergeReversals, list_length(local_node->mergeclauses));
4591 8090 : READ_BOOL_ARRAY(mergeNullsFirst, list_length(local_node->mergeclauses));
4592 :
4593 8090 : READ_DONE();
4594 : }
4595 :
4596 : static HashJoin *
4597 33984 : _readHashJoin(void)
4598 : {
4599 33984 : READ_LOCALS(HashJoin);
4600 :
4601 33984 : READ_INT_FIELD(join.plan.disabled_nodes);
4602 33984 : READ_FLOAT_FIELD(join.plan.startup_cost);
4603 33984 : READ_FLOAT_FIELD(join.plan.total_cost);
4604 33984 : READ_FLOAT_FIELD(join.plan.plan_rows);
4605 33984 : READ_INT_FIELD(join.plan.plan_width);
4606 33984 : READ_BOOL_FIELD(join.plan.parallel_aware);
4607 33984 : READ_BOOL_FIELD(join.plan.parallel_safe);
4608 33984 : READ_BOOL_FIELD(join.plan.async_capable);
4609 33984 : READ_INT_FIELD(join.plan.plan_node_id);
4610 33984 : READ_NODE_FIELD(join.plan.targetlist);
4611 33984 : READ_NODE_FIELD(join.plan.qual);
4612 33984 : READ_NODE_FIELD(join.plan.lefttree);
4613 33984 : READ_NODE_FIELD(join.plan.righttree);
4614 33984 : READ_NODE_FIELD(join.plan.initPlan);
4615 33984 : READ_BITMAPSET_FIELD(join.plan.extParam);
4616 33984 : READ_BITMAPSET_FIELD(join.plan.allParam);
4617 33984 : READ_ENUM_FIELD(join.jointype, JoinType);
4618 33984 : READ_BOOL_FIELD(join.inner_unique);
4619 33984 : READ_NODE_FIELD(join.joinqual);
4620 33984 : READ_NODE_FIELD(hashclauses);
4621 33984 : READ_NODE_FIELD(hashoperators);
4622 33984 : READ_NODE_FIELD(hashcollations);
4623 33984 : READ_NODE_FIELD(hashkeys);
4624 :
4625 33984 : READ_DONE();
4626 : }
4627 :
4628 : static Material *
4629 4738 : _readMaterial(void)
4630 : {
4631 4738 : READ_LOCALS(Material);
4632 :
4633 4738 : READ_INT_FIELD(plan.disabled_nodes);
4634 4738 : READ_FLOAT_FIELD(plan.startup_cost);
4635 4738 : READ_FLOAT_FIELD(plan.total_cost);
4636 4738 : READ_FLOAT_FIELD(plan.plan_rows);
4637 4738 : READ_INT_FIELD(plan.plan_width);
4638 4738 : READ_BOOL_FIELD(plan.parallel_aware);
4639 4738 : READ_BOOL_FIELD(plan.parallel_safe);
4640 4738 : READ_BOOL_FIELD(plan.async_capable);
4641 4738 : READ_INT_FIELD(plan.plan_node_id);
4642 4738 : READ_NODE_FIELD(plan.targetlist);
4643 4738 : READ_NODE_FIELD(plan.qual);
4644 4738 : READ_NODE_FIELD(plan.lefttree);
4645 4738 : READ_NODE_FIELD(plan.righttree);
4646 4738 : READ_NODE_FIELD(plan.initPlan);
4647 4738 : READ_BITMAPSET_FIELD(plan.extParam);
4648 4738 : READ_BITMAPSET_FIELD(plan.allParam);
4649 :
4650 4738 : READ_DONE();
4651 : }
4652 :
4653 : static Memoize *
4654 1910 : _readMemoize(void)
4655 : {
4656 1910 : READ_LOCALS(Memoize);
4657 :
4658 1910 : READ_INT_FIELD(plan.disabled_nodes);
4659 1910 : READ_FLOAT_FIELD(plan.startup_cost);
4660 1910 : READ_FLOAT_FIELD(plan.total_cost);
4661 1910 : READ_FLOAT_FIELD(plan.plan_rows);
4662 1910 : READ_INT_FIELD(plan.plan_width);
4663 1910 : READ_BOOL_FIELD(plan.parallel_aware);
4664 1910 : READ_BOOL_FIELD(plan.parallel_safe);
4665 1910 : READ_BOOL_FIELD(plan.async_capable);
4666 1910 : READ_INT_FIELD(plan.plan_node_id);
4667 1910 : READ_NODE_FIELD(plan.targetlist);
4668 1910 : READ_NODE_FIELD(plan.qual);
4669 1910 : READ_NODE_FIELD(plan.lefttree);
4670 1910 : READ_NODE_FIELD(plan.righttree);
4671 1910 : READ_NODE_FIELD(plan.initPlan);
4672 1910 : READ_BITMAPSET_FIELD(plan.extParam);
4673 1910 : READ_BITMAPSET_FIELD(plan.allParam);
4674 1910 : READ_INT_FIELD(numKeys);
4675 1910 : READ_OID_ARRAY(hashOperators, local_node->numKeys);
4676 1910 : READ_OID_ARRAY(collations, local_node->numKeys);
4677 1910 : READ_NODE_FIELD(param_exprs);
4678 1910 : READ_BOOL_FIELD(singlerow);
4679 1910 : READ_BOOL_FIELD(binary_mode);
4680 1910 : READ_UINT_FIELD(est_entries);
4681 1910 : READ_BITMAPSET_FIELD(keyparamids);
4682 :
4683 1910 : READ_DONE();
4684 : }
4685 :
4686 : static Sort *
4687 81704 : _readSort(void)
4688 : {
4689 81704 : READ_LOCALS(Sort);
4690 :
4691 81704 : READ_INT_FIELD(plan.disabled_nodes);
4692 81704 : READ_FLOAT_FIELD(plan.startup_cost);
4693 81704 : READ_FLOAT_FIELD(plan.total_cost);
4694 81704 : READ_FLOAT_FIELD(plan.plan_rows);
4695 81704 : READ_INT_FIELD(plan.plan_width);
4696 81704 : READ_BOOL_FIELD(plan.parallel_aware);
4697 81704 : READ_BOOL_FIELD(plan.parallel_safe);
4698 81704 : READ_BOOL_FIELD(plan.async_capable);
4699 81704 : READ_INT_FIELD(plan.plan_node_id);
4700 81704 : READ_NODE_FIELD(plan.targetlist);
4701 81704 : READ_NODE_FIELD(plan.qual);
4702 81704 : READ_NODE_FIELD(plan.lefttree);
4703 81704 : READ_NODE_FIELD(plan.righttree);
4704 81704 : READ_NODE_FIELD(plan.initPlan);
4705 81704 : READ_BITMAPSET_FIELD(plan.extParam);
4706 81704 : READ_BITMAPSET_FIELD(plan.allParam);
4707 81704 : READ_INT_FIELD(numCols);
4708 81704 : READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
4709 81704 : READ_OID_ARRAY(sortOperators, local_node->numCols);
4710 81704 : READ_OID_ARRAY(collations, local_node->numCols);
4711 81704 : READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
4712 :
4713 81704 : READ_DONE();
4714 : }
4715 :
4716 : static IncrementalSort *
4717 982 : _readIncrementalSort(void)
4718 : {
4719 982 : READ_LOCALS(IncrementalSort);
4720 :
4721 982 : READ_INT_FIELD(sort.plan.disabled_nodes);
4722 982 : READ_FLOAT_FIELD(sort.plan.startup_cost);
4723 982 : READ_FLOAT_FIELD(sort.plan.total_cost);
4724 982 : READ_FLOAT_FIELD(sort.plan.plan_rows);
4725 982 : READ_INT_FIELD(sort.plan.plan_width);
4726 982 : READ_BOOL_FIELD(sort.plan.parallel_aware);
4727 982 : READ_BOOL_FIELD(sort.plan.parallel_safe);
4728 982 : READ_BOOL_FIELD(sort.plan.async_capable);
4729 982 : READ_INT_FIELD(sort.plan.plan_node_id);
4730 982 : READ_NODE_FIELD(sort.plan.targetlist);
4731 982 : READ_NODE_FIELD(sort.plan.qual);
4732 982 : READ_NODE_FIELD(sort.plan.lefttree);
4733 982 : READ_NODE_FIELD(sort.plan.righttree);
4734 982 : READ_NODE_FIELD(sort.plan.initPlan);
4735 982 : READ_BITMAPSET_FIELD(sort.plan.extParam);
4736 982 : READ_BITMAPSET_FIELD(sort.plan.allParam);
4737 982 : READ_INT_FIELD(sort.numCols);
4738 982 : READ_ATTRNUMBER_ARRAY(sort.sortColIdx, local_node->sort.numCols);
4739 982 : READ_OID_ARRAY(sort.sortOperators, local_node->sort.numCols);
4740 982 : READ_OID_ARRAY(sort.collations, local_node->sort.numCols);
4741 982 : READ_BOOL_ARRAY(sort.nullsFirst, local_node->sort.numCols);
4742 982 : READ_INT_FIELD(nPresortedCols);
4743 :
4744 982 : READ_DONE();
4745 : }
4746 :
4747 : static Group *
4748 246 : _readGroup(void)
4749 : {
4750 246 : READ_LOCALS(Group);
4751 :
4752 246 : READ_INT_FIELD(plan.disabled_nodes);
4753 246 : READ_FLOAT_FIELD(plan.startup_cost);
4754 246 : READ_FLOAT_FIELD(plan.total_cost);
4755 246 : READ_FLOAT_FIELD(plan.plan_rows);
4756 246 : READ_INT_FIELD(plan.plan_width);
4757 246 : READ_BOOL_FIELD(plan.parallel_aware);
4758 246 : READ_BOOL_FIELD(plan.parallel_safe);
4759 246 : READ_BOOL_FIELD(plan.async_capable);
4760 246 : READ_INT_FIELD(plan.plan_node_id);
4761 246 : READ_NODE_FIELD(plan.targetlist);
4762 246 : READ_NODE_FIELD(plan.qual);
4763 246 : READ_NODE_FIELD(plan.lefttree);
4764 246 : READ_NODE_FIELD(plan.righttree);
4765 246 : READ_NODE_FIELD(plan.initPlan);
4766 246 : READ_BITMAPSET_FIELD(plan.extParam);
4767 246 : READ_BITMAPSET_FIELD(plan.allParam);
4768 246 : READ_INT_FIELD(numCols);
4769 246 : READ_ATTRNUMBER_ARRAY(grpColIdx, local_node->numCols);
4770 246 : READ_OID_ARRAY(grpOperators, local_node->numCols);
4771 246 : READ_OID_ARRAY(grpCollations, local_node->numCols);
4772 :
4773 246 : READ_DONE();
4774 : }
4775 :
4776 : static Agg *
4777 44248 : _readAgg(void)
4778 : {
4779 44248 : READ_LOCALS(Agg);
4780 :
4781 44248 : READ_INT_FIELD(plan.disabled_nodes);
4782 44248 : READ_FLOAT_FIELD(plan.startup_cost);
4783 44248 : READ_FLOAT_FIELD(plan.total_cost);
4784 44248 : READ_FLOAT_FIELD(plan.plan_rows);
4785 44248 : READ_INT_FIELD(plan.plan_width);
4786 44248 : READ_BOOL_FIELD(plan.parallel_aware);
4787 44248 : READ_BOOL_FIELD(plan.parallel_safe);
4788 44248 : READ_BOOL_FIELD(plan.async_capable);
4789 44248 : READ_INT_FIELD(plan.plan_node_id);
4790 44248 : READ_NODE_FIELD(plan.targetlist);
4791 44248 : READ_NODE_FIELD(plan.qual);
4792 44248 : READ_NODE_FIELD(plan.lefttree);
4793 44248 : READ_NODE_FIELD(plan.righttree);
4794 44248 : READ_NODE_FIELD(plan.initPlan);
4795 44248 : READ_BITMAPSET_FIELD(plan.extParam);
4796 44248 : READ_BITMAPSET_FIELD(plan.allParam);
4797 44248 : READ_ENUM_FIELD(aggstrategy, AggStrategy);
4798 44248 : READ_ENUM_FIELD(aggsplit, AggSplit);
4799 44248 : READ_INT_FIELD(numCols);
4800 44248 : READ_ATTRNUMBER_ARRAY(grpColIdx, local_node->numCols);
4801 44248 : READ_OID_ARRAY(grpOperators, local_node->numCols);
4802 44248 : READ_OID_ARRAY(grpCollations, local_node->numCols);
4803 44248 : READ_LONG_FIELD(numGroups);
4804 44248 : READ_UINT64_FIELD(transitionSpace);
4805 44248 : READ_BITMAPSET_FIELD(aggParams);
4806 44248 : READ_NODE_FIELD(groupingSets);
4807 44248 : READ_NODE_FIELD(chain);
4808 :
4809 44248 : READ_DONE();
4810 : }
4811 :
4812 : static WindowAgg *
4813 2546 : _readWindowAgg(void)
4814 : {
4815 2546 : READ_LOCALS(WindowAgg);
4816 :
4817 2546 : READ_INT_FIELD(plan.disabled_nodes);
4818 2546 : READ_FLOAT_FIELD(plan.startup_cost);
4819 2546 : READ_FLOAT_FIELD(plan.total_cost);
4820 2546 : READ_FLOAT_FIELD(plan.plan_rows);
4821 2546 : READ_INT_FIELD(plan.plan_width);
4822 2546 : READ_BOOL_FIELD(plan.parallel_aware);
4823 2546 : READ_BOOL_FIELD(plan.parallel_safe);
4824 2546 : READ_BOOL_FIELD(plan.async_capable);
4825 2546 : READ_INT_FIELD(plan.plan_node_id);
4826 2546 : READ_NODE_FIELD(plan.targetlist);
4827 2546 : READ_NODE_FIELD(plan.qual);
4828 2546 : READ_NODE_FIELD(plan.lefttree);
4829 2546 : READ_NODE_FIELD(plan.righttree);
4830 2546 : READ_NODE_FIELD(plan.initPlan);
4831 2546 : READ_BITMAPSET_FIELD(plan.extParam);
4832 2546 : READ_BITMAPSET_FIELD(plan.allParam);
4833 2546 : READ_STRING_FIELD(winname);
4834 2546 : READ_UINT_FIELD(winref);
4835 2546 : READ_INT_FIELD(partNumCols);
4836 2546 : READ_ATTRNUMBER_ARRAY(partColIdx, local_node->partNumCols);
4837 2546 : READ_OID_ARRAY(partOperators, local_node->partNumCols);
4838 2546 : READ_OID_ARRAY(partCollations, local_node->partNumCols);
4839 2546 : READ_INT_FIELD(ordNumCols);
4840 2546 : READ_ATTRNUMBER_ARRAY(ordColIdx, local_node->ordNumCols);
4841 2546 : READ_OID_ARRAY(ordOperators, local_node->ordNumCols);
4842 2546 : READ_OID_ARRAY(ordCollations, local_node->ordNumCols);
4843 2546 : READ_INT_FIELD(frameOptions);
4844 2546 : READ_NODE_FIELD(startOffset);
4845 2546 : READ_NODE_FIELD(endOffset);
4846 2546 : READ_NODE_FIELD(runCondition);
4847 2546 : READ_NODE_FIELD(runConditionOrig);
4848 2546 : READ_OID_FIELD(startInRangeFunc);
4849 2546 : READ_OID_FIELD(endInRangeFunc);
4850 2546 : READ_OID_FIELD(inRangeColl);
4851 2546 : READ_BOOL_FIELD(inRangeAsc);
4852 2546 : READ_BOOL_FIELD(inRangeNullsFirst);
4853 2546 : READ_BOOL_FIELD(topWindow);
4854 :
4855 2546 : READ_DONE();
4856 : }
4857 :
4858 : static Unique *
4859 5566 : _readUnique(void)
4860 : {
4861 5566 : READ_LOCALS(Unique);
4862 :
4863 5566 : READ_INT_FIELD(plan.disabled_nodes);
4864 5566 : READ_FLOAT_FIELD(plan.startup_cost);
4865 5566 : READ_FLOAT_FIELD(plan.total_cost);
4866 5566 : READ_FLOAT_FIELD(plan.plan_rows);
4867 5566 : READ_INT_FIELD(plan.plan_width);
4868 5566 : READ_BOOL_FIELD(plan.parallel_aware);
4869 5566 : READ_BOOL_FIELD(plan.parallel_safe);
4870 5566 : READ_BOOL_FIELD(plan.async_capable);
4871 5566 : READ_INT_FIELD(plan.plan_node_id);
4872 5566 : READ_NODE_FIELD(plan.targetlist);
4873 5566 : READ_NODE_FIELD(plan.qual);
4874 5566 : READ_NODE_FIELD(plan.lefttree);
4875 5566 : READ_NODE_FIELD(plan.righttree);
4876 5566 : READ_NODE_FIELD(plan.initPlan);
4877 5566 : READ_BITMAPSET_FIELD(plan.extParam);
4878 5566 : READ_BITMAPSET_FIELD(plan.allParam);
4879 5566 : READ_INT_FIELD(numCols);
4880 5566 : READ_ATTRNUMBER_ARRAY(uniqColIdx, local_node->numCols);
4881 5566 : READ_OID_ARRAY(uniqOperators, local_node->numCols);
4882 5566 : READ_OID_ARRAY(uniqCollations, local_node->numCols);
4883 :
4884 5566 : READ_DONE();
4885 : }
4886 :
4887 : static Gather *
4888 1078 : _readGather(void)
4889 : {
4890 1078 : READ_LOCALS(Gather);
4891 :
4892 1078 : READ_INT_FIELD(plan.disabled_nodes);
4893 1078 : READ_FLOAT_FIELD(plan.startup_cost);
4894 1078 : READ_FLOAT_FIELD(plan.total_cost);
4895 1078 : READ_FLOAT_FIELD(plan.plan_rows);
4896 1078 : READ_INT_FIELD(plan.plan_width);
4897 1078 : READ_BOOL_FIELD(plan.parallel_aware);
4898 1078 : READ_BOOL_FIELD(plan.parallel_safe);
4899 1078 : READ_BOOL_FIELD(plan.async_capable);
4900 1078 : READ_INT_FIELD(plan.plan_node_id);
4901 1078 : READ_NODE_FIELD(plan.targetlist);
4902 1078 : READ_NODE_FIELD(plan.qual);
4903 1078 : READ_NODE_FIELD(plan.lefttree);
4904 1078 : READ_NODE_FIELD(plan.righttree);
4905 1078 : READ_NODE_FIELD(plan.initPlan);
4906 1078 : READ_BITMAPSET_FIELD(plan.extParam);
4907 1078 : READ_BITMAPSET_FIELD(plan.allParam);
4908 1078 : READ_INT_FIELD(num_workers);
4909 1078 : READ_INT_FIELD(rescan_param);
4910 1078 : READ_BOOL_FIELD(single_copy);
4911 1078 : READ_BOOL_FIELD(invisible);
4912 1078 : READ_BITMAPSET_FIELD(initParam);
4913 :
4914 1078 : READ_DONE();
4915 : }
4916 :
4917 : static GatherMerge *
4918 330 : _readGatherMerge(void)
4919 : {
4920 330 : READ_LOCALS(GatherMerge);
4921 :
4922 330 : READ_INT_FIELD(plan.disabled_nodes);
4923 330 : READ_FLOAT_FIELD(plan.startup_cost);
4924 330 : READ_FLOAT_FIELD(plan.total_cost);
4925 330 : READ_FLOAT_FIELD(plan.plan_rows);
4926 330 : READ_INT_FIELD(plan.plan_width);
4927 330 : READ_BOOL_FIELD(plan.parallel_aware);
4928 330 : READ_BOOL_FIELD(plan.parallel_safe);
4929 330 : READ_BOOL_FIELD(plan.async_capable);
4930 330 : READ_INT_FIELD(plan.plan_node_id);
4931 330 : READ_NODE_FIELD(plan.targetlist);
4932 330 : READ_NODE_FIELD(plan.qual);
4933 330 : READ_NODE_FIELD(plan.lefttree);
4934 330 : READ_NODE_FIELD(plan.righttree);
4935 330 : READ_NODE_FIELD(plan.initPlan);
4936 330 : READ_BITMAPSET_FIELD(plan.extParam);
4937 330 : READ_BITMAPSET_FIELD(plan.allParam);
4938 330 : READ_INT_FIELD(num_workers);
4939 330 : READ_INT_FIELD(rescan_param);
4940 330 : READ_INT_FIELD(numCols);
4941 330 : READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
4942 330 : READ_OID_ARRAY(sortOperators, local_node->numCols);
4943 330 : READ_OID_ARRAY(collations, local_node->numCols);
4944 330 : READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
4945 330 : READ_BITMAPSET_FIELD(initParam);
4946 :
4947 330 : READ_DONE();
4948 : }
4949 :
4950 : static Hash *
4951 33984 : _readHash(void)
4952 : {
4953 33984 : READ_LOCALS(Hash);
4954 :
4955 33984 : READ_INT_FIELD(plan.disabled_nodes);
4956 33984 : READ_FLOAT_FIELD(plan.startup_cost);
4957 33984 : READ_FLOAT_FIELD(plan.total_cost);
4958 33984 : READ_FLOAT_FIELD(plan.plan_rows);
4959 33984 : READ_INT_FIELD(plan.plan_width);
4960 33984 : READ_BOOL_FIELD(plan.parallel_aware);
4961 33984 : READ_BOOL_FIELD(plan.parallel_safe);
4962 33984 : READ_BOOL_FIELD(plan.async_capable);
4963 33984 : READ_INT_FIELD(plan.plan_node_id);
4964 33984 : READ_NODE_FIELD(plan.targetlist);
4965 33984 : READ_NODE_FIELD(plan.qual);
4966 33984 : READ_NODE_FIELD(plan.lefttree);
4967 33984 : READ_NODE_FIELD(plan.righttree);
4968 33984 : READ_NODE_FIELD(plan.initPlan);
4969 33984 : READ_BITMAPSET_FIELD(plan.extParam);
4970 33984 : READ_BITMAPSET_FIELD(plan.allParam);
4971 33984 : READ_NODE_FIELD(hashkeys);
4972 33984 : READ_OID_FIELD(skewTable);
4973 33984 : READ_INT_FIELD(skewColumn);
4974 33984 : READ_BOOL_FIELD(skewInherit);
4975 33984 : READ_FLOAT_FIELD(rows_total);
4976 :
4977 33984 : READ_DONE();
4978 : }
4979 :
4980 : static SetOp *
4981 662 : _readSetOp(void)
4982 : {
4983 662 : READ_LOCALS(SetOp);
4984 :
4985 662 : READ_INT_FIELD(plan.disabled_nodes);
4986 662 : READ_FLOAT_FIELD(plan.startup_cost);
4987 662 : READ_FLOAT_FIELD(plan.total_cost);
4988 662 : READ_FLOAT_FIELD(plan.plan_rows);
4989 662 : READ_INT_FIELD(plan.plan_width);
4990 662 : READ_BOOL_FIELD(plan.parallel_aware);
4991 662 : READ_BOOL_FIELD(plan.parallel_safe);
4992 662 : READ_BOOL_FIELD(plan.async_capable);
4993 662 : READ_INT_FIELD(plan.plan_node_id);
4994 662 : READ_NODE_FIELD(plan.targetlist);
4995 662 : READ_NODE_FIELD(plan.qual);
4996 662 : READ_NODE_FIELD(plan.lefttree);
4997 662 : READ_NODE_FIELD(plan.righttree);
4998 662 : READ_NODE_FIELD(plan.initPlan);
4999 662 : READ_BITMAPSET_FIELD(plan.extParam);
5000 662 : READ_BITMAPSET_FIELD(plan.allParam);
5001 662 : READ_ENUM_FIELD(cmd, SetOpCmd);
5002 662 : READ_ENUM_FIELD(strategy, SetOpStrategy);
5003 662 : READ_INT_FIELD(numCols);
5004 662 : READ_ATTRNUMBER_ARRAY(cmpColIdx, local_node->numCols);
5005 662 : READ_OID_ARRAY(cmpOperators, local_node->numCols);
5006 662 : READ_OID_ARRAY(cmpCollations, local_node->numCols);
5007 662 : READ_BOOL_ARRAY(cmpNullsFirst, local_node->numCols);
5008 662 : READ_LONG_FIELD(numGroups);
5009 :
5010 662 : READ_DONE();
5011 : }
5012 :
5013 : static LockRows *
5014 7716 : _readLockRows(void)
5015 : {
5016 7716 : READ_LOCALS(LockRows);
5017 :
5018 7716 : READ_INT_FIELD(plan.disabled_nodes);
5019 7716 : READ_FLOAT_FIELD(plan.startup_cost);
5020 7716 : READ_FLOAT_FIELD(plan.total_cost);
5021 7716 : READ_FLOAT_FIELD(plan.plan_rows);
5022 7716 : READ_INT_FIELD(plan.plan_width);
5023 7716 : READ_BOOL_FIELD(plan.parallel_aware);
5024 7716 : READ_BOOL_FIELD(plan.parallel_safe);
5025 7716 : READ_BOOL_FIELD(plan.async_capable);
5026 7716 : READ_INT_FIELD(plan.plan_node_id);
5027 7716 : READ_NODE_FIELD(plan.targetlist);
5028 7716 : READ_NODE_FIELD(plan.qual);
5029 7716 : READ_NODE_FIELD(plan.lefttree);
5030 7716 : READ_NODE_FIELD(plan.righttree);
5031 7716 : READ_NODE_FIELD(plan.initPlan);
5032 7716 : READ_BITMAPSET_FIELD(plan.extParam);
5033 7716 : READ_BITMAPSET_FIELD(plan.allParam);
5034 7716 : READ_NODE_FIELD(rowMarks);
5035 7716 : READ_INT_FIELD(epqParam);
5036 :
5037 7716 : READ_DONE();
5038 : }
5039 :
5040 : static Limit *
5041 4806 : _readLimit(void)
5042 : {
5043 4806 : READ_LOCALS(Limit);
5044 :
5045 4806 : READ_INT_FIELD(plan.disabled_nodes);
5046 4806 : READ_FLOAT_FIELD(plan.startup_cost);
5047 4806 : READ_FLOAT_FIELD(plan.total_cost);
5048 4806 : READ_FLOAT_FIELD(plan.plan_rows);
5049 4806 : READ_INT_FIELD(plan.plan_width);
5050 4806 : READ_BOOL_FIELD(plan.parallel_aware);
5051 4806 : READ_BOOL_FIELD(plan.parallel_safe);
5052 4806 : READ_BOOL_FIELD(plan.async_capable);
5053 4806 : READ_INT_FIELD(plan.plan_node_id);
5054 4806 : READ_NODE_FIELD(plan.targetlist);
5055 4806 : READ_NODE_FIELD(plan.qual);
5056 4806 : READ_NODE_FIELD(plan.lefttree);
5057 4806 : READ_NODE_FIELD(plan.righttree);
5058 4806 : READ_NODE_FIELD(plan.initPlan);
5059 4806 : READ_BITMAPSET_FIELD(plan.extParam);
5060 4806 : READ_BITMAPSET_FIELD(plan.allParam);
5061 4806 : READ_NODE_FIELD(limitOffset);
5062 4806 : READ_NODE_FIELD(limitCount);
5063 4806 : READ_ENUM_FIELD(limitOption, LimitOption);
5064 4806 : READ_INT_FIELD(uniqNumCols);
5065 4806 : READ_ATTRNUMBER_ARRAY(uniqColIdx, local_node->uniqNumCols);
5066 4806 : READ_OID_ARRAY(uniqOperators, local_node->uniqNumCols);
5067 4806 : READ_OID_ARRAY(uniqCollations, local_node->uniqNumCols);
5068 :
5069 4806 : READ_DONE();
5070 : }
5071 :
5072 : static PlanRowMark *
5073 25948 : _readPlanRowMark(void)
5074 : {
5075 25948 : READ_LOCALS(PlanRowMark);
5076 :
5077 25948 : READ_UINT_FIELD(rti);
5078 25948 : READ_UINT_FIELD(prti);
5079 25948 : READ_UINT_FIELD(rowmarkId);
5080 25948 : READ_ENUM_FIELD(markType, RowMarkType);
5081 25948 : READ_INT_FIELD(allMarkTypes);
5082 25948 : READ_ENUM_FIELD(strength, LockClauseStrength);
5083 25948 : READ_ENUM_FIELD(waitPolicy, LockWaitPolicy);
5084 25948 : READ_BOOL_FIELD(isParent);
5085 :
5086 25948 : READ_DONE();
5087 : }
5088 :
5089 : static PartitionPruneInfo *
5090 678 : _readPartitionPruneInfo(void)
5091 : {
5092 678 : READ_LOCALS(PartitionPruneInfo);
5093 :
5094 678 : READ_BITMAPSET_FIELD(relids);
5095 678 : READ_NODE_FIELD(prune_infos);
5096 678 : READ_BITMAPSET_FIELD(other_subplans);
5097 :
5098 678 : READ_DONE();
5099 : }
5100 :
5101 : static PartitionedRelPruneInfo *
5102 1362 : _readPartitionedRelPruneInfo(void)
5103 : {
5104 1362 : READ_LOCALS(PartitionedRelPruneInfo);
5105 :
5106 1362 : READ_UINT_FIELD(rtindex);
5107 1362 : READ_BITMAPSET_FIELD(present_parts);
5108 1362 : READ_INT_FIELD(nparts);
5109 1362 : READ_INT_ARRAY(subplan_map, local_node->nparts);
5110 1362 : READ_INT_ARRAY(subpart_map, local_node->nparts);
5111 1362 : READ_INT_ARRAY(leafpart_rti_map, local_node->nparts);
5112 1362 : READ_OID_ARRAY(relid_map, local_node->nparts);
5113 1362 : READ_NODE_FIELD(initial_pruning_steps);
5114 1362 : READ_NODE_FIELD(exec_pruning_steps);
5115 1362 : READ_BITMAPSET_FIELD(execparamids);
5116 :
5117 1362 : READ_DONE();
5118 : }
5119 :
5120 : static PartitionPruneStepOp *
5121 1144 : _readPartitionPruneStepOp(void)
5122 : {
5123 1144 : READ_LOCALS(PartitionPruneStepOp);
5124 :
5125 1144 : READ_INT_FIELD(step.step_id);
5126 1144 : READ_INT_FIELD(opstrategy);
5127 1144 : READ_NODE_FIELD(exprs);
5128 1144 : READ_NODE_FIELD(cmpfns);
5129 1144 : READ_BITMAPSET_FIELD(nullkeys);
5130 :
5131 1144 : READ_DONE();
5132 : }
5133 :
5134 : static PartitionPruneStepCombine *
5135 216 : _readPartitionPruneStepCombine(void)
5136 : {
5137 216 : READ_LOCALS(PartitionPruneStepCombine);
5138 :
5139 216 : READ_INT_FIELD(step.step_id);
5140 216 : READ_ENUM_FIELD(combineOp, PartitionPruneCombineOp);
5141 216 : READ_NODE_FIELD(source_stepids);
5142 :
5143 216 : READ_DONE();
5144 : }
5145 :
5146 : static PlanInvalItem *
5147 58494 : _readPlanInvalItem(void)
5148 : {
5149 58494 : READ_LOCALS(PlanInvalItem);
5150 :
5151 58494 : READ_INT_FIELD(cacheId);
5152 58494 : READ_UINT_FIELD(hashValue);
5153 :
5154 58494 : READ_DONE();
5155 : }
|