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