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 2833426 : _readAlias(void)
44 : {
45 2833426 : READ_LOCALS(Alias);
46 :
47 2833426 : READ_STRING_FIELD(aliasname);
48 2833426 : READ_NODE_FIELD(colnames);
49 :
50 2833426 : READ_DONE();
51 : }
52 :
53 : static RangeVar *
54 854364 : _readRangeVar(void)
55 : {
56 854364 : READ_LOCALS(RangeVar);
57 :
58 854364 : READ_STRING_FIELD(catalogname);
59 854364 : READ_STRING_FIELD(schemaname);
60 854364 : READ_STRING_FIELD(relname);
61 854364 : READ_BOOL_FIELD(inh);
62 854364 : READ_CHAR_FIELD(relpersistence);
63 854364 : READ_NODE_FIELD(alias);
64 854364 : READ_LOCATION_FIELD(location);
65 :
66 854364 : READ_DONE();
67 : }
68 :
69 : static TableFunc *
70 1488 : _readTableFunc(void)
71 : {
72 1488 : READ_LOCALS(TableFunc);
73 :
74 1488 : READ_ENUM_FIELD(functype, TableFuncType);
75 1488 : READ_NODE_FIELD(ns_uris);
76 1488 : READ_NODE_FIELD(ns_names);
77 1488 : READ_NODE_FIELD(docexpr);
78 1488 : READ_NODE_FIELD(rowexpr);
79 1488 : READ_NODE_FIELD(colnames);
80 1488 : READ_NODE_FIELD(coltypes);
81 1488 : READ_NODE_FIELD(coltypmods);
82 1488 : READ_NODE_FIELD(colcollations);
83 1488 : READ_NODE_FIELD(colexprs);
84 1488 : READ_NODE_FIELD(coldefexprs);
85 1488 : READ_NODE_FIELD(colvalexprs);
86 1488 : READ_NODE_FIELD(passingvalexprs);
87 1488 : READ_BITMAPSET_FIELD(notnulls);
88 1488 : READ_NODE_FIELD(plan);
89 1488 : READ_INT_FIELD(ordinalitycol);
90 1488 : READ_LOCATION_FIELD(location);
91 :
92 1488 : READ_DONE();
93 : }
94 :
95 : static IntoClause *
96 3960 : _readIntoClause(void)
97 : {
98 3960 : READ_LOCALS(IntoClause);
99 :
100 3960 : READ_NODE_FIELD(rel);
101 3960 : READ_NODE_FIELD(colNames);
102 3960 : READ_STRING_FIELD(accessMethod);
103 3960 : READ_NODE_FIELD(options);
104 3960 : READ_ENUM_FIELD(onCommit, OnCommitAction);
105 3960 : READ_STRING_FIELD(tableSpaceName);
106 3960 : READ_NODE_FIELD(viewQuery);
107 3960 : READ_BOOL_FIELD(skipData);
108 :
109 3960 : READ_DONE();
110 : }
111 :
112 : static Var *
113 13056396 : _readVar(void)
114 : {
115 13056396 : READ_LOCALS(Var);
116 :
117 13056396 : READ_INT_FIELD(varno);
118 13056396 : READ_INT_FIELD(varattno);
119 13056396 : READ_OID_FIELD(vartype);
120 13056396 : READ_INT_FIELD(vartypmod);
121 13056396 : READ_OID_FIELD(varcollid);
122 13056396 : READ_BITMAPSET_FIELD(varnullingrels);
123 13056396 : READ_UINT_FIELD(varlevelsup);
124 13056396 : READ_ENUM_FIELD(varreturningtype, VarReturningType);
125 13056396 : READ_UINT_FIELD(varnosyn);
126 13056396 : READ_INT_FIELD(varattnosyn);
127 13056396 : READ_LOCATION_FIELD(location);
128 :
129 13056396 : READ_DONE();
130 : }
131 :
132 : static Param *
133 317186 : _readParam(void)
134 : {
135 317186 : READ_LOCALS(Param);
136 :
137 317186 : READ_ENUM_FIELD(paramkind, ParamKind);
138 317186 : READ_INT_FIELD(paramid);
139 317186 : READ_OID_FIELD(paramtype);
140 317186 : READ_INT_FIELD(paramtypmod);
141 317186 : READ_OID_FIELD(paramcollid);
142 317186 : READ_LOCATION_FIELD(location);
143 :
144 317186 : READ_DONE();
145 : }
146 :
147 : static Aggref *
148 94964 : _readAggref(void)
149 : {
150 94964 : READ_LOCALS(Aggref);
151 :
152 94964 : READ_OID_FIELD(aggfnoid);
153 94964 : READ_OID_FIELD(aggtype);
154 94964 : READ_OID_FIELD(aggcollid);
155 94964 : READ_OID_FIELD(inputcollid);
156 94964 : READ_OID_FIELD(aggtranstype);
157 94964 : READ_NODE_FIELD(aggargtypes);
158 94964 : READ_NODE_FIELD(aggdirectargs);
159 94964 : READ_NODE_FIELD(args);
160 94964 : READ_NODE_FIELD(aggorder);
161 94964 : READ_NODE_FIELD(aggdistinct);
162 94964 : READ_NODE_FIELD(aggfilter);
163 94964 : READ_BOOL_FIELD(aggstar);
164 94964 : READ_BOOL_FIELD(aggvariadic);
165 94964 : READ_CHAR_FIELD(aggkind);
166 94964 : READ_BOOL_FIELD(aggpresorted);
167 94964 : READ_UINT_FIELD(agglevelsup);
168 94964 : READ_ENUM_FIELD(aggsplit, AggSplit);
169 94964 : READ_INT_FIELD(aggno);
170 94964 : READ_INT_FIELD(aggtransno);
171 94964 : READ_LOCATION_FIELD(location);
172 :
173 94964 : 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 7026 : _readWindowFunc(void)
192 : {
193 7026 : READ_LOCALS(WindowFunc);
194 :
195 7026 : READ_OID_FIELD(winfnoid);
196 7026 : READ_OID_FIELD(wintype);
197 7026 : READ_OID_FIELD(wincollid);
198 7026 : READ_OID_FIELD(inputcollid);
199 7026 : READ_NODE_FIELD(args);
200 7026 : READ_NODE_FIELD(aggfilter);
201 7026 : READ_NODE_FIELD(runCondition);
202 7026 : READ_UINT_FIELD(winref);
203 7026 : READ_BOOL_FIELD(winstar);
204 7026 : READ_BOOL_FIELD(winagg);
205 7026 : READ_LOCATION_FIELD(location);
206 :
207 7026 : 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 36854 : _readSubscriptingRef(void)
237 : {
238 36854 : READ_LOCALS(SubscriptingRef);
239 :
240 36854 : READ_OID_FIELD(refcontainertype);
241 36854 : READ_OID_FIELD(refelemtype);
242 36854 : READ_OID_FIELD(refrestype);
243 36854 : READ_INT_FIELD(reftypmod);
244 36854 : READ_OID_FIELD(refcollid);
245 36854 : READ_NODE_FIELD(refupperindexpr);
246 36854 : READ_NODE_FIELD(reflowerindexpr);
247 36854 : READ_NODE_FIELD(refexpr);
248 36854 : READ_NODE_FIELD(refassgnexpr);
249 :
250 36854 : READ_DONE();
251 : }
252 :
253 : static FuncExpr *
254 939280 : _readFuncExpr(void)
255 : {
256 939280 : READ_LOCALS(FuncExpr);
257 :
258 939280 : READ_OID_FIELD(funcid);
259 939280 : READ_OID_FIELD(funcresulttype);
260 939280 : READ_BOOL_FIELD(funcretset);
261 939280 : READ_BOOL_FIELD(funcvariadic);
262 939280 : READ_ENUM_FIELD(funcformat, CoercionForm);
263 939280 : READ_OID_FIELD(funccollid);
264 939280 : READ_OID_FIELD(inputcollid);
265 939280 : READ_NODE_FIELD(args);
266 939280 : READ_LOCATION_FIELD(location);
267 :
268 939280 : 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 1522690 : _readOpExpr(void)
286 : {
287 1522690 : READ_LOCALS(OpExpr);
288 :
289 1522690 : READ_OID_FIELD(opno);
290 1522690 : READ_OID_FIELD(opfuncid);
291 1522690 : READ_OID_FIELD(opresulttype);
292 1522690 : READ_BOOL_FIELD(opretset);
293 1522690 : READ_OID_FIELD(opcollid);
294 1522690 : READ_OID_FIELD(inputcollid);
295 1522690 : READ_NODE_FIELD(args);
296 1522690 : READ_LOCATION_FIELD(location);
297 :
298 1522690 : READ_DONE();
299 : }
300 :
301 : static DistinctExpr *
302 2136 : _readDistinctExpr(void)
303 : {
304 2136 : READ_LOCALS(DistinctExpr);
305 :
306 2136 : READ_OID_FIELD(opno);
307 2136 : READ_OID_FIELD(opfuncid);
308 2136 : READ_OID_FIELD(opresulttype);
309 2136 : READ_BOOL_FIELD(opretset);
310 2136 : READ_OID_FIELD(opcollid);
311 2136 : READ_OID_FIELD(inputcollid);
312 2136 : READ_NODE_FIELD(args);
313 2136 : READ_LOCATION_FIELD(location);
314 :
315 2136 : READ_DONE();
316 : }
317 :
318 : static NullIfExpr *
319 1136 : _readNullIfExpr(void)
320 : {
321 1136 : READ_LOCALS(NullIfExpr);
322 :
323 1136 : READ_OID_FIELD(opno);
324 1136 : READ_OID_FIELD(opfuncid);
325 1136 : READ_OID_FIELD(opresulttype);
326 1136 : READ_BOOL_FIELD(opretset);
327 1136 : READ_OID_FIELD(opcollid);
328 1136 : READ_OID_FIELD(inputcollid);
329 1136 : READ_NODE_FIELD(args);
330 1136 : READ_LOCATION_FIELD(location);
331 :
332 1136 : READ_DONE();
333 : }
334 :
335 : static ScalarArrayOpExpr *
336 77390 : _readScalarArrayOpExpr(void)
337 : {
338 77390 : READ_LOCALS(ScalarArrayOpExpr);
339 :
340 77390 : READ_OID_FIELD(opno);
341 77390 : READ_OID_FIELD(opfuncid);
342 77390 : READ_OID_FIELD(hashfuncid);
343 77390 : READ_OID_FIELD(negfuncid);
344 77390 : READ_BOOL_FIELD(useOr);
345 77390 : READ_OID_FIELD(inputcollid);
346 77390 : READ_NODE_FIELD(args);
347 77390 : READ_LOCATION_FIELD(location);
348 :
349 77390 : READ_DONE();
350 : }
351 :
352 : static SubLink *
353 102636 : _readSubLink(void)
354 : {
355 102636 : READ_LOCALS(SubLink);
356 :
357 102636 : READ_ENUM_FIELD(subLinkType, SubLinkType);
358 102636 : READ_INT_FIELD(subLinkId);
359 102636 : READ_NODE_FIELD(testexpr);
360 102636 : READ_NODE_FIELD(operName);
361 102636 : READ_NODE_FIELD(subselect);
362 102636 : READ_LOCATION_FIELD(location);
363 :
364 102636 : READ_DONE();
365 : }
366 :
367 : static SubPlan *
368 42400 : _readSubPlan(void)
369 : {
370 42400 : READ_LOCALS(SubPlan);
371 :
372 42400 : READ_ENUM_FIELD(subLinkType, SubLinkType);
373 42400 : READ_NODE_FIELD(testexpr);
374 42400 : READ_NODE_FIELD(paramIds);
375 42400 : READ_INT_FIELD(plan_id);
376 42400 : READ_STRING_FIELD(plan_name);
377 42400 : READ_OID_FIELD(firstColType);
378 42400 : READ_INT_FIELD(firstColTypmod);
379 42400 : READ_OID_FIELD(firstColCollation);
380 42400 : READ_BOOL_FIELD(useHashTable);
381 42400 : READ_BOOL_FIELD(unknownEqFalse);
382 42400 : READ_BOOL_FIELD(parallel_safe);
383 42400 : READ_NODE_FIELD(setParam);
384 42400 : READ_NODE_FIELD(parParam);
385 42400 : READ_NODE_FIELD(args);
386 42400 : READ_FLOAT_FIELD(startup_cost);
387 42400 : READ_FLOAT_FIELD(per_call_cost);
388 :
389 42400 : 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 30680 : _readFieldSelect(void)
404 : {
405 30680 : READ_LOCALS(FieldSelect);
406 :
407 30680 : READ_NODE_FIELD(arg);
408 30680 : READ_INT_FIELD(fieldnum);
409 30680 : READ_OID_FIELD(resulttype);
410 30680 : READ_INT_FIELD(resulttypmod);
411 30680 : READ_OID_FIELD(resultcollid);
412 :
413 30680 : 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 265722 : _readRelabelType(void)
431 : {
432 265722 : READ_LOCALS(RelabelType);
433 :
434 265722 : READ_NODE_FIELD(arg);
435 265722 : READ_OID_FIELD(resulttype);
436 265722 : READ_INT_FIELD(resulttypmod);
437 265722 : READ_OID_FIELD(resultcollid);
438 265722 : READ_ENUM_FIELD(relabelformat, CoercionForm);
439 265722 : READ_LOCATION_FIELD(location);
440 :
441 265722 : READ_DONE();
442 : }
443 :
444 : static CoerceViaIO *
445 51728 : _readCoerceViaIO(void)
446 : {
447 51728 : READ_LOCALS(CoerceViaIO);
448 :
449 51728 : READ_NODE_FIELD(arg);
450 51728 : READ_OID_FIELD(resulttype);
451 51728 : READ_OID_FIELD(resultcollid);
452 51728 : READ_ENUM_FIELD(coerceformat, CoercionForm);
453 51728 : READ_LOCATION_FIELD(location);
454 :
455 51728 : READ_DONE();
456 : }
457 :
458 : static ArrayCoerceExpr *
459 10782 : _readArrayCoerceExpr(void)
460 : {
461 10782 : READ_LOCALS(ArrayCoerceExpr);
462 :
463 10782 : READ_NODE_FIELD(arg);
464 10782 : READ_NODE_FIELD(elemexpr);
465 10782 : READ_OID_FIELD(resulttype);
466 10782 : READ_INT_FIELD(resulttypmod);
467 10782 : READ_OID_FIELD(resultcollid);
468 10782 : READ_ENUM_FIELD(coerceformat, CoercionForm);
469 10782 : READ_LOCATION_FIELD(location);
470 :
471 10782 : READ_DONE();
472 : }
473 :
474 : static ConvertRowtypeExpr *
475 854 : _readConvertRowtypeExpr(void)
476 : {
477 854 : READ_LOCALS(ConvertRowtypeExpr);
478 :
479 854 : READ_NODE_FIELD(arg);
480 854 : READ_OID_FIELD(resulttype);
481 854 : READ_ENUM_FIELD(convertformat, CoercionForm);
482 854 : READ_LOCATION_FIELD(location);
483 :
484 854 : READ_DONE();
485 : }
486 :
487 : static CollateExpr *
488 9020 : _readCollateExpr(void)
489 : {
490 9020 : READ_LOCALS(CollateExpr);
491 :
492 9020 : READ_NODE_FIELD(arg);
493 9020 : READ_OID_FIELD(collOid);
494 9020 : READ_LOCATION_FIELD(location);
495 :
496 9020 : READ_DONE();
497 : }
498 :
499 : static CaseExpr *
500 140398 : _readCaseExpr(void)
501 : {
502 140398 : READ_LOCALS(CaseExpr);
503 :
504 140398 : READ_OID_FIELD(casetype);
505 140398 : READ_OID_FIELD(casecollid);
506 140398 : READ_NODE_FIELD(arg);
507 140398 : READ_NODE_FIELD(args);
508 140398 : READ_NODE_FIELD(defresult);
509 140398 : READ_LOCATION_FIELD(location);
510 :
511 140398 : READ_DONE();
512 : }
513 :
514 : static CaseWhen *
515 268498 : _readCaseWhen(void)
516 : {
517 268498 : READ_LOCALS(CaseWhen);
518 :
519 268498 : READ_NODE_FIELD(expr);
520 268498 : READ_NODE_FIELD(result);
521 268498 : READ_LOCATION_FIELD(location);
522 :
523 268498 : READ_DONE();
524 : }
525 :
526 : static CaseTestExpr *
527 60724 : _readCaseTestExpr(void)
528 : {
529 60724 : READ_LOCALS(CaseTestExpr);
530 :
531 60724 : READ_OID_FIELD(typeId);
532 60724 : READ_INT_FIELD(typeMod);
533 60724 : READ_OID_FIELD(collation);
534 :
535 60724 : READ_DONE();
536 : }
537 :
538 : static ArrayExpr *
539 37374 : _readArrayExpr(void)
540 : {
541 37374 : READ_LOCALS(ArrayExpr);
542 :
543 37374 : READ_OID_FIELD(array_typeid);
544 37374 : READ_OID_FIELD(array_collid);
545 37374 : READ_OID_FIELD(element_typeid);
546 37374 : READ_NODE_FIELD(elements);
547 37374 : READ_BOOL_FIELD(multidims);
548 37374 : READ_LOCATION_FIELD(list_start);
549 37374 : READ_LOCATION_FIELD(list_end);
550 37374 : READ_LOCATION_FIELD(location);
551 :
552 37374 : READ_DONE();
553 : }
554 :
555 : static RowExpr *
556 13438 : _readRowExpr(void)
557 : {
558 13438 : READ_LOCALS(RowExpr);
559 :
560 13438 : READ_NODE_FIELD(args);
561 13438 : READ_OID_FIELD(row_typeid);
562 13438 : READ_ENUM_FIELD(row_format, CoercionForm);
563 13438 : READ_NODE_FIELD(colnames);
564 13438 : READ_LOCATION_FIELD(location);
565 :
566 13438 : 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 19272 : _readCoalesceExpr(void)
586 : {
587 19272 : READ_LOCALS(CoalesceExpr);
588 :
589 19272 : READ_OID_FIELD(coalescetype);
590 19272 : READ_OID_FIELD(coalescecollid);
591 19272 : READ_NODE_FIELD(args);
592 19272 : READ_LOCATION_FIELD(location);
593 :
594 19272 : 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 13682 : _readSQLValueFunction(void)
614 : {
615 13682 : READ_LOCALS(SQLValueFunction);
616 :
617 13682 : READ_ENUM_FIELD(op, SQLValueFunctionOp);
618 13682 : READ_OID_FIELD(type);
619 13682 : READ_INT_FIELD(typmod);
620 13682 : READ_LOCATION_FIELD(location);
621 :
622 13682 : READ_DONE();
623 : }
624 :
625 : static XmlExpr *
626 2504 : _readXmlExpr(void)
627 : {
628 2504 : READ_LOCALS(XmlExpr);
629 :
630 2504 : READ_ENUM_FIELD(op, XmlExprOp);
631 2504 : READ_STRING_FIELD(name);
632 2504 : READ_NODE_FIELD(named_args);
633 2504 : READ_NODE_FIELD(arg_names);
634 2504 : READ_NODE_FIELD(args);
635 2504 : READ_ENUM_FIELD(xmloption, XmlOptionType);
636 2504 : READ_BOOL_FIELD(indent);
637 2504 : READ_OID_FIELD(type);
638 2504 : READ_INT_FIELD(typmod);
639 2504 : READ_LOCATION_FIELD(location);
640 :
641 2504 : 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 55306 : _readNullTest(void)
787 : {
788 55306 : READ_LOCALS(NullTest);
789 :
790 55306 : READ_NODE_FIELD(arg);
791 55306 : READ_ENUM_FIELD(nulltesttype, NullTestType);
792 55306 : READ_BOOL_FIELD(argisrow);
793 55306 : READ_LOCATION_FIELD(location);
794 :
795 55306 : READ_DONE();
796 : }
797 :
798 : static BooleanTest *
799 3528 : _readBooleanTest(void)
800 : {
801 3528 : READ_LOCALS(BooleanTest);
802 :
803 3528 : READ_NODE_FIELD(arg);
804 3528 : READ_ENUM_FIELD(booltesttype, BoolTestType);
805 3528 : READ_LOCATION_FIELD(location);
806 :
807 3528 : READ_DONE();
808 : }
809 :
810 : static MergeAction *
811 6438 : _readMergeAction(void)
812 : {
813 6438 : READ_LOCALS(MergeAction);
814 :
815 6438 : READ_ENUM_FIELD(matchKind, MergeMatchKind);
816 6438 : READ_ENUM_FIELD(commandType, CmdType);
817 6438 : READ_ENUM_FIELD(override, OverridingKind);
818 6438 : READ_NODE_FIELD(qual);
819 6438 : READ_NODE_FIELD(targetList);
820 6438 : READ_NODE_FIELD(updateColnos);
821 :
822 6438 : READ_DONE();
823 : }
824 :
825 : static CoerceToDomain *
826 140544 : _readCoerceToDomain(void)
827 : {
828 140544 : READ_LOCALS(CoerceToDomain);
829 :
830 140544 : READ_NODE_FIELD(arg);
831 140544 : READ_OID_FIELD(resulttype);
832 140544 : READ_INT_FIELD(resulttypmod);
833 140544 : READ_OID_FIELD(resultcollid);
834 140544 : READ_ENUM_FIELD(coercionformat, CoercionForm);
835 140544 : READ_LOCATION_FIELD(location);
836 :
837 140544 : READ_DONE();
838 : }
839 :
840 : static CoerceToDomainValue *
841 1968 : _readCoerceToDomainValue(void)
842 : {
843 1968 : READ_LOCALS(CoerceToDomainValue);
844 :
845 1968 : READ_OID_FIELD(typeId);
846 1968 : READ_INT_FIELD(typeMod);
847 1968 : READ_OID_FIELD(collation);
848 1968 : READ_LOCATION_FIELD(location);
849 :
850 1968 : READ_DONE();
851 : }
852 :
853 : static SetToDefault *
854 1782 : _readSetToDefault(void)
855 : {
856 1782 : READ_LOCALS(SetToDefault);
857 :
858 1782 : READ_OID_FIELD(typeId);
859 1782 : READ_INT_FIELD(typeMod);
860 1782 : READ_OID_FIELD(collation);
861 1782 : READ_LOCATION_FIELD(location);
862 :
863 1782 : 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 1884 : _readInferenceElem(void)
891 : {
892 1884 : READ_LOCALS(InferenceElem);
893 :
894 1884 : READ_NODE_FIELD(expr);
895 1884 : READ_OID_FIELD(infercollid);
896 1884 : READ_OID_FIELD(inferopclass);
897 :
898 1884 : 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 7226876 : _readTargetEntry(void)
915 : {
916 7226876 : READ_LOCALS(TargetEntry);
917 :
918 7226876 : READ_NODE_FIELD(expr);
919 7226876 : READ_INT_FIELD(resno);
920 7226876 : READ_STRING_FIELD(resname);
921 7226876 : READ_UINT_FIELD(ressortgroupref);
922 7226876 : READ_OID_FIELD(resorigtbl);
923 7226876 : READ_INT_FIELD(resorigcol);
924 7226876 : READ_BOOL_FIELD(resjunk);
925 :
926 7226876 : READ_DONE();
927 : }
928 :
929 : static RangeTblRef *
930 620584 : _readRangeTblRef(void)
931 : {
932 620584 : READ_LOCALS(RangeTblRef);
933 :
934 620584 : READ_INT_FIELD(rtindex);
935 :
936 620584 : READ_DONE();
937 : }
938 :
939 : static JoinExpr *
940 209296 : _readJoinExpr(void)
941 : {
942 209296 : READ_LOCALS(JoinExpr);
943 :
944 209296 : READ_ENUM_FIELD(jointype, JoinType);
945 209296 : READ_BOOL_FIELD(isNatural);
946 209296 : READ_NODE_FIELD(larg);
947 209296 : READ_NODE_FIELD(rarg);
948 209296 : READ_NODE_FIELD(usingClause);
949 209296 : READ_NODE_FIELD(join_using_alias);
950 209296 : READ_NODE_FIELD(quals);
951 209296 : READ_NODE_FIELD(alias);
952 209296 : READ_INT_FIELD(rtindex);
953 :
954 209296 : READ_DONE();
955 : }
956 :
957 : static FromExpr *
958 625306 : _readFromExpr(void)
959 : {
960 625306 : READ_LOCALS(FromExpr);
961 :
962 625306 : READ_NODE_FIELD(fromlist);
963 625306 : READ_NODE_FIELD(quals);
964 :
965 625306 : READ_DONE();
966 : }
967 :
968 : static OnConflictExpr *
969 1850 : _readOnConflictExpr(void)
970 : {
971 1850 : READ_LOCALS(OnConflictExpr);
972 :
973 1850 : READ_ENUM_FIELD(action, OnConflictAction);
974 1850 : READ_NODE_FIELD(arbiterElems);
975 1850 : READ_NODE_FIELD(arbiterWhere);
976 1850 : READ_OID_FIELD(constraint);
977 1850 : READ_NODE_FIELD(onConflictSet);
978 1850 : READ_NODE_FIELD(onConflictWhere);
979 1850 : READ_INT_FIELD(exclRelIndex);
980 1850 : READ_NODE_FIELD(exclRelTlist);
981 :
982 1850 : READ_DONE();
983 : }
984 :
985 : static Query *
986 1008628 : _readQuery(void)
987 : {
988 1008628 : READ_LOCALS(Query);
989 :
990 1008628 : READ_ENUM_FIELD(commandType, CmdType);
991 1008628 : READ_ENUM_FIELD(querySource, QuerySource);
992 1008628 : local_node->queryId = 0;
993 1008628 : READ_BOOL_FIELD(canSetTag);
994 1008628 : READ_NODE_FIELD(utilityStmt);
995 1008628 : READ_INT_FIELD(resultRelation);
996 1008628 : READ_BOOL_FIELD(hasAggs);
997 1008628 : READ_BOOL_FIELD(hasWindowFuncs);
998 1008628 : READ_BOOL_FIELD(hasTargetSRFs);
999 1008628 : READ_BOOL_FIELD(hasSubLinks);
1000 1008628 : READ_BOOL_FIELD(hasDistinctOn);
1001 1008628 : READ_BOOL_FIELD(hasRecursive);
1002 1008628 : READ_BOOL_FIELD(hasModifyingCTE);
1003 1008628 : READ_BOOL_FIELD(hasForUpdate);
1004 1008628 : READ_BOOL_FIELD(hasRowSecurity);
1005 1008628 : READ_BOOL_FIELD(hasGroupRTE);
1006 1008628 : READ_BOOL_FIELD(isReturn);
1007 1008628 : READ_NODE_FIELD(cteList);
1008 1008628 : READ_NODE_FIELD(rtable);
1009 1008628 : READ_NODE_FIELD(rteperminfos);
1010 1008628 : READ_NODE_FIELD(jointree);
1011 1008628 : READ_NODE_FIELD(mergeActionList);
1012 1008628 : READ_INT_FIELD(mergeTargetRelation);
1013 1008628 : READ_NODE_FIELD(mergeJoinCondition);
1014 1008628 : READ_NODE_FIELD(targetList);
1015 1008628 : READ_ENUM_FIELD(override, OverridingKind);
1016 1008628 : READ_NODE_FIELD(onConflict);
1017 1008628 : READ_STRING_FIELD(returningOldAlias);
1018 1008628 : READ_STRING_FIELD(returningNewAlias);
1019 1008628 : READ_NODE_FIELD(returningList);
1020 1008628 : READ_NODE_FIELD(groupClause);
1021 1008628 : READ_BOOL_FIELD(groupDistinct);
1022 1008628 : READ_NODE_FIELD(groupingSets);
1023 1008628 : READ_NODE_FIELD(havingQual);
1024 1008628 : READ_NODE_FIELD(windowClause);
1025 1008628 : READ_NODE_FIELD(distinctClause);
1026 1008628 : READ_NODE_FIELD(sortClause);
1027 1008628 : READ_NODE_FIELD(limitOffset);
1028 1008628 : READ_NODE_FIELD(limitCount);
1029 1008628 : READ_ENUM_FIELD(limitOption, LimitOption);
1030 1008628 : READ_NODE_FIELD(rowMarks);
1031 1008628 : READ_NODE_FIELD(setOperations);
1032 1008628 : READ_NODE_FIELD(constraintDeps);
1033 1008628 : READ_NODE_FIELD(withCheckOptions);
1034 1008628 : READ_LOCATION_FIELD(stmt_location);
1035 1008628 : READ_LOCATION_FIELD(stmt_len);
1036 :
1037 1008628 : READ_DONE();
1038 : }
1039 :
1040 : static TypeName *
1041 844556 : _readTypeName(void)
1042 : {
1043 844556 : READ_LOCALS(TypeName);
1044 :
1045 844556 : READ_NODE_FIELD(names);
1046 844556 : READ_OID_FIELD(typeOid);
1047 844556 : READ_BOOL_FIELD(setof);
1048 844556 : READ_BOOL_FIELD(pct_type);
1049 844556 : READ_NODE_FIELD(typmods);
1050 844556 : READ_INT_FIELD(typemod);
1051 844556 : READ_NODE_FIELD(arrayBounds);
1052 844556 : READ_LOCATION_FIELD(location);
1053 :
1054 844556 : READ_DONE();
1055 : }
1056 :
1057 : static ColumnRef *
1058 2057976 : _readColumnRef(void)
1059 : {
1060 2057976 : READ_LOCALS(ColumnRef);
1061 :
1062 2057976 : READ_NODE_FIELD(fields);
1063 2057976 : READ_LOCATION_FIELD(location);
1064 :
1065 2057976 : READ_DONE();
1066 : }
1067 :
1068 : static ParamRef *
1069 54318 : _readParamRef(void)
1070 : {
1071 54318 : READ_LOCALS(ParamRef);
1072 :
1073 54318 : READ_INT_FIELD(number);
1074 54318 : READ_LOCATION_FIELD(location);
1075 :
1076 54318 : READ_DONE();
1077 : }
1078 :
1079 : static TypeCast *
1080 373160 : _readTypeCast(void)
1081 : {
1082 373160 : READ_LOCALS(TypeCast);
1083 :
1084 373160 : READ_NODE_FIELD(arg);
1085 373160 : READ_NODE_FIELD(typeName);
1086 373160 : READ_LOCATION_FIELD(location);
1087 :
1088 373160 : READ_DONE();
1089 : }
1090 :
1091 : static CollateClause *
1092 10688 : _readCollateClause(void)
1093 : {
1094 10688 : READ_LOCALS(CollateClause);
1095 :
1096 10688 : READ_NODE_FIELD(arg);
1097 10688 : READ_NODE_FIELD(collname);
1098 10688 : READ_LOCATION_FIELD(location);
1099 :
1100 10688 : READ_DONE();
1101 : }
1102 :
1103 : static RoleSpec *
1104 60580 : _readRoleSpec(void)
1105 : {
1106 60580 : READ_LOCALS(RoleSpec);
1107 :
1108 60580 : READ_ENUM_FIELD(roletype, RoleSpecType);
1109 60580 : READ_STRING_FIELD(rolename);
1110 60580 : READ_LOCATION_FIELD(location);
1111 :
1112 60580 : READ_DONE();
1113 : }
1114 :
1115 : static FuncCall *
1116 406822 : _readFuncCall(void)
1117 : {
1118 406822 : READ_LOCALS(FuncCall);
1119 :
1120 406822 : READ_NODE_FIELD(funcname);
1121 406822 : READ_NODE_FIELD(args);
1122 406822 : READ_NODE_FIELD(agg_order);
1123 406822 : READ_NODE_FIELD(agg_filter);
1124 406822 : READ_NODE_FIELD(over);
1125 406822 : READ_BOOL_FIELD(agg_within_group);
1126 406822 : READ_BOOL_FIELD(agg_star);
1127 406822 : READ_BOOL_FIELD(agg_distinct);
1128 406822 : READ_BOOL_FIELD(func_variadic);
1129 406822 : READ_ENUM_FIELD(funcformat, CoercionForm);
1130 406822 : READ_LOCATION_FIELD(location);
1131 :
1132 406822 : READ_DONE();
1133 : }
1134 :
1135 : static A_Star *
1136 65572 : _readA_Star(void)
1137 : {
1138 65572 : READ_LOCALS_NO_FIELDS(A_Star);
1139 :
1140 :
1141 65572 : READ_DONE();
1142 : }
1143 :
1144 : static A_Indices *
1145 15030 : _readA_Indices(void)
1146 : {
1147 15030 : READ_LOCALS(A_Indices);
1148 :
1149 15030 : READ_BOOL_FIELD(is_slice);
1150 15030 : READ_NODE_FIELD(lidx);
1151 15030 : READ_NODE_FIELD(uidx);
1152 :
1153 15030 : READ_DONE();
1154 : }
1155 :
1156 : static A_Indirection *
1157 35626 : _readA_Indirection(void)
1158 : {
1159 35626 : READ_LOCALS(A_Indirection);
1160 :
1161 35626 : READ_NODE_FIELD(arg);
1162 35626 : READ_NODE_FIELD(indirection);
1163 :
1164 35626 : READ_DONE();
1165 : }
1166 :
1167 : static A_ArrayExpr *
1168 7006 : _readA_ArrayExpr(void)
1169 : {
1170 7006 : READ_LOCALS(A_ArrayExpr);
1171 :
1172 7006 : READ_NODE_FIELD(elements);
1173 7006 : READ_LOCATION_FIELD(list_start);
1174 7006 : READ_LOCATION_FIELD(list_end);
1175 7006 : READ_LOCATION_FIELD(location);
1176 :
1177 7006 : READ_DONE();
1178 : }
1179 :
1180 : static ResTarget *
1181 1299154 : _readResTarget(void)
1182 : {
1183 1299154 : READ_LOCALS(ResTarget);
1184 :
1185 1299154 : READ_STRING_FIELD(name);
1186 1299154 : READ_NODE_FIELD(indirection);
1187 1299154 : READ_NODE_FIELD(val);
1188 1299154 : READ_LOCATION_FIELD(location);
1189 :
1190 1299154 : 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 109298 : _readSortBy(void)
1207 : {
1208 109298 : READ_LOCALS(SortBy);
1209 :
1210 109298 : READ_NODE_FIELD(node);
1211 109298 : READ_ENUM_FIELD(sortby_dir, SortByDir);
1212 109298 : READ_ENUM_FIELD(sortby_nulls, SortByNulls);
1213 109298 : READ_NODE_FIELD(useOp);
1214 109298 : READ_LOCATION_FIELD(location);
1215 :
1216 109298 : READ_DONE();
1217 : }
1218 :
1219 : static WindowDef *
1220 4176 : _readWindowDef(void)
1221 : {
1222 4176 : READ_LOCALS(WindowDef);
1223 :
1224 4176 : READ_STRING_FIELD(name);
1225 4176 : READ_STRING_FIELD(refname);
1226 4176 : READ_NODE_FIELD(partitionClause);
1227 4176 : READ_NODE_FIELD(orderClause);
1228 4176 : READ_INT_FIELD(frameOptions);
1229 4176 : READ_NODE_FIELD(startOffset);
1230 4176 : READ_NODE_FIELD(endOffset);
1231 4176 : READ_LOCATION_FIELD(location);
1232 :
1233 4176 : READ_DONE();
1234 : }
1235 :
1236 : static RangeSubselect *
1237 18954 : _readRangeSubselect(void)
1238 : {
1239 18954 : READ_LOCALS(RangeSubselect);
1240 :
1241 18954 : READ_BOOL_FIELD(lateral);
1242 18954 : READ_NODE_FIELD(subquery);
1243 18954 : READ_NODE_FIELD(alias);
1244 :
1245 18954 : READ_DONE();
1246 : }
1247 :
1248 : static RangeFunction *
1249 52562 : _readRangeFunction(void)
1250 : {
1251 52562 : READ_LOCALS(RangeFunction);
1252 :
1253 52562 : READ_BOOL_FIELD(lateral);
1254 52562 : READ_BOOL_FIELD(ordinality);
1255 52562 : READ_BOOL_FIELD(is_rowsfrom);
1256 52562 : READ_NODE_FIELD(functions);
1257 52562 : READ_NODE_FIELD(alias);
1258 52562 : READ_NODE_FIELD(coldeflist);
1259 :
1260 52562 : READ_DONE();
1261 : }
1262 :
1263 : static RangeTableFunc *
1264 242 : _readRangeTableFunc(void)
1265 : {
1266 242 : READ_LOCALS(RangeTableFunc);
1267 :
1268 242 : READ_BOOL_FIELD(lateral);
1269 242 : READ_NODE_FIELD(docexpr);
1270 242 : READ_NODE_FIELD(rowexpr);
1271 242 : READ_NODE_FIELD(namespaces);
1272 242 : READ_NODE_FIELD(columns);
1273 242 : READ_NODE_FIELD(alias);
1274 242 : READ_LOCATION_FIELD(location);
1275 :
1276 242 : READ_DONE();
1277 : }
1278 :
1279 : static RangeTableFuncCol *
1280 870 : _readRangeTableFuncCol(void)
1281 : {
1282 870 : READ_LOCALS(RangeTableFuncCol);
1283 :
1284 870 : READ_STRING_FIELD(colname);
1285 870 : READ_NODE_FIELD(typeName);
1286 870 : READ_BOOL_FIELD(for_ordinality);
1287 870 : READ_BOOL_FIELD(is_not_null);
1288 870 : READ_NODE_FIELD(colexpr);
1289 870 : READ_NODE_FIELD(coldefexpr);
1290 870 : READ_LOCATION_FIELD(location);
1291 :
1292 870 : READ_DONE();
1293 : }
1294 :
1295 : static RangeTableSample *
1296 280 : _readRangeTableSample(void)
1297 : {
1298 280 : READ_LOCALS(RangeTableSample);
1299 :
1300 280 : READ_NODE_FIELD(relation);
1301 280 : READ_NODE_FIELD(method);
1302 280 : READ_NODE_FIELD(args);
1303 280 : READ_NODE_FIELD(repeatable);
1304 280 : READ_LOCATION_FIELD(location);
1305 :
1306 280 : READ_DONE();
1307 : }
1308 :
1309 : static ColumnDef *
1310 142126 : _readColumnDef(void)
1311 : {
1312 142126 : READ_LOCALS(ColumnDef);
1313 :
1314 142126 : READ_STRING_FIELD(colname);
1315 142126 : READ_NODE_FIELD(typeName);
1316 142126 : READ_STRING_FIELD(compression);
1317 142126 : READ_INT_FIELD(inhcount);
1318 142126 : READ_BOOL_FIELD(is_local);
1319 142126 : READ_BOOL_FIELD(is_not_null);
1320 142126 : READ_BOOL_FIELD(is_from_type);
1321 142126 : READ_CHAR_FIELD(storage);
1322 142126 : READ_STRING_FIELD(storage_name);
1323 142126 : READ_NODE_FIELD(raw_default);
1324 142126 : READ_NODE_FIELD(cooked_default);
1325 142126 : READ_CHAR_FIELD(identity);
1326 142126 : READ_NODE_FIELD(identitySequence);
1327 142126 : READ_CHAR_FIELD(generated);
1328 142126 : READ_NODE_FIELD(collClause);
1329 142126 : READ_OID_FIELD(collOid);
1330 142126 : READ_NODE_FIELD(constraints);
1331 142126 : READ_NODE_FIELD(fdwoptions);
1332 142126 : READ_LOCATION_FIELD(location);
1333 :
1334 142126 : 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 19462 : _readIndexElem(void)
1351 : {
1352 19462 : READ_LOCALS(IndexElem);
1353 :
1354 19462 : READ_STRING_FIELD(name);
1355 19462 : READ_NODE_FIELD(expr);
1356 19462 : READ_STRING_FIELD(indexcolname);
1357 19462 : READ_NODE_FIELD(collation);
1358 19462 : READ_NODE_FIELD(opclass);
1359 19462 : READ_NODE_FIELD(opclassopts);
1360 19462 : READ_ENUM_FIELD(ordering, SortByDir);
1361 19462 : READ_ENUM_FIELD(nulls_ordering, SortByNulls);
1362 :
1363 19462 : READ_DONE();
1364 : }
1365 :
1366 : static DefElem *
1367 358308 : _readDefElem(void)
1368 : {
1369 358308 : READ_LOCALS(DefElem);
1370 :
1371 358308 : READ_STRING_FIELD(defnamespace);
1372 358308 : READ_STRING_FIELD(defname);
1373 358308 : READ_NODE_FIELD(arg);
1374 358308 : READ_ENUM_FIELD(defaction, DefElemAction);
1375 358308 : READ_LOCATION_FIELD(location);
1376 :
1377 358308 : READ_DONE();
1378 : }
1379 :
1380 : static LockingClause *
1381 2186 : _readLockingClause(void)
1382 : {
1383 2186 : READ_LOCALS(LockingClause);
1384 :
1385 2186 : READ_NODE_FIELD(lockedRels);
1386 2186 : READ_ENUM_FIELD(strength, LockClauseStrength);
1387 2186 : READ_ENUM_FIELD(waitPolicy, LockWaitPolicy);
1388 :
1389 2186 : READ_DONE();
1390 : }
1391 :
1392 : static XmlSerialize *
1393 250 : _readXmlSerialize(void)
1394 : {
1395 250 : READ_LOCALS(XmlSerialize);
1396 :
1397 250 : READ_ENUM_FIELD(xmloption, XmlOptionType);
1398 250 : READ_NODE_FIELD(expr);
1399 250 : READ_NODE_FIELD(typeName);
1400 250 : READ_BOOL_FIELD(indent);
1401 250 : READ_LOCATION_FIELD(location);
1402 :
1403 250 : READ_DONE();
1404 : }
1405 :
1406 : static PartitionElem *
1407 10908 : _readPartitionElem(void)
1408 : {
1409 10908 : READ_LOCALS(PartitionElem);
1410 :
1411 10908 : READ_STRING_FIELD(name);
1412 10908 : READ_NODE_FIELD(expr);
1413 10908 : READ_NODE_FIELD(collation);
1414 10908 : READ_NODE_FIELD(opclass);
1415 10908 : READ_LOCATION_FIELD(location);
1416 :
1417 10908 : READ_DONE();
1418 : }
1419 :
1420 : static PartitionSpec *
1421 9996 : _readPartitionSpec(void)
1422 : {
1423 9996 : READ_LOCALS(PartitionSpec);
1424 :
1425 9996 : READ_ENUM_FIELD(strategy, PartitionStrategy);
1426 9996 : READ_NODE_FIELD(partParams);
1427 9996 : READ_LOCATION_FIELD(location);
1428 :
1429 9996 : READ_DONE();
1430 : }
1431 :
1432 : static PartitionBoundSpec *
1433 61780 : _readPartitionBoundSpec(void)
1434 : {
1435 61780 : READ_LOCALS(PartitionBoundSpec);
1436 :
1437 61780 : READ_CHAR_FIELD(strategy);
1438 61780 : READ_BOOL_FIELD(is_default);
1439 61780 : READ_INT_FIELD(modulus);
1440 61780 : READ_INT_FIELD(remainder);
1441 61780 : READ_NODE_FIELD(listdatums);
1442 61780 : READ_NODE_FIELD(lowerdatums);
1443 61780 : READ_NODE_FIELD(upperdatums);
1444 61780 : READ_LOCATION_FIELD(location);
1445 :
1446 61780 : READ_DONE();
1447 : }
1448 :
1449 : static PartitionRangeDatum *
1450 46648 : _readPartitionRangeDatum(void)
1451 : {
1452 46648 : READ_LOCALS(PartitionRangeDatum);
1453 :
1454 46648 : READ_ENUM_FIELD(kind, PartitionRangeDatumKind);
1455 46648 : READ_NODE_FIELD(value);
1456 46648 : READ_LOCATION_FIELD(location);
1457 :
1458 46648 : READ_DONE();
1459 : }
1460 :
1461 : static PartitionCmd *
1462 6870 : _readPartitionCmd(void)
1463 : {
1464 6870 : READ_LOCALS(PartitionCmd);
1465 :
1466 6870 : READ_NODE_FIELD(name);
1467 6870 : READ_NODE_FIELD(bound);
1468 6870 : READ_BOOL_FIELD(concurrent);
1469 :
1470 6870 : READ_DONE();
1471 : }
1472 :
1473 : static RTEPermissionInfo *
1474 1031674 : _readRTEPermissionInfo(void)
1475 : {
1476 1031674 : READ_LOCALS(RTEPermissionInfo);
1477 :
1478 1031674 : READ_OID_FIELD(relid);
1479 1031674 : READ_BOOL_FIELD(inh);
1480 1031674 : READ_UINT64_FIELD(requiredPerms);
1481 1031674 : READ_OID_FIELD(checkAsUser);
1482 1031674 : READ_BITMAPSET_FIELD(selectedCols);
1483 1031674 : READ_BITMAPSET_FIELD(insertedCols);
1484 1031674 : READ_BITMAPSET_FIELD(updatedCols);
1485 :
1486 1031674 : READ_DONE();
1487 : }
1488 :
1489 : static RangeTblFunction *
1490 114834 : _readRangeTblFunction(void)
1491 : {
1492 114834 : READ_LOCALS(RangeTblFunction);
1493 :
1494 114834 : READ_NODE_FIELD(funcexpr);
1495 114834 : READ_INT_FIELD(funccolcount);
1496 114834 : READ_NODE_FIELD(funccolnames);
1497 114834 : READ_NODE_FIELD(funccoltypes);
1498 114834 : READ_NODE_FIELD(funccoltypmods);
1499 114834 : READ_NODE_FIELD(funccolcollations);
1500 114834 : READ_BITMAPSET_FIELD(funcparams);
1501 :
1502 114834 : READ_DONE();
1503 : }
1504 :
1505 : static TableSampleClause *
1506 614 : _readTableSampleClause(void)
1507 : {
1508 614 : READ_LOCALS(TableSampleClause);
1509 :
1510 614 : READ_OID_FIELD(tsmhandler);
1511 614 : READ_NODE_FIELD(args);
1512 614 : READ_NODE_FIELD(repeatable);
1513 :
1514 614 : 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 164356 : _readSortGroupClause(void)
1533 : {
1534 164356 : READ_LOCALS(SortGroupClause);
1535 :
1536 164356 : READ_UINT_FIELD(tleSortGroupRef);
1537 164356 : READ_OID_FIELD(eqop);
1538 164356 : READ_OID_FIELD(sortop);
1539 164356 : READ_BOOL_FIELD(reverse_sort);
1540 164356 : READ_BOOL_FIELD(nulls_first);
1541 164356 : READ_BOOL_FIELD(hashable);
1542 :
1543 164356 : 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 2944 : _readWindowClause(void)
1560 : {
1561 2944 : READ_LOCALS(WindowClause);
1562 :
1563 2944 : READ_STRING_FIELD(name);
1564 2944 : READ_STRING_FIELD(refname);
1565 2944 : READ_NODE_FIELD(partitionClause);
1566 2944 : READ_NODE_FIELD(orderClause);
1567 2944 : READ_INT_FIELD(frameOptions);
1568 2944 : READ_NODE_FIELD(startOffset);
1569 2944 : READ_NODE_FIELD(endOffset);
1570 2944 : READ_OID_FIELD(startInRangeFunc);
1571 2944 : READ_OID_FIELD(endInRangeFunc);
1572 2944 : READ_OID_FIELD(inRangeColl);
1573 2944 : READ_BOOL_FIELD(inRangeAsc);
1574 2944 : READ_BOOL_FIELD(inRangeNullsFirst);
1575 2944 : READ_UINT_FIELD(winref);
1576 2944 : READ_BOOL_FIELD(copiedOrder);
1577 :
1578 2944 : READ_DONE();
1579 : }
1580 :
1581 : static RowMarkClause *
1582 5362 : _readRowMarkClause(void)
1583 : {
1584 5362 : READ_LOCALS(RowMarkClause);
1585 :
1586 5362 : READ_UINT_FIELD(rti);
1587 5362 : READ_ENUM_FIELD(strength, LockClauseStrength);
1588 5362 : READ_ENUM_FIELD(waitPolicy, LockWaitPolicy);
1589 5362 : READ_BOOL_FIELD(pushedDown);
1590 :
1591 5362 : READ_DONE();
1592 : }
1593 :
1594 : static WithClause *
1595 3346 : _readWithClause(void)
1596 : {
1597 3346 : READ_LOCALS(WithClause);
1598 :
1599 3346 : READ_NODE_FIELD(ctes);
1600 3346 : READ_BOOL_FIELD(recursive);
1601 3346 : READ_LOCATION_FIELD(location);
1602 :
1603 3346 : READ_DONE();
1604 : }
1605 :
1606 : static InferClause *
1607 1634 : _readInferClause(void)
1608 : {
1609 1634 : READ_LOCALS(InferClause);
1610 :
1611 1634 : READ_NODE_FIELD(indexElems);
1612 1634 : READ_NODE_FIELD(whereClause);
1613 1634 : READ_STRING_FIELD(conname);
1614 1634 : READ_LOCATION_FIELD(location);
1615 :
1616 1634 : READ_DONE();
1617 : }
1618 :
1619 : static OnConflictClause *
1620 1874 : _readOnConflictClause(void)
1621 : {
1622 1874 : READ_LOCALS(OnConflictClause);
1623 :
1624 1874 : READ_ENUM_FIELD(action, OnConflictAction);
1625 1874 : READ_NODE_FIELD(infer);
1626 1874 : READ_NODE_FIELD(targetList);
1627 1874 : READ_NODE_FIELD(whereClause);
1628 1874 : READ_LOCATION_FIELD(location);
1629 :
1630 1874 : 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 9042 : _readCommonTableExpr(void)
1667 : {
1668 9042 : READ_LOCALS(CommonTableExpr);
1669 :
1670 9042 : READ_STRING_FIELD(ctename);
1671 9042 : READ_NODE_FIELD(aliascolnames);
1672 9042 : READ_ENUM_FIELD(ctematerialized, CTEMaterialize);
1673 9042 : READ_NODE_FIELD(ctequery);
1674 9042 : READ_NODE_FIELD(search_clause);
1675 9042 : READ_NODE_FIELD(cycle_clause);
1676 9042 : READ_LOCATION_FIELD(location);
1677 9042 : READ_BOOL_FIELD(cterecursive);
1678 9042 : READ_INT_FIELD(cterefcount);
1679 9042 : READ_NODE_FIELD(ctecolnames);
1680 9042 : READ_NODE_FIELD(ctecoltypes);
1681 9042 : READ_NODE_FIELD(ctecoltypmods);
1682 9042 : READ_NODE_FIELD(ctecolcollations);
1683 :
1684 9042 : 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 3284 : _readReturningClause(void)
1716 : {
1717 3284 : READ_LOCALS(ReturningClause);
1718 :
1719 3284 : READ_NODE_FIELD(options);
1720 3284 : READ_NODE_FIELD(exprs);
1721 :
1722 3284 : READ_DONE();
1723 : }
1724 :
1725 : static TriggerTransition *
1726 1212 : _readTriggerTransition(void)
1727 : {
1728 1212 : READ_LOCALS(TriggerTransition);
1729 :
1730 1212 : READ_STRING_FIELD(name);
1731 1212 : READ_BOOL_FIELD(isNew);
1732 1212 : READ_BOOL_FIELD(isTable);
1733 :
1734 1212 : 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 723898 : _readRawStmt(void)
1959 : {
1960 723898 : READ_LOCALS(RawStmt);
1961 :
1962 723898 : READ_NODE_FIELD(stmt);
1963 723898 : READ_LOCATION_FIELD(stmt_location);
1964 723898 : READ_LOCATION_FIELD(stmt_len);
1965 :
1966 723898 : READ_DONE();
1967 : }
1968 :
1969 : static InsertStmt *
1970 67554 : _readInsertStmt(void)
1971 : {
1972 67554 : READ_LOCALS(InsertStmt);
1973 :
1974 67554 : READ_NODE_FIELD(relation);
1975 67554 : READ_NODE_FIELD(cols);
1976 67554 : READ_NODE_FIELD(selectStmt);
1977 67554 : READ_NODE_FIELD(onConflictClause);
1978 67554 : READ_NODE_FIELD(returningClause);
1979 67554 : READ_NODE_FIELD(withClause);
1980 67554 : READ_ENUM_FIELD(override, OverridingKind);
1981 :
1982 67554 : READ_DONE();
1983 : }
1984 :
1985 : static DeleteStmt *
1986 4484 : _readDeleteStmt(void)
1987 : {
1988 4484 : READ_LOCALS(DeleteStmt);
1989 :
1990 4484 : READ_NODE_FIELD(relation);
1991 4484 : READ_NODE_FIELD(usingClause);
1992 4484 : READ_NODE_FIELD(whereClause);
1993 4484 : READ_NODE_FIELD(returningClause);
1994 4484 : READ_NODE_FIELD(withClause);
1995 :
1996 4484 : READ_DONE();
1997 : }
1998 :
1999 : static UpdateStmt *
2000 13682 : _readUpdateStmt(void)
2001 : {
2002 13682 : READ_LOCALS(UpdateStmt);
2003 :
2004 13682 : READ_NODE_FIELD(relation);
2005 13682 : READ_NODE_FIELD(targetList);
2006 13682 : READ_NODE_FIELD(whereClause);
2007 13682 : READ_NODE_FIELD(fromClause);
2008 13682 : READ_NODE_FIELD(returningClause);
2009 13682 : READ_NODE_FIELD(withClause);
2010 :
2011 13682 : 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 509276 : _readSelectStmt(void)
2031 : {
2032 509276 : READ_LOCALS(SelectStmt);
2033 :
2034 509276 : READ_NODE_FIELD(distinctClause);
2035 509276 : READ_NODE_FIELD(intoClause);
2036 509276 : READ_NODE_FIELD(targetList);
2037 509276 : READ_NODE_FIELD(fromClause);
2038 509276 : READ_NODE_FIELD(whereClause);
2039 509276 : READ_NODE_FIELD(groupClause);
2040 509276 : READ_BOOL_FIELD(groupDistinct);
2041 509276 : READ_NODE_FIELD(havingClause);
2042 509276 : READ_NODE_FIELD(windowClause);
2043 509276 : READ_NODE_FIELD(valuesLists);
2044 509276 : READ_NODE_FIELD(sortClause);
2045 509276 : READ_NODE_FIELD(limitOffset);
2046 509276 : READ_NODE_FIELD(limitCount);
2047 509276 : READ_ENUM_FIELD(limitOption, LimitOption);
2048 509276 : READ_NODE_FIELD(lockingClause);
2049 509276 : READ_NODE_FIELD(withClause);
2050 509276 : READ_ENUM_FIELD(op, SetOperation);
2051 509276 : READ_BOOL_FIELD(all);
2052 509276 : READ_NODE_FIELD(larg);
2053 509276 : READ_NODE_FIELD(rarg);
2054 :
2055 509276 : READ_DONE();
2056 : }
2057 :
2058 : static SetOperationStmt *
2059 21816 : _readSetOperationStmt(void)
2060 : {
2061 21816 : READ_LOCALS(SetOperationStmt);
2062 :
2063 21816 : READ_ENUM_FIELD(op, SetOperation);
2064 21816 : READ_BOOL_FIELD(all);
2065 21816 : READ_NODE_FIELD(larg);
2066 21816 : READ_NODE_FIELD(rarg);
2067 21816 : READ_NODE_FIELD(colTypes);
2068 21816 : READ_NODE_FIELD(colTypmods);
2069 21816 : READ_NODE_FIELD(colCollations);
2070 21816 : READ_NODE_FIELD(groupClauses);
2071 :
2072 21816 : READ_DONE();
2073 : }
2074 :
2075 : static ReturnStmt *
2076 9756 : _readReturnStmt(void)
2077 : {
2078 9756 : READ_LOCALS(ReturnStmt);
2079 :
2080 9756 : READ_NODE_FIELD(returnval);
2081 :
2082 9756 : 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 2148 : _readCreateSchemaStmt(void)
2101 : {
2102 2148 : READ_LOCALS(CreateSchemaStmt);
2103 :
2104 2148 : READ_STRING_FIELD(schemaname);
2105 2148 : READ_NODE_FIELD(authrole);
2106 2148 : READ_NODE_FIELD(schemaElts);
2107 2148 : READ_BOOL_FIELD(if_not_exists);
2108 :
2109 2148 : READ_DONE();
2110 : }
2111 :
2112 : static AlterTableStmt *
2113 61016 : _readAlterTableStmt(void)
2114 : {
2115 61016 : READ_LOCALS(AlterTableStmt);
2116 :
2117 61016 : READ_NODE_FIELD(relation);
2118 61016 : READ_NODE_FIELD(cmds);
2119 61016 : READ_ENUM_FIELD(objtype, ObjectType);
2120 61016 : READ_BOOL_FIELD(missing_ok);
2121 :
2122 61016 : READ_DONE();
2123 : }
2124 :
2125 : static AlterTableCmd *
2126 63032 : _readAlterTableCmd(void)
2127 : {
2128 63032 : READ_LOCALS(AlterTableCmd);
2129 :
2130 63032 : READ_ENUM_FIELD(subtype, AlterTableType);
2131 63032 : READ_STRING_FIELD(name);
2132 63032 : READ_INT_FIELD(num);
2133 63032 : READ_NODE_FIELD(newowner);
2134 63032 : READ_NODE_FIELD(def);
2135 63032 : READ_ENUM_FIELD(behavior, DropBehavior);
2136 63032 : READ_BOOL_FIELD(missing_ok);
2137 63032 : READ_BOOL_FIELD(recurse);
2138 :
2139 63032 : 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 988 : _readReplicaIdentityStmt(void)
2161 : {
2162 988 : READ_LOCALS(ReplicaIdentityStmt);
2163 :
2164 988 : READ_CHAR_FIELD(identity_type);
2165 988 : READ_STRING_FIELD(name);
2166 :
2167 988 : 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 580 : _readAlterDomainStmt(void)
2182 : {
2183 580 : READ_LOCALS(AlterDomainStmt);
2184 :
2185 580 : READ_ENUM_FIELD(subtype, AlterDomainType);
2186 580 : READ_NODE_FIELD(typeName);
2187 580 : READ_STRING_FIELD(name);
2188 580 : READ_NODE_FIELD(def);
2189 580 : READ_ENUM_FIELD(behavior, DropBehavior);
2190 580 : READ_BOOL_FIELD(missing_ok);
2191 :
2192 580 : 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 46114 : _readObjectWithArgs(void)
2215 : {
2216 46114 : READ_LOCALS(ObjectWithArgs);
2217 :
2218 46114 : READ_NODE_FIELD(objname);
2219 46114 : READ_NODE_FIELD(objargs);
2220 46114 : READ_NODE_FIELD(objfuncargs);
2221 46114 : READ_BOOL_FIELD(args_unspecified);
2222 :
2223 46114 : READ_DONE();
2224 : }
2225 :
2226 : static AccessPriv *
2227 39302 : _readAccessPriv(void)
2228 : {
2229 39302 : READ_LOCALS(AccessPriv);
2230 :
2231 39302 : READ_STRING_FIELD(priv_name);
2232 39302 : READ_NODE_FIELD(cols);
2233 :
2234 39302 : READ_DONE();
2235 : }
2236 :
2237 : static GrantRoleStmt *
2238 1820 : _readGrantRoleStmt(void)
2239 : {
2240 1820 : READ_LOCALS(GrantRoleStmt);
2241 :
2242 1820 : READ_NODE_FIELD(granted_roles);
2243 1820 : READ_NODE_FIELD(grantee_roles);
2244 1820 : READ_BOOL_FIELD(is_grant);
2245 1820 : READ_NODE_FIELD(opt);
2246 1820 : READ_NODE_FIELD(grantor);
2247 1820 : READ_ENUM_FIELD(behavior, DropBehavior);
2248 :
2249 1820 : 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 23140 : _readCopyStmt(void)
2265 : {
2266 23140 : READ_LOCALS(CopyStmt);
2267 :
2268 23140 : READ_NODE_FIELD(relation);
2269 23140 : READ_NODE_FIELD(query);
2270 23140 : READ_NODE_FIELD(attlist);
2271 23140 : READ_BOOL_FIELD(is_from);
2272 23140 : READ_BOOL_FIELD(is_program);
2273 23140 : READ_STRING_FIELD(filename);
2274 23140 : READ_NODE_FIELD(options);
2275 23140 : READ_NODE_FIELD(whereClause);
2276 :
2277 23140 : READ_DONE();
2278 : }
2279 :
2280 : static VariableSetStmt *
2281 57440 : _readVariableSetStmt(void)
2282 : {
2283 57440 : READ_LOCALS(VariableSetStmt);
2284 :
2285 57440 : READ_ENUM_FIELD(kind, VariableSetKind);
2286 57440 : READ_STRING_FIELD(name);
2287 57440 : READ_NODE_FIELD(args);
2288 57440 : READ_BOOL_FIELD(jumble_args);
2289 57440 : READ_BOOL_FIELD(is_local);
2290 57440 : READ_LOCATION_FIELD(location);
2291 :
2292 57440 : 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 74988 : _readCreateStmt(void)
2307 : {
2308 74988 : READ_LOCALS(CreateStmt);
2309 :
2310 74988 : READ_NODE_FIELD(relation);
2311 74988 : READ_NODE_FIELD(tableElts);
2312 74988 : READ_NODE_FIELD(inhRelations);
2313 74988 : READ_NODE_FIELD(partbound);
2314 74988 : READ_NODE_FIELD(partspec);
2315 74988 : READ_NODE_FIELD(ofTypename);
2316 74988 : READ_NODE_FIELD(constraints);
2317 74988 : READ_NODE_FIELD(nnconstraints);
2318 74988 : READ_NODE_FIELD(options);
2319 74988 : READ_ENUM_FIELD(oncommit, OnCommitAction);
2320 74988 : READ_STRING_FIELD(tablespacename);
2321 74988 : READ_STRING_FIELD(accessMethod);
2322 74988 : READ_BOOL_FIELD(if_not_exists);
2323 :
2324 74988 : READ_DONE();
2325 : }
2326 :
2327 : static Constraint *
2328 71562 : _readConstraint(void)
2329 : {
2330 71562 : READ_LOCALS(Constraint);
2331 :
2332 71562 : READ_ENUM_FIELD(contype, ConstrType);
2333 71562 : READ_STRING_FIELD(conname);
2334 71562 : READ_BOOL_FIELD(deferrable);
2335 71562 : READ_BOOL_FIELD(initdeferred);
2336 71562 : READ_BOOL_FIELD(is_enforced);
2337 71562 : READ_BOOL_FIELD(skip_validation);
2338 71562 : READ_BOOL_FIELD(initially_valid);
2339 71562 : READ_BOOL_FIELD(is_no_inherit);
2340 71562 : READ_NODE_FIELD(raw_expr);
2341 71562 : READ_STRING_FIELD(cooked_expr);
2342 71562 : READ_CHAR_FIELD(generated_when);
2343 71562 : READ_CHAR_FIELD(generated_kind);
2344 71562 : READ_BOOL_FIELD(nulls_not_distinct);
2345 71562 : READ_NODE_FIELD(keys);
2346 71562 : READ_BOOL_FIELD(without_overlaps);
2347 71562 : READ_NODE_FIELD(including);
2348 71562 : READ_NODE_FIELD(exclusions);
2349 71562 : READ_NODE_FIELD(options);
2350 71562 : READ_STRING_FIELD(indexname);
2351 71562 : READ_STRING_FIELD(indexspace);
2352 71562 : READ_BOOL_FIELD(reset_default_tblspc);
2353 71562 : READ_STRING_FIELD(access_method);
2354 71562 : READ_NODE_FIELD(where_clause);
2355 71562 : READ_NODE_FIELD(pktable);
2356 71562 : READ_NODE_FIELD(fk_attrs);
2357 71562 : READ_NODE_FIELD(pk_attrs);
2358 71562 : READ_BOOL_FIELD(fk_with_period);
2359 71562 : READ_BOOL_FIELD(pk_with_period);
2360 71562 : READ_CHAR_FIELD(fk_matchtype);
2361 71562 : READ_CHAR_FIELD(fk_upd_action);
2362 71562 : READ_CHAR_FIELD(fk_del_action);
2363 71562 : READ_NODE_FIELD(fk_del_set_cols);
2364 71562 : READ_NODE_FIELD(old_conpfeqop);
2365 71562 : READ_OID_FIELD(old_pktable_oid);
2366 71562 : READ_LOCATION_FIELD(location);
2367 :
2368 71562 : READ_DONE();
2369 : }
2370 :
2371 : static CreateTableSpaceStmt *
2372 260 : _readCreateTableSpaceStmt(void)
2373 : {
2374 260 : READ_LOCALS(CreateTableSpaceStmt);
2375 :
2376 260 : READ_STRING_FIELD(tablespacename);
2377 260 : READ_NODE_FIELD(owner);
2378 260 : READ_STRING_FIELD(location);
2379 260 : READ_NODE_FIELD(options);
2380 :
2381 260 : 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 1076 : _readCreateExtensionStmt(void)
2423 : {
2424 1076 : READ_LOCALS(CreateExtensionStmt);
2425 :
2426 1076 : READ_STRING_FIELD(extname);
2427 1076 : READ_BOOL_FIELD(if_not_exists);
2428 1076 : READ_NODE_FIELD(options);
2429 :
2430 1076 : READ_DONE();
2431 : }
2432 :
2433 : static AlterExtensionStmt *
2434 74 : _readAlterExtensionStmt(void)
2435 : {
2436 74 : READ_LOCALS(AlterExtensionStmt);
2437 :
2438 74 : READ_STRING_FIELD(extname);
2439 74 : READ_NODE_FIELD(options);
2440 :
2441 74 : READ_DONE();
2442 : }
2443 :
2444 : static AlterExtensionContentsStmt *
2445 532 : _readAlterExtensionContentsStmt(void)
2446 : {
2447 532 : READ_LOCALS(AlterExtensionContentsStmt);
2448 :
2449 532 : READ_STRING_FIELD(extname);
2450 532 : READ_INT_FIELD(action);
2451 532 : READ_ENUM_FIELD(objtype, ObjectType);
2452 532 : READ_NODE_FIELD(object);
2453 :
2454 532 : READ_DONE();
2455 : }
2456 :
2457 : static CreateFdwStmt *
2458 408 : _readCreateFdwStmt(void)
2459 : {
2460 408 : READ_LOCALS(CreateFdwStmt);
2461 :
2462 408 : READ_STRING_FIELD(fdwname);
2463 408 : READ_NODE_FIELD(func_options);
2464 408 : READ_NODE_FIELD(options);
2465 :
2466 408 : 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 578 : _readCreateForeignServerStmt(void)
2483 : {
2484 578 : READ_LOCALS(CreateForeignServerStmt);
2485 :
2486 578 : READ_STRING_FIELD(servername);
2487 578 : READ_STRING_FIELD(servertype);
2488 578 : READ_STRING_FIELD(version);
2489 578 : READ_STRING_FIELD(fdwname);
2490 578 : READ_BOOL_FIELD(if_not_exists);
2491 578 : READ_NODE_FIELD(options);
2492 :
2493 578 : READ_DONE();
2494 : }
2495 :
2496 : static AlterForeignServerStmt *
2497 462 : _readAlterForeignServerStmt(void)
2498 : {
2499 462 : READ_LOCALS(AlterForeignServerStmt);
2500 :
2501 462 : READ_STRING_FIELD(servername);
2502 462 : READ_STRING_FIELD(version);
2503 462 : READ_NODE_FIELD(options);
2504 462 : READ_BOOL_FIELD(has_version);
2505 :
2506 462 : READ_DONE();
2507 : }
2508 :
2509 : static CreateForeignTableStmt *
2510 908 : _readCreateForeignTableStmt(void)
2511 : {
2512 908 : READ_LOCALS(CreateForeignTableStmt);
2513 :
2514 908 : READ_NODE_FIELD(base.relation);
2515 908 : READ_NODE_FIELD(base.tableElts);
2516 908 : READ_NODE_FIELD(base.inhRelations);
2517 908 : READ_NODE_FIELD(base.partbound);
2518 908 : READ_NODE_FIELD(base.partspec);
2519 908 : READ_NODE_FIELD(base.ofTypename);
2520 908 : READ_NODE_FIELD(base.constraints);
2521 908 : READ_NODE_FIELD(base.nnconstraints);
2522 908 : READ_NODE_FIELD(base.options);
2523 908 : READ_ENUM_FIELD(base.oncommit, OnCommitAction);
2524 908 : READ_STRING_FIELD(base.tablespacename);
2525 908 : READ_STRING_FIELD(base.accessMethod);
2526 908 : READ_BOOL_FIELD(base.if_not_exists);
2527 908 : READ_STRING_FIELD(servername);
2528 908 : READ_NODE_FIELD(options);
2529 :
2530 908 : 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 1448 : _readCreatePolicyStmt(void)
2587 : {
2588 1448 : READ_LOCALS(CreatePolicyStmt);
2589 :
2590 1448 : READ_STRING_FIELD(policy_name);
2591 1448 : READ_NODE_FIELD(table);
2592 1448 : READ_STRING_FIELD(cmd_name);
2593 1448 : READ_BOOL_FIELD(permissive);
2594 1448 : READ_NODE_FIELD(roles);
2595 1448 : READ_NODE_FIELD(qual);
2596 1448 : READ_NODE_FIELD(with_check);
2597 :
2598 1448 : 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 124 : _readCreateAmStmt(void)
2617 : {
2618 124 : READ_LOCALS(CreateAmStmt);
2619 :
2620 124 : READ_STRING_FIELD(amname);
2621 124 : READ_NODE_FIELD(handler_name);
2622 124 : READ_CHAR_FIELD(amtype);
2623 :
2624 124 : READ_DONE();
2625 : }
2626 :
2627 : static CreateTrigStmt *
2628 6412 : _readCreateTrigStmt(void)
2629 : {
2630 6412 : READ_LOCALS(CreateTrigStmt);
2631 :
2632 6412 : READ_BOOL_FIELD(replace);
2633 6412 : READ_BOOL_FIELD(isconstraint);
2634 6412 : READ_STRING_FIELD(trigname);
2635 6412 : READ_NODE_FIELD(relation);
2636 6412 : READ_NODE_FIELD(funcname);
2637 6412 : READ_NODE_FIELD(args);
2638 6412 : READ_BOOL_FIELD(row);
2639 6412 : READ_INT_FIELD(timing);
2640 6412 : READ_INT_FIELD(events);
2641 6412 : READ_NODE_FIELD(columns);
2642 6412 : READ_NODE_FIELD(whenClause);
2643 6412 : READ_NODE_FIELD(transitionRels);
2644 6412 : READ_BOOL_FIELD(deferrable);
2645 6412 : READ_BOOL_FIELD(initdeferred);
2646 6412 : READ_NODE_FIELD(constrrel);
2647 :
2648 6412 : READ_DONE();
2649 : }
2650 :
2651 : static CreateEventTrigStmt *
2652 392 : _readCreateEventTrigStmt(void)
2653 : {
2654 392 : READ_LOCALS(CreateEventTrigStmt);
2655 :
2656 392 : READ_STRING_FIELD(trigname);
2657 392 : READ_STRING_FIELD(eventname);
2658 392 : READ_NODE_FIELD(whenclause);
2659 392 : READ_NODE_FIELD(funcname);
2660 :
2661 392 : 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 284 : _readCreatePLangStmt(void)
2677 : {
2678 284 : READ_LOCALS(CreatePLangStmt);
2679 :
2680 284 : READ_BOOL_FIELD(replace);
2681 284 : READ_STRING_FIELD(plname);
2682 284 : READ_NODE_FIELD(plhandler);
2683 284 : READ_NODE_FIELD(plinline);
2684 284 : READ_NODE_FIELD(plvalidator);
2685 284 : READ_BOOL_FIELD(pltrusted);
2686 :
2687 284 : READ_DONE();
2688 : }
2689 :
2690 : static CreateRoleStmt *
2691 3664 : _readCreateRoleStmt(void)
2692 : {
2693 3664 : READ_LOCALS(CreateRoleStmt);
2694 :
2695 3664 : READ_ENUM_FIELD(stmt_type, RoleStmtType);
2696 3664 : READ_STRING_FIELD(role);
2697 3664 : READ_NODE_FIELD(options);
2698 :
2699 3664 : 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 184 : _readAlterRoleSetStmt(void)
2716 : {
2717 184 : READ_LOCALS(AlterRoleSetStmt);
2718 :
2719 184 : READ_NODE_FIELD(role);
2720 184 : READ_STRING_FIELD(database);
2721 184 : READ_NODE_FIELD(setstmt);
2722 :
2723 184 : READ_DONE();
2724 : }
2725 :
2726 : static DropRoleStmt *
2727 3452 : _readDropRoleStmt(void)
2728 : {
2729 3452 : READ_LOCALS(DropRoleStmt);
2730 :
2731 3452 : READ_NODE_FIELD(roles);
2732 3452 : READ_BOOL_FIELD(missing_ok);
2733 :
2734 3452 : READ_DONE();
2735 : }
2736 :
2737 : static CreateSeqStmt *
2738 1340 : _readCreateSeqStmt(void)
2739 : {
2740 1340 : READ_LOCALS(CreateSeqStmt);
2741 :
2742 1340 : READ_NODE_FIELD(sequence);
2743 1340 : READ_NODE_FIELD(options);
2744 1340 : READ_OID_FIELD(ownerId);
2745 1340 : READ_BOOL_FIELD(for_identity);
2746 1340 : READ_BOOL_FIELD(if_not_exists);
2747 :
2748 1340 : READ_DONE();
2749 : }
2750 :
2751 : static AlterSeqStmt *
2752 392 : _readAlterSeqStmt(void)
2753 : {
2754 392 : READ_LOCALS(AlterSeqStmt);
2755 :
2756 392 : READ_NODE_FIELD(sequence);
2757 392 : READ_NODE_FIELD(options);
2758 392 : READ_BOOL_FIELD(for_identity);
2759 392 : READ_BOOL_FIELD(missing_ok);
2760 :
2761 392 : READ_DONE();
2762 : }
2763 :
2764 : static DefineStmt *
2765 18556 : _readDefineStmt(void)
2766 : {
2767 18556 : READ_LOCALS(DefineStmt);
2768 :
2769 18556 : READ_ENUM_FIELD(kind, ObjectType);
2770 18556 : READ_BOOL_FIELD(oldstyle);
2771 18556 : READ_NODE_FIELD(defnames);
2772 18556 : READ_NODE_FIELD(args);
2773 18556 : READ_NODE_FIELD(definition);
2774 18556 : READ_BOOL_FIELD(if_not_exists);
2775 18556 : READ_BOOL_FIELD(replace);
2776 :
2777 18556 : READ_DONE();
2778 : }
2779 :
2780 : static CreateDomainStmt *
2781 2904 : _readCreateDomainStmt(void)
2782 : {
2783 2904 : READ_LOCALS(CreateDomainStmt);
2784 :
2785 2904 : READ_NODE_FIELD(domainname);
2786 2904 : READ_NODE_FIELD(typeName);
2787 2904 : READ_NODE_FIELD(collClause);
2788 2904 : READ_NODE_FIELD(constraints);
2789 :
2790 2904 : READ_DONE();
2791 : }
2792 :
2793 : static CreateOpClassStmt *
2794 1100 : _readCreateOpClassStmt(void)
2795 : {
2796 1100 : READ_LOCALS(CreateOpClassStmt);
2797 :
2798 1100 : READ_NODE_FIELD(opclassname);
2799 1100 : READ_NODE_FIELD(opfamilyname);
2800 1100 : READ_STRING_FIELD(amname);
2801 1100 : READ_NODE_FIELD(datatype);
2802 1100 : READ_NODE_FIELD(items);
2803 1100 : READ_BOOL_FIELD(isDefault);
2804 :
2805 1100 : READ_DONE();
2806 : }
2807 :
2808 : static CreateOpClassItem *
2809 13776 : _readCreateOpClassItem(void)
2810 : {
2811 13776 : READ_LOCALS(CreateOpClassItem);
2812 :
2813 13776 : READ_INT_FIELD(itemtype);
2814 13776 : READ_NODE_FIELD(name);
2815 13776 : READ_INT_FIELD(number);
2816 13776 : READ_NODE_FIELD(order_family);
2817 13776 : READ_NODE_FIELD(class_args);
2818 13776 : READ_NODE_FIELD(storedtype);
2819 :
2820 13776 : READ_DONE();
2821 : }
2822 :
2823 : static CreateOpFamilyStmt *
2824 296 : _readCreateOpFamilyStmt(void)
2825 : {
2826 296 : READ_LOCALS(CreateOpFamilyStmt);
2827 :
2828 296 : READ_NODE_FIELD(opfamilyname);
2829 296 : READ_STRING_FIELD(amname);
2830 :
2831 296 : READ_DONE();
2832 : }
2833 :
2834 : static AlterOpFamilyStmt *
2835 1840 : _readAlterOpFamilyStmt(void)
2836 : {
2837 1840 : READ_LOCALS(AlterOpFamilyStmt);
2838 :
2839 1840 : READ_NODE_FIELD(opfamilyname);
2840 1840 : READ_STRING_FIELD(amname);
2841 1840 : READ_BOOL_FIELD(isDrop);
2842 1840 : READ_NODE_FIELD(items);
2843 :
2844 1840 : READ_DONE();
2845 : }
2846 :
2847 : static DropStmt *
2848 51026 : _readDropStmt(void)
2849 : {
2850 51026 : READ_LOCALS(DropStmt);
2851 :
2852 51026 : READ_NODE_FIELD(objects);
2853 51026 : READ_ENUM_FIELD(removeType, ObjectType);
2854 51026 : READ_ENUM_FIELD(behavior, DropBehavior);
2855 51026 : READ_BOOL_FIELD(missing_ok);
2856 51026 : READ_BOOL_FIELD(concurrent);
2857 :
2858 51026 : READ_DONE();
2859 : }
2860 :
2861 : static TruncateStmt *
2862 3370 : _readTruncateStmt(void)
2863 : {
2864 3370 : READ_LOCALS(TruncateStmt);
2865 :
2866 3370 : READ_NODE_FIELD(relations);
2867 3370 : READ_BOOL_FIELD(restart_seqs);
2868 3370 : READ_ENUM_FIELD(behavior, DropBehavior);
2869 :
2870 3370 : READ_DONE();
2871 : }
2872 :
2873 : static CommentStmt *
2874 14092 : _readCommentStmt(void)
2875 : {
2876 14092 : READ_LOCALS(CommentStmt);
2877 :
2878 14092 : READ_ENUM_FIELD(objtype, ObjectType);
2879 14092 : READ_NODE_FIELD(object);
2880 14092 : READ_STRING_FIELD(comment);
2881 :
2882 14092 : 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 7436 : _readDeclareCursorStmt(void)
2900 : {
2901 7436 : READ_LOCALS(DeclareCursorStmt);
2902 :
2903 7436 : READ_STRING_FIELD(portalname);
2904 7436 : READ_INT_FIELD(options);
2905 7436 : READ_NODE_FIELD(query);
2906 :
2907 7436 : READ_DONE();
2908 : }
2909 :
2910 : static ClosePortalStmt *
2911 4484 : _readClosePortalStmt(void)
2912 : {
2913 4484 : READ_LOCALS(ClosePortalStmt);
2914 :
2915 4484 : READ_STRING_FIELD(portalname);
2916 :
2917 4484 : READ_DONE();
2918 : }
2919 :
2920 : static FetchStmt *
2921 13694 : _readFetchStmt(void)
2922 : {
2923 13694 : READ_LOCALS(FetchStmt);
2924 :
2925 13694 : READ_ENUM_FIELD(direction, FetchDirection);
2926 13694 : READ_LONG_FIELD(howMany);
2927 13694 : READ_STRING_FIELD(portalname);
2928 13694 : READ_BOOL_FIELD(ismove);
2929 13694 : READ_ENUM_FIELD(direction_keyword, FetchDirectionKeywords);
2930 13694 : READ_LOCATION_FIELD(location);
2931 :
2932 13694 : READ_DONE();
2933 : }
2934 :
2935 : static IndexStmt *
2936 12880 : _readIndexStmt(void)
2937 : {
2938 12880 : READ_LOCALS(IndexStmt);
2939 :
2940 12880 : READ_STRING_FIELD(idxname);
2941 12880 : READ_NODE_FIELD(relation);
2942 12880 : READ_STRING_FIELD(accessMethod);
2943 12880 : READ_STRING_FIELD(tableSpace);
2944 12880 : READ_NODE_FIELD(indexParams);
2945 12880 : READ_NODE_FIELD(indexIncludingParams);
2946 12880 : READ_NODE_FIELD(options);
2947 12880 : READ_NODE_FIELD(whereClause);
2948 12880 : READ_NODE_FIELD(excludeOpNames);
2949 12880 : READ_STRING_FIELD(idxcomment);
2950 12880 : READ_OID_FIELD(indexOid);
2951 12880 : READ_OID_FIELD(oldNumber);
2952 12880 : READ_UINT_FIELD(oldCreateSubid);
2953 12880 : READ_UINT_FIELD(oldFirstRelfilelocatorSubid);
2954 12880 : READ_BOOL_FIELD(unique);
2955 12880 : READ_BOOL_FIELD(nulls_not_distinct);
2956 12880 : READ_BOOL_FIELD(primary);
2957 12880 : READ_BOOL_FIELD(isconstraint);
2958 12880 : READ_BOOL_FIELD(iswithoutoverlaps);
2959 12880 : READ_BOOL_FIELD(deferrable);
2960 12880 : READ_BOOL_FIELD(initdeferred);
2961 12880 : READ_BOOL_FIELD(transformed);
2962 12880 : READ_BOOL_FIELD(concurrent);
2963 12880 : READ_BOOL_FIELD(if_not_exists);
2964 12880 : READ_BOOL_FIELD(reset_default_tblspc);
2965 :
2966 12880 : READ_DONE();
2967 : }
2968 :
2969 : static CreateStatsStmt *
2970 1330 : _readCreateStatsStmt(void)
2971 : {
2972 1330 : READ_LOCALS(CreateStatsStmt);
2973 :
2974 1330 : READ_NODE_FIELD(defnames);
2975 1330 : READ_NODE_FIELD(stat_types);
2976 1330 : READ_NODE_FIELD(exprs);
2977 1330 : READ_NODE_FIELD(relations);
2978 1330 : READ_STRING_FIELD(stxcomment);
2979 1330 : READ_BOOL_FIELD(transformed);
2980 1330 : READ_BOOL_FIELD(if_not_exists);
2981 :
2982 1330 : READ_DONE();
2983 : }
2984 :
2985 : static StatsElem *
2986 3192 : _readStatsElem(void)
2987 : {
2988 3192 : READ_LOCALS(StatsElem);
2989 :
2990 3192 : READ_STRING_FIELD(name);
2991 3192 : READ_NODE_FIELD(expr);
2992 :
2993 3192 : 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 50680 : _readCreateFunctionStmt(void)
3010 : {
3011 50680 : READ_LOCALS(CreateFunctionStmt);
3012 :
3013 50680 : READ_BOOL_FIELD(is_procedure);
3014 50680 : READ_BOOL_FIELD(replace);
3015 50680 : READ_NODE_FIELD(funcname);
3016 50680 : READ_NODE_FIELD(parameters);
3017 50680 : READ_NODE_FIELD(returnType);
3018 50680 : READ_NODE_FIELD(options);
3019 50680 : READ_NODE_FIELD(sql_body);
3020 :
3021 50680 : READ_DONE();
3022 : }
3023 :
3024 : static FunctionParameter *
3025 162454 : _readFunctionParameter(void)
3026 : {
3027 162454 : READ_LOCALS(FunctionParameter);
3028 :
3029 162454 : READ_STRING_FIELD(name);
3030 162454 : READ_NODE_FIELD(argType);
3031 162454 : READ_ENUM_FIELD(mode, FunctionParameterMode);
3032 162454 : READ_NODE_FIELD(defexpr);
3033 162454 : READ_LOCATION_FIELD(location);
3034 :
3035 162454 : READ_DONE();
3036 : }
3037 :
3038 : static AlterFunctionStmt *
3039 2776 : _readAlterFunctionStmt(void)
3040 : {
3041 2776 : READ_LOCALS(AlterFunctionStmt);
3042 :
3043 2776 : READ_ENUM_FIELD(objtype, ObjectType);
3044 2776 : READ_NODE_FIELD(func);
3045 2776 : READ_NODE_FIELD(actions);
3046 :
3047 2776 : READ_DONE();
3048 : }
3049 :
3050 : static DoStmt *
3051 2212 : _readDoStmt(void)
3052 : {
3053 2212 : READ_LOCALS(DoStmt);
3054 :
3055 2212 : READ_NODE_FIELD(args);
3056 :
3057 2212 : READ_DONE();
3058 : }
3059 :
3060 : static CallStmt *
3061 914 : _readCallStmt(void)
3062 : {
3063 914 : READ_LOCALS(CallStmt);
3064 :
3065 914 : READ_NODE_FIELD(funccall);
3066 914 : READ_NODE_FIELD(funcexpr);
3067 914 : READ_NODE_FIELD(outargs);
3068 :
3069 914 : READ_DONE();
3070 : }
3071 :
3072 : static RenameStmt *
3073 2840 : _readRenameStmt(void)
3074 : {
3075 2840 : READ_LOCALS(RenameStmt);
3076 :
3077 2840 : READ_ENUM_FIELD(renameType, ObjectType);
3078 2840 : READ_ENUM_FIELD(relationType, ObjectType);
3079 2840 : READ_NODE_FIELD(relation);
3080 2840 : READ_NODE_FIELD(object);
3081 2840 : READ_STRING_FIELD(subname);
3082 2840 : READ_STRING_FIELD(newname);
3083 2840 : READ_ENUM_FIELD(behavior, DropBehavior);
3084 2840 : READ_BOOL_FIELD(missing_ok);
3085 :
3086 2840 : 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 3302 : _readAlterOwnerStmt(void)
3119 : {
3120 3302 : READ_LOCALS(AlterOwnerStmt);
3121 :
3122 3302 : READ_ENUM_FIELD(objectType, ObjectType);
3123 3302 : READ_NODE_FIELD(relation);
3124 3302 : READ_NODE_FIELD(object);
3125 3302 : READ_NODE_FIELD(newowner);
3126 :
3127 3302 : 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 2184 : _readRuleStmt(void)
3154 : {
3155 2184 : READ_LOCALS(RuleStmt);
3156 :
3157 2184 : READ_NODE_FIELD(relation);
3158 2184 : READ_STRING_FIELD(rulename);
3159 2184 : READ_NODE_FIELD(whereClause);
3160 2184 : READ_ENUM_FIELD(event, CmdType);
3161 2184 : READ_BOOL_FIELD(instead);
3162 2184 : READ_NODE_FIELD(actions);
3163 2184 : READ_BOOL_FIELD(replace);
3164 :
3165 2184 : READ_DONE();
3166 : }
3167 :
3168 : static NotifyStmt *
3169 388 : _readNotifyStmt(void)
3170 : {
3171 388 : READ_LOCALS(NotifyStmt);
3172 :
3173 388 : READ_STRING_FIELD(conditionname);
3174 388 : READ_STRING_FIELD(payload);
3175 :
3176 388 : 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 70426 : _readTransactionStmt(void)
3201 : {
3202 70426 : READ_LOCALS(TransactionStmt);
3203 :
3204 70426 : READ_ENUM_FIELD(kind, TransactionStmtKind);
3205 70426 : READ_NODE_FIELD(options);
3206 70426 : READ_STRING_FIELD(savepoint_name);
3207 70426 : READ_STRING_FIELD(gid);
3208 70426 : READ_BOOL_FIELD(chain);
3209 70426 : READ_LOCATION_FIELD(location);
3210 :
3211 70426 : READ_DONE();
3212 : }
3213 :
3214 : static CompositeTypeStmt *
3215 5224 : _readCompositeTypeStmt(void)
3216 : {
3217 5224 : READ_LOCALS(CompositeTypeStmt);
3218 :
3219 5224 : READ_NODE_FIELD(typevar);
3220 5224 : READ_NODE_FIELD(coldeflist);
3221 :
3222 5224 : READ_DONE();
3223 : }
3224 :
3225 : static CreateEnumStmt *
3226 400 : _readCreateEnumStmt(void)
3227 : {
3228 400 : READ_LOCALS(CreateEnumStmt);
3229 :
3230 400 : READ_NODE_FIELD(typeName);
3231 400 : READ_NODE_FIELD(vals);
3232 :
3233 400 : READ_DONE();
3234 : }
3235 :
3236 : static CreateRangeStmt *
3237 368 : _readCreateRangeStmt(void)
3238 : {
3239 368 : READ_LOCALS(CreateRangeStmt);
3240 :
3241 368 : READ_NODE_FIELD(typeName);
3242 368 : READ_NODE_FIELD(params);
3243 :
3244 368 : 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 33896 : _readViewStmt(void)
3264 : {
3265 33896 : READ_LOCALS(ViewStmt);
3266 :
3267 33896 : READ_NODE_FIELD(view);
3268 33896 : READ_NODE_FIELD(aliases);
3269 33896 : READ_NODE_FIELD(query);
3270 33896 : READ_BOOL_FIELD(replace);
3271 33896 : READ_NODE_FIELD(options);
3272 33896 : READ_ENUM_FIELD(withCheckOption, ViewCheckOption);
3273 :
3274 33896 : READ_DONE();
3275 : }
3276 :
3277 : static LoadStmt *
3278 108 : _readLoadStmt(void)
3279 : {
3280 108 : READ_LOCALS(LoadStmt);
3281 :
3282 108 : READ_STRING_FIELD(filename);
3283 :
3284 108 : READ_DONE();
3285 : }
3286 :
3287 : static CreatedbStmt *
3288 1596 : _readCreatedbStmt(void)
3289 : {
3290 1596 : READ_LOCALS(CreatedbStmt);
3291 :
3292 1596 : READ_STRING_FIELD(dbname);
3293 1596 : READ_NODE_FIELD(options);
3294 :
3295 1596 : 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 2420 : _readAlterDatabaseSetStmt(void)
3321 : {
3322 2420 : READ_LOCALS(AlterDatabaseSetStmt);
3323 :
3324 2420 : READ_STRING_FIELD(dbname);
3325 2420 : READ_NODE_FIELD(setstmt);
3326 :
3327 2420 : READ_DONE();
3328 : }
3329 :
3330 : static DropdbStmt *
3331 248 : _readDropdbStmt(void)
3332 : {
3333 248 : READ_LOCALS(DropdbStmt);
3334 :
3335 248 : READ_STRING_FIELD(dbname);
3336 248 : READ_BOOL_FIELD(missing_ok);
3337 248 : READ_NODE_FIELD(options);
3338 :
3339 248 : READ_DONE();
3340 : }
3341 :
3342 : static AlterSystemStmt *
3343 380 : _readAlterSystemStmt(void)
3344 : {
3345 380 : READ_LOCALS(AlterSystemStmt);
3346 :
3347 380 : READ_NODE_FIELD(setstmt);
3348 :
3349 380 : READ_DONE();
3350 : }
3351 :
3352 : static ClusterStmt *
3353 468 : _readClusterStmt(void)
3354 : {
3355 468 : READ_LOCALS(ClusterStmt);
3356 :
3357 468 : READ_NODE_FIELD(relation);
3358 468 : READ_STRING_FIELD(indexname);
3359 468 : READ_NODE_FIELD(params);
3360 :
3361 468 : READ_DONE();
3362 : }
3363 :
3364 : static VacuumStmt *
3365 27298 : _readVacuumStmt(void)
3366 : {
3367 27298 : READ_LOCALS(VacuumStmt);
3368 :
3369 27298 : READ_NODE_FIELD(options);
3370 27298 : READ_NODE_FIELD(rels);
3371 27298 : READ_BOOL_FIELD(is_vacuumcmd);
3372 :
3373 27298 : READ_DONE();
3374 : }
3375 :
3376 : static VacuumRelation *
3377 26850 : _readVacuumRelation(void)
3378 : {
3379 26850 : READ_LOCALS(VacuumRelation);
3380 :
3381 26850 : READ_NODE_FIELD(relation);
3382 26850 : READ_OID_FIELD(oid);
3383 26850 : READ_NODE_FIELD(va_cols);
3384 :
3385 26850 : READ_DONE();
3386 : }
3387 :
3388 : static ExplainStmt *
3389 39846 : _readExplainStmt(void)
3390 : {
3391 39846 : READ_LOCALS(ExplainStmt);
3392 :
3393 39846 : READ_NODE_FIELD(query);
3394 39846 : READ_NODE_FIELD(options);
3395 :
3396 39846 : READ_DONE();
3397 : }
3398 :
3399 : static CreateTableAsStmt *
3400 3834 : _readCreateTableAsStmt(void)
3401 : {
3402 3834 : READ_LOCALS(CreateTableAsStmt);
3403 :
3404 3834 : READ_NODE_FIELD(query);
3405 3834 : READ_NODE_FIELD(into);
3406 3834 : READ_ENUM_FIELD(objtype, ObjectType);
3407 3834 : READ_BOOL_FIELD(is_select_into);
3408 3834 : READ_BOOL_FIELD(if_not_exists);
3409 :
3410 3834 : READ_DONE();
3411 : }
3412 :
3413 : static RefreshMatViewStmt *
3414 536 : _readRefreshMatViewStmt(void)
3415 : {
3416 536 : READ_LOCALS(RefreshMatViewStmt);
3417 :
3418 536 : READ_BOOL_FIELD(concurrent);
3419 536 : READ_BOOL_FIELD(skipData);
3420 536 : READ_NODE_FIELD(relation);
3421 :
3422 536 : READ_DONE();
3423 : }
3424 :
3425 : static CheckPointStmt *
3426 486 : _readCheckPointStmt(void)
3427 : {
3428 486 : READ_LOCALS(CheckPointStmt);
3429 :
3430 486 : READ_NODE_FIELD(options);
3431 :
3432 486 : READ_DONE();
3433 : }
3434 :
3435 : static DiscardStmt *
3436 60 : _readDiscardStmt(void)
3437 : {
3438 60 : READ_LOCALS(DiscardStmt);
3439 :
3440 60 : READ_ENUM_FIELD(target, DiscardMode);
3441 :
3442 60 : READ_DONE();
3443 : }
3444 :
3445 : static LockStmt *
3446 2376 : _readLockStmt(void)
3447 : {
3448 2376 : READ_LOCALS(LockStmt);
3449 :
3450 2376 : READ_NODE_FIELD(relations);
3451 2376 : READ_INT_FIELD(mode);
3452 2376 : READ_BOOL_FIELD(nowait);
3453 :
3454 2376 : READ_DONE();
3455 : }
3456 :
3457 : static ConstraintsSetStmt *
3458 202 : _readConstraintsSetStmt(void)
3459 : {
3460 202 : READ_LOCALS(ConstraintsSetStmt);
3461 :
3462 202 : READ_NODE_FIELD(constraints);
3463 202 : READ_BOOL_FIELD(deferred);
3464 :
3465 202 : READ_DONE();
3466 : }
3467 :
3468 : static ReindexStmt *
3469 2220 : _readReindexStmt(void)
3470 : {
3471 2220 : READ_LOCALS(ReindexStmt);
3472 :
3473 2220 : READ_ENUM_FIELD(kind, ReindexObjectType);
3474 2220 : READ_NODE_FIELD(relation);
3475 2220 : READ_STRING_FIELD(name);
3476 2220 : READ_NODE_FIELD(params);
3477 :
3478 2220 : READ_DONE();
3479 : }
3480 :
3481 : static CreateConversionStmt *
3482 128 : _readCreateConversionStmt(void)
3483 : {
3484 128 : READ_LOCALS(CreateConversionStmt);
3485 :
3486 128 : READ_NODE_FIELD(conversion_name);
3487 128 : READ_STRING_FIELD(for_encoding_name);
3488 128 : READ_STRING_FIELD(to_encoding_name);
3489 128 : READ_NODE_FIELD(func_name);
3490 128 : READ_BOOL_FIELD(def);
3491 :
3492 128 : READ_DONE();
3493 : }
3494 :
3495 : static CreateCastStmt *
3496 556 : _readCreateCastStmt(void)
3497 : {
3498 556 : READ_LOCALS(CreateCastStmt);
3499 :
3500 556 : READ_NODE_FIELD(sourcetype);
3501 556 : READ_NODE_FIELD(targettype);
3502 556 : READ_NODE_FIELD(func);
3503 556 : READ_ENUM_FIELD(context, CoercionContext);
3504 556 : READ_BOOL_FIELD(inout);
3505 :
3506 556 : READ_DONE();
3507 : }
3508 :
3509 : static CreateTransformStmt *
3510 100 : _readCreateTransformStmt(void)
3511 : {
3512 100 : READ_LOCALS(CreateTransformStmt);
3513 :
3514 100 : READ_BOOL_FIELD(replace);
3515 100 : READ_NODE_FIELD(type_name);
3516 100 : READ_STRING_FIELD(lang);
3517 100 : READ_NODE_FIELD(fromsql);
3518 100 : READ_NODE_FIELD(tosql);
3519 :
3520 100 : READ_DONE();
3521 : }
3522 :
3523 : static PrepareStmt *
3524 3920 : _readPrepareStmt(void)
3525 : {
3526 3920 : READ_LOCALS(PrepareStmt);
3527 :
3528 3920 : READ_STRING_FIELD(name);
3529 3920 : READ_NODE_FIELD(argtypes);
3530 3920 : READ_NODE_FIELD(query);
3531 :
3532 3920 : READ_DONE();
3533 : }
3534 :
3535 : static ExecuteStmt *
3536 32754 : _readExecuteStmt(void)
3537 : {
3538 32754 : READ_LOCALS(ExecuteStmt);
3539 :
3540 32754 : READ_STRING_FIELD(name);
3541 32754 : READ_NODE_FIELD(params);
3542 :
3543 32754 : READ_DONE();
3544 : }
3545 :
3546 : static DeallocateStmt *
3547 8176 : _readDeallocateStmt(void)
3548 : {
3549 8176 : READ_LOCALS(DeallocateStmt);
3550 :
3551 8176 : READ_STRING_FIELD(name);
3552 8176 : READ_BOOL_FIELD(isall);
3553 8176 : READ_LOCATION_FIELD(location);
3554 :
3555 8176 : READ_DONE();
3556 : }
3557 :
3558 : static DropOwnedStmt *
3559 308 : _readDropOwnedStmt(void)
3560 : {
3561 308 : READ_LOCALS(DropOwnedStmt);
3562 :
3563 308 : READ_NODE_FIELD(roles);
3564 308 : READ_ENUM_FIELD(behavior, DropBehavior);
3565 :
3566 308 : READ_DONE();
3567 : }
3568 :
3569 : static ReassignOwnedStmt *
3570 104 : _readReassignOwnedStmt(void)
3571 : {
3572 104 : READ_LOCALS(ReassignOwnedStmt);
3573 :
3574 104 : READ_NODE_FIELD(roles);
3575 104 : READ_NODE_FIELD(newrole);
3576 :
3577 104 : READ_DONE();
3578 : }
3579 :
3580 : static AlterTSDictionaryStmt *
3581 80 : _readAlterTSDictionaryStmt(void)
3582 : {
3583 80 : READ_LOCALS(AlterTSDictionaryStmt);
3584 :
3585 80 : READ_NODE_FIELD(dictname);
3586 80 : READ_NODE_FIELD(options);
3587 :
3588 80 : READ_DONE();
3589 : }
3590 :
3591 : static AlterTSConfigurationStmt *
3592 17184 : _readAlterTSConfigurationStmt(void)
3593 : {
3594 17184 : READ_LOCALS(AlterTSConfigurationStmt);
3595 :
3596 17184 : READ_ENUM_FIELD(kind, AlterTSConfigType);
3597 17184 : READ_NODE_FIELD(cfgname);
3598 17184 : READ_NODE_FIELD(tokentype);
3599 17184 : READ_NODE_FIELD(dicts);
3600 17184 : READ_BOOL_FIELD(override);
3601 17184 : READ_BOOL_FIELD(replace);
3602 17184 : READ_BOOL_FIELD(missing_ok);
3603 :
3604 17184 : READ_DONE();
3605 : }
3606 :
3607 : static PublicationTable *
3608 2860 : _readPublicationTable(void)
3609 : {
3610 2860 : READ_LOCALS(PublicationTable);
3611 :
3612 2860 : READ_NODE_FIELD(relation);
3613 2860 : READ_NODE_FIELD(whereClause);
3614 2860 : READ_NODE_FIELD(columns);
3615 :
3616 2860 : READ_DONE();
3617 : }
3618 :
3619 : static PublicationObjSpec *
3620 3652 : _readPublicationObjSpec(void)
3621 : {
3622 3652 : READ_LOCALS(PublicationObjSpec);
3623 :
3624 3652 : READ_ENUM_FIELD(pubobjtype, PublicationObjSpecType);
3625 3652 : READ_STRING_FIELD(name);
3626 3652 : READ_NODE_FIELD(pubtable);
3627 3652 : READ_LOCATION_FIELD(location);
3628 :
3629 3652 : READ_DONE();
3630 : }
3631 :
3632 : static CreatePublicationStmt *
3633 1712 : _readCreatePublicationStmt(void)
3634 : {
3635 1712 : READ_LOCALS(CreatePublicationStmt);
3636 :
3637 1712 : READ_STRING_FIELD(pubname);
3638 1712 : READ_NODE_FIELD(options);
3639 1712 : READ_NODE_FIELD(pubobjects);
3640 1712 : READ_BOOL_FIELD(for_all_tables);
3641 :
3642 1712 : READ_DONE();
3643 : }
3644 :
3645 : static AlterPublicationStmt *
3646 2180 : _readAlterPublicationStmt(void)
3647 : {
3648 2180 : READ_LOCALS(AlterPublicationStmt);
3649 :
3650 2180 : READ_STRING_FIELD(pubname);
3651 2180 : READ_NODE_FIELD(options);
3652 2180 : READ_NODE_FIELD(pubobjects);
3653 2180 : READ_BOOL_FIELD(for_all_tables);
3654 2180 : READ_ENUM_FIELD(action, AlterPublicationAction);
3655 :
3656 2180 : READ_DONE();
3657 : }
3658 :
3659 : static CreateSubscriptionStmt *
3660 936 : _readCreateSubscriptionStmt(void)
3661 : {
3662 936 : READ_LOCALS(CreateSubscriptionStmt);
3663 :
3664 936 : READ_STRING_FIELD(subname);
3665 936 : READ_STRING_FIELD(conninfo);
3666 936 : READ_NODE_FIELD(publication);
3667 936 : READ_NODE_FIELD(options);
3668 :
3669 936 : READ_DONE();
3670 : }
3671 :
3672 : static AlterSubscriptionStmt *
3673 998 : _readAlterSubscriptionStmt(void)
3674 : {
3675 998 : READ_LOCALS(AlterSubscriptionStmt);
3676 :
3677 998 : READ_ENUM_FIELD(kind, AlterSubscriptionType);
3678 998 : READ_STRING_FIELD(subname);
3679 998 : READ_STRING_FIELD(conninfo);
3680 998 : READ_NODE_FIELD(publication);
3681 998 : READ_NODE_FIELD(options);
3682 :
3683 998 : READ_DONE();
3684 : }
3685 :
3686 : static DropSubscriptionStmt *
3687 484 : _readDropSubscriptionStmt(void)
3688 : {
3689 484 : READ_LOCALS(DropSubscriptionStmt);
3690 :
3691 484 : READ_STRING_FIELD(subname);
3692 484 : READ_BOOL_FIELD(missing_ok);
3693 484 : READ_ENUM_FIELD(behavior, DropBehavior);
3694 :
3695 484 : READ_DONE();
3696 : }
3697 :
3698 : static GroupByOrdering *
3699 0 : _readGroupByOrdering(void)
3700 : {
3701 0 : READ_LOCALS(GroupByOrdering);
3702 :
3703 0 : READ_NODE_FIELD(pathkeys);
3704 0 : READ_NODE_FIELD(clauses);
3705 :
3706 0 : READ_DONE();
3707 : }
3708 :
3709 : static PlaceHolderVar *
3710 0 : _readPlaceHolderVar(void)
3711 : {
3712 0 : READ_LOCALS(PlaceHolderVar);
3713 :
3714 0 : READ_NODE_FIELD(phexpr);
3715 0 : READ_BITMAPSET_FIELD(phrels);
3716 0 : READ_BITMAPSET_FIELD(phnullingrels);
3717 0 : READ_UINT_FIELD(phid);
3718 0 : READ_UINT_FIELD(phlevelsup);
3719 :
3720 0 : READ_DONE();
3721 : }
3722 :
3723 : static AppendRelInfo *
3724 50794 : _readAppendRelInfo(void)
3725 : {
3726 50794 : READ_LOCALS(AppendRelInfo);
3727 :
3728 50794 : READ_UINT_FIELD(parent_relid);
3729 50794 : READ_UINT_FIELD(child_relid);
3730 50794 : READ_OID_FIELD(parent_reltype);
3731 50794 : READ_OID_FIELD(child_reltype);
3732 50794 : READ_NODE_FIELD(translated_vars);
3733 50794 : READ_INT_FIELD(num_child_cols);
3734 50794 : READ_ATTRNUMBER_ARRAY(parent_colnos, local_node->num_child_cols);
3735 50794 : READ_OID_FIELD(parent_reloid);
3736 :
3737 50794 : READ_DONE();
3738 : }
3739 :
3740 : static PlannedStmt *
3741 443552 : _readPlannedStmt(void)
3742 : {
3743 443552 : READ_LOCALS(PlannedStmt);
3744 :
3745 443552 : READ_ENUM_FIELD(commandType, CmdType);
3746 443552 : READ_INT64_FIELD(queryId);
3747 443552 : READ_INT64_FIELD(planId);
3748 443552 : READ_ENUM_FIELD(planOrigin, PlannedStmtOrigin);
3749 443552 : READ_BOOL_FIELD(hasReturning);
3750 443552 : READ_BOOL_FIELD(hasModifyingCTE);
3751 443552 : READ_BOOL_FIELD(canSetTag);
3752 443552 : READ_BOOL_FIELD(transientPlan);
3753 443552 : READ_BOOL_FIELD(dependsOnRole);
3754 443552 : READ_BOOL_FIELD(parallelModeNeeded);
3755 443552 : READ_INT_FIELD(jitFlags);
3756 443552 : READ_NODE_FIELD(planTree);
3757 443552 : READ_NODE_FIELD(partPruneInfos);
3758 443552 : READ_NODE_FIELD(rtable);
3759 443552 : READ_BITMAPSET_FIELD(unprunableRelids);
3760 443552 : READ_NODE_FIELD(permInfos);
3761 443552 : READ_NODE_FIELD(resultRelations);
3762 443552 : READ_NODE_FIELD(appendRelations);
3763 443552 : READ_NODE_FIELD(subplans);
3764 443552 : READ_BITMAPSET_FIELD(rewindPlanIDs);
3765 443552 : READ_NODE_FIELD(rowMarks);
3766 443552 : READ_NODE_FIELD(relationOids);
3767 443552 : READ_NODE_FIELD(invalItems);
3768 443552 : READ_NODE_FIELD(paramExecTypes);
3769 443552 : READ_NODE_FIELD(utilityStmt);
3770 443552 : READ_LOCATION_FIELD(stmt_location);
3771 443552 : READ_LOCATION_FIELD(stmt_len);
3772 :
3773 443552 : READ_DONE();
3774 : }
3775 :
3776 : static Result *
3777 206220 : _readResult(void)
3778 : {
3779 206220 : READ_LOCALS(Result);
3780 :
3781 206220 : READ_INT_FIELD(plan.disabled_nodes);
3782 206220 : READ_FLOAT_FIELD(plan.startup_cost);
3783 206220 : READ_FLOAT_FIELD(plan.total_cost);
3784 206220 : READ_FLOAT_FIELD(plan.plan_rows);
3785 206220 : READ_INT_FIELD(plan.plan_width);
3786 206220 : READ_BOOL_FIELD(plan.parallel_aware);
3787 206220 : READ_BOOL_FIELD(plan.parallel_safe);
3788 206220 : READ_BOOL_FIELD(plan.async_capable);
3789 206220 : READ_INT_FIELD(plan.plan_node_id);
3790 206220 : READ_NODE_FIELD(plan.targetlist);
3791 206220 : READ_NODE_FIELD(plan.qual);
3792 206220 : READ_NODE_FIELD(plan.lefttree);
3793 206220 : READ_NODE_FIELD(plan.righttree);
3794 206220 : READ_NODE_FIELD(plan.initPlan);
3795 206220 : READ_BITMAPSET_FIELD(plan.extParam);
3796 206220 : READ_BITMAPSET_FIELD(plan.allParam);
3797 206220 : READ_NODE_FIELD(resconstantqual);
3798 :
3799 206220 : READ_DONE();
3800 : }
3801 :
3802 : static ProjectSet *
3803 11688 : _readProjectSet(void)
3804 : {
3805 11688 : READ_LOCALS(ProjectSet);
3806 :
3807 11688 : READ_INT_FIELD(plan.disabled_nodes);
3808 11688 : READ_FLOAT_FIELD(plan.startup_cost);
3809 11688 : READ_FLOAT_FIELD(plan.total_cost);
3810 11688 : READ_FLOAT_FIELD(plan.plan_rows);
3811 11688 : READ_INT_FIELD(plan.plan_width);
3812 11688 : READ_BOOL_FIELD(plan.parallel_aware);
3813 11688 : READ_BOOL_FIELD(plan.parallel_safe);
3814 11688 : READ_BOOL_FIELD(plan.async_capable);
3815 11688 : READ_INT_FIELD(plan.plan_node_id);
3816 11688 : READ_NODE_FIELD(plan.targetlist);
3817 11688 : READ_NODE_FIELD(plan.qual);
3818 11688 : READ_NODE_FIELD(plan.lefttree);
3819 11688 : READ_NODE_FIELD(plan.righttree);
3820 11688 : READ_NODE_FIELD(plan.initPlan);
3821 11688 : READ_BITMAPSET_FIELD(plan.extParam);
3822 11688 : READ_BITMAPSET_FIELD(plan.allParam);
3823 :
3824 11688 : READ_DONE();
3825 : }
3826 :
3827 : static ModifyTable *
3828 86184 : _readModifyTable(void)
3829 : {
3830 86184 : READ_LOCALS(ModifyTable);
3831 :
3832 86184 : READ_INT_FIELD(plan.disabled_nodes);
3833 86184 : READ_FLOAT_FIELD(plan.startup_cost);
3834 86184 : READ_FLOAT_FIELD(plan.total_cost);
3835 86184 : READ_FLOAT_FIELD(plan.plan_rows);
3836 86184 : READ_INT_FIELD(plan.plan_width);
3837 86184 : READ_BOOL_FIELD(plan.parallel_aware);
3838 86184 : READ_BOOL_FIELD(plan.parallel_safe);
3839 86184 : READ_BOOL_FIELD(plan.async_capable);
3840 86184 : READ_INT_FIELD(plan.plan_node_id);
3841 86184 : READ_NODE_FIELD(plan.targetlist);
3842 86184 : READ_NODE_FIELD(plan.qual);
3843 86184 : READ_NODE_FIELD(plan.lefttree);
3844 86184 : READ_NODE_FIELD(plan.righttree);
3845 86184 : READ_NODE_FIELD(plan.initPlan);
3846 86184 : READ_BITMAPSET_FIELD(plan.extParam);
3847 86184 : READ_BITMAPSET_FIELD(plan.allParam);
3848 86184 : READ_ENUM_FIELD(operation, CmdType);
3849 86184 : READ_BOOL_FIELD(canSetTag);
3850 86184 : READ_UINT_FIELD(nominalRelation);
3851 86184 : READ_UINT_FIELD(rootRelation);
3852 86184 : READ_BOOL_FIELD(partColsUpdated);
3853 86184 : READ_NODE_FIELD(resultRelations);
3854 86184 : READ_NODE_FIELD(updateColnosLists);
3855 86184 : READ_NODE_FIELD(withCheckOptionLists);
3856 86184 : READ_STRING_FIELD(returningOldAlias);
3857 86184 : READ_STRING_FIELD(returningNewAlias);
3858 86184 : READ_NODE_FIELD(returningLists);
3859 86184 : READ_NODE_FIELD(fdwPrivLists);
3860 86184 : READ_BITMAPSET_FIELD(fdwDirectModifyPlans);
3861 86184 : READ_NODE_FIELD(rowMarks);
3862 86184 : READ_INT_FIELD(epqParam);
3863 86184 : READ_ENUM_FIELD(onConflictAction, OnConflictAction);
3864 86184 : READ_NODE_FIELD(arbiterIndexes);
3865 86184 : READ_NODE_FIELD(onConflictSet);
3866 86184 : READ_NODE_FIELD(onConflictCols);
3867 86184 : READ_NODE_FIELD(onConflictWhere);
3868 86184 : READ_UINT_FIELD(exclRelRTI);
3869 86184 : READ_NODE_FIELD(exclRelTlist);
3870 86184 : READ_NODE_FIELD(mergeActionLists);
3871 86184 : READ_NODE_FIELD(mergeJoinConditions);
3872 :
3873 86184 : READ_DONE();
3874 : }
3875 :
3876 : static Append *
3877 17214 : _readAppend(void)
3878 : {
3879 17214 : READ_LOCALS(Append);
3880 :
3881 17214 : READ_INT_FIELD(plan.disabled_nodes);
3882 17214 : READ_FLOAT_FIELD(plan.startup_cost);
3883 17214 : READ_FLOAT_FIELD(plan.total_cost);
3884 17214 : READ_FLOAT_FIELD(plan.plan_rows);
3885 17214 : READ_INT_FIELD(plan.plan_width);
3886 17214 : READ_BOOL_FIELD(plan.parallel_aware);
3887 17214 : READ_BOOL_FIELD(plan.parallel_safe);
3888 17214 : READ_BOOL_FIELD(plan.async_capable);
3889 17214 : READ_INT_FIELD(plan.plan_node_id);
3890 17214 : READ_NODE_FIELD(plan.targetlist);
3891 17214 : READ_NODE_FIELD(plan.qual);
3892 17214 : READ_NODE_FIELD(plan.lefttree);
3893 17214 : READ_NODE_FIELD(plan.righttree);
3894 17214 : READ_NODE_FIELD(plan.initPlan);
3895 17214 : READ_BITMAPSET_FIELD(plan.extParam);
3896 17214 : READ_BITMAPSET_FIELD(plan.allParam);
3897 17214 : READ_BITMAPSET_FIELD(apprelids);
3898 17214 : READ_NODE_FIELD(appendplans);
3899 17214 : READ_INT_FIELD(nasyncplans);
3900 17214 : READ_INT_FIELD(first_partial_plan);
3901 17214 : READ_INT_FIELD(part_prune_index);
3902 :
3903 17214 : READ_DONE();
3904 : }
3905 :
3906 : static MergeAppend *
3907 562 : _readMergeAppend(void)
3908 : {
3909 562 : READ_LOCALS(MergeAppend);
3910 :
3911 562 : READ_INT_FIELD(plan.disabled_nodes);
3912 562 : READ_FLOAT_FIELD(plan.startup_cost);
3913 562 : READ_FLOAT_FIELD(plan.total_cost);
3914 562 : READ_FLOAT_FIELD(plan.plan_rows);
3915 562 : READ_INT_FIELD(plan.plan_width);
3916 562 : READ_BOOL_FIELD(plan.parallel_aware);
3917 562 : READ_BOOL_FIELD(plan.parallel_safe);
3918 562 : READ_BOOL_FIELD(plan.async_capable);
3919 562 : READ_INT_FIELD(plan.plan_node_id);
3920 562 : READ_NODE_FIELD(plan.targetlist);
3921 562 : READ_NODE_FIELD(plan.qual);
3922 562 : READ_NODE_FIELD(plan.lefttree);
3923 562 : READ_NODE_FIELD(plan.righttree);
3924 562 : READ_NODE_FIELD(plan.initPlan);
3925 562 : READ_BITMAPSET_FIELD(plan.extParam);
3926 562 : READ_BITMAPSET_FIELD(plan.allParam);
3927 562 : READ_BITMAPSET_FIELD(apprelids);
3928 562 : READ_NODE_FIELD(mergeplans);
3929 562 : READ_INT_FIELD(numCols);
3930 562 : READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
3931 562 : READ_OID_ARRAY(sortOperators, local_node->numCols);
3932 562 : READ_OID_ARRAY(collations, local_node->numCols);
3933 562 : READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
3934 562 : READ_INT_FIELD(part_prune_index);
3935 :
3936 562 : READ_DONE();
3937 : }
3938 :
3939 : static RecursiveUnion *
3940 920 : _readRecursiveUnion(void)
3941 : {
3942 920 : READ_LOCALS(RecursiveUnion);
3943 :
3944 920 : READ_INT_FIELD(plan.disabled_nodes);
3945 920 : READ_FLOAT_FIELD(plan.startup_cost);
3946 920 : READ_FLOAT_FIELD(plan.total_cost);
3947 920 : READ_FLOAT_FIELD(plan.plan_rows);
3948 920 : READ_INT_FIELD(plan.plan_width);
3949 920 : READ_BOOL_FIELD(plan.parallel_aware);
3950 920 : READ_BOOL_FIELD(plan.parallel_safe);
3951 920 : READ_BOOL_FIELD(plan.async_capable);
3952 920 : READ_INT_FIELD(plan.plan_node_id);
3953 920 : READ_NODE_FIELD(plan.targetlist);
3954 920 : READ_NODE_FIELD(plan.qual);
3955 920 : READ_NODE_FIELD(plan.lefttree);
3956 920 : READ_NODE_FIELD(plan.righttree);
3957 920 : READ_NODE_FIELD(plan.initPlan);
3958 920 : READ_BITMAPSET_FIELD(plan.extParam);
3959 920 : READ_BITMAPSET_FIELD(plan.allParam);
3960 920 : READ_INT_FIELD(wtParam);
3961 920 : READ_INT_FIELD(numCols);
3962 920 : READ_ATTRNUMBER_ARRAY(dupColIdx, local_node->numCols);
3963 920 : READ_OID_ARRAY(dupOperators, local_node->numCols);
3964 920 : READ_OID_ARRAY(dupCollations, local_node->numCols);
3965 920 : READ_LONG_FIELD(numGroups);
3966 :
3967 920 : READ_DONE();
3968 : }
3969 :
3970 : static BitmapAnd *
3971 242 : _readBitmapAnd(void)
3972 : {
3973 242 : READ_LOCALS(BitmapAnd);
3974 :
3975 242 : READ_INT_FIELD(plan.disabled_nodes);
3976 242 : READ_FLOAT_FIELD(plan.startup_cost);
3977 242 : READ_FLOAT_FIELD(plan.total_cost);
3978 242 : READ_FLOAT_FIELD(plan.plan_rows);
3979 242 : READ_INT_FIELD(plan.plan_width);
3980 242 : READ_BOOL_FIELD(plan.parallel_aware);
3981 242 : READ_BOOL_FIELD(plan.parallel_safe);
3982 242 : READ_BOOL_FIELD(plan.async_capable);
3983 242 : READ_INT_FIELD(plan.plan_node_id);
3984 242 : READ_NODE_FIELD(plan.targetlist);
3985 242 : READ_NODE_FIELD(plan.qual);
3986 242 : READ_NODE_FIELD(plan.lefttree);
3987 242 : READ_NODE_FIELD(plan.righttree);
3988 242 : READ_NODE_FIELD(plan.initPlan);
3989 242 : READ_BITMAPSET_FIELD(plan.extParam);
3990 242 : READ_BITMAPSET_FIELD(plan.allParam);
3991 242 : READ_NODE_FIELD(bitmapplans);
3992 :
3993 242 : READ_DONE();
3994 : }
3995 :
3996 : static BitmapOr *
3997 418 : _readBitmapOr(void)
3998 : {
3999 418 : READ_LOCALS(BitmapOr);
4000 :
4001 418 : READ_INT_FIELD(plan.disabled_nodes);
4002 418 : READ_FLOAT_FIELD(plan.startup_cost);
4003 418 : READ_FLOAT_FIELD(plan.total_cost);
4004 418 : READ_FLOAT_FIELD(plan.plan_rows);
4005 418 : READ_INT_FIELD(plan.plan_width);
4006 418 : READ_BOOL_FIELD(plan.parallel_aware);
4007 418 : READ_BOOL_FIELD(plan.parallel_safe);
4008 418 : READ_BOOL_FIELD(plan.async_capable);
4009 418 : READ_INT_FIELD(plan.plan_node_id);
4010 418 : READ_NODE_FIELD(plan.targetlist);
4011 418 : READ_NODE_FIELD(plan.qual);
4012 418 : READ_NODE_FIELD(plan.lefttree);
4013 418 : READ_NODE_FIELD(plan.righttree);
4014 418 : READ_NODE_FIELD(plan.initPlan);
4015 418 : READ_BITMAPSET_FIELD(plan.extParam);
4016 418 : READ_BITMAPSET_FIELD(plan.allParam);
4017 418 : READ_BOOL_FIELD(isshared);
4018 418 : READ_NODE_FIELD(bitmapplans);
4019 :
4020 418 : READ_DONE();
4021 : }
4022 :
4023 : static SeqScan *
4024 210808 : _readSeqScan(void)
4025 : {
4026 210808 : READ_LOCALS(SeqScan);
4027 :
4028 210808 : READ_INT_FIELD(scan.plan.disabled_nodes);
4029 210808 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4030 210808 : READ_FLOAT_FIELD(scan.plan.total_cost);
4031 210808 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4032 210808 : READ_INT_FIELD(scan.plan.plan_width);
4033 210808 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4034 210808 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4035 210808 : READ_BOOL_FIELD(scan.plan.async_capable);
4036 210808 : READ_INT_FIELD(scan.plan.plan_node_id);
4037 210808 : READ_NODE_FIELD(scan.plan.targetlist);
4038 210808 : READ_NODE_FIELD(scan.plan.qual);
4039 210808 : READ_NODE_FIELD(scan.plan.lefttree);
4040 210808 : READ_NODE_FIELD(scan.plan.righttree);
4041 210808 : READ_NODE_FIELD(scan.plan.initPlan);
4042 210808 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4043 210808 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4044 210808 : READ_UINT_FIELD(scan.scanrelid);
4045 :
4046 210808 : READ_DONE();
4047 : }
4048 :
4049 : static SampleScan *
4050 306 : _readSampleScan(void)
4051 : {
4052 306 : READ_LOCALS(SampleScan);
4053 :
4054 306 : READ_INT_FIELD(scan.plan.disabled_nodes);
4055 306 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4056 306 : READ_FLOAT_FIELD(scan.plan.total_cost);
4057 306 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4058 306 : READ_INT_FIELD(scan.plan.plan_width);
4059 306 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4060 306 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4061 306 : READ_BOOL_FIELD(scan.plan.async_capable);
4062 306 : READ_INT_FIELD(scan.plan.plan_node_id);
4063 306 : READ_NODE_FIELD(scan.plan.targetlist);
4064 306 : READ_NODE_FIELD(scan.plan.qual);
4065 306 : READ_NODE_FIELD(scan.plan.lefttree);
4066 306 : READ_NODE_FIELD(scan.plan.righttree);
4067 306 : READ_NODE_FIELD(scan.plan.initPlan);
4068 306 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4069 306 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4070 306 : READ_UINT_FIELD(scan.scanrelid);
4071 306 : READ_NODE_FIELD(tablesample);
4072 :
4073 306 : READ_DONE();
4074 : }
4075 :
4076 : static IndexScan *
4077 138868 : _readIndexScan(void)
4078 : {
4079 138868 : READ_LOCALS(IndexScan);
4080 :
4081 138868 : READ_INT_FIELD(scan.plan.disabled_nodes);
4082 138868 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4083 138868 : READ_FLOAT_FIELD(scan.plan.total_cost);
4084 138868 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4085 138868 : READ_INT_FIELD(scan.plan.plan_width);
4086 138868 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4087 138868 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4088 138868 : READ_BOOL_FIELD(scan.plan.async_capable);
4089 138868 : READ_INT_FIELD(scan.plan.plan_node_id);
4090 138868 : READ_NODE_FIELD(scan.plan.targetlist);
4091 138868 : READ_NODE_FIELD(scan.plan.qual);
4092 138868 : READ_NODE_FIELD(scan.plan.lefttree);
4093 138868 : READ_NODE_FIELD(scan.plan.righttree);
4094 138868 : READ_NODE_FIELD(scan.plan.initPlan);
4095 138868 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4096 138868 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4097 138868 : READ_UINT_FIELD(scan.scanrelid);
4098 138868 : READ_OID_FIELD(indexid);
4099 138868 : READ_NODE_FIELD(indexqual);
4100 138868 : READ_NODE_FIELD(indexqualorig);
4101 138868 : READ_NODE_FIELD(indexorderby);
4102 138868 : READ_NODE_FIELD(indexorderbyorig);
4103 138868 : READ_NODE_FIELD(indexorderbyops);
4104 138868 : READ_ENUM_FIELD(indexorderdir, ScanDirection);
4105 :
4106 138868 : READ_DONE();
4107 : }
4108 :
4109 : static IndexOnlyScan *
4110 16612 : _readIndexOnlyScan(void)
4111 : {
4112 16612 : READ_LOCALS(IndexOnlyScan);
4113 :
4114 16612 : READ_INT_FIELD(scan.plan.disabled_nodes);
4115 16612 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4116 16612 : READ_FLOAT_FIELD(scan.plan.total_cost);
4117 16612 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4118 16612 : READ_INT_FIELD(scan.plan.plan_width);
4119 16612 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4120 16612 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4121 16612 : READ_BOOL_FIELD(scan.plan.async_capable);
4122 16612 : READ_INT_FIELD(scan.plan.plan_node_id);
4123 16612 : READ_NODE_FIELD(scan.plan.targetlist);
4124 16612 : READ_NODE_FIELD(scan.plan.qual);
4125 16612 : READ_NODE_FIELD(scan.plan.lefttree);
4126 16612 : READ_NODE_FIELD(scan.plan.righttree);
4127 16612 : READ_NODE_FIELD(scan.plan.initPlan);
4128 16612 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4129 16612 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4130 16612 : READ_UINT_FIELD(scan.scanrelid);
4131 16612 : READ_OID_FIELD(indexid);
4132 16612 : READ_NODE_FIELD(indexqual);
4133 16612 : READ_NODE_FIELD(recheckqual);
4134 16612 : READ_NODE_FIELD(indexorderby);
4135 16612 : READ_NODE_FIELD(indextlist);
4136 16612 : READ_ENUM_FIELD(indexorderdir, ScanDirection);
4137 :
4138 16612 : READ_DONE();
4139 : }
4140 :
4141 : static BitmapIndexScan *
4142 21314 : _readBitmapIndexScan(void)
4143 : {
4144 21314 : READ_LOCALS(BitmapIndexScan);
4145 :
4146 21314 : READ_INT_FIELD(scan.plan.disabled_nodes);
4147 21314 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4148 21314 : READ_FLOAT_FIELD(scan.plan.total_cost);
4149 21314 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4150 21314 : READ_INT_FIELD(scan.plan.plan_width);
4151 21314 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4152 21314 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4153 21314 : READ_BOOL_FIELD(scan.plan.async_capable);
4154 21314 : READ_INT_FIELD(scan.plan.plan_node_id);
4155 21314 : READ_NODE_FIELD(scan.plan.targetlist);
4156 21314 : READ_NODE_FIELD(scan.plan.qual);
4157 21314 : READ_NODE_FIELD(scan.plan.lefttree);
4158 21314 : READ_NODE_FIELD(scan.plan.righttree);
4159 21314 : READ_NODE_FIELD(scan.plan.initPlan);
4160 21314 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4161 21314 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4162 21314 : READ_UINT_FIELD(scan.scanrelid);
4163 21314 : READ_OID_FIELD(indexid);
4164 21314 : READ_BOOL_FIELD(isshared);
4165 21314 : READ_NODE_FIELD(indexqual);
4166 21314 : READ_NODE_FIELD(indexqualorig);
4167 :
4168 21314 : READ_DONE();
4169 : }
4170 :
4171 : static BitmapHeapScan *
4172 20648 : _readBitmapHeapScan(void)
4173 : {
4174 20648 : READ_LOCALS(BitmapHeapScan);
4175 :
4176 20648 : READ_INT_FIELD(scan.plan.disabled_nodes);
4177 20648 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4178 20648 : READ_FLOAT_FIELD(scan.plan.total_cost);
4179 20648 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4180 20648 : READ_INT_FIELD(scan.plan.plan_width);
4181 20648 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4182 20648 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4183 20648 : READ_BOOL_FIELD(scan.plan.async_capable);
4184 20648 : READ_INT_FIELD(scan.plan.plan_node_id);
4185 20648 : READ_NODE_FIELD(scan.plan.targetlist);
4186 20648 : READ_NODE_FIELD(scan.plan.qual);
4187 20648 : READ_NODE_FIELD(scan.plan.lefttree);
4188 20648 : READ_NODE_FIELD(scan.plan.righttree);
4189 20648 : READ_NODE_FIELD(scan.plan.initPlan);
4190 20648 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4191 20648 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4192 20648 : READ_UINT_FIELD(scan.scanrelid);
4193 20648 : READ_NODE_FIELD(bitmapqualorig);
4194 :
4195 20648 : READ_DONE();
4196 : }
4197 :
4198 : static TidScan *
4199 740 : _readTidScan(void)
4200 : {
4201 740 : READ_LOCALS(TidScan);
4202 :
4203 740 : READ_INT_FIELD(scan.plan.disabled_nodes);
4204 740 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4205 740 : READ_FLOAT_FIELD(scan.plan.total_cost);
4206 740 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4207 740 : READ_INT_FIELD(scan.plan.plan_width);
4208 740 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4209 740 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4210 740 : READ_BOOL_FIELD(scan.plan.async_capable);
4211 740 : READ_INT_FIELD(scan.plan.plan_node_id);
4212 740 : READ_NODE_FIELD(scan.plan.targetlist);
4213 740 : READ_NODE_FIELD(scan.plan.qual);
4214 740 : READ_NODE_FIELD(scan.plan.lefttree);
4215 740 : READ_NODE_FIELD(scan.plan.righttree);
4216 740 : READ_NODE_FIELD(scan.plan.initPlan);
4217 740 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4218 740 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4219 740 : READ_UINT_FIELD(scan.scanrelid);
4220 740 : READ_NODE_FIELD(tidquals);
4221 :
4222 740 : READ_DONE();
4223 : }
4224 :
4225 : static TidRangeScan *
4226 1940 : _readTidRangeScan(void)
4227 : {
4228 1940 : READ_LOCALS(TidRangeScan);
4229 :
4230 1940 : READ_INT_FIELD(scan.plan.disabled_nodes);
4231 1940 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4232 1940 : READ_FLOAT_FIELD(scan.plan.total_cost);
4233 1940 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4234 1940 : READ_INT_FIELD(scan.plan.plan_width);
4235 1940 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4236 1940 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4237 1940 : READ_BOOL_FIELD(scan.plan.async_capable);
4238 1940 : READ_INT_FIELD(scan.plan.plan_node_id);
4239 1940 : READ_NODE_FIELD(scan.plan.targetlist);
4240 1940 : READ_NODE_FIELD(scan.plan.qual);
4241 1940 : READ_NODE_FIELD(scan.plan.lefttree);
4242 1940 : READ_NODE_FIELD(scan.plan.righttree);
4243 1940 : READ_NODE_FIELD(scan.plan.initPlan);
4244 1940 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4245 1940 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4246 1940 : READ_UINT_FIELD(scan.scanrelid);
4247 1940 : READ_NODE_FIELD(tidrangequals);
4248 :
4249 1940 : READ_DONE();
4250 : }
4251 :
4252 : static SubqueryScan *
4253 10672 : _readSubqueryScan(void)
4254 : {
4255 10672 : READ_LOCALS(SubqueryScan);
4256 :
4257 10672 : READ_INT_FIELD(scan.plan.disabled_nodes);
4258 10672 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4259 10672 : READ_FLOAT_FIELD(scan.plan.total_cost);
4260 10672 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4261 10672 : READ_INT_FIELD(scan.plan.plan_width);
4262 10672 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4263 10672 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4264 10672 : READ_BOOL_FIELD(scan.plan.async_capable);
4265 10672 : READ_INT_FIELD(scan.plan.plan_node_id);
4266 10672 : READ_NODE_FIELD(scan.plan.targetlist);
4267 10672 : READ_NODE_FIELD(scan.plan.qual);
4268 10672 : READ_NODE_FIELD(scan.plan.lefttree);
4269 10672 : READ_NODE_FIELD(scan.plan.righttree);
4270 10672 : READ_NODE_FIELD(scan.plan.initPlan);
4271 10672 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4272 10672 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4273 10672 : READ_UINT_FIELD(scan.scanrelid);
4274 10672 : READ_NODE_FIELD(subplan);
4275 10672 : READ_ENUM_FIELD(scanstatus, SubqueryScanStatus);
4276 :
4277 10672 : READ_DONE();
4278 : }
4279 :
4280 : static FunctionScan *
4281 51008 : _readFunctionScan(void)
4282 : {
4283 51008 : READ_LOCALS(FunctionScan);
4284 :
4285 51008 : READ_INT_FIELD(scan.plan.disabled_nodes);
4286 51008 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4287 51008 : READ_FLOAT_FIELD(scan.plan.total_cost);
4288 51008 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4289 51008 : READ_INT_FIELD(scan.plan.plan_width);
4290 51008 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4291 51008 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4292 51008 : READ_BOOL_FIELD(scan.plan.async_capable);
4293 51008 : READ_INT_FIELD(scan.plan.plan_node_id);
4294 51008 : READ_NODE_FIELD(scan.plan.targetlist);
4295 51008 : READ_NODE_FIELD(scan.plan.qual);
4296 51008 : READ_NODE_FIELD(scan.plan.lefttree);
4297 51008 : READ_NODE_FIELD(scan.plan.righttree);
4298 51008 : READ_NODE_FIELD(scan.plan.initPlan);
4299 51008 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4300 51008 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4301 51008 : READ_UINT_FIELD(scan.scanrelid);
4302 51008 : READ_NODE_FIELD(functions);
4303 51008 : READ_BOOL_FIELD(funcordinality);
4304 :
4305 51008 : READ_DONE();
4306 : }
4307 :
4308 : static ValuesScan *
4309 8222 : _readValuesScan(void)
4310 : {
4311 8222 : READ_LOCALS(ValuesScan);
4312 :
4313 8222 : READ_INT_FIELD(scan.plan.disabled_nodes);
4314 8222 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4315 8222 : READ_FLOAT_FIELD(scan.plan.total_cost);
4316 8222 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4317 8222 : READ_INT_FIELD(scan.plan.plan_width);
4318 8222 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4319 8222 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4320 8222 : READ_BOOL_FIELD(scan.plan.async_capable);
4321 8222 : READ_INT_FIELD(scan.plan.plan_node_id);
4322 8222 : READ_NODE_FIELD(scan.plan.targetlist);
4323 8222 : READ_NODE_FIELD(scan.plan.qual);
4324 8222 : READ_NODE_FIELD(scan.plan.lefttree);
4325 8222 : READ_NODE_FIELD(scan.plan.righttree);
4326 8222 : READ_NODE_FIELD(scan.plan.initPlan);
4327 8222 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4328 8222 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4329 8222 : READ_UINT_FIELD(scan.scanrelid);
4330 8222 : READ_NODE_FIELD(values_lists);
4331 :
4332 8222 : READ_DONE();
4333 : }
4334 :
4335 : static TableFuncScan *
4336 626 : _readTableFuncScan(void)
4337 : {
4338 626 : READ_LOCALS(TableFuncScan);
4339 :
4340 626 : READ_INT_FIELD(scan.plan.disabled_nodes);
4341 626 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4342 626 : READ_FLOAT_FIELD(scan.plan.total_cost);
4343 626 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4344 626 : READ_INT_FIELD(scan.plan.plan_width);
4345 626 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4346 626 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4347 626 : READ_BOOL_FIELD(scan.plan.async_capable);
4348 626 : READ_INT_FIELD(scan.plan.plan_node_id);
4349 626 : READ_NODE_FIELD(scan.plan.targetlist);
4350 626 : READ_NODE_FIELD(scan.plan.qual);
4351 626 : READ_NODE_FIELD(scan.plan.lefttree);
4352 626 : READ_NODE_FIELD(scan.plan.righttree);
4353 626 : READ_NODE_FIELD(scan.plan.initPlan);
4354 626 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4355 626 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4356 626 : READ_UINT_FIELD(scan.scanrelid);
4357 626 : READ_NODE_FIELD(tablefunc);
4358 :
4359 626 : READ_DONE();
4360 : }
4361 :
4362 : static CteScan *
4363 4242 : _readCteScan(void)
4364 : {
4365 4242 : READ_LOCALS(CteScan);
4366 :
4367 4242 : READ_INT_FIELD(scan.plan.disabled_nodes);
4368 4242 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4369 4242 : READ_FLOAT_FIELD(scan.plan.total_cost);
4370 4242 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4371 4242 : READ_INT_FIELD(scan.plan.plan_width);
4372 4242 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4373 4242 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4374 4242 : READ_BOOL_FIELD(scan.plan.async_capable);
4375 4242 : READ_INT_FIELD(scan.plan.plan_node_id);
4376 4242 : READ_NODE_FIELD(scan.plan.targetlist);
4377 4242 : READ_NODE_FIELD(scan.plan.qual);
4378 4242 : READ_NODE_FIELD(scan.plan.lefttree);
4379 4242 : READ_NODE_FIELD(scan.plan.righttree);
4380 4242 : READ_NODE_FIELD(scan.plan.initPlan);
4381 4242 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4382 4242 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4383 4242 : READ_UINT_FIELD(scan.scanrelid);
4384 4242 : READ_INT_FIELD(ctePlanId);
4385 4242 : READ_INT_FIELD(cteParam);
4386 :
4387 4242 : READ_DONE();
4388 : }
4389 :
4390 : static NamedTuplestoreScan *
4391 474 : _readNamedTuplestoreScan(void)
4392 : {
4393 474 : READ_LOCALS(NamedTuplestoreScan);
4394 :
4395 474 : READ_INT_FIELD(scan.plan.disabled_nodes);
4396 474 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4397 474 : READ_FLOAT_FIELD(scan.plan.total_cost);
4398 474 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4399 474 : READ_INT_FIELD(scan.plan.plan_width);
4400 474 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4401 474 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4402 474 : READ_BOOL_FIELD(scan.plan.async_capable);
4403 474 : READ_INT_FIELD(scan.plan.plan_node_id);
4404 474 : READ_NODE_FIELD(scan.plan.targetlist);
4405 474 : READ_NODE_FIELD(scan.plan.qual);
4406 474 : READ_NODE_FIELD(scan.plan.lefttree);
4407 474 : READ_NODE_FIELD(scan.plan.righttree);
4408 474 : READ_NODE_FIELD(scan.plan.initPlan);
4409 474 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4410 474 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4411 474 : READ_UINT_FIELD(scan.scanrelid);
4412 474 : READ_STRING_FIELD(enrname);
4413 :
4414 474 : READ_DONE();
4415 : }
4416 :
4417 : static WorkTableScan *
4418 920 : _readWorkTableScan(void)
4419 : {
4420 920 : READ_LOCALS(WorkTableScan);
4421 :
4422 920 : READ_INT_FIELD(scan.plan.disabled_nodes);
4423 920 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4424 920 : READ_FLOAT_FIELD(scan.plan.total_cost);
4425 920 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4426 920 : READ_INT_FIELD(scan.plan.plan_width);
4427 920 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4428 920 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4429 920 : READ_BOOL_FIELD(scan.plan.async_capable);
4430 920 : READ_INT_FIELD(scan.plan.plan_node_id);
4431 920 : READ_NODE_FIELD(scan.plan.targetlist);
4432 920 : READ_NODE_FIELD(scan.plan.qual);
4433 920 : READ_NODE_FIELD(scan.plan.lefttree);
4434 920 : READ_NODE_FIELD(scan.plan.righttree);
4435 920 : READ_NODE_FIELD(scan.plan.initPlan);
4436 920 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4437 920 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4438 920 : READ_UINT_FIELD(scan.scanrelid);
4439 920 : READ_INT_FIELD(wtParam);
4440 :
4441 920 : READ_DONE();
4442 : }
4443 :
4444 : static ForeignScan *
4445 2020 : _readForeignScan(void)
4446 : {
4447 2020 : READ_LOCALS(ForeignScan);
4448 :
4449 2020 : READ_INT_FIELD(scan.plan.disabled_nodes);
4450 2020 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4451 2020 : READ_FLOAT_FIELD(scan.plan.total_cost);
4452 2020 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4453 2020 : READ_INT_FIELD(scan.plan.plan_width);
4454 2020 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4455 2020 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4456 2020 : READ_BOOL_FIELD(scan.plan.async_capable);
4457 2020 : READ_INT_FIELD(scan.plan.plan_node_id);
4458 2020 : READ_NODE_FIELD(scan.plan.targetlist);
4459 2020 : READ_NODE_FIELD(scan.plan.qual);
4460 2020 : READ_NODE_FIELD(scan.plan.lefttree);
4461 2020 : READ_NODE_FIELD(scan.plan.righttree);
4462 2020 : READ_NODE_FIELD(scan.plan.initPlan);
4463 2020 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4464 2020 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4465 2020 : READ_UINT_FIELD(scan.scanrelid);
4466 2020 : READ_ENUM_FIELD(operation, CmdType);
4467 2020 : READ_UINT_FIELD(resultRelation);
4468 2020 : READ_OID_FIELD(checkAsUser);
4469 2020 : READ_OID_FIELD(fs_server);
4470 2020 : READ_NODE_FIELD(fdw_exprs);
4471 2020 : READ_NODE_FIELD(fdw_private);
4472 2020 : READ_NODE_FIELD(fdw_scan_tlist);
4473 2020 : READ_NODE_FIELD(fdw_recheck_quals);
4474 2020 : READ_BITMAPSET_FIELD(fs_relids);
4475 2020 : READ_BITMAPSET_FIELD(fs_base_relids);
4476 2020 : READ_BOOL_FIELD(fsSystemCol);
4477 :
4478 2020 : READ_DONE();
4479 : }
4480 :
4481 : static CustomScan *
4482 0 : _readCustomScan(void)
4483 : {
4484 0 : READ_LOCALS(CustomScan);
4485 :
4486 0 : READ_INT_FIELD(scan.plan.disabled_nodes);
4487 0 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4488 0 : READ_FLOAT_FIELD(scan.plan.total_cost);
4489 0 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4490 0 : READ_INT_FIELD(scan.plan.plan_width);
4491 0 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4492 0 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4493 0 : READ_BOOL_FIELD(scan.plan.async_capable);
4494 0 : READ_INT_FIELD(scan.plan.plan_node_id);
4495 0 : READ_NODE_FIELD(scan.plan.targetlist);
4496 0 : READ_NODE_FIELD(scan.plan.qual);
4497 0 : READ_NODE_FIELD(scan.plan.lefttree);
4498 0 : READ_NODE_FIELD(scan.plan.righttree);
4499 0 : READ_NODE_FIELD(scan.plan.initPlan);
4500 0 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4501 0 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4502 0 : READ_UINT_FIELD(scan.scanrelid);
4503 0 : READ_UINT_FIELD(flags);
4504 0 : READ_NODE_FIELD(custom_plans);
4505 0 : READ_NODE_FIELD(custom_exprs);
4506 0 : READ_NODE_FIELD(custom_private);
4507 0 : READ_NODE_FIELD(custom_scan_tlist);
4508 0 : READ_BITMAPSET_FIELD(custom_relids);
4509 :
4510 : {
4511 : /* Lookup CustomScanMethods by CustomName */
4512 : char *custom_name;
4513 : const CustomScanMethods *methods;
4514 0 : token = pg_strtok(&length); /* skip methods: */
4515 0 : token = pg_strtok(&length); /* CustomName */
4516 0 : custom_name = nullable_string(token, length);
4517 0 : methods = GetCustomScanMethods(custom_name, false);
4518 0 : local_node->methods = methods;
4519 : }
4520 :
4521 0 : READ_DONE();
4522 : }
4523 :
4524 : static NestLoop *
4525 91540 : _readNestLoop(void)
4526 : {
4527 91540 : READ_LOCALS(NestLoop);
4528 :
4529 91540 : READ_INT_FIELD(join.plan.disabled_nodes);
4530 91540 : READ_FLOAT_FIELD(join.plan.startup_cost);
4531 91540 : READ_FLOAT_FIELD(join.plan.total_cost);
4532 91540 : READ_FLOAT_FIELD(join.plan.plan_rows);
4533 91540 : READ_INT_FIELD(join.plan.plan_width);
4534 91540 : READ_BOOL_FIELD(join.plan.parallel_aware);
4535 91540 : READ_BOOL_FIELD(join.plan.parallel_safe);
4536 91540 : READ_BOOL_FIELD(join.plan.async_capable);
4537 91540 : READ_INT_FIELD(join.plan.plan_node_id);
4538 91540 : READ_NODE_FIELD(join.plan.targetlist);
4539 91540 : READ_NODE_FIELD(join.plan.qual);
4540 91540 : READ_NODE_FIELD(join.plan.lefttree);
4541 91540 : READ_NODE_FIELD(join.plan.righttree);
4542 91540 : READ_NODE_FIELD(join.plan.initPlan);
4543 91540 : READ_BITMAPSET_FIELD(join.plan.extParam);
4544 91540 : READ_BITMAPSET_FIELD(join.plan.allParam);
4545 91540 : READ_ENUM_FIELD(join.jointype, JoinType);
4546 91540 : READ_BOOL_FIELD(join.inner_unique);
4547 91540 : READ_NODE_FIELD(join.joinqual);
4548 91540 : READ_NODE_FIELD(nestParams);
4549 :
4550 91540 : READ_DONE();
4551 : }
4552 :
4553 : static NestLoopParam *
4554 49774 : _readNestLoopParam(void)
4555 : {
4556 49774 : READ_LOCALS(NestLoopParam);
4557 :
4558 49774 : READ_INT_FIELD(paramno);
4559 49774 : READ_NODE_FIELD(paramval);
4560 :
4561 49774 : READ_DONE();
4562 : }
4563 :
4564 : static MergeJoin *
4565 7626 : _readMergeJoin(void)
4566 : {
4567 7626 : READ_LOCALS(MergeJoin);
4568 :
4569 7626 : READ_INT_FIELD(join.plan.disabled_nodes);
4570 7626 : READ_FLOAT_FIELD(join.plan.startup_cost);
4571 7626 : READ_FLOAT_FIELD(join.plan.total_cost);
4572 7626 : READ_FLOAT_FIELD(join.plan.plan_rows);
4573 7626 : READ_INT_FIELD(join.plan.plan_width);
4574 7626 : READ_BOOL_FIELD(join.plan.parallel_aware);
4575 7626 : READ_BOOL_FIELD(join.plan.parallel_safe);
4576 7626 : READ_BOOL_FIELD(join.plan.async_capable);
4577 7626 : READ_INT_FIELD(join.plan.plan_node_id);
4578 7626 : READ_NODE_FIELD(join.plan.targetlist);
4579 7626 : READ_NODE_FIELD(join.plan.qual);
4580 7626 : READ_NODE_FIELD(join.plan.lefttree);
4581 7626 : READ_NODE_FIELD(join.plan.righttree);
4582 7626 : READ_NODE_FIELD(join.plan.initPlan);
4583 7626 : READ_BITMAPSET_FIELD(join.plan.extParam);
4584 7626 : READ_BITMAPSET_FIELD(join.plan.allParam);
4585 7626 : READ_ENUM_FIELD(join.jointype, JoinType);
4586 7626 : READ_BOOL_FIELD(join.inner_unique);
4587 7626 : READ_NODE_FIELD(join.joinqual);
4588 7626 : READ_BOOL_FIELD(skip_mark_restore);
4589 7626 : READ_NODE_FIELD(mergeclauses);
4590 7626 : READ_OID_ARRAY(mergeFamilies, list_length(local_node->mergeclauses));
4591 7626 : READ_OID_ARRAY(mergeCollations, list_length(local_node->mergeclauses));
4592 7626 : READ_BOOL_ARRAY(mergeReversals, list_length(local_node->mergeclauses));
4593 7626 : READ_BOOL_ARRAY(mergeNullsFirst, list_length(local_node->mergeclauses));
4594 :
4595 7626 : READ_DONE();
4596 : }
4597 :
4598 : static HashJoin *
4599 33244 : _readHashJoin(void)
4600 : {
4601 33244 : READ_LOCALS(HashJoin);
4602 :
4603 33244 : READ_INT_FIELD(join.plan.disabled_nodes);
4604 33244 : READ_FLOAT_FIELD(join.plan.startup_cost);
4605 33244 : READ_FLOAT_FIELD(join.plan.total_cost);
4606 33244 : READ_FLOAT_FIELD(join.plan.plan_rows);
4607 33244 : READ_INT_FIELD(join.plan.plan_width);
4608 33244 : READ_BOOL_FIELD(join.plan.parallel_aware);
4609 33244 : READ_BOOL_FIELD(join.plan.parallel_safe);
4610 33244 : READ_BOOL_FIELD(join.plan.async_capable);
4611 33244 : READ_INT_FIELD(join.plan.plan_node_id);
4612 33244 : READ_NODE_FIELD(join.plan.targetlist);
4613 33244 : READ_NODE_FIELD(join.plan.qual);
4614 33244 : READ_NODE_FIELD(join.plan.lefttree);
4615 33244 : READ_NODE_FIELD(join.plan.righttree);
4616 33244 : READ_NODE_FIELD(join.plan.initPlan);
4617 33244 : READ_BITMAPSET_FIELD(join.plan.extParam);
4618 33244 : READ_BITMAPSET_FIELD(join.plan.allParam);
4619 33244 : READ_ENUM_FIELD(join.jointype, JoinType);
4620 33244 : READ_BOOL_FIELD(join.inner_unique);
4621 33244 : READ_NODE_FIELD(join.joinqual);
4622 33244 : READ_NODE_FIELD(hashclauses);
4623 33244 : READ_NODE_FIELD(hashoperators);
4624 33244 : READ_NODE_FIELD(hashcollations);
4625 33244 : READ_NODE_FIELD(hashkeys);
4626 :
4627 33244 : READ_DONE();
4628 : }
4629 :
4630 : static Material *
4631 4544 : _readMaterial(void)
4632 : {
4633 4544 : READ_LOCALS(Material);
4634 :
4635 4544 : READ_INT_FIELD(plan.disabled_nodes);
4636 4544 : READ_FLOAT_FIELD(plan.startup_cost);
4637 4544 : READ_FLOAT_FIELD(plan.total_cost);
4638 4544 : READ_FLOAT_FIELD(plan.plan_rows);
4639 4544 : READ_INT_FIELD(plan.plan_width);
4640 4544 : READ_BOOL_FIELD(plan.parallel_aware);
4641 4544 : READ_BOOL_FIELD(plan.parallel_safe);
4642 4544 : READ_BOOL_FIELD(plan.async_capable);
4643 4544 : READ_INT_FIELD(plan.plan_node_id);
4644 4544 : READ_NODE_FIELD(plan.targetlist);
4645 4544 : READ_NODE_FIELD(plan.qual);
4646 4544 : READ_NODE_FIELD(plan.lefttree);
4647 4544 : READ_NODE_FIELD(plan.righttree);
4648 4544 : READ_NODE_FIELD(plan.initPlan);
4649 4544 : READ_BITMAPSET_FIELD(plan.extParam);
4650 4544 : READ_BITMAPSET_FIELD(plan.allParam);
4651 :
4652 4544 : READ_DONE();
4653 : }
4654 :
4655 : static Memoize *
4656 1998 : _readMemoize(void)
4657 : {
4658 1998 : READ_LOCALS(Memoize);
4659 :
4660 1998 : READ_INT_FIELD(plan.disabled_nodes);
4661 1998 : READ_FLOAT_FIELD(plan.startup_cost);
4662 1998 : READ_FLOAT_FIELD(plan.total_cost);
4663 1998 : READ_FLOAT_FIELD(plan.plan_rows);
4664 1998 : READ_INT_FIELD(plan.plan_width);
4665 1998 : READ_BOOL_FIELD(plan.parallel_aware);
4666 1998 : READ_BOOL_FIELD(plan.parallel_safe);
4667 1998 : READ_BOOL_FIELD(plan.async_capable);
4668 1998 : READ_INT_FIELD(plan.plan_node_id);
4669 1998 : READ_NODE_FIELD(plan.targetlist);
4670 1998 : READ_NODE_FIELD(plan.qual);
4671 1998 : READ_NODE_FIELD(plan.lefttree);
4672 1998 : READ_NODE_FIELD(plan.righttree);
4673 1998 : READ_NODE_FIELD(plan.initPlan);
4674 1998 : READ_BITMAPSET_FIELD(plan.extParam);
4675 1998 : READ_BITMAPSET_FIELD(plan.allParam);
4676 1998 : READ_INT_FIELD(numKeys);
4677 1998 : READ_OID_ARRAY(hashOperators, local_node->numKeys);
4678 1998 : READ_OID_ARRAY(collations, local_node->numKeys);
4679 1998 : READ_NODE_FIELD(param_exprs);
4680 1998 : READ_BOOL_FIELD(singlerow);
4681 1998 : READ_BOOL_FIELD(binary_mode);
4682 1998 : READ_UINT_FIELD(est_entries);
4683 1998 : READ_BITMAPSET_FIELD(keyparamids);
4684 1998 : READ_FLOAT_FIELD(est_calls);
4685 1998 : READ_FLOAT_FIELD(est_unique_keys);
4686 1998 : READ_FLOAT_FIELD(est_hit_ratio);
4687 :
4688 1998 : READ_DONE();
4689 : }
4690 :
4691 : static Sort *
4692 78764 : _readSort(void)
4693 : {
4694 78764 : READ_LOCALS(Sort);
4695 :
4696 78764 : READ_INT_FIELD(plan.disabled_nodes);
4697 78764 : READ_FLOAT_FIELD(plan.startup_cost);
4698 78764 : READ_FLOAT_FIELD(plan.total_cost);
4699 78764 : READ_FLOAT_FIELD(plan.plan_rows);
4700 78764 : READ_INT_FIELD(plan.plan_width);
4701 78764 : READ_BOOL_FIELD(plan.parallel_aware);
4702 78764 : READ_BOOL_FIELD(plan.parallel_safe);
4703 78764 : READ_BOOL_FIELD(plan.async_capable);
4704 78764 : READ_INT_FIELD(plan.plan_node_id);
4705 78764 : READ_NODE_FIELD(plan.targetlist);
4706 78764 : READ_NODE_FIELD(plan.qual);
4707 78764 : READ_NODE_FIELD(plan.lefttree);
4708 78764 : READ_NODE_FIELD(plan.righttree);
4709 78764 : READ_NODE_FIELD(plan.initPlan);
4710 78764 : READ_BITMAPSET_FIELD(plan.extParam);
4711 78764 : READ_BITMAPSET_FIELD(plan.allParam);
4712 78764 : READ_INT_FIELD(numCols);
4713 78764 : READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
4714 78764 : READ_OID_ARRAY(sortOperators, local_node->numCols);
4715 78764 : READ_OID_ARRAY(collations, local_node->numCols);
4716 78764 : READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
4717 :
4718 78764 : READ_DONE();
4719 : }
4720 :
4721 : static IncrementalSort *
4722 992 : _readIncrementalSort(void)
4723 : {
4724 992 : READ_LOCALS(IncrementalSort);
4725 :
4726 992 : READ_INT_FIELD(sort.plan.disabled_nodes);
4727 992 : READ_FLOAT_FIELD(sort.plan.startup_cost);
4728 992 : READ_FLOAT_FIELD(sort.plan.total_cost);
4729 992 : READ_FLOAT_FIELD(sort.plan.plan_rows);
4730 992 : READ_INT_FIELD(sort.plan.plan_width);
4731 992 : READ_BOOL_FIELD(sort.plan.parallel_aware);
4732 992 : READ_BOOL_FIELD(sort.plan.parallel_safe);
4733 992 : READ_BOOL_FIELD(sort.plan.async_capable);
4734 992 : READ_INT_FIELD(sort.plan.plan_node_id);
4735 992 : READ_NODE_FIELD(sort.plan.targetlist);
4736 992 : READ_NODE_FIELD(sort.plan.qual);
4737 992 : READ_NODE_FIELD(sort.plan.lefttree);
4738 992 : READ_NODE_FIELD(sort.plan.righttree);
4739 992 : READ_NODE_FIELD(sort.plan.initPlan);
4740 992 : READ_BITMAPSET_FIELD(sort.plan.extParam);
4741 992 : READ_BITMAPSET_FIELD(sort.plan.allParam);
4742 992 : READ_INT_FIELD(sort.numCols);
4743 992 : READ_ATTRNUMBER_ARRAY(sort.sortColIdx, local_node->sort.numCols);
4744 992 : READ_OID_ARRAY(sort.sortOperators, local_node->sort.numCols);
4745 992 : READ_OID_ARRAY(sort.collations, local_node->sort.numCols);
4746 992 : READ_BOOL_ARRAY(sort.nullsFirst, local_node->sort.numCols);
4747 992 : READ_INT_FIELD(nPresortedCols);
4748 :
4749 992 : READ_DONE();
4750 : }
4751 :
4752 : static Group *
4753 246 : _readGroup(void)
4754 : {
4755 246 : READ_LOCALS(Group);
4756 :
4757 246 : READ_INT_FIELD(plan.disabled_nodes);
4758 246 : READ_FLOAT_FIELD(plan.startup_cost);
4759 246 : READ_FLOAT_FIELD(plan.total_cost);
4760 246 : READ_FLOAT_FIELD(plan.plan_rows);
4761 246 : READ_INT_FIELD(plan.plan_width);
4762 246 : READ_BOOL_FIELD(plan.parallel_aware);
4763 246 : READ_BOOL_FIELD(plan.parallel_safe);
4764 246 : READ_BOOL_FIELD(plan.async_capable);
4765 246 : READ_INT_FIELD(plan.plan_node_id);
4766 246 : READ_NODE_FIELD(plan.targetlist);
4767 246 : READ_NODE_FIELD(plan.qual);
4768 246 : READ_NODE_FIELD(plan.lefttree);
4769 246 : READ_NODE_FIELD(plan.righttree);
4770 246 : READ_NODE_FIELD(plan.initPlan);
4771 246 : READ_BITMAPSET_FIELD(plan.extParam);
4772 246 : READ_BITMAPSET_FIELD(plan.allParam);
4773 246 : READ_INT_FIELD(numCols);
4774 246 : READ_ATTRNUMBER_ARRAY(grpColIdx, local_node->numCols);
4775 246 : READ_OID_ARRAY(grpOperators, local_node->numCols);
4776 246 : READ_OID_ARRAY(grpCollations, local_node->numCols);
4777 :
4778 246 : READ_DONE();
4779 : }
4780 :
4781 : static Agg *
4782 43668 : _readAgg(void)
4783 : {
4784 43668 : READ_LOCALS(Agg);
4785 :
4786 43668 : READ_INT_FIELD(plan.disabled_nodes);
4787 43668 : READ_FLOAT_FIELD(plan.startup_cost);
4788 43668 : READ_FLOAT_FIELD(plan.total_cost);
4789 43668 : READ_FLOAT_FIELD(plan.plan_rows);
4790 43668 : READ_INT_FIELD(plan.plan_width);
4791 43668 : READ_BOOL_FIELD(plan.parallel_aware);
4792 43668 : READ_BOOL_FIELD(plan.parallel_safe);
4793 43668 : READ_BOOL_FIELD(plan.async_capable);
4794 43668 : READ_INT_FIELD(plan.plan_node_id);
4795 43668 : READ_NODE_FIELD(plan.targetlist);
4796 43668 : READ_NODE_FIELD(plan.qual);
4797 43668 : READ_NODE_FIELD(plan.lefttree);
4798 43668 : READ_NODE_FIELD(plan.righttree);
4799 43668 : READ_NODE_FIELD(plan.initPlan);
4800 43668 : READ_BITMAPSET_FIELD(plan.extParam);
4801 43668 : READ_BITMAPSET_FIELD(plan.allParam);
4802 43668 : READ_ENUM_FIELD(aggstrategy, AggStrategy);
4803 43668 : READ_ENUM_FIELD(aggsplit, AggSplit);
4804 43668 : READ_INT_FIELD(numCols);
4805 43668 : READ_ATTRNUMBER_ARRAY(grpColIdx, local_node->numCols);
4806 43668 : READ_OID_ARRAY(grpOperators, local_node->numCols);
4807 43668 : READ_OID_ARRAY(grpCollations, local_node->numCols);
4808 43668 : READ_LONG_FIELD(numGroups);
4809 43668 : READ_UINT64_FIELD(transitionSpace);
4810 43668 : READ_BITMAPSET_FIELD(aggParams);
4811 43668 : READ_NODE_FIELD(groupingSets);
4812 43668 : READ_NODE_FIELD(chain);
4813 :
4814 43668 : READ_DONE();
4815 : }
4816 :
4817 : static WindowAgg *
4818 2546 : _readWindowAgg(void)
4819 : {
4820 2546 : READ_LOCALS(WindowAgg);
4821 :
4822 2546 : READ_INT_FIELD(plan.disabled_nodes);
4823 2546 : READ_FLOAT_FIELD(plan.startup_cost);
4824 2546 : READ_FLOAT_FIELD(plan.total_cost);
4825 2546 : READ_FLOAT_FIELD(plan.plan_rows);
4826 2546 : READ_INT_FIELD(plan.plan_width);
4827 2546 : READ_BOOL_FIELD(plan.parallel_aware);
4828 2546 : READ_BOOL_FIELD(plan.parallel_safe);
4829 2546 : READ_BOOL_FIELD(plan.async_capable);
4830 2546 : READ_INT_FIELD(plan.plan_node_id);
4831 2546 : READ_NODE_FIELD(plan.targetlist);
4832 2546 : READ_NODE_FIELD(plan.qual);
4833 2546 : READ_NODE_FIELD(plan.lefttree);
4834 2546 : READ_NODE_FIELD(plan.righttree);
4835 2546 : READ_NODE_FIELD(plan.initPlan);
4836 2546 : READ_BITMAPSET_FIELD(plan.extParam);
4837 2546 : READ_BITMAPSET_FIELD(plan.allParam);
4838 2546 : READ_STRING_FIELD(winname);
4839 2546 : READ_UINT_FIELD(winref);
4840 2546 : READ_INT_FIELD(partNumCols);
4841 2546 : READ_ATTRNUMBER_ARRAY(partColIdx, local_node->partNumCols);
4842 2546 : READ_OID_ARRAY(partOperators, local_node->partNumCols);
4843 2546 : READ_OID_ARRAY(partCollations, local_node->partNumCols);
4844 2546 : READ_INT_FIELD(ordNumCols);
4845 2546 : READ_ATTRNUMBER_ARRAY(ordColIdx, local_node->ordNumCols);
4846 2546 : READ_OID_ARRAY(ordOperators, local_node->ordNumCols);
4847 2546 : READ_OID_ARRAY(ordCollations, local_node->ordNumCols);
4848 2546 : READ_INT_FIELD(frameOptions);
4849 2546 : READ_NODE_FIELD(startOffset);
4850 2546 : READ_NODE_FIELD(endOffset);
4851 2546 : READ_NODE_FIELD(runCondition);
4852 2546 : READ_NODE_FIELD(runConditionOrig);
4853 2546 : READ_OID_FIELD(startInRangeFunc);
4854 2546 : READ_OID_FIELD(endInRangeFunc);
4855 2546 : READ_OID_FIELD(inRangeColl);
4856 2546 : READ_BOOL_FIELD(inRangeAsc);
4857 2546 : READ_BOOL_FIELD(inRangeNullsFirst);
4858 2546 : READ_BOOL_FIELD(topWindow);
4859 :
4860 2546 : READ_DONE();
4861 : }
4862 :
4863 : static Unique *
4864 5632 : _readUnique(void)
4865 : {
4866 5632 : READ_LOCALS(Unique);
4867 :
4868 5632 : READ_INT_FIELD(plan.disabled_nodes);
4869 5632 : READ_FLOAT_FIELD(plan.startup_cost);
4870 5632 : READ_FLOAT_FIELD(plan.total_cost);
4871 5632 : READ_FLOAT_FIELD(plan.plan_rows);
4872 5632 : READ_INT_FIELD(plan.plan_width);
4873 5632 : READ_BOOL_FIELD(plan.parallel_aware);
4874 5632 : READ_BOOL_FIELD(plan.parallel_safe);
4875 5632 : READ_BOOL_FIELD(plan.async_capable);
4876 5632 : READ_INT_FIELD(plan.plan_node_id);
4877 5632 : READ_NODE_FIELD(plan.targetlist);
4878 5632 : READ_NODE_FIELD(plan.qual);
4879 5632 : READ_NODE_FIELD(plan.lefttree);
4880 5632 : READ_NODE_FIELD(plan.righttree);
4881 5632 : READ_NODE_FIELD(plan.initPlan);
4882 5632 : READ_BITMAPSET_FIELD(plan.extParam);
4883 5632 : READ_BITMAPSET_FIELD(plan.allParam);
4884 5632 : READ_INT_FIELD(numCols);
4885 5632 : READ_ATTRNUMBER_ARRAY(uniqColIdx, local_node->numCols);
4886 5632 : READ_OID_ARRAY(uniqOperators, local_node->numCols);
4887 5632 : READ_OID_ARRAY(uniqCollations, local_node->numCols);
4888 :
4889 5632 : READ_DONE();
4890 : }
4891 :
4892 : static Gather *
4893 1080 : _readGather(void)
4894 : {
4895 1080 : READ_LOCALS(Gather);
4896 :
4897 1080 : READ_INT_FIELD(plan.disabled_nodes);
4898 1080 : READ_FLOAT_FIELD(plan.startup_cost);
4899 1080 : READ_FLOAT_FIELD(plan.total_cost);
4900 1080 : READ_FLOAT_FIELD(plan.plan_rows);
4901 1080 : READ_INT_FIELD(plan.plan_width);
4902 1080 : READ_BOOL_FIELD(plan.parallel_aware);
4903 1080 : READ_BOOL_FIELD(plan.parallel_safe);
4904 1080 : READ_BOOL_FIELD(plan.async_capable);
4905 1080 : READ_INT_FIELD(plan.plan_node_id);
4906 1080 : READ_NODE_FIELD(plan.targetlist);
4907 1080 : READ_NODE_FIELD(plan.qual);
4908 1080 : READ_NODE_FIELD(plan.lefttree);
4909 1080 : READ_NODE_FIELD(plan.righttree);
4910 1080 : READ_NODE_FIELD(plan.initPlan);
4911 1080 : READ_BITMAPSET_FIELD(plan.extParam);
4912 1080 : READ_BITMAPSET_FIELD(plan.allParam);
4913 1080 : READ_INT_FIELD(num_workers);
4914 1080 : READ_INT_FIELD(rescan_param);
4915 1080 : READ_BOOL_FIELD(single_copy);
4916 1080 : READ_BOOL_FIELD(invisible);
4917 1080 : READ_BITMAPSET_FIELD(initParam);
4918 :
4919 1080 : READ_DONE();
4920 : }
4921 :
4922 : static GatherMerge *
4923 342 : _readGatherMerge(void)
4924 : {
4925 342 : READ_LOCALS(GatherMerge);
4926 :
4927 342 : READ_INT_FIELD(plan.disabled_nodes);
4928 342 : READ_FLOAT_FIELD(plan.startup_cost);
4929 342 : READ_FLOAT_FIELD(plan.total_cost);
4930 342 : READ_FLOAT_FIELD(plan.plan_rows);
4931 342 : READ_INT_FIELD(plan.plan_width);
4932 342 : READ_BOOL_FIELD(plan.parallel_aware);
4933 342 : READ_BOOL_FIELD(plan.parallel_safe);
4934 342 : READ_BOOL_FIELD(plan.async_capable);
4935 342 : READ_INT_FIELD(plan.plan_node_id);
4936 342 : READ_NODE_FIELD(plan.targetlist);
4937 342 : READ_NODE_FIELD(plan.qual);
4938 342 : READ_NODE_FIELD(plan.lefttree);
4939 342 : READ_NODE_FIELD(plan.righttree);
4940 342 : READ_NODE_FIELD(plan.initPlan);
4941 342 : READ_BITMAPSET_FIELD(plan.extParam);
4942 342 : READ_BITMAPSET_FIELD(plan.allParam);
4943 342 : READ_INT_FIELD(num_workers);
4944 342 : READ_INT_FIELD(rescan_param);
4945 342 : READ_INT_FIELD(numCols);
4946 342 : READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
4947 342 : READ_OID_ARRAY(sortOperators, local_node->numCols);
4948 342 : READ_OID_ARRAY(collations, local_node->numCols);
4949 342 : READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
4950 342 : READ_BITMAPSET_FIELD(initParam);
4951 :
4952 342 : READ_DONE();
4953 : }
4954 :
4955 : static Hash *
4956 33244 : _readHash(void)
4957 : {
4958 33244 : READ_LOCALS(Hash);
4959 :
4960 33244 : READ_INT_FIELD(plan.disabled_nodes);
4961 33244 : READ_FLOAT_FIELD(plan.startup_cost);
4962 33244 : READ_FLOAT_FIELD(plan.total_cost);
4963 33244 : READ_FLOAT_FIELD(plan.plan_rows);
4964 33244 : READ_INT_FIELD(plan.plan_width);
4965 33244 : READ_BOOL_FIELD(plan.parallel_aware);
4966 33244 : READ_BOOL_FIELD(plan.parallel_safe);
4967 33244 : READ_BOOL_FIELD(plan.async_capable);
4968 33244 : READ_INT_FIELD(plan.plan_node_id);
4969 33244 : READ_NODE_FIELD(plan.targetlist);
4970 33244 : READ_NODE_FIELD(plan.qual);
4971 33244 : READ_NODE_FIELD(plan.lefttree);
4972 33244 : READ_NODE_FIELD(plan.righttree);
4973 33244 : READ_NODE_FIELD(plan.initPlan);
4974 33244 : READ_BITMAPSET_FIELD(plan.extParam);
4975 33244 : READ_BITMAPSET_FIELD(plan.allParam);
4976 33244 : READ_NODE_FIELD(hashkeys);
4977 33244 : READ_OID_FIELD(skewTable);
4978 33244 : READ_INT_FIELD(skewColumn);
4979 33244 : READ_BOOL_FIELD(skewInherit);
4980 33244 : READ_FLOAT_FIELD(rows_total);
4981 :
4982 33244 : READ_DONE();
4983 : }
4984 :
4985 : static SetOp *
4986 662 : _readSetOp(void)
4987 : {
4988 662 : READ_LOCALS(SetOp);
4989 :
4990 662 : READ_INT_FIELD(plan.disabled_nodes);
4991 662 : READ_FLOAT_FIELD(plan.startup_cost);
4992 662 : READ_FLOAT_FIELD(plan.total_cost);
4993 662 : READ_FLOAT_FIELD(plan.plan_rows);
4994 662 : READ_INT_FIELD(plan.plan_width);
4995 662 : READ_BOOL_FIELD(plan.parallel_aware);
4996 662 : READ_BOOL_FIELD(plan.parallel_safe);
4997 662 : READ_BOOL_FIELD(plan.async_capable);
4998 662 : READ_INT_FIELD(plan.plan_node_id);
4999 662 : READ_NODE_FIELD(plan.targetlist);
5000 662 : READ_NODE_FIELD(plan.qual);
5001 662 : READ_NODE_FIELD(plan.lefttree);
5002 662 : READ_NODE_FIELD(plan.righttree);
5003 662 : READ_NODE_FIELD(plan.initPlan);
5004 662 : READ_BITMAPSET_FIELD(plan.extParam);
5005 662 : READ_BITMAPSET_FIELD(plan.allParam);
5006 662 : READ_ENUM_FIELD(cmd, SetOpCmd);
5007 662 : READ_ENUM_FIELD(strategy, SetOpStrategy);
5008 662 : READ_INT_FIELD(numCols);
5009 662 : READ_ATTRNUMBER_ARRAY(cmpColIdx, local_node->numCols);
5010 662 : READ_OID_ARRAY(cmpOperators, local_node->numCols);
5011 662 : READ_OID_ARRAY(cmpCollations, local_node->numCols);
5012 662 : READ_BOOL_ARRAY(cmpNullsFirst, local_node->numCols);
5013 662 : READ_LONG_FIELD(numGroups);
5014 :
5015 662 : READ_DONE();
5016 : }
5017 :
5018 : static LockRows *
5019 7706 : _readLockRows(void)
5020 : {
5021 7706 : READ_LOCALS(LockRows);
5022 :
5023 7706 : READ_INT_FIELD(plan.disabled_nodes);
5024 7706 : READ_FLOAT_FIELD(plan.startup_cost);
5025 7706 : READ_FLOAT_FIELD(plan.total_cost);
5026 7706 : READ_FLOAT_FIELD(plan.plan_rows);
5027 7706 : READ_INT_FIELD(plan.plan_width);
5028 7706 : READ_BOOL_FIELD(plan.parallel_aware);
5029 7706 : READ_BOOL_FIELD(plan.parallel_safe);
5030 7706 : READ_BOOL_FIELD(plan.async_capable);
5031 7706 : READ_INT_FIELD(plan.plan_node_id);
5032 7706 : READ_NODE_FIELD(plan.targetlist);
5033 7706 : READ_NODE_FIELD(plan.qual);
5034 7706 : READ_NODE_FIELD(plan.lefttree);
5035 7706 : READ_NODE_FIELD(plan.righttree);
5036 7706 : READ_NODE_FIELD(plan.initPlan);
5037 7706 : READ_BITMAPSET_FIELD(plan.extParam);
5038 7706 : READ_BITMAPSET_FIELD(plan.allParam);
5039 7706 : READ_NODE_FIELD(rowMarks);
5040 7706 : READ_INT_FIELD(epqParam);
5041 :
5042 7706 : READ_DONE();
5043 : }
5044 :
5045 : static Limit *
5046 4814 : _readLimit(void)
5047 : {
5048 4814 : READ_LOCALS(Limit);
5049 :
5050 4814 : READ_INT_FIELD(plan.disabled_nodes);
5051 4814 : READ_FLOAT_FIELD(plan.startup_cost);
5052 4814 : READ_FLOAT_FIELD(plan.total_cost);
5053 4814 : READ_FLOAT_FIELD(plan.plan_rows);
5054 4814 : READ_INT_FIELD(plan.plan_width);
5055 4814 : READ_BOOL_FIELD(plan.parallel_aware);
5056 4814 : READ_BOOL_FIELD(plan.parallel_safe);
5057 4814 : READ_BOOL_FIELD(plan.async_capable);
5058 4814 : READ_INT_FIELD(plan.plan_node_id);
5059 4814 : READ_NODE_FIELD(plan.targetlist);
5060 4814 : READ_NODE_FIELD(plan.qual);
5061 4814 : READ_NODE_FIELD(plan.lefttree);
5062 4814 : READ_NODE_FIELD(plan.righttree);
5063 4814 : READ_NODE_FIELD(plan.initPlan);
5064 4814 : READ_BITMAPSET_FIELD(plan.extParam);
5065 4814 : READ_BITMAPSET_FIELD(plan.allParam);
5066 4814 : READ_NODE_FIELD(limitOffset);
5067 4814 : READ_NODE_FIELD(limitCount);
5068 4814 : READ_ENUM_FIELD(limitOption, LimitOption);
5069 4814 : READ_INT_FIELD(uniqNumCols);
5070 4814 : READ_ATTRNUMBER_ARRAY(uniqColIdx, local_node->uniqNumCols);
5071 4814 : READ_OID_ARRAY(uniqOperators, local_node->uniqNumCols);
5072 4814 : READ_OID_ARRAY(uniqCollations, local_node->uniqNumCols);
5073 :
5074 4814 : READ_DONE();
5075 : }
5076 :
5077 : static PlanRowMark *
5078 25928 : _readPlanRowMark(void)
5079 : {
5080 25928 : READ_LOCALS(PlanRowMark);
5081 :
5082 25928 : READ_UINT_FIELD(rti);
5083 25928 : READ_UINT_FIELD(prti);
5084 25928 : READ_UINT_FIELD(rowmarkId);
5085 25928 : READ_ENUM_FIELD(markType, RowMarkType);
5086 25928 : READ_INT_FIELD(allMarkTypes);
5087 25928 : READ_ENUM_FIELD(strength, LockClauseStrength);
5088 25928 : READ_ENUM_FIELD(waitPolicy, LockWaitPolicy);
5089 25928 : READ_BOOL_FIELD(isParent);
5090 :
5091 25928 : READ_DONE();
5092 : }
5093 :
5094 : static PartitionPruneInfo *
5095 682 : _readPartitionPruneInfo(void)
5096 : {
5097 682 : READ_LOCALS(PartitionPruneInfo);
5098 :
5099 682 : READ_BITMAPSET_FIELD(relids);
5100 682 : READ_NODE_FIELD(prune_infos);
5101 682 : READ_BITMAPSET_FIELD(other_subplans);
5102 :
5103 682 : READ_DONE();
5104 : }
5105 :
5106 : static PartitionedRelPruneInfo *
5107 1378 : _readPartitionedRelPruneInfo(void)
5108 : {
5109 1378 : READ_LOCALS(PartitionedRelPruneInfo);
5110 :
5111 1378 : READ_UINT_FIELD(rtindex);
5112 1378 : READ_BITMAPSET_FIELD(present_parts);
5113 1378 : READ_INT_FIELD(nparts);
5114 1378 : READ_INT_ARRAY(subplan_map, local_node->nparts);
5115 1378 : READ_INT_ARRAY(subpart_map, local_node->nparts);
5116 1378 : READ_INT_ARRAY(leafpart_rti_map, local_node->nparts);
5117 1378 : READ_OID_ARRAY(relid_map, local_node->nparts);
5118 1378 : READ_NODE_FIELD(initial_pruning_steps);
5119 1378 : READ_NODE_FIELD(exec_pruning_steps);
5120 1378 : READ_BITMAPSET_FIELD(execparamids);
5121 :
5122 1378 : READ_DONE();
5123 : }
5124 :
5125 : static PartitionPruneStepOp *
5126 1154 : _readPartitionPruneStepOp(void)
5127 : {
5128 1154 : READ_LOCALS(PartitionPruneStepOp);
5129 :
5130 1154 : READ_INT_FIELD(step.step_id);
5131 1154 : READ_INT_FIELD(opstrategy);
5132 1154 : READ_NODE_FIELD(exprs);
5133 1154 : READ_NODE_FIELD(cmpfns);
5134 1154 : READ_BITMAPSET_FIELD(nullkeys);
5135 :
5136 1154 : READ_DONE();
5137 : }
5138 :
5139 : static PartitionPruneStepCombine *
5140 220 : _readPartitionPruneStepCombine(void)
5141 : {
5142 220 : READ_LOCALS(PartitionPruneStepCombine);
5143 :
5144 220 : READ_INT_FIELD(step.step_id);
5145 220 : READ_ENUM_FIELD(combineOp, PartitionPruneCombineOp);
5146 220 : READ_NODE_FIELD(source_stepids);
5147 :
5148 220 : READ_DONE();
5149 : }
5150 :
5151 : static PlanInvalItem *
5152 58654 : _readPlanInvalItem(void)
5153 : {
5154 58654 : READ_LOCALS(PlanInvalItem);
5155 :
5156 58654 : READ_INT_FIELD(cacheId);
5157 58654 : READ_UINT_FIELD(hashValue);
5158 :
5159 58654 : READ_DONE();
5160 : }
|