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 : 1926701 : _readAlias(void)
44 : : {
45 : 1926701 : READ_LOCALS(Alias);
46 : :
47 : 1926701 : READ_STRING_FIELD(aliasname);
48 : 1926701 : READ_NODE_FIELD(colnames);
49 : :
50 : 1926701 : READ_DONE();
51 : : }
52 : :
53 : : static RangeVar *
54 : 576145 : _readRangeVar(void)
55 : : {
56 : 576145 : READ_LOCALS(RangeVar);
57 : :
58 : 576145 : READ_STRING_FIELD(catalogname);
59 : 576145 : READ_STRING_FIELD(schemaname);
60 : 576145 : READ_STRING_FIELD(relname);
61 : 576145 : READ_BOOL_FIELD(inh);
62 [ + - - + ]: 576145 : READ_CHAR_FIELD(relpersistence);
63 : 576145 : READ_NODE_FIELD(alias);
64 [ + - ]: 576145 : READ_LOCATION_FIELD(location);
65 : :
66 : 576145 : 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 : 2593 : _readIntoClause(void)
97 : : {
98 : 2593 : READ_LOCALS(IntoClause);
99 : :
100 : 2593 : READ_NODE_FIELD(rel);
101 : 2593 : READ_NODE_FIELD(colNames);
102 : 2593 : READ_STRING_FIELD(accessMethod);
103 : 2593 : READ_NODE_FIELD(options);
104 : 2593 : READ_ENUM_FIELD(onCommit, OnCommitAction);
105 : 2593 : READ_STRING_FIELD(tableSpaceName);
106 : 2593 : READ_NODE_FIELD(viewQuery);
107 : 2593 : READ_BOOL_FIELD(skipData);
108 : :
109 : 2593 : READ_DONE();
110 : : }
111 : :
112 : : static Var *
113 : 9151378 : _readVar(void)
114 : : {
115 : 9151378 : READ_LOCALS(Var);
116 : :
117 : 9151378 : READ_INT_FIELD(varno);
118 : 9151378 : READ_INT_FIELD(varattno);
119 : 9151378 : READ_OID_FIELD(vartype);
120 : 9151378 : READ_INT_FIELD(vartypmod);
121 : 9151378 : READ_OID_FIELD(varcollid);
122 : 9151378 : READ_BITMAPSET_FIELD(varnullingrels);
123 : 9151378 : READ_UINT_FIELD(varlevelsup);
124 : 9151378 : READ_ENUM_FIELD(varreturningtype, VarReturningType);
125 : 9151378 : READ_UINT_FIELD(varnosyn);
126 : 9151378 : READ_INT_FIELD(varattnosyn);
127 [ + + ]: 9151378 : READ_LOCATION_FIELD(location);
128 : :
129 : 9151378 : READ_DONE();
130 : : }
131 : :
132 : : static Param *
133 : 219010 : _readParam(void)
134 : : {
135 : 219010 : READ_LOCALS(Param);
136 : :
137 : 219010 : READ_ENUM_FIELD(paramkind, ParamKind);
138 : 219010 : READ_INT_FIELD(paramid);
139 : 219010 : READ_OID_FIELD(paramtype);
140 : 219010 : READ_INT_FIELD(paramtypmod);
141 : 219010 : READ_OID_FIELD(paramcollid);
142 [ + + ]: 219010 : READ_LOCATION_FIELD(location);
143 : :
144 : 219010 : READ_DONE();
145 : : }
146 : :
147 : : static Aggref *
148 : 71125 : _readAggref(void)
149 : : {
150 : 71125 : READ_LOCALS(Aggref);
151 : :
152 : 71125 : READ_OID_FIELD(aggfnoid);
153 : 71125 : READ_OID_FIELD(aggtype);
154 : 71125 : READ_OID_FIELD(aggcollid);
155 : 71125 : READ_OID_FIELD(inputcollid);
156 : 71125 : READ_OID_FIELD(aggtranstype);
157 : 71125 : READ_NODE_FIELD(aggargtypes);
158 : 71125 : READ_NODE_FIELD(aggdirectargs);
159 : 71125 : READ_NODE_FIELD(args);
160 : 71125 : READ_NODE_FIELD(aggorder);
161 : 71125 : READ_NODE_FIELD(aggdistinct);
162 : 71125 : READ_NODE_FIELD(aggfilter);
163 : 71125 : READ_BOOL_FIELD(aggstar);
164 : 71125 : READ_BOOL_FIELD(aggvariadic);
165 [ + - - + ]: 71125 : READ_CHAR_FIELD(aggkind);
166 : 71125 : READ_BOOL_FIELD(aggpresorted);
167 : 71125 : READ_UINT_FIELD(agglevelsup);
168 : 71125 : READ_ENUM_FIELD(aggsplit, AggSplit);
169 : 71125 : READ_INT_FIELD(aggno);
170 : 71125 : READ_INT_FIELD(aggtransno);
171 [ + + ]: 71125 : READ_LOCATION_FIELD(location);
172 : :
173 : 71125 : READ_DONE();
174 : : }
175 : :
176 : : static GroupingFunc *
177 : 757 : _readGroupingFunc(void)
178 : : {
179 : 757 : READ_LOCALS(GroupingFunc);
180 : :
181 : 757 : READ_NODE_FIELD(args);
182 : 757 : READ_NODE_FIELD(refs);
183 : 757 : READ_NODE_FIELD(cols);
184 : 757 : READ_UINT_FIELD(agglevelsup);
185 [ + + ]: 757 : READ_LOCATION_FIELD(location);
186 : :
187 : 757 : READ_DONE();
188 : : }
189 : :
190 : : static WindowFunc *
191 : 5523 : _readWindowFunc(void)
192 : : {
193 : 5523 : READ_LOCALS(WindowFunc);
194 : :
195 : 5523 : READ_OID_FIELD(winfnoid);
196 : 5523 : READ_OID_FIELD(wintype);
197 : 5523 : READ_OID_FIELD(wincollid);
198 : 5523 : READ_OID_FIELD(inputcollid);
199 : 5523 : READ_NODE_FIELD(args);
200 : 5523 : READ_NODE_FIELD(aggfilter);
201 : 5523 : READ_NODE_FIELD(runCondition);
202 : 5523 : READ_UINT_FIELD(winref);
203 : 5523 : READ_BOOL_FIELD(winstar);
204 : 5523 : READ_BOOL_FIELD(winagg);
205 : 5523 : READ_INT_FIELD(ignore_nulls);
206 [ + + ]: 5523 : READ_LOCATION_FIELD(location);
207 : :
208 : 5523 : 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 : 28698 : _readSubscriptingRef(void)
238 : : {
239 : 28698 : READ_LOCALS(SubscriptingRef);
240 : :
241 : 28698 : READ_OID_FIELD(refcontainertype);
242 : 28698 : READ_OID_FIELD(refelemtype);
243 : 28698 : READ_OID_FIELD(refrestype);
244 : 28698 : READ_INT_FIELD(reftypmod);
245 : 28698 : READ_OID_FIELD(refcollid);
246 : 28698 : READ_NODE_FIELD(refupperindexpr);
247 : 28698 : READ_NODE_FIELD(reflowerindexpr);
248 : 28698 : READ_NODE_FIELD(refexpr);
249 : 28698 : READ_NODE_FIELD(refassgnexpr);
250 : :
251 : 28698 : READ_DONE();
252 : : }
253 : :
254 : : static FuncExpr *
255 : 619396 : _readFuncExpr(void)
256 : : {
257 : 619396 : READ_LOCALS(FuncExpr);
258 : :
259 : 619396 : READ_OID_FIELD(funcid);
260 : 619396 : READ_OID_FIELD(funcresulttype);
261 : 619396 : READ_BOOL_FIELD(funcretset);
262 : 619396 : READ_BOOL_FIELD(funcvariadic);
263 : 619396 : READ_ENUM_FIELD(funcformat, CoercionForm);
264 : 619396 : READ_OID_FIELD(funccollid);
265 : 619396 : READ_OID_FIELD(inputcollid);
266 : 619396 : READ_NODE_FIELD(args);
267 [ + + ]: 619396 : READ_LOCATION_FIELD(location);
268 : :
269 : 619396 : READ_DONE();
270 : : }
271 : :
272 : : static NamedArgExpr *
273 : 53316 : _readNamedArgExpr(void)
274 : : {
275 : 53316 : READ_LOCALS(NamedArgExpr);
276 : :
277 : 53316 : READ_NODE_FIELD(arg);
278 : 53316 : READ_STRING_FIELD(name);
279 : 53316 : READ_INT_FIELD(argnumber);
280 [ + + ]: 53316 : READ_LOCATION_FIELD(location);
281 : :
282 : 53316 : READ_DONE();
283 : : }
284 : :
285 : : static OpExpr *
286 : 1102933 : _readOpExpr(void)
287 : : {
288 : 1102933 : READ_LOCALS(OpExpr);
289 : :
290 : 1102933 : READ_OID_FIELD(opno);
291 : 1102933 : READ_OID_FIELD(opfuncid);
292 : 1102933 : READ_OID_FIELD(opresulttype);
293 : 1102933 : READ_BOOL_FIELD(opretset);
294 : 1102933 : READ_OID_FIELD(opcollid);
295 : 1102933 : READ_OID_FIELD(inputcollid);
296 : 1102933 : READ_NODE_FIELD(args);
297 [ + + ]: 1102933 : READ_LOCATION_FIELD(location);
298 : :
299 : 1102933 : READ_DONE();
300 : : }
301 : :
302 : : static DistinctExpr *
303 : 1306 : _readDistinctExpr(void)
304 : : {
305 : 1306 : READ_LOCALS(DistinctExpr);
306 : :
307 : 1306 : READ_OID_FIELD(opno);
308 : 1306 : READ_OID_FIELD(opfuncid);
309 : 1306 : READ_OID_FIELD(opresulttype);
310 : 1306 : READ_BOOL_FIELD(opretset);
311 : 1306 : READ_OID_FIELD(opcollid);
312 : 1306 : READ_OID_FIELD(inputcollid);
313 : 1306 : READ_NODE_FIELD(args);
314 [ + + ]: 1306 : READ_LOCATION_FIELD(location);
315 : :
316 : 1306 : 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 : 50407 : _readScalarArrayOpExpr(void)
338 : : {
339 : 50407 : READ_LOCALS(ScalarArrayOpExpr);
340 : :
341 : 50407 : READ_OID_FIELD(opno);
342 : 50407 : READ_OID_FIELD(opfuncid);
343 : 50407 : READ_OID_FIELD(hashfuncid);
344 : 50407 : READ_OID_FIELD(negfuncid);
345 : 50407 : READ_BOOL_FIELD(useOr);
346 : 50407 : READ_OID_FIELD(inputcollid);
347 : 50407 : READ_NODE_FIELD(args);
348 [ + + ]: 50407 : READ_LOCATION_FIELD(location);
349 : :
350 : 50407 : READ_DONE();
351 : : }
352 : :
353 : : static SubLink *
354 : 74703 : _readSubLink(void)
355 : : {
356 : 74703 : READ_LOCALS(SubLink);
357 : :
358 : 74703 : READ_ENUM_FIELD(subLinkType, SubLinkType);
359 : 74703 : READ_INT_FIELD(subLinkId);
360 : 74703 : READ_NODE_FIELD(testexpr);
361 : 74703 : READ_NODE_FIELD(operName);
362 : 74703 : READ_NODE_FIELD(subselect);
363 [ + + ]: 74703 : READ_LOCATION_FIELD(location);
364 : :
365 : 74703 : READ_DONE();
366 : : }
367 : :
368 : : static SubPlan *
369 : 27263 : _readSubPlan(void)
370 : : {
371 : 27263 : READ_LOCALS(SubPlan);
372 : :
373 : 27263 : READ_ENUM_FIELD(subLinkType, SubLinkType);
374 : 27263 : READ_NODE_FIELD(testexpr);
375 : 27263 : READ_NODE_FIELD(paramIds);
376 : 27263 : READ_INT_FIELD(plan_id);
377 : 27263 : READ_STRING_FIELD(plan_name);
378 : 27263 : READ_OID_FIELD(firstColType);
379 : 27263 : READ_INT_FIELD(firstColTypmod);
380 : 27263 : READ_OID_FIELD(firstColCollation);
381 : 27263 : READ_BOOL_FIELD(isInitPlan);
382 : 27263 : READ_BOOL_FIELD(useHashTable);
383 : 27263 : READ_BOOL_FIELD(unknownEqFalse);
384 : 27263 : READ_BOOL_FIELD(parallel_safe);
385 : 27263 : READ_NODE_FIELD(setParam);
386 : 27263 : READ_NODE_FIELD(parParam);
387 : 27263 : READ_NODE_FIELD(args);
388 : 27263 : READ_INT_FIELD(disabled_nodes);
389 : 27263 : READ_FLOAT_FIELD(startup_cost);
390 : 27263 : READ_FLOAT_FIELD(per_call_cost);
391 : :
392 : 27263 : 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 : 56894 : _readFieldSelect(void)
407 : : {
408 : 56894 : READ_LOCALS(FieldSelect);
409 : :
410 : 56894 : READ_NODE_FIELD(arg);
411 : 56894 : READ_INT_FIELD(fieldnum);
412 : 56894 : READ_OID_FIELD(resulttype);
413 : 56894 : READ_INT_FIELD(resulttypmod);
414 : 56894 : READ_OID_FIELD(resultcollid);
415 : :
416 : 56894 : 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 : 175429 : _readRelabelType(void)
434 : : {
435 : 175429 : READ_LOCALS(RelabelType);
436 : :
437 : 175429 : READ_NODE_FIELD(arg);
438 : 175429 : READ_OID_FIELD(resulttype);
439 : 175429 : READ_INT_FIELD(resulttypmod);
440 : 175429 : READ_OID_FIELD(resultcollid);
441 : 175429 : READ_ENUM_FIELD(relabelformat, CoercionForm);
442 [ + + ]: 175429 : READ_LOCATION_FIELD(location);
443 : :
444 : 175429 : READ_DONE();
445 : : }
446 : :
447 : : static CoerceViaIO *
448 : 39398 : _readCoerceViaIO(void)
449 : : {
450 : 39398 : READ_LOCALS(CoerceViaIO);
451 : :
452 : 39398 : READ_NODE_FIELD(arg);
453 : 39398 : READ_OID_FIELD(resulttype);
454 : 39398 : READ_OID_FIELD(resultcollid);
455 : 39398 : READ_ENUM_FIELD(coerceformat, CoercionForm);
456 [ + + ]: 39398 : READ_LOCATION_FIELD(location);
457 : :
458 : 39398 : READ_DONE();
459 : : }
460 : :
461 : : static ArrayCoerceExpr *
462 : 7100 : _readArrayCoerceExpr(void)
463 : : {
464 : 7100 : READ_LOCALS(ArrayCoerceExpr);
465 : :
466 : 7100 : READ_NODE_FIELD(arg);
467 : 7100 : READ_NODE_FIELD(elemexpr);
468 : 7100 : READ_OID_FIELD(resulttype);
469 : 7100 : READ_INT_FIELD(resulttypmod);
470 : 7100 : READ_OID_FIELD(resultcollid);
471 : 7100 : READ_ENUM_FIELD(coerceformat, CoercionForm);
472 [ + + ]: 7100 : READ_LOCATION_FIELD(location);
473 : :
474 : 7100 : 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 : 7160 : _readCollateExpr(void)
492 : : {
493 : 7160 : READ_LOCALS(CollateExpr);
494 : :
495 : 7160 : READ_NODE_FIELD(arg);
496 : 7160 : READ_OID_FIELD(collOid);
497 [ + + ]: 7160 : READ_LOCATION_FIELD(location);
498 : :
499 : 7160 : READ_DONE();
500 : : }
501 : :
502 : : static CaseExpr *
503 : 98567 : _readCaseExpr(void)
504 : : {
505 : 98567 : READ_LOCALS(CaseExpr);
506 : :
507 : 98567 : READ_OID_FIELD(casetype);
508 : 98567 : READ_OID_FIELD(casecollid);
509 : 98567 : READ_NODE_FIELD(arg);
510 : 98567 : READ_NODE_FIELD(args);
511 : 98567 : READ_NODE_FIELD(defresult);
512 [ + + ]: 98567 : READ_LOCATION_FIELD(location);
513 : :
514 : 98567 : READ_DONE();
515 : : }
516 : :
517 : : static CaseWhen *
518 : 204446 : _readCaseWhen(void)
519 : : {
520 : 204446 : READ_LOCALS(CaseWhen);
521 : :
522 : 204446 : READ_NODE_FIELD(expr);
523 : 204446 : READ_NODE_FIELD(result);
524 [ + + ]: 204446 : READ_LOCATION_FIELD(location);
525 : :
526 : 204446 : READ_DONE();
527 : : }
528 : :
529 : : static CaseTestExpr *
530 : 46322 : _readCaseTestExpr(void)
531 : : {
532 : 46322 : READ_LOCALS(CaseTestExpr);
533 : :
534 : 46322 : READ_OID_FIELD(typeId);
535 : 46322 : READ_INT_FIELD(typeMod);
536 : 46322 : READ_OID_FIELD(collation);
537 : :
538 : 46322 : READ_DONE();
539 : : }
540 : :
541 : : static ArrayExpr *
542 : 23398 : _readArrayExpr(void)
543 : : {
544 : 23398 : READ_LOCALS(ArrayExpr);
545 : :
546 : 23398 : READ_OID_FIELD(array_typeid);
547 : 23398 : READ_OID_FIELD(array_collid);
548 : 23398 : READ_OID_FIELD(element_typeid);
549 : 23398 : READ_NODE_FIELD(elements);
550 : 23398 : READ_BOOL_FIELD(multidims);
551 [ + + ]: 23398 : READ_LOCATION_FIELD(list_start);
552 [ + + ]: 23398 : READ_LOCATION_FIELD(list_end);
553 [ + + ]: 23398 : READ_LOCATION_FIELD(location);
554 : :
555 : 23398 : READ_DONE();
556 : : }
557 : :
558 : : static RowExpr *
559 : 9602 : _readRowExpr(void)
560 : : {
561 : 9602 : READ_LOCALS(RowExpr);
562 : :
563 : 9602 : READ_NODE_FIELD(args);
564 : 9602 : READ_OID_FIELD(row_typeid);
565 : 9602 : READ_ENUM_FIELD(row_format, CoercionForm);
566 : 9602 : READ_NODE_FIELD(colnames);
567 [ + + ]: 9602 : READ_LOCATION_FIELD(location);
568 : :
569 : 9602 : 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 : 12860 : _readCoalesceExpr(void)
589 : : {
590 : 12860 : READ_LOCALS(CoalesceExpr);
591 : :
592 : 12860 : READ_OID_FIELD(coalescetype);
593 : 12860 : READ_OID_FIELD(coalescecollid);
594 : 12860 : READ_NODE_FIELD(args);
595 [ + + ]: 12860 : READ_LOCATION_FIELD(location);
596 : :
597 : 12860 : READ_DONE();
598 : : }
599 : :
600 : : static MinMaxExpr *
601 : 640 : _readMinMaxExpr(void)
602 : : {
603 : 640 : READ_LOCALS(MinMaxExpr);
604 : :
605 : 640 : READ_OID_FIELD(minmaxtype);
606 : 640 : READ_OID_FIELD(minmaxcollid);
607 : 640 : READ_OID_FIELD(inputcollid);
608 : 640 : READ_ENUM_FIELD(op, MinMaxOp);
609 : 640 : READ_NODE_FIELD(args);
610 [ + + ]: 640 : READ_LOCATION_FIELD(location);
611 : :
612 : 640 : READ_DONE();
613 : : }
614 : :
615 : : static SQLValueFunction *
616 : 9187 : _readSQLValueFunction(void)
617 : : {
618 : 9187 : READ_LOCALS(SQLValueFunction);
619 : :
620 : 9187 : READ_ENUM_FIELD(op, SQLValueFunctionOp);
621 : 9187 : READ_OID_FIELD(type);
622 : 9187 : READ_INT_FIELD(typmod);
623 [ + + ]: 9187 : READ_LOCATION_FIELD(location);
624 : :
625 : 9187 : 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 : 36388 : _readNullTest(void)
795 : : {
796 : 36388 : READ_LOCALS(NullTest);
797 : :
798 : 36388 : READ_NODE_FIELD(arg);
799 : 36388 : READ_ENUM_FIELD(nulltesttype, NullTestType);
800 : 36388 : READ_BOOL_FIELD(argisrow);
801 [ + + ]: 36388 : READ_LOCATION_FIELD(location);
802 : :
803 : 36388 : READ_DONE();
804 : : }
805 : :
806 : : static BooleanTest *
807 : 2483 : _readBooleanTest(void)
808 : : {
809 : 2483 : READ_LOCALS(BooleanTest);
810 : :
811 : 2483 : READ_NODE_FIELD(arg);
812 : 2483 : READ_ENUM_FIELD(booltesttype, BoolTestType);
813 [ + + ]: 2483 : READ_LOCATION_FIELD(location);
814 : :
815 : 2483 : 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 : 88073 : _readCoerceToDomain(void)
835 : : {
836 : 88073 : READ_LOCALS(CoerceToDomain);
837 : :
838 : 88073 : READ_NODE_FIELD(arg);
839 : 88073 : READ_OID_FIELD(resulttype);
840 : 88073 : READ_INT_FIELD(resulttypmod);
841 : 88073 : READ_OID_FIELD(resultcollid);
842 : 88073 : READ_ENUM_FIELD(coercionformat, CoercionForm);
843 [ + + ]: 88073 : READ_LOCATION_FIELD(location);
844 : :
845 : 88073 : READ_DONE();
846 : : }
847 : :
848 : : static CoerceToDomainValue *
849 : 1486 : _readCoerceToDomainValue(void)
850 : : {
851 : 1486 : READ_LOCALS(CoerceToDomainValue);
852 : :
853 : 1486 : READ_OID_FIELD(typeId);
854 : 1486 : READ_INT_FIELD(typeMod);
855 : 1486 : READ_OID_FIELD(collation);
856 [ - + ]: 1486 : READ_LOCATION_FIELD(location);
857 : :
858 : 1486 : READ_DONE();
859 : : }
860 : :
861 : : static SetToDefault *
862 : 1202 : _readSetToDefault(void)
863 : : {
864 : 1202 : READ_LOCALS(SetToDefault);
865 : :
866 : 1202 : READ_OID_FIELD(typeId);
867 : 1202 : READ_INT_FIELD(typeMod);
868 : 1202 : READ_OID_FIELD(collation);
869 [ + + ]: 1202 : READ_LOCATION_FIELD(location);
870 : :
871 : 1202 : 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 : 183 : _readGraphPropertyRef(void)
934 : : {
935 : 183 : READ_LOCALS(GraphPropertyRef);
936 : :
937 : 183 : READ_STRING_FIELD(elvarname);
938 : 183 : READ_OID_FIELD(propid);
939 : 183 : READ_OID_FIELD(typeId);
940 : 183 : READ_INT_FIELD(typmod);
941 : 183 : READ_OID_FIELD(collation);
942 [ + + ]: 183 : READ_LOCATION_FIELD(location);
943 : :
944 : 183 : READ_DONE();
945 : : }
946 : :
947 : : static TargetEntry *
948 : 4970857 : _readTargetEntry(void)
949 : : {
950 : 4970857 : READ_LOCALS(TargetEntry);
951 : :
952 : 4970857 : READ_NODE_FIELD(expr);
953 : 4970857 : READ_INT_FIELD(resno);
954 : 4970857 : READ_STRING_FIELD(resname);
955 : 4970857 : READ_UINT_FIELD(ressortgroupref);
956 : 4970857 : READ_OID_FIELD(resorigtbl);
957 : 4970857 : READ_INT_FIELD(resorigcol);
958 : 4970857 : READ_BOOL_FIELD(resjunk);
959 : :
960 : 4970857 : READ_DONE();
961 : : }
962 : :
963 : : static RangeTblRef *
964 : 437974 : _readRangeTblRef(void)
965 : : {
966 : 437974 : READ_LOCALS(RangeTblRef);
967 : :
968 : 437974 : READ_INT_FIELD(rtindex);
969 : :
970 : 437974 : READ_DONE();
971 : : }
972 : :
973 : : static JoinExpr *
974 : 145186 : _readJoinExpr(void)
975 : : {
976 : 145186 : READ_LOCALS(JoinExpr);
977 : :
978 : 145186 : READ_ENUM_FIELD(jointype, JoinType);
979 : 145186 : READ_BOOL_FIELD(isNatural);
980 : 145186 : READ_NODE_FIELD(larg);
981 : 145186 : READ_NODE_FIELD(rarg);
982 : 145186 : READ_NODE_FIELD(usingClause);
983 : 145186 : READ_NODE_FIELD(join_using_alias);
984 : 145186 : READ_NODE_FIELD(quals);
985 : 145186 : READ_NODE_FIELD(alias);
986 : 145186 : READ_INT_FIELD(rtindex);
987 : :
988 : 145186 : READ_DONE();
989 : : }
990 : :
991 : : static FromExpr *
992 : 426483 : _readFromExpr(void)
993 : : {
994 : 426483 : READ_LOCALS(FromExpr);
995 : :
996 : 426483 : READ_NODE_FIELD(fromlist);
997 : 426483 : READ_NODE_FIELD(quals);
998 : :
999 : 426483 : 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 : 2065 : _readForPortionOfExpr(void)
1022 : : {
1023 : 2065 : READ_LOCALS(ForPortionOfExpr);
1024 : :
1025 : 2065 : READ_NODE_FIELD(rangeVar);
1026 : 2065 : READ_NODE_FIELD(targetFrom);
1027 : 2065 : READ_NODE_FIELD(targetTo);
1028 : 2065 : READ_NODE_FIELD(targetRange);
1029 : 2065 : READ_OID_FIELD(rangeType);
1030 : 2065 : READ_BOOL_FIELD(isDomain);
1031 : 2065 : READ_NODE_FIELD(overlapsExpr);
1032 : 2065 : READ_NODE_FIELD(rangeTargetList);
1033 : 2065 : READ_OID_FIELD(withoutPortionProc);
1034 [ + + ]: 2065 : READ_LOCATION_FIELD(location);
1035 [ + + ]: 2065 : READ_LOCATION_FIELD(targetLocation);
1036 : :
1037 : 2065 : READ_DONE();
1038 : : }
1039 : :
1040 : : static Query *
1041 : 672454 : _readQuery(void)
1042 : : {
1043 : 672454 : READ_LOCALS(Query);
1044 : :
1045 : 672454 : READ_ENUM_FIELD(commandType, CmdType);
1046 : 672454 : READ_ENUM_FIELD(querySource, QuerySource);
1047 : 672454 : local_node->queryId = 0;
1048 : 672454 : READ_BOOL_FIELD(canSetTag);
1049 : 672454 : READ_NODE_FIELD(utilityStmt);
1050 : 672454 : READ_INT_FIELD(resultRelation);
1051 : 672454 : READ_NODE_FIELD(forPortionOf);
1052 : 672453 : READ_BOOL_FIELD(hasAggs);
1053 : 672453 : READ_BOOL_FIELD(hasWindowFuncs);
1054 : 672453 : READ_BOOL_FIELD(hasTargetSRFs);
1055 : 672453 : READ_BOOL_FIELD(hasSubLinks);
1056 : 672453 : READ_BOOL_FIELD(hasDistinctOn);
1057 : 672453 : READ_BOOL_FIELD(hasRecursive);
1058 : 672453 : READ_BOOL_FIELD(hasModifyingCTE);
1059 : 672453 : READ_BOOL_FIELD(hasForUpdate);
1060 : 672453 : READ_BOOL_FIELD(hasRowSecurity);
1061 : 672453 : READ_BOOL_FIELD(hasGroupRTE);
1062 : 672453 : READ_BOOL_FIELD(isReturn);
1063 : 672453 : READ_NODE_FIELD(cteList);
1064 : 672453 : READ_NODE_FIELD(rtable);
1065 : 672453 : READ_NODE_FIELD(rteperminfos);
1066 : 672453 : READ_NODE_FIELD(jointree);
1067 : 672453 : READ_NODE_FIELD(mergeActionList);
1068 : 672453 : READ_INT_FIELD(mergeTargetRelation);
1069 : 672453 : READ_NODE_FIELD(mergeJoinCondition);
1070 : 672453 : READ_NODE_FIELD(targetList);
1071 : 672453 : READ_ENUM_FIELD(override, OverridingKind);
1072 : 672453 : READ_NODE_FIELD(onConflict);
1073 : 672453 : READ_STRING_FIELD(returningOldAlias);
1074 : 672453 : READ_STRING_FIELD(returningNewAlias);
1075 : 672453 : READ_NODE_FIELD(returningList);
1076 : 672453 : READ_NODE_FIELD(groupClause);
1077 : 672453 : READ_BOOL_FIELD(groupDistinct);
1078 : 672453 : READ_NODE_FIELD(groupingSets);
1079 : 672453 : READ_NODE_FIELD(havingQual);
1080 : 672453 : READ_NODE_FIELD(windowClause);
1081 : 672453 : READ_NODE_FIELD(distinctClause);
1082 : 672453 : READ_NODE_FIELD(sortClause);
1083 : 672453 : READ_NODE_FIELD(limitOffset);
1084 : 672453 : READ_NODE_FIELD(limitCount);
1085 : 672453 : READ_ENUM_FIELD(limitOption, LimitOption);
1086 : 672453 : READ_NODE_FIELD(rowMarks);
1087 : 672453 : READ_NODE_FIELD(setOperations);
1088 : 672453 : READ_NODE_FIELD(constraintDeps);
1089 : 672453 : READ_NODE_FIELD(withCheckOptions);
1090 [ + + ]: 672453 : READ_LOCATION_FIELD(stmt_location);
1091 [ + + ]: 672453 : READ_LOCATION_FIELD(stmt_len);
1092 : :
1093 : 672453 : READ_DONE();
1094 : : }
1095 : :
1096 : : static TypeName *
1097 : 482898 : _readTypeName(void)
1098 : : {
1099 : 482898 : READ_LOCALS(TypeName);
1100 : :
1101 : 482898 : READ_NODE_FIELD(names);
1102 : 482898 : READ_OID_FIELD(typeOid);
1103 : 482898 : READ_BOOL_FIELD(setof);
1104 : 482898 : READ_BOOL_FIELD(pct_type);
1105 : 482898 : READ_NODE_FIELD(typmods);
1106 : 482898 : READ_INT_FIELD(typemod);
1107 : 482898 : READ_NODE_FIELD(arrayBounds);
1108 [ + - ]: 482898 : READ_LOCATION_FIELD(location);
1109 : :
1110 : 482898 : READ_DONE();
1111 : : }
1112 : :
1113 : : static ColumnRef *
1114 : 1355860 : _readColumnRef(void)
1115 : : {
1116 : 1355860 : READ_LOCALS(ColumnRef);
1117 : :
1118 : 1355860 : READ_NODE_FIELD(fields);
1119 [ + - ]: 1355860 : READ_LOCATION_FIELD(location);
1120 : :
1121 : 1355860 : READ_DONE();
1122 : : }
1123 : :
1124 : : static ParamRef *
1125 : 31615 : _readParamRef(void)
1126 : : {
1127 : 31615 : READ_LOCALS(ParamRef);
1128 : :
1129 : 31615 : READ_INT_FIELD(number);
1130 [ + - ]: 31615 : READ_LOCATION_FIELD(location);
1131 : :
1132 : 31615 : READ_DONE();
1133 : : }
1134 : :
1135 : : static TypeCast *
1136 : 234949 : _readTypeCast(void)
1137 : : {
1138 : 234949 : READ_LOCALS(TypeCast);
1139 : :
1140 : 234949 : READ_NODE_FIELD(arg);
1141 : 234949 : READ_NODE_FIELD(typeName);
1142 [ + - ]: 234949 : READ_LOCATION_FIELD(location);
1143 : :
1144 : 234949 : READ_DONE();
1145 : : }
1146 : :
1147 : : static CollateClause *
1148 : 8189 : _readCollateClause(void)
1149 : : {
1150 : 8189 : READ_LOCALS(CollateClause);
1151 : :
1152 : 8189 : READ_NODE_FIELD(arg);
1153 : 8189 : READ_NODE_FIELD(collname);
1154 [ + - ]: 8189 : READ_LOCATION_FIELD(location);
1155 : :
1156 : 8189 : READ_DONE();
1157 : : }
1158 : :
1159 : : static RoleSpec *
1160 : 29135 : _readRoleSpec(void)
1161 : : {
1162 : 29135 : READ_LOCALS(RoleSpec);
1163 : :
1164 : 29135 : READ_ENUM_FIELD(roletype, RoleSpecType);
1165 : 29135 : READ_STRING_FIELD(rolename);
1166 [ + - ]: 29135 : READ_LOCATION_FIELD(location);
1167 : :
1168 : 29135 : READ_DONE();
1169 : : }
1170 : :
1171 : : static FuncCall *
1172 : 270869 : _readFuncCall(void)
1173 : : {
1174 : 270869 : READ_LOCALS(FuncCall);
1175 : :
1176 : 270869 : READ_NODE_FIELD(funcname);
1177 : 270869 : READ_NODE_FIELD(args);
1178 : 270869 : READ_NODE_FIELD(agg_order);
1179 : 270869 : READ_NODE_FIELD(agg_filter);
1180 : 270869 : READ_NODE_FIELD(over);
1181 : 270869 : READ_INT_FIELD(ignore_nulls);
1182 : 270869 : READ_BOOL_FIELD(agg_within_group);
1183 : 270869 : READ_BOOL_FIELD(agg_star);
1184 : 270869 : READ_BOOL_FIELD(agg_distinct);
1185 : 270869 : READ_BOOL_FIELD(func_variadic);
1186 : 270869 : READ_ENUM_FIELD(funcformat, CoercionForm);
1187 [ + - ]: 270869 : READ_LOCATION_FIELD(location);
1188 : :
1189 : 270869 : READ_DONE();
1190 : : }
1191 : :
1192 : : static A_Star *
1193 : 47682 : _readA_Star(void)
1194 : : {
1195 : 47682 : READ_LOCALS_NO_FIELDS(A_Star);
1196 : :
1197 : :
1198 : 47682 : READ_DONE();
1199 : : }
1200 : :
1201 : : static A_Indices *
1202 : 10188 : _readA_Indices(void)
1203 : : {
1204 : 10188 : READ_LOCALS(A_Indices);
1205 : :
1206 : 10188 : READ_BOOL_FIELD(is_slice);
1207 : 10188 : READ_NODE_FIELD(lidx);
1208 : 10188 : READ_NODE_FIELD(uidx);
1209 : :
1210 : 10188 : READ_DONE();
1211 : : }
1212 : :
1213 : : static A_Indirection *
1214 : 25392 : _readA_Indirection(void)
1215 : : {
1216 : 25392 : READ_LOCALS(A_Indirection);
1217 : :
1218 : 25392 : READ_NODE_FIELD(arg);
1219 : 25392 : READ_NODE_FIELD(indirection);
1220 : :
1221 : 25392 : READ_DONE();
1222 : : }
1223 : :
1224 : : static A_ArrayExpr *
1225 : 5117 : _readA_ArrayExpr(void)
1226 : : {
1227 : 5117 : READ_LOCALS(A_ArrayExpr);
1228 : :
1229 : 5117 : READ_NODE_FIELD(elements);
1230 [ + - ]: 5117 : READ_LOCATION_FIELD(list_start);
1231 [ + - ]: 5117 : READ_LOCATION_FIELD(list_end);
1232 [ + - ]: 5117 : READ_LOCATION_FIELD(location);
1233 : :
1234 : 5117 : READ_DONE();
1235 : : }
1236 : :
1237 : : static ResTarget *
1238 : 840714 : _readResTarget(void)
1239 : : {
1240 : 840714 : READ_LOCALS(ResTarget);
1241 : :
1242 : 840714 : READ_STRING_FIELD(name);
1243 : 840714 : READ_NODE_FIELD(indirection);
1244 : 840714 : READ_NODE_FIELD(val);
1245 [ + - ]: 840714 : READ_LOCATION_FIELD(location);
1246 : :
1247 : 840714 : 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 : 75188 : _readSortBy(void)
1264 : : {
1265 : 75188 : READ_LOCALS(SortBy);
1266 : :
1267 : 75188 : READ_NODE_FIELD(node);
1268 : 75188 : READ_ENUM_FIELD(sortby_dir, SortByDir);
1269 : 75188 : READ_ENUM_FIELD(sortby_nulls, SortByNulls);
1270 : 75188 : READ_NODE_FIELD(useOp);
1271 [ + - ]: 75188 : READ_LOCATION_FIELD(location);
1272 : :
1273 : 75188 : READ_DONE();
1274 : : }
1275 : :
1276 : : static WindowDef *
1277 : 3271 : _readWindowDef(void)
1278 : : {
1279 : 3271 : READ_LOCALS(WindowDef);
1280 : :
1281 : 3271 : READ_STRING_FIELD(name);
1282 : 3271 : READ_STRING_FIELD(refname);
1283 : 3271 : READ_NODE_FIELD(partitionClause);
1284 : 3271 : READ_NODE_FIELD(orderClause);
1285 : 3271 : READ_INT_FIELD(frameOptions);
1286 : 3271 : READ_NODE_FIELD(startOffset);
1287 : 3271 : READ_NODE_FIELD(endOffset);
1288 [ + - ]: 3271 : READ_LOCATION_FIELD(location);
1289 : :
1290 : 3271 : READ_DONE();
1291 : : }
1292 : :
1293 : : static RangeSubselect *
1294 : 16406 : _readRangeSubselect(void)
1295 : : {
1296 : 16406 : READ_LOCALS(RangeSubselect);
1297 : :
1298 : 16406 : READ_BOOL_FIELD(lateral);
1299 : 16406 : READ_NODE_FIELD(subquery);
1300 : 16406 : READ_NODE_FIELD(alias);
1301 : :
1302 : 16406 : READ_DONE();
1303 : : }
1304 : :
1305 : : static RangeFunction *
1306 : 33226 : _readRangeFunction(void)
1307 : : {
1308 : 33226 : READ_LOCALS(RangeFunction);
1309 : :
1310 : 33226 : READ_BOOL_FIELD(lateral);
1311 : 33226 : READ_BOOL_FIELD(ordinality);
1312 : 33226 : READ_BOOL_FIELD(is_rowsfrom);
1313 : 33226 : READ_NODE_FIELD(functions);
1314 : 33226 : READ_NODE_FIELD(alias);
1315 : 33226 : READ_NODE_FIELD(coldeflist);
1316 : :
1317 : 33226 : 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 : 483 : _readRangeGraphTable(void)
1354 : : {
1355 : 483 : READ_LOCALS(RangeGraphTable);
1356 : :
1357 : 483 : READ_NODE_FIELD(graph_name);
1358 : 483 : READ_NODE_FIELD(graph_pattern);
1359 : 483 : READ_NODE_FIELD(columns);
1360 : 483 : READ_NODE_FIELD(alias);
1361 [ + - ]: 483 : READ_LOCATION_FIELD(location);
1362 : :
1363 : 483 : 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 : 96569 : _readColumnDef(void)
1382 : : {
1383 : 96569 : READ_LOCALS(ColumnDef);
1384 : :
1385 : 96569 : READ_STRING_FIELD(colname);
1386 : 96569 : READ_NODE_FIELD(typeName);
1387 : 96569 : READ_STRING_FIELD(compression);
1388 : 96569 : READ_INT_FIELD(inhcount);
1389 : 96569 : READ_BOOL_FIELD(is_local);
1390 : 96569 : READ_BOOL_FIELD(is_not_null);
1391 : 96569 : READ_BOOL_FIELD(is_from_type);
1392 [ - + - - ]: 96569 : READ_CHAR_FIELD(storage);
1393 : 96569 : READ_STRING_FIELD(storage_name);
1394 : 96569 : READ_NODE_FIELD(raw_default);
1395 : 96569 : READ_NODE_FIELD(cooked_default);
1396 [ - + - - ]: 96569 : READ_CHAR_FIELD(identity);
1397 : 96569 : READ_NODE_FIELD(identitySequence);
1398 [ - + - - ]: 96569 : READ_CHAR_FIELD(generated);
1399 : 96569 : READ_NODE_FIELD(collClause);
1400 : 96569 : READ_OID_FIELD(collOid);
1401 : 96569 : READ_NODE_FIELD(constraints);
1402 : 96569 : READ_NODE_FIELD(fdwoptions);
1403 [ + - ]: 96569 : READ_LOCATION_FIELD(location);
1404 : :
1405 : 96569 : READ_DONE();
1406 : : }
1407 : :
1408 : : static TableLikeClause *
1409 : 1050 : _readTableLikeClause(void)
1410 : : {
1411 : 1050 : READ_LOCALS(TableLikeClause);
1412 : :
1413 : 1050 : READ_NODE_FIELD(relation);
1414 : 1050 : READ_UINT_FIELD(options);
1415 : 1050 : READ_OID_FIELD(relationOid);
1416 : :
1417 : 1050 : READ_DONE();
1418 : : }
1419 : :
1420 : : static IndexElem *
1421 : 13488 : _readIndexElem(void)
1422 : : {
1423 : 13488 : READ_LOCALS(IndexElem);
1424 : :
1425 : 13488 : READ_STRING_FIELD(name);
1426 : 13488 : READ_NODE_FIELD(expr);
1427 : 13488 : READ_STRING_FIELD(indexcolname);
1428 : 13488 : READ_NODE_FIELD(collation);
1429 : 13488 : READ_NODE_FIELD(opclass);
1430 : 13488 : READ_NODE_FIELD(opclassopts);
1431 : 13488 : READ_ENUM_FIELD(ordering, SortByDir);
1432 : 13488 : READ_ENUM_FIELD(nulls_ordering, SortByNulls);
1433 [ + - ]: 13488 : READ_LOCATION_FIELD(location);
1434 : :
1435 : 13488 : READ_DONE();
1436 : : }
1437 : :
1438 : : static DefElem *
1439 : 437659 : _readDefElem(void)
1440 : : {
1441 : 437659 : READ_LOCALS(DefElem);
1442 : :
1443 : 437659 : READ_STRING_FIELD(defnamespace);
1444 : 437659 : READ_STRING_FIELD(defname);
1445 : 437659 : READ_NODE_FIELD(arg);
1446 : 437659 : READ_ENUM_FIELD(defaction, DefElemAction);
1447 [ + - ]: 437659 : READ_LOCATION_FIELD(location);
1448 : :
1449 : 437659 : READ_DONE();
1450 : : }
1451 : :
1452 : : static LockingClause *
1453 : 4046 : _readLockingClause(void)
1454 : : {
1455 : 4046 : READ_LOCALS(LockingClause);
1456 : :
1457 : 4046 : READ_NODE_FIELD(lockedRels);
1458 : 4046 : READ_ENUM_FIELD(strength, LockClauseStrength);
1459 : 4046 : READ_ENUM_FIELD(waitPolicy, LockWaitPolicy);
1460 : :
1461 : 4046 : 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 : 8004 : _readPartitionElem(void)
1480 : : {
1481 : 8004 : READ_LOCALS(PartitionElem);
1482 : :
1483 : 8004 : READ_STRING_FIELD(name);
1484 : 8004 : READ_NODE_FIELD(expr);
1485 : 8004 : READ_NODE_FIELD(collation);
1486 : 8004 : READ_NODE_FIELD(opclass);
1487 [ + - ]: 8004 : READ_LOCATION_FIELD(location);
1488 : :
1489 : 8004 : READ_DONE();
1490 : : }
1491 : :
1492 : : static PartitionSpec *
1493 : 7360 : _readPartitionSpec(void)
1494 : : {
1495 : 7360 : READ_LOCALS(PartitionSpec);
1496 : :
1497 : 7360 : READ_ENUM_FIELD(strategy, PartitionStrategy);
1498 : 7360 : READ_NODE_FIELD(partParams);
1499 [ + - ]: 7360 : READ_LOCATION_FIELD(location);
1500 : :
1501 : 7360 : READ_DONE();
1502 : : }
1503 : :
1504 : : static PartitionBoundSpec *
1505 : 87722 : _readPartitionBoundSpec(void)
1506 : : {
1507 : 87722 : READ_LOCALS(PartitionBoundSpec);
1508 : :
1509 [ + + - + ]: 87722 : READ_CHAR_FIELD(strategy);
1510 : 87722 : READ_BOOL_FIELD(is_default);
1511 : 87722 : READ_INT_FIELD(modulus);
1512 : 87722 : READ_INT_FIELD(remainder);
1513 : 87722 : READ_NODE_FIELD(listdatums);
1514 : 87722 : READ_NODE_FIELD(lowerdatums);
1515 : 87722 : READ_NODE_FIELD(upperdatums);
1516 [ + + ]: 87722 : READ_LOCATION_FIELD(location);
1517 : :
1518 : 87722 : READ_DONE();
1519 : : }
1520 : :
1521 : : static PartitionRangeDatum *
1522 : 116564 : _readPartitionRangeDatum(void)
1523 : : {
1524 : 116564 : READ_LOCALS(PartitionRangeDatum);
1525 : :
1526 : 116564 : READ_ENUM_FIELD(kind, PartitionRangeDatumKind);
1527 : 116564 : READ_NODE_FIELD(value);
1528 [ - + ]: 116564 : READ_LOCATION_FIELD(location);
1529 : :
1530 : 116564 : 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 : 568 : _readGraphPattern(void)
1559 : : {
1560 : 568 : READ_LOCALS(GraphPattern);
1561 : :
1562 : 568 : READ_NODE_FIELD(path_pattern_list);
1563 : 568 : READ_NODE_FIELD(whereClause);
1564 : :
1565 : 568 : READ_DONE();
1566 : : }
1567 : :
1568 : : static GraphElementPattern *
1569 : 1654 : _readGraphElementPattern(void)
1570 : : {
1571 : 1654 : READ_LOCALS(GraphElementPattern);
1572 : :
1573 : 1654 : READ_ENUM_FIELD(kind, GraphElementPatternKind);
1574 : 1654 : READ_STRING_FIELD(variable);
1575 : 1654 : READ_NODE_FIELD(labelexpr);
1576 : 1654 : READ_NODE_FIELD(subexpr);
1577 : 1654 : READ_NODE_FIELD(whereClause);
1578 : 1654 : READ_NODE_FIELD(quantifier);
1579 [ + + ]: 1654 : READ_LOCATION_FIELD(location);
1580 : :
1581 : 1654 : READ_DONE();
1582 : : }
1583 : :
1584 : : static RTEPermissionInfo *
1585 : 720094 : _readRTEPermissionInfo(void)
1586 : : {
1587 : 720094 : READ_LOCALS(RTEPermissionInfo);
1588 : :
1589 : 720094 : READ_OID_FIELD(relid);
1590 : 720094 : READ_BOOL_FIELD(inh);
1591 : 720094 : READ_UINT64_FIELD(requiredPerms);
1592 : 720094 : READ_OID_FIELD(checkAsUser);
1593 : 720094 : READ_BITMAPSET_FIELD(selectedCols);
1594 : 720094 : READ_BITMAPSET_FIELD(insertedCols);
1595 : 720094 : READ_BITMAPSET_FIELD(updatedCols);
1596 : :
1597 : 720094 : READ_DONE();
1598 : : }
1599 : :
1600 : : static RangeTblFunction *
1601 : 70118 : _readRangeTblFunction(void)
1602 : : {
1603 : 70118 : READ_LOCALS(RangeTblFunction);
1604 : :
1605 : 70118 : READ_NODE_FIELD(funcexpr);
1606 : 70118 : READ_INT_FIELD(funccolcount);
1607 : 70118 : READ_NODE_FIELD(funccolnames);
1608 : 70118 : READ_NODE_FIELD(funccoltypes);
1609 : 70118 : READ_NODE_FIELD(funccoltypmods);
1610 : 70118 : READ_NODE_FIELD(funccolcollations);
1611 : 70118 : READ_BITMAPSET_FIELD(funcparams);
1612 : :
1613 : 70118 : 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 : 4133 : _readWithCheckOption(void)
1630 : : {
1631 : 4133 : READ_LOCALS(WithCheckOption);
1632 : :
1633 : 4133 : READ_ENUM_FIELD(kind, WCOKind);
1634 : 4133 : READ_STRING_FIELD(relname);
1635 : 4133 : READ_STRING_FIELD(polname);
1636 : 4133 : READ_NODE_FIELD(qual);
1637 : 4133 : READ_BOOL_FIELD(cascaded);
1638 : :
1639 : 4133 : READ_DONE();
1640 : : }
1641 : :
1642 : : static SortGroupClause *
1643 : 114821 : _readSortGroupClause(void)
1644 : : {
1645 : 114821 : READ_LOCALS(SortGroupClause);
1646 : :
1647 : 114821 : READ_UINT_FIELD(tleSortGroupRef);
1648 : 114821 : READ_OID_FIELD(eqop);
1649 : 114821 : READ_OID_FIELD(sortop);
1650 : 114821 : READ_BOOL_FIELD(reverse_sort);
1651 : 114821 : READ_BOOL_FIELD(nulls_first);
1652 : 114821 : READ_BOOL_FIELD(hashable);
1653 : :
1654 : 114821 : READ_DONE();
1655 : : }
1656 : :
1657 : : static GroupingSet *
1658 : 3541 : _readGroupingSet(void)
1659 : : {
1660 : 3541 : READ_LOCALS(GroupingSet);
1661 : :
1662 : 3541 : READ_ENUM_FIELD(kind, GroupingSetKind);
1663 : 3541 : READ_NODE_FIELD(content);
1664 [ + + ]: 3541 : READ_LOCATION_FIELD(location);
1665 : :
1666 : 3541 : READ_DONE();
1667 : : }
1668 : :
1669 : : static WindowClause *
1670 : 2274 : _readWindowClause(void)
1671 : : {
1672 : 2274 : READ_LOCALS(WindowClause);
1673 : :
1674 : 2274 : READ_STRING_FIELD(name);
1675 : 2274 : READ_STRING_FIELD(refname);
1676 : 2274 : READ_NODE_FIELD(partitionClause);
1677 : 2274 : READ_NODE_FIELD(orderClause);
1678 : 2274 : READ_INT_FIELD(frameOptions);
1679 : 2274 : READ_NODE_FIELD(startOffset);
1680 : 2274 : READ_NODE_FIELD(endOffset);
1681 : 2274 : READ_OID_FIELD(startInRangeFunc);
1682 : 2274 : READ_OID_FIELD(endInRangeFunc);
1683 : 2274 : READ_OID_FIELD(inRangeColl);
1684 : 2274 : READ_BOOL_FIELD(inRangeAsc);
1685 : 2274 : READ_BOOL_FIELD(inRangeNullsFirst);
1686 : 2274 : READ_UINT_FIELD(winref);
1687 : 2274 : READ_BOOL_FIELD(copiedOrder);
1688 : :
1689 : 2274 : READ_DONE();
1690 : : }
1691 : :
1692 : : static RowMarkClause *
1693 : 5111 : _readRowMarkClause(void)
1694 : : {
1695 : 5111 : READ_LOCALS(RowMarkClause);
1696 : :
1697 : 5111 : READ_UINT_FIELD(rti);
1698 : 5111 : READ_ENUM_FIELD(strength, LockClauseStrength);
1699 : 5111 : READ_ENUM_FIELD(waitPolicy, LockWaitPolicy);
1700 : 5111 : READ_BOOL_FIELD(pushedDown);
1701 : :
1702 : 5111 : READ_DONE();
1703 : : }
1704 : :
1705 : : static ForPortionOfClause *
1706 : 1165 : _readForPortionOfClause(void)
1707 : : {
1708 : 1165 : READ_LOCALS(ForPortionOfClause);
1709 : :
1710 : 1165 : READ_STRING_FIELD(range_name);
1711 [ + - ]: 1165 : READ_LOCATION_FIELD(location);
1712 [ + - ]: 1165 : READ_LOCATION_FIELD(target_location);
1713 : 1165 : READ_NODE_FIELD(target);
1714 : 1165 : READ_NODE_FIELD(target_start);
1715 : 1165 : READ_NODE_FIELD(target_end);
1716 : :
1717 : 1165 : READ_DONE();
1718 : : }
1719 : :
1720 : : static WithClause *
1721 : 2224 : _readWithClause(void)
1722 : : {
1723 : 2224 : READ_LOCALS(WithClause);
1724 : :
1725 : 2224 : READ_NODE_FIELD(ctes);
1726 : 2224 : READ_BOOL_FIELD(recursive);
1727 [ + - ]: 2224 : READ_LOCATION_FIELD(location);
1728 : :
1729 : 2224 : 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 : 5886 : _readCommonTableExpr(void)
1794 : : {
1795 : 5886 : READ_LOCALS(CommonTableExpr);
1796 : :
1797 : 5886 : READ_STRING_FIELD(ctename);
1798 : 5886 : READ_NODE_FIELD(aliascolnames);
1799 : 5886 : READ_ENUM_FIELD(ctematerialized, CTEMaterialize);
1800 : 5886 : READ_NODE_FIELD(ctequery);
1801 : 5886 : READ_NODE_FIELD(search_clause);
1802 : 5886 : READ_NODE_FIELD(cycle_clause);
1803 [ + + ]: 5886 : READ_LOCATION_FIELD(location);
1804 : 5886 : READ_BOOL_FIELD(cterecursive);
1805 : 5886 : READ_INT_FIELD(cterefcount);
1806 : 5886 : READ_NODE_FIELD(ctecolnames);
1807 : 5886 : READ_NODE_FIELD(ctecoltypes);
1808 : 5886 : READ_NODE_FIELD(ctecoltypmods);
1809 : 5886 : READ_NODE_FIELD(ctecolcollations);
1810 : :
1811 : 5886 : 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 : 2512 : _readReturningClause(void)
1843 : : {
1844 : 2512 : READ_LOCALS(ReturningClause);
1845 : :
1846 : 2512 : READ_NODE_FIELD(options);
1847 : 2512 : READ_NODE_FIELD(exprs);
1848 : :
1849 : 2512 : 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 : 472536 : _readRawStmt(void)
2102 : : {
2103 : 472536 : READ_LOCALS(RawStmt);
2104 : :
2105 : 472536 : READ_NODE_FIELD(stmt);
2106 [ + - ]: 472536 : READ_LOCATION_FIELD(stmt_location);
2107 [ + - ]: 472536 : READ_LOCATION_FIELD(stmt_len);
2108 : :
2109 : 472536 : READ_DONE();
2110 : : }
2111 : :
2112 : : static InsertStmt *
2113 : 45264 : _readInsertStmt(void)
2114 : : {
2115 : 45264 : READ_LOCALS(InsertStmt);
2116 : :
2117 : 45264 : READ_NODE_FIELD(relation);
2118 : 45264 : READ_NODE_FIELD(cols);
2119 : 45264 : READ_NODE_FIELD(selectStmt);
2120 : 45264 : READ_NODE_FIELD(onConflictClause);
2121 : 45264 : READ_NODE_FIELD(returningClause);
2122 : 45264 : READ_NODE_FIELD(withClause);
2123 : 45264 : READ_ENUM_FIELD(override, OverridingKind);
2124 : :
2125 : 45264 : READ_DONE();
2126 : : }
2127 : :
2128 : : static DeleteStmt *
2129 : 3415 : _readDeleteStmt(void)
2130 : : {
2131 : 3415 : READ_LOCALS(DeleteStmt);
2132 : :
2133 : 3415 : READ_NODE_FIELD(relation);
2134 : 3415 : READ_NODE_FIELD(usingClause);
2135 : 3415 : READ_NODE_FIELD(whereClause);
2136 : 3415 : READ_NODE_FIELD(returningClause);
2137 : 3415 : READ_NODE_FIELD(withClause);
2138 : 3415 : READ_NODE_FIELD(forPortionOf);
2139 : :
2140 : 3415 : READ_DONE();
2141 : : }
2142 : :
2143 : : static UpdateStmt *
2144 : 9253 : _readUpdateStmt(void)
2145 : : {
2146 : 9253 : READ_LOCALS(UpdateStmt);
2147 : :
2148 : 9253 : READ_NODE_FIELD(relation);
2149 : 9253 : READ_NODE_FIELD(targetList);
2150 : 9253 : READ_NODE_FIELD(whereClause);
2151 : 9253 : READ_NODE_FIELD(fromClause);
2152 : 9253 : READ_NODE_FIELD(returningClause);
2153 : 9253 : READ_NODE_FIELD(withClause);
2154 : 9253 : READ_NODE_FIELD(forPortionOf);
2155 : :
2156 : 9253 : 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 : 345606 : _readSelectStmt(void)
2176 : : {
2177 : 345606 : READ_LOCALS(SelectStmt);
2178 : :
2179 : 345606 : READ_NODE_FIELD(distinctClause);
2180 : 345606 : READ_NODE_FIELD(intoClause);
2181 : 345606 : READ_NODE_FIELD(targetList);
2182 : 345606 : READ_NODE_FIELD(fromClause);
2183 : 345606 : READ_NODE_FIELD(whereClause);
2184 : 345606 : READ_NODE_FIELD(groupClause);
2185 : 345606 : READ_BOOL_FIELD(groupDistinct);
2186 : 345606 : READ_NODE_FIELD(havingClause);
2187 : 345606 : READ_NODE_FIELD(windowClause);
2188 : 345606 : READ_NODE_FIELD(valuesLists);
2189 : 345606 : READ_NODE_FIELD(sortClause);
2190 : 345606 : READ_NODE_FIELD(limitOffset);
2191 : 345606 : READ_NODE_FIELD(limitCount);
2192 : 345606 : READ_ENUM_FIELD(limitOption, LimitOption);
2193 : 345606 : READ_NODE_FIELD(lockingClause);
2194 : 345606 : READ_NODE_FIELD(withClause);
2195 : 345606 : READ_ENUM_FIELD(op, SetOperation);
2196 : 345606 : READ_BOOL_FIELD(all);
2197 : 345606 : READ_NODE_FIELD(larg);
2198 : 345606 : READ_NODE_FIELD(rarg);
2199 : :
2200 : 345606 : READ_DONE();
2201 : : }
2202 : :
2203 : : static SetOperationStmt *
2204 : 19599 : _readSetOperationStmt(void)
2205 : : {
2206 : 19599 : READ_LOCALS(SetOperationStmt);
2207 : :
2208 : 19599 : READ_ENUM_FIELD(op, SetOperation);
2209 : 19599 : READ_BOOL_FIELD(all);
2210 : 19599 : READ_NODE_FIELD(larg);
2211 : 19599 : READ_NODE_FIELD(rarg);
2212 : 19599 : READ_NODE_FIELD(colTypes);
2213 : 19599 : READ_NODE_FIELD(colTypmods);
2214 : 19599 : READ_NODE_FIELD(colCollations);
2215 : 19599 : READ_NODE_FIELD(groupClauses);
2216 : :
2217 : 19599 : 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 : 1545 : _readCreateSchemaStmt(void)
2246 : : {
2247 : 1545 : READ_LOCALS(CreateSchemaStmt);
2248 : :
2249 : 1545 : READ_STRING_FIELD(schemaname);
2250 : 1545 : READ_NODE_FIELD(authrole);
2251 : 1545 : READ_NODE_FIELD(schemaElts);
2252 : 1545 : READ_BOOL_FIELD(if_not_exists);
2253 : :
2254 : 1545 : READ_DONE();
2255 : : }
2256 : :
2257 : : static AlterTableStmt *
2258 : 41388 : _readAlterTableStmt(void)
2259 : : {
2260 : 41388 : READ_LOCALS(AlterTableStmt);
2261 : :
2262 : 41388 : READ_NODE_FIELD(relation);
2263 : 41388 : READ_NODE_FIELD(cmds);
2264 : 41388 : READ_ENUM_FIELD(objtype, ObjectType);
2265 : 41388 : READ_BOOL_FIELD(missing_ok);
2266 : :
2267 : 41388 : READ_DONE();
2268 : : }
2269 : :
2270 : : static AlterTableCmd *
2271 : 42798 : _readAlterTableCmd(void)
2272 : : {
2273 : 42798 : READ_LOCALS(AlterTableCmd);
2274 : :
2275 : 42798 : READ_ENUM_FIELD(subtype, AlterTableType);
2276 : 42798 : READ_STRING_FIELD(name);
2277 : 42798 : READ_INT_FIELD(num);
2278 : 42798 : READ_NODE_FIELD(newowner);
2279 : 42798 : READ_NODE_FIELD(def);
2280 : 42798 : READ_ENUM_FIELD(behavior, DropBehavior);
2281 : 42798 : READ_BOOL_FIELD(missing_ok);
2282 : 42798 : READ_BOOL_FIELD(recurse);
2283 : :
2284 : 42798 : 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 : 612 : _readReplicaIdentityStmt(void)
2306 : : {
2307 : 612 : READ_LOCALS(ReplicaIdentityStmt);
2308 : :
2309 [ + - - + ]: 612 : READ_CHAR_FIELD(identity_type);
2310 : 612 : READ_STRING_FIELD(name);
2311 : :
2312 : 612 : 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 : 17197 : _readGrantStmt(void)
2342 : : {
2343 : 17197 : READ_LOCALS(GrantStmt);
2344 : :
2345 : 17197 : READ_BOOL_FIELD(is_grant);
2346 : 17197 : READ_ENUM_FIELD(targtype, GrantTargetType);
2347 : 17197 : READ_ENUM_FIELD(objtype, ObjectType);
2348 : 17197 : READ_NODE_FIELD(objects);
2349 : 17197 : READ_NODE_FIELD(privileges);
2350 : 17197 : READ_NODE_FIELD(grantees);
2351 : 17197 : READ_BOOL_FIELD(grant_option);
2352 : 17197 : READ_NODE_FIELD(grantor);
2353 : 17197 : READ_ENUM_FIELD(behavior, DropBehavior);
2354 : :
2355 : 17197 : READ_DONE();
2356 : : }
2357 : :
2358 : : static ObjectWithArgs *
2359 : 16370 : _readObjectWithArgs(void)
2360 : : {
2361 : 16370 : READ_LOCALS(ObjectWithArgs);
2362 : :
2363 : 16370 : READ_NODE_FIELD(objname);
2364 : 16370 : READ_NODE_FIELD(objargs);
2365 : 16370 : READ_NODE_FIELD(objfuncargs);
2366 : 16370 : READ_BOOL_FIELD(args_unspecified);
2367 : :
2368 : 16370 : READ_DONE();
2369 : : }
2370 : :
2371 : : static AccessPriv *
2372 : 15381 : _readAccessPriv(void)
2373 : : {
2374 : 15381 : READ_LOCALS(AccessPriv);
2375 : :
2376 : 15381 : READ_STRING_FIELD(priv_name);
2377 : 15381 : READ_NODE_FIELD(cols);
2378 : :
2379 : 15381 : READ_DONE();
2380 : : }
2381 : :
2382 : : static GrantRoleStmt *
2383 : 836 : _readGrantRoleStmt(void)
2384 : : {
2385 : 836 : READ_LOCALS(GrantRoleStmt);
2386 : :
2387 : 836 : READ_NODE_FIELD(granted_roles);
2388 : 836 : READ_NODE_FIELD(grantee_roles);
2389 : 836 : READ_BOOL_FIELD(is_grant);
2390 : 836 : READ_NODE_FIELD(opt);
2391 : 836 : READ_NODE_FIELD(grantor);
2392 : 836 : READ_ENUM_FIELD(behavior, DropBehavior);
2393 : :
2394 : 836 : 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 : 13409 : _readCopyStmt(void)
2410 : : {
2411 : 13409 : READ_LOCALS(CopyStmt);
2412 : :
2413 : 13409 : READ_NODE_FIELD(relation);
2414 : 13409 : READ_NODE_FIELD(query);
2415 : 13409 : READ_NODE_FIELD(attlist);
2416 : 13409 : READ_BOOL_FIELD(is_from);
2417 : 13409 : READ_BOOL_FIELD(is_program);
2418 : 13409 : READ_STRING_FIELD(filename);
2419 : 13409 : READ_NODE_FIELD(options);
2420 : 13409 : READ_NODE_FIELD(whereClause);
2421 : :
2422 : 13409 : READ_DONE();
2423 : : }
2424 : :
2425 : : static VariableSetStmt *
2426 : 38537 : _readVariableSetStmt(void)
2427 : : {
2428 : 38537 : READ_LOCALS(VariableSetStmt);
2429 : :
2430 : 38537 : READ_ENUM_FIELD(kind, VariableSetKind);
2431 : 38537 : READ_STRING_FIELD(name);
2432 : 38537 : READ_NODE_FIELD(args);
2433 : 38537 : READ_BOOL_FIELD(jumble_args);
2434 : 38537 : READ_BOOL_FIELD(is_local);
2435 [ + - ]: 38537 : READ_LOCATION_FIELD(location);
2436 : :
2437 : 38537 : 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 : 52650 : _readCreateStmt(void)
2452 : : {
2453 : 52650 : READ_LOCALS(CreateStmt);
2454 : :
2455 : 52650 : READ_NODE_FIELD(relation);
2456 : 52650 : READ_NODE_FIELD(tableElts);
2457 : 52650 : READ_NODE_FIELD(inhRelations);
2458 : 52650 : READ_NODE_FIELD(partbound);
2459 : 52650 : READ_NODE_FIELD(partspec);
2460 : 52650 : READ_NODE_FIELD(ofTypename);
2461 : 52650 : READ_NODE_FIELD(constraints);
2462 : 52650 : READ_NODE_FIELD(nnconstraints);
2463 : 52650 : READ_NODE_FIELD(options);
2464 : 52650 : READ_ENUM_FIELD(oncommit, OnCommitAction);
2465 : 52650 : READ_STRING_FIELD(tablespacename);
2466 : 52650 : READ_STRING_FIELD(accessMethod);
2467 : 52650 : READ_BOOL_FIELD(if_not_exists);
2468 : :
2469 : 52650 : READ_DONE();
2470 : : }
2471 : :
2472 : : static Constraint *
2473 : 48322 : _readConstraint(void)
2474 : : {
2475 : 48322 : READ_LOCALS(Constraint);
2476 : :
2477 : 48322 : READ_ENUM_FIELD(contype, ConstrType);
2478 : 48322 : READ_STRING_FIELD(conname);
2479 : 48322 : READ_BOOL_FIELD(deferrable);
2480 : 48322 : READ_BOOL_FIELD(initdeferred);
2481 : 48322 : READ_BOOL_FIELD(is_enforced);
2482 : 48322 : READ_BOOL_FIELD(skip_validation);
2483 : 48322 : READ_BOOL_FIELD(initially_valid);
2484 : 48322 : READ_BOOL_FIELD(is_no_inherit);
2485 : 48322 : READ_NODE_FIELD(raw_expr);
2486 : 48322 : READ_STRING_FIELD(cooked_expr);
2487 [ + + - + ]: 48322 : READ_CHAR_FIELD(generated_when);
2488 [ + + - + ]: 48322 : READ_CHAR_FIELD(generated_kind);
2489 : 48322 : READ_BOOL_FIELD(nulls_not_distinct);
2490 : 48322 : READ_NODE_FIELD(keys);
2491 : 48322 : READ_BOOL_FIELD(without_overlaps);
2492 : 48322 : READ_NODE_FIELD(including);
2493 : 48322 : READ_NODE_FIELD(exclusions);
2494 : 48322 : READ_NODE_FIELD(options);
2495 : 48322 : READ_STRING_FIELD(indexname);
2496 : 48322 : READ_STRING_FIELD(indexspace);
2497 : 48322 : READ_BOOL_FIELD(reset_default_tblspc);
2498 : 48322 : READ_STRING_FIELD(access_method);
2499 : 48322 : READ_NODE_FIELD(where_clause);
2500 : 48322 : READ_NODE_FIELD(pktable);
2501 : 48322 : READ_NODE_FIELD(fk_attrs);
2502 : 48322 : READ_NODE_FIELD(pk_attrs);
2503 : 48322 : READ_BOOL_FIELD(fk_with_period);
2504 : 48322 : READ_BOOL_FIELD(pk_with_period);
2505 [ + + - + ]: 48322 : READ_CHAR_FIELD(fk_matchtype);
2506 [ + + - + ]: 48322 : READ_CHAR_FIELD(fk_upd_action);
2507 [ + + - + ]: 48322 : READ_CHAR_FIELD(fk_del_action);
2508 : 48322 : READ_NODE_FIELD(fk_del_set_cols);
2509 : 48322 : READ_NODE_FIELD(old_conpfeqop);
2510 : 48322 : READ_OID_FIELD(old_pktable_oid);
2511 [ + - ]: 48322 : READ_LOCATION_FIELD(location);
2512 : :
2513 : 48322 : READ_DONE();
2514 : : }
2515 : :
2516 : : static CreateTableSpaceStmt *
2517 : 152 : _readCreateTableSpaceStmt(void)
2518 : : {
2519 : 152 : READ_LOCALS(CreateTableSpaceStmt);
2520 : :
2521 : 152 : READ_STRING_FIELD(tablespacename);
2522 : 152 : READ_NODE_FIELD(owner);
2523 : 152 : READ_STRING_FIELD(location);
2524 : 152 : READ_NODE_FIELD(options);
2525 : :
2526 : 152 : READ_DONE();
2527 : : }
2528 : :
2529 : : static DropTableSpaceStmt *
2530 : 74 : _readDropTableSpaceStmt(void)
2531 : : {
2532 : 74 : READ_LOCALS(DropTableSpaceStmt);
2533 : :
2534 : 74 : READ_STRING_FIELD(tablespacename);
2535 : 74 : READ_BOOL_FIELD(missing_ok);
2536 : :
2537 : 74 : 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 : 42 : _readAlterTableMoveAllStmt(void)
2554 : : {
2555 : 42 : READ_LOCALS(AlterTableMoveAllStmt);
2556 : :
2557 : 42 : READ_STRING_FIELD(orig_tablespacename);
2558 : 42 : READ_ENUM_FIELD(objtype, ObjectType);
2559 : 42 : READ_NODE_FIELD(roles);
2560 : 42 : READ_STRING_FIELD(new_tablespacename);
2561 : 42 : READ_BOOL_FIELD(nowait);
2562 : :
2563 : 42 : READ_DONE();
2564 : : }
2565 : :
2566 : : static CreateExtensionStmt *
2567 : 672 : _readCreateExtensionStmt(void)
2568 : : {
2569 : 672 : READ_LOCALS(CreateExtensionStmt);
2570 : :
2571 : 672 : READ_STRING_FIELD(extname);
2572 : 672 : READ_BOOL_FIELD(if_not_exists);
2573 : 672 : READ_NODE_FIELD(options);
2574 : :
2575 : 672 : 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 : 222 : _readAlterFdwStmt(void)
2616 : : {
2617 : 222 : READ_LOCALS(AlterFdwStmt);
2618 : :
2619 : 222 : READ_STRING_FIELD(fdwname);
2620 : 222 : READ_NODE_FIELD(func_options);
2621 : 222 : READ_NODE_FIELD(options);
2622 : :
2623 : 222 : 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 : 342 : _readCreateUserMappingStmt(void)
2680 : : {
2681 : 342 : READ_LOCALS(CreateUserMappingStmt);
2682 : :
2683 : 342 : READ_NODE_FIELD(user);
2684 : 342 : READ_STRING_FIELD(servername);
2685 : 342 : READ_BOOL_FIELD(if_not_exists);
2686 : 342 : READ_NODE_FIELD(options);
2687 : :
2688 : 342 : READ_DONE();
2689 : : }
2690 : :
2691 : : static AlterUserMappingStmt *
2692 : 144 : _readAlterUserMappingStmt(void)
2693 : : {
2694 : 144 : READ_LOCALS(AlterUserMappingStmt);
2695 : :
2696 : 144 : READ_NODE_FIELD(user);
2697 : 144 : READ_STRING_FIELD(servername);
2698 : 144 : READ_NODE_FIELD(options);
2699 : :
2700 : 144 : READ_DONE();
2701 : : }
2702 : :
2703 : : static DropUserMappingStmt *
2704 : 166 : _readDropUserMappingStmt(void)
2705 : : {
2706 : 166 : READ_LOCALS(DropUserMappingStmt);
2707 : :
2708 : 166 : READ_NODE_FIELD(user);
2709 : 166 : READ_STRING_FIELD(servername);
2710 : 166 : READ_BOOL_FIELD(missing_ok);
2711 : :
2712 : 166 : 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 : 1206 : _readCreatePolicyStmt(void)
2732 : : {
2733 : 1206 : READ_LOCALS(CreatePolicyStmt);
2734 : :
2735 : 1206 : READ_STRING_FIELD(policy_name);
2736 : 1206 : READ_NODE_FIELD(table);
2737 : 1206 : READ_STRING_FIELD(cmd_name);
2738 : 1206 : READ_BOOL_FIELD(permissive);
2739 : 1206 : READ_NODE_FIELD(roles);
2740 : 1206 : READ_NODE_FIELD(qual);
2741 : 1206 : READ_NODE_FIELD(with_check);
2742 : :
2743 : 1206 : 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 : 2608 : _readCreateRoleStmt(void)
2837 : : {
2838 : 2608 : READ_LOCALS(CreateRoleStmt);
2839 : :
2840 : 2608 : READ_ENUM_FIELD(stmt_type, RoleStmtType);
2841 : 2608 : READ_STRING_FIELD(role);
2842 : 2608 : READ_NODE_FIELD(options);
2843 : :
2844 : 2608 : READ_DONE();
2845 : : }
2846 : :
2847 : : static AlterRoleStmt *
2848 : 580 : _readAlterRoleStmt(void)
2849 : : {
2850 : 580 : READ_LOCALS(AlterRoleStmt);
2851 : :
2852 : 580 : READ_NODE_FIELD(role);
2853 : 580 : READ_NODE_FIELD(options);
2854 : 580 : READ_INT_FIELD(action);
2855 : :
2856 : 580 : 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 : 2492 : _readDropRoleStmt(void)
2873 : : {
2874 : 2492 : READ_LOCALS(DropRoleStmt);
2875 : :
2876 : 2492 : READ_NODE_FIELD(roles);
2877 : 2492 : READ_BOOL_FIELD(missing_ok);
2878 : :
2879 : 2492 : 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 : 2002 : _readCreateDomainStmt(void)
2927 : : {
2928 : 2002 : READ_LOCALS(CreateDomainStmt);
2929 : :
2930 : 2002 : READ_NODE_FIELD(domainname);
2931 : 2002 : READ_NODE_FIELD(typeName);
2932 : 2002 : READ_NODE_FIELD(collClause);
2933 : 2002 : READ_NODE_FIELD(constraints);
2934 : :
2935 : 2002 : 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 : 36043 : _readDropStmt(void)
2994 : : {
2995 : 36043 : READ_LOCALS(DropStmt);
2996 : :
2997 : 36043 : READ_NODE_FIELD(objects);
2998 : 36043 : READ_ENUM_FIELD(removeType, ObjectType);
2999 : 36043 : READ_ENUM_FIELD(behavior, DropBehavior);
3000 : 36043 : READ_BOOL_FIELD(missing_ok);
3001 : 36043 : READ_BOOL_FIELD(concurrent);
3002 : :
3003 : 36043 : READ_DONE();
3004 : : }
3005 : :
3006 : : static TruncateStmt *
3007 : 2372 : _readTruncateStmt(void)
3008 : : {
3009 : 2372 : READ_LOCALS(TruncateStmt);
3010 : :
3011 : 2372 : READ_NODE_FIELD(relations);
3012 : 2372 : READ_BOOL_FIELD(restart_seqs);
3013 : 2372 : READ_ENUM_FIELD(behavior, DropBehavior);
3014 : :
3015 : 2372 : 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 : 4346 : _readDeclareCursorStmt(void)
3045 : : {
3046 : 4346 : READ_LOCALS(DeclareCursorStmt);
3047 : :
3048 : 4346 : READ_STRING_FIELD(portalname);
3049 : 4346 : READ_INT_FIELD(options);
3050 : 4346 : READ_NODE_FIELD(query);
3051 : :
3052 : 4346 : READ_DONE();
3053 : : }
3054 : :
3055 : : static ClosePortalStmt *
3056 : 2370 : _readClosePortalStmt(void)
3057 : : {
3058 : 2370 : READ_LOCALS(ClosePortalStmt);
3059 : :
3060 : 2370 : READ_STRING_FIELD(portalname);
3061 : :
3062 : 2370 : READ_DONE();
3063 : : }
3064 : :
3065 : : static FetchStmt *
3066 : 7744 : _readFetchStmt(void)
3067 : : {
3068 : 7744 : READ_LOCALS(FetchStmt);
3069 : :
3070 : 7744 : READ_ENUM_FIELD(direction, FetchDirection);
3071 : 7744 : READ_LONG_FIELD(howMany);
3072 : 7744 : READ_STRING_FIELD(portalname);
3073 : 7744 : READ_BOOL_FIELD(ismove);
3074 : 7744 : READ_ENUM_FIELD(direction_keyword, FetchDirectionKeywords);
3075 [ + - ]: 7744 : READ_LOCATION_FIELD(location);
3076 : :
3077 : 7744 : READ_DONE();
3078 : : }
3079 : :
3080 : : static IndexStmt *
3081 : 8763 : _readIndexStmt(void)
3082 : : {
3083 : 8763 : READ_LOCALS(IndexStmt);
3084 : :
3085 : 8763 : READ_STRING_FIELD(idxname);
3086 : 8763 : READ_NODE_FIELD(relation);
3087 : 8763 : READ_STRING_FIELD(accessMethod);
3088 : 8763 : READ_STRING_FIELD(tableSpace);
3089 : 8763 : READ_NODE_FIELD(indexParams);
3090 : 8763 : READ_NODE_FIELD(indexIncludingParams);
3091 : 8763 : READ_NODE_FIELD(options);
3092 : 8763 : READ_NODE_FIELD(whereClause);
3093 : 8763 : READ_NODE_FIELD(excludeOpNames);
3094 : 8763 : READ_STRING_FIELD(idxcomment);
3095 : 8763 : READ_OID_FIELD(indexOid);
3096 : 8763 : READ_OID_FIELD(oldNumber);
3097 : 8763 : READ_UINT_FIELD(oldCreateSubid);
3098 : 8763 : READ_UINT_FIELD(oldFirstRelfilelocatorSubid);
3099 : 8763 : READ_BOOL_FIELD(unique);
3100 : 8763 : READ_BOOL_FIELD(nulls_not_distinct);
3101 : 8763 : READ_BOOL_FIELD(primary);
3102 : 8763 : READ_BOOL_FIELD(isconstraint);
3103 : 8763 : READ_BOOL_FIELD(iswithoutoverlaps);
3104 : 8763 : READ_BOOL_FIELD(deferrable);
3105 : 8763 : READ_BOOL_FIELD(initdeferred);
3106 : 8763 : READ_BOOL_FIELD(transformed);
3107 : 8763 : READ_BOOL_FIELD(concurrent);
3108 : 8763 : READ_BOOL_FIELD(if_not_exists);
3109 : 8763 : READ_BOOL_FIELD(reset_default_tblspc);
3110 : :
3111 : 8763 : READ_DONE();
3112 : : }
3113 : :
3114 : : static CreateStatsStmt *
3115 : 1212 : _readCreateStatsStmt(void)
3116 : : {
3117 : 1212 : READ_LOCALS(CreateStatsStmt);
3118 : :
3119 : 1212 : READ_NODE_FIELD(defnames);
3120 : 1212 : READ_NODE_FIELD(stat_types);
3121 : 1212 : READ_NODE_FIELD(exprs);
3122 : 1212 : READ_NODE_FIELD(relations);
3123 : 1212 : READ_STRING_FIELD(stxcomment);
3124 : 1212 : READ_BOOL_FIELD(transformed);
3125 : 1212 : READ_BOOL_FIELD(if_not_exists);
3126 : :
3127 : 1212 : READ_DONE();
3128 : : }
3129 : :
3130 : : static StatsElem *
3131 : 2856 : _readStatsElem(void)
3132 : : {
3133 : 2856 : READ_LOCALS(StatsElem);
3134 : :
3135 : 2856 : READ_STRING_FIELD(name);
3136 : 2856 : READ_NODE_FIELD(expr);
3137 : :
3138 : 2856 : READ_DONE();
3139 : : }
3140 : :
3141 : : static AlterStatsStmt *
3142 : 34 : _readAlterStatsStmt(void)
3143 : : {
3144 : 34 : READ_LOCALS(AlterStatsStmt);
3145 : :
3146 : 34 : READ_NODE_FIELD(defnames);
3147 : 34 : READ_NODE_FIELD(stxstattarget);
3148 : 34 : READ_BOOL_FIELD(missing_ok);
3149 : :
3150 : 34 : READ_DONE();
3151 : : }
3152 : :
3153 : : static CreateFunctionStmt *
3154 : 26325 : _readCreateFunctionStmt(void)
3155 : : {
3156 : 26325 : READ_LOCALS(CreateFunctionStmt);
3157 : :
3158 : 26325 : READ_BOOL_FIELD(is_procedure);
3159 : 26325 : READ_BOOL_FIELD(replace);
3160 : 26325 : READ_NODE_FIELD(funcname);
3161 : 26325 : READ_NODE_FIELD(parameters);
3162 : 26325 : READ_NODE_FIELD(returnType);
3163 : 26325 : READ_NODE_FIELD(options);
3164 : 26325 : READ_NODE_FIELD(sql_body);
3165 : :
3166 : 26325 : READ_DONE();
3167 : : }
3168 : :
3169 : : static FunctionParameter *
3170 : 67856 : _readFunctionParameter(void)
3171 : : {
3172 : 67856 : READ_LOCALS(FunctionParameter);
3173 : :
3174 : 67856 : READ_STRING_FIELD(name);
3175 : 67856 : READ_NODE_FIELD(argType);
3176 : 67856 : READ_ENUM_FIELD(mode, FunctionParameterMode);
3177 : 67856 : READ_NODE_FIELD(defexpr);
3178 [ + - ]: 67856 : READ_LOCATION_FIELD(location);
3179 : :
3180 : 67856 : READ_DONE();
3181 : : }
3182 : :
3183 : : static AlterFunctionStmt *
3184 : 418 : _readAlterFunctionStmt(void)
3185 : : {
3186 : 418 : READ_LOCALS(AlterFunctionStmt);
3187 : :
3188 : 418 : READ_ENUM_FIELD(objtype, ObjectType);
3189 : 418 : READ_NODE_FIELD(func);
3190 : 418 : READ_NODE_FIELD(actions);
3191 : :
3192 : 418 : READ_DONE();
3193 : : }
3194 : :
3195 : : static DoStmt *
3196 : 1310 : _readDoStmt(void)
3197 : : {
3198 : 1310 : READ_LOCALS(DoStmt);
3199 : :
3200 : 1310 : READ_NODE_FIELD(args);
3201 : :
3202 : 1310 : READ_DONE();
3203 : : }
3204 : :
3205 : : static CallStmt *
3206 : 548 : _readCallStmt(void)
3207 : : {
3208 : 548 : READ_LOCALS(CallStmt);
3209 : :
3210 : 548 : READ_NODE_FIELD(funccall);
3211 : 548 : READ_NODE_FIELD(funcexpr);
3212 : 548 : READ_NODE_FIELD(outargs);
3213 : :
3214 : 548 : READ_DONE();
3215 : : }
3216 : :
3217 : : static RenameStmt *
3218 : 1956 : _readRenameStmt(void)
3219 : : {
3220 : 1956 : READ_LOCALS(RenameStmt);
3221 : :
3222 : 1956 : READ_ENUM_FIELD(renameType, ObjectType);
3223 : 1956 : READ_ENUM_FIELD(relationType, ObjectType);
3224 : 1956 : READ_NODE_FIELD(relation);
3225 : 1956 : READ_NODE_FIELD(object);
3226 : 1956 : READ_STRING_FIELD(subname);
3227 : 1956 : READ_STRING_FIELD(newname);
3228 : 1956 : READ_ENUM_FIELD(behavior, DropBehavior);
3229 : 1956 : READ_BOOL_FIELD(missing_ok);
3230 : :
3231 : 1956 : READ_DONE();
3232 : : }
3233 : :
3234 : : static AlterObjectDependsStmt *
3235 : 70 : _readAlterObjectDependsStmt(void)
3236 : : {
3237 : 70 : READ_LOCALS(AlterObjectDependsStmt);
3238 : :
3239 : 70 : READ_ENUM_FIELD(objectType, ObjectType);
3240 : 70 : READ_NODE_FIELD(relation);
3241 : 70 : READ_NODE_FIELD(object);
3242 : 70 : READ_NODE_FIELD(extname);
3243 : 70 : READ_BOOL_FIELD(remove);
3244 : :
3245 : 70 : READ_DONE();
3246 : : }
3247 : :
3248 : : static AlterObjectSchemaStmt *
3249 : 582 : _readAlterObjectSchemaStmt(void)
3250 : : {
3251 : 582 : READ_LOCALS(AlterObjectSchemaStmt);
3252 : :
3253 : 582 : READ_ENUM_FIELD(objectType, ObjectType);
3254 : 582 : READ_NODE_FIELD(relation);
3255 : 582 : READ_NODE_FIELD(object);
3256 : 582 : READ_STRING_FIELD(newschema);
3257 : 582 : READ_BOOL_FIELD(missing_ok);
3258 : :
3259 : 582 : READ_DONE();
3260 : : }
3261 : :
3262 : : static AlterOwnerStmt *
3263 : 2022 : _readAlterOwnerStmt(void)
3264 : : {
3265 : 2022 : READ_LOCALS(AlterOwnerStmt);
3266 : :
3267 : 2022 : READ_ENUM_FIELD(objectType, ObjectType);
3268 : 2022 : READ_NODE_FIELD(relation);
3269 : 2022 : READ_NODE_FIELD(object);
3270 : 2022 : READ_NODE_FIELD(newowner);
3271 : :
3272 : 2022 : READ_DONE();
3273 : : }
3274 : :
3275 : : static AlterOperatorStmt *
3276 : 664 : _readAlterOperatorStmt(void)
3277 : : {
3278 : 664 : READ_LOCALS(AlterOperatorStmt);
3279 : :
3280 : 664 : READ_NODE_FIELD(opername);
3281 : 664 : READ_NODE_FIELD(options);
3282 : :
3283 : 664 : READ_DONE();
3284 : : }
3285 : :
3286 : : static AlterTypeStmt *
3287 : 72 : _readAlterTypeStmt(void)
3288 : : {
3289 : 72 : READ_LOCALS(AlterTypeStmt);
3290 : :
3291 : 72 : READ_NODE_FIELD(typeName);
3292 : 72 : READ_NODE_FIELD(options);
3293 : :
3294 : 72 : READ_DONE();
3295 : : }
3296 : :
3297 : : static RuleStmt *
3298 : 1524 : _readRuleStmt(void)
3299 : : {
3300 : 1524 : READ_LOCALS(RuleStmt);
3301 : :
3302 : 1524 : READ_NODE_FIELD(relation);
3303 : 1524 : READ_STRING_FIELD(rulename);
3304 : 1524 : READ_NODE_FIELD(whereClause);
3305 : 1524 : READ_ENUM_FIELD(event, CmdType);
3306 : 1524 : READ_BOOL_FIELD(instead);
3307 : 1524 : READ_NODE_FIELD(actions);
3308 : 1524 : READ_BOOL_FIELD(replace);
3309 : :
3310 : 1524 : READ_DONE();
3311 : : }
3312 : :
3313 : : static NotifyStmt *
3314 : 253 : _readNotifyStmt(void)
3315 : : {
3316 : 253 : READ_LOCALS(NotifyStmt);
3317 : :
3318 : 253 : READ_STRING_FIELD(conditionname);
3319 : 253 : READ_STRING_FIELD(payload);
3320 : :
3321 : 253 : READ_DONE();
3322 : : }
3323 : :
3324 : : static ListenStmt *
3325 : 104 : _readListenStmt(void)
3326 : : {
3327 : 104 : READ_LOCALS(ListenStmt);
3328 : :
3329 : 104 : READ_STRING_FIELD(conditionname);
3330 : :
3331 : 104 : READ_DONE();
3332 : : }
3333 : :
3334 : : static UnlistenStmt *
3335 : 124 : _readUnlistenStmt(void)
3336 : : {
3337 : 124 : READ_LOCALS(UnlistenStmt);
3338 : :
3339 : 124 : READ_STRING_FIELD(conditionname);
3340 : :
3341 : 124 : READ_DONE();
3342 : : }
3343 : :
3344 : : static TransactionStmt *
3345 : 54306 : _readTransactionStmt(void)
3346 : : {
3347 : 54306 : READ_LOCALS(TransactionStmt);
3348 : :
3349 : 54306 : READ_ENUM_FIELD(kind, TransactionStmtKind);
3350 : 54306 : READ_NODE_FIELD(options);
3351 : 54306 : READ_STRING_FIELD(savepoint_name);
3352 : 54306 : READ_STRING_FIELD(gid);
3353 : 54306 : READ_BOOL_FIELD(chain);
3354 [ + - ]: 54306 : READ_LOCATION_FIELD(location);
3355 : :
3356 : 54306 : READ_DONE();
3357 : : }
3358 : :
3359 : : static CompositeTypeStmt *
3360 : 2862 : _readCompositeTypeStmt(void)
3361 : : {
3362 : 2862 : READ_LOCALS(CompositeTypeStmt);
3363 : :
3364 : 2862 : READ_NODE_FIELD(typevar);
3365 : 2862 : READ_NODE_FIELD(coldeflist);
3366 : :
3367 : 2862 : READ_DONE();
3368 : : }
3369 : :
3370 : : static CreateEnumStmt *
3371 : 332 : _readCreateEnumStmt(void)
3372 : : {
3373 : 332 : READ_LOCALS(CreateEnumStmt);
3374 : :
3375 : 332 : READ_NODE_FIELD(typeName);
3376 : 332 : READ_NODE_FIELD(vals);
3377 : :
3378 : 332 : READ_DONE();
3379 : : }
3380 : :
3381 : : static CreateRangeStmt *
3382 : 300 : _readCreateRangeStmt(void)
3383 : : {
3384 : 300 : READ_LOCALS(CreateRangeStmt);
3385 : :
3386 : 300 : READ_NODE_FIELD(typeName);
3387 : 300 : READ_NODE_FIELD(params);
3388 : :
3389 : 300 : READ_DONE();
3390 : : }
3391 : :
3392 : : static AlterEnumStmt *
3393 : 492 : _readAlterEnumStmt(void)
3394 : : {
3395 : 492 : READ_LOCALS(AlterEnumStmt);
3396 : :
3397 : 492 : READ_NODE_FIELD(typeName);
3398 : 492 : READ_STRING_FIELD(oldVal);
3399 : 492 : READ_STRING_FIELD(newVal);
3400 : 492 : READ_STRING_FIELD(newValNeighbor);
3401 : 492 : READ_BOOL_FIELD(newValIsAfter);
3402 : 492 : READ_BOOL_FIELD(skipIfNewValExists);
3403 : :
3404 : 492 : READ_DONE();
3405 : : }
3406 : :
3407 : : static ViewStmt *
3408 : 22049 : _readViewStmt(void)
3409 : : {
3410 : 22049 : READ_LOCALS(ViewStmt);
3411 : :
3412 : 22049 : READ_NODE_FIELD(view);
3413 : 22049 : READ_NODE_FIELD(aliases);
3414 : 22049 : READ_NODE_FIELD(query);
3415 : 22049 : READ_BOOL_FIELD(replace);
3416 : 22049 : READ_NODE_FIELD(options);
3417 : 22049 : READ_ENUM_FIELD(withCheckOption, ViewCheckOption);
3418 : :
3419 : 22049 : READ_DONE();
3420 : : }
3421 : :
3422 : : static LoadStmt *
3423 : 92 : _readLoadStmt(void)
3424 : : {
3425 : 92 : READ_LOCALS(LoadStmt);
3426 : :
3427 : 92 : READ_STRING_FIELD(filename);
3428 : :
3429 : 92 : READ_DONE();
3430 : : }
3431 : :
3432 : : static CreatedbStmt *
3433 : 892 : _readCreatedbStmt(void)
3434 : : {
3435 : 892 : READ_LOCALS(CreatedbStmt);
3436 : :
3437 : 892 : READ_STRING_FIELD(dbname);
3438 : 892 : READ_NODE_FIELD(options);
3439 : :
3440 : 892 : READ_DONE();
3441 : : }
3442 : :
3443 : : static AlterDatabaseStmt *
3444 : 106 : _readAlterDatabaseStmt(void)
3445 : : {
3446 : 106 : READ_LOCALS(AlterDatabaseStmt);
3447 : :
3448 : 106 : READ_STRING_FIELD(dbname);
3449 : 106 : READ_NODE_FIELD(options);
3450 : :
3451 : 106 : READ_DONE();
3452 : : }
3453 : :
3454 : : static AlterDatabaseRefreshCollStmt *
3455 : 8 : _readAlterDatabaseRefreshCollStmt(void)
3456 : : {
3457 : 8 : READ_LOCALS(AlterDatabaseRefreshCollStmt);
3458 : :
3459 : 8 : READ_STRING_FIELD(dbname);
3460 : :
3461 : 8 : READ_DONE();
3462 : : }
3463 : :
3464 : : static AlterDatabaseSetStmt *
3465 : 1346 : _readAlterDatabaseSetStmt(void)
3466 : : {
3467 : 1346 : READ_LOCALS(AlterDatabaseSetStmt);
3468 : :
3469 : 1346 : READ_STRING_FIELD(dbname);
3470 : 1346 : READ_NODE_FIELD(setstmt);
3471 : :
3472 : 1346 : READ_DONE();
3473 : : }
3474 : :
3475 : : static DropdbStmt *
3476 : 152 : _readDropdbStmt(void)
3477 : : {
3478 : 152 : READ_LOCALS(DropdbStmt);
3479 : :
3480 : 152 : READ_STRING_FIELD(dbname);
3481 : 152 : READ_BOOL_FIELD(missing_ok);
3482 : 152 : READ_NODE_FIELD(options);
3483 : :
3484 : 152 : READ_DONE();
3485 : : }
3486 : :
3487 : : static AlterSystemStmt *
3488 : 242 : _readAlterSystemStmt(void)
3489 : : {
3490 : 242 : READ_LOCALS(AlterSystemStmt);
3491 : :
3492 : 242 : READ_NODE_FIELD(setstmt);
3493 : :
3494 : 242 : READ_DONE();
3495 : : }
3496 : :
3497 : : static VacuumStmt *
3498 : 17768 : _readVacuumStmt(void)
3499 : : {
3500 : 17768 : READ_LOCALS(VacuumStmt);
3501 : :
3502 : 17768 : READ_NODE_FIELD(options);
3503 : 17768 : READ_NODE_FIELD(rels);
3504 : 17768 : READ_BOOL_FIELD(is_vacuumcmd);
3505 : :
3506 : 17768 : READ_DONE();
3507 : : }
3508 : :
3509 : : static VacuumRelation *
3510 : 18028 : _readVacuumRelation(void)
3511 : : {
3512 : 18028 : READ_LOCALS(VacuumRelation);
3513 : :
3514 : 18028 : READ_NODE_FIELD(relation);
3515 : 18028 : READ_OID_FIELD(oid);
3516 : 18028 : READ_NODE_FIELD(va_cols);
3517 : :
3518 : 18028 : READ_DONE();
3519 : : }
3520 : :
3521 : : static RepackStmt *
3522 : 468 : _readRepackStmt(void)
3523 : : {
3524 : 468 : READ_LOCALS(RepackStmt);
3525 : :
3526 : 468 : READ_ENUM_FIELD(command, RepackCommand);
3527 : 468 : READ_NODE_FIELD(relation);
3528 : 468 : READ_STRING_FIELD(indexname);
3529 : 468 : READ_BOOL_FIELD(usingindex);
3530 : 468 : READ_NODE_FIELD(params);
3531 : :
3532 : 468 : READ_DONE();
3533 : : }
3534 : :
3535 : : static ExplainStmt *
3536 : 27932 : _readExplainStmt(void)
3537 : : {
3538 : 27932 : READ_LOCALS(ExplainStmt);
3539 : :
3540 : 27932 : READ_NODE_FIELD(query);
3541 : 27932 : READ_NODE_FIELD(options);
3542 : :
3543 : 27932 : READ_DONE();
3544 : : }
3545 : :
3546 : : static CreateTableAsStmt *
3547 : 2510 : _readCreateTableAsStmt(void)
3548 : : {
3549 : 2510 : READ_LOCALS(CreateTableAsStmt);
3550 : :
3551 : 2510 : READ_NODE_FIELD(query);
3552 : 2510 : READ_NODE_FIELD(into);
3553 : 2510 : READ_ENUM_FIELD(objtype, ObjectType);
3554 : 2510 : READ_BOOL_FIELD(is_select_into);
3555 : 2510 : READ_BOOL_FIELD(if_not_exists);
3556 : :
3557 : 2510 : READ_DONE();
3558 : : }
3559 : :
3560 : : static RefreshMatViewStmt *
3561 : 348 : _readRefreshMatViewStmt(void)
3562 : : {
3563 : 348 : READ_LOCALS(RefreshMatViewStmt);
3564 : :
3565 : 348 : READ_BOOL_FIELD(concurrent);
3566 : 348 : READ_BOOL_FIELD(skipData);
3567 : 348 : READ_NODE_FIELD(relation);
3568 : :
3569 : 348 : READ_DONE();
3570 : : }
3571 : :
3572 : : static CheckPointStmt *
3573 : 285 : _readCheckPointStmt(void)
3574 : : {
3575 : 285 : READ_LOCALS(CheckPointStmt);
3576 : :
3577 : 285 : READ_NODE_FIELD(options);
3578 : :
3579 : 285 : READ_DONE();
3580 : : }
3581 : :
3582 : : static DiscardStmt *
3583 : 48 : _readDiscardStmt(void)
3584 : : {
3585 : 48 : READ_LOCALS(DiscardStmt);
3586 : :
3587 : 48 : READ_ENUM_FIELD(target, DiscardMode);
3588 : :
3589 : 48 : READ_DONE();
3590 : : }
3591 : :
3592 : : static LockStmt *
3593 : 1196 : _readLockStmt(void)
3594 : : {
3595 : 1196 : READ_LOCALS(LockStmt);
3596 : :
3597 : 1196 : READ_NODE_FIELD(relations);
3598 : 1196 : READ_INT_FIELD(mode);
3599 : 1196 : READ_BOOL_FIELD(nowait);
3600 : :
3601 : 1196 : READ_DONE();
3602 : : }
3603 : :
3604 : : static ConstraintsSetStmt *
3605 : 141 : _readConstraintsSetStmt(void)
3606 : : {
3607 : 141 : READ_LOCALS(ConstraintsSetStmt);
3608 : :
3609 : 141 : READ_NODE_FIELD(constraints);
3610 : 141 : READ_BOOL_FIELD(deferred);
3611 : :
3612 : 141 : READ_DONE();
3613 : : }
3614 : :
3615 : : static ReindexStmt *
3616 : 1402 : _readReindexStmt(void)
3617 : : {
3618 : 1402 : READ_LOCALS(ReindexStmt);
3619 : :
3620 : 1402 : READ_ENUM_FIELD(kind, ReindexObjectType);
3621 : 1402 : READ_NODE_FIELD(relation);
3622 : 1402 : READ_STRING_FIELD(name);
3623 : 1402 : READ_NODE_FIELD(params);
3624 : :
3625 : 1402 : READ_DONE();
3626 : : }
3627 : :
3628 : : static CreateConversionStmt *
3629 : 84 : _readCreateConversionStmt(void)
3630 : : {
3631 : 84 : READ_LOCALS(CreateConversionStmt);
3632 : :
3633 : 84 : READ_NODE_FIELD(conversion_name);
3634 : 84 : READ_STRING_FIELD(for_encoding_name);
3635 : 84 : READ_STRING_FIELD(to_encoding_name);
3636 : 84 : READ_NODE_FIELD(func_name);
3637 : 84 : READ_BOOL_FIELD(def);
3638 : :
3639 : 84 : READ_DONE();
3640 : : }
3641 : :
3642 : : static CreateCastStmt *
3643 : 344 : _readCreateCastStmt(void)
3644 : : {
3645 : 344 : READ_LOCALS(CreateCastStmt);
3646 : :
3647 : 344 : READ_NODE_FIELD(sourcetype);
3648 : 344 : READ_NODE_FIELD(targettype);
3649 : 344 : READ_NODE_FIELD(func);
3650 : 344 : READ_ENUM_FIELD(context, CoercionContext);
3651 : 344 : READ_BOOL_FIELD(inout);
3652 : :
3653 : 344 : READ_DONE();
3654 : : }
3655 : :
3656 : : static CreatePropGraphStmt *
3657 : 420 : _readCreatePropGraphStmt(void)
3658 : : {
3659 : 420 : READ_LOCALS(CreatePropGraphStmt);
3660 : :
3661 : 420 : READ_NODE_FIELD(pgname);
3662 : 420 : READ_NODE_FIELD(vertex_tables);
3663 : 420 : READ_NODE_FIELD(edge_tables);
3664 : :
3665 : 420 : READ_DONE();
3666 : : }
3667 : :
3668 : : static PropGraphVertex *
3669 : 822 : _readPropGraphVertex(void)
3670 : : {
3671 : 822 : READ_LOCALS(PropGraphVertex);
3672 : :
3673 : 822 : READ_NODE_FIELD(vtable);
3674 : 822 : READ_NODE_FIELD(vkey);
3675 : 822 : READ_NODE_FIELD(labels);
3676 [ + - ]: 822 : READ_LOCATION_FIELD(location);
3677 : :
3678 : 822 : READ_DONE();
3679 : : }
3680 : :
3681 : : static PropGraphEdge *
3682 : 434 : _readPropGraphEdge(void)
3683 : : {
3684 : 434 : READ_LOCALS(PropGraphEdge);
3685 : :
3686 : 434 : READ_NODE_FIELD(etable);
3687 : 434 : READ_NODE_FIELD(ekey);
3688 : 434 : READ_NODE_FIELD(esrckey);
3689 : 434 : READ_STRING_FIELD(esrcvertex);
3690 : 434 : READ_NODE_FIELD(esrcvertexcols);
3691 : 434 : READ_NODE_FIELD(edestkey);
3692 : 434 : READ_STRING_FIELD(edestvertex);
3693 : 434 : READ_NODE_FIELD(edestvertexcols);
3694 : 434 : READ_NODE_FIELD(labels);
3695 [ + - ]: 434 : READ_LOCATION_FIELD(location);
3696 : :
3697 : 434 : READ_DONE();
3698 : : }
3699 : :
3700 : : static PropGraphLabelAndProperties *
3701 : 1550 : _readPropGraphLabelAndProperties(void)
3702 : : {
3703 : 1550 : READ_LOCALS(PropGraphLabelAndProperties);
3704 : :
3705 : 1550 : READ_STRING_FIELD(label);
3706 : 1550 : READ_NODE_FIELD(properties);
3707 [ + - ]: 1550 : READ_LOCATION_FIELD(location);
3708 : :
3709 : 1550 : READ_DONE();
3710 : : }
3711 : :
3712 : : static PropGraphProperties *
3713 : 1566 : _readPropGraphProperties(void)
3714 : : {
3715 : 1566 : READ_LOCALS(PropGraphProperties);
3716 : :
3717 : 1566 : READ_NODE_FIELD(properties);
3718 : 1566 : READ_BOOL_FIELD(all);
3719 [ + - ]: 1566 : READ_LOCATION_FIELD(location);
3720 : :
3721 : 1566 : READ_DONE();
3722 : : }
3723 : :
3724 : : static AlterPropGraphStmt *
3725 : 320 : _readAlterPropGraphStmt(void)
3726 : : {
3727 : 320 : READ_LOCALS(AlterPropGraphStmt);
3728 : :
3729 : 320 : READ_NODE_FIELD(pgname);
3730 : 320 : READ_BOOL_FIELD(missing_ok);
3731 : 320 : READ_NODE_FIELD(add_vertex_tables);
3732 : 320 : READ_NODE_FIELD(add_edge_tables);
3733 : 320 : READ_NODE_FIELD(drop_vertex_tables);
3734 : 320 : READ_NODE_FIELD(drop_edge_tables);
3735 : 320 : READ_ENUM_FIELD(drop_behavior, DropBehavior);
3736 : 320 : READ_ENUM_FIELD(element_kind, AlterPropGraphElementKind);
3737 : 320 : READ_STRING_FIELD(element_alias);
3738 : 320 : READ_NODE_FIELD(add_labels);
3739 : 320 : READ_STRING_FIELD(drop_label);
3740 : 320 : READ_STRING_FIELD(alter_label);
3741 : 320 : READ_NODE_FIELD(add_properties);
3742 : 320 : READ_NODE_FIELD(drop_properties);
3743 : :
3744 : 320 : READ_DONE();
3745 : : }
3746 : :
3747 : : static CreateTransformStmt *
3748 : 52 : _readCreateTransformStmt(void)
3749 : : {
3750 : 52 : READ_LOCALS(CreateTransformStmt);
3751 : :
3752 : 52 : READ_BOOL_FIELD(replace);
3753 : 52 : READ_NODE_FIELD(type_name);
3754 : 52 : READ_STRING_FIELD(lang);
3755 : 52 : READ_NODE_FIELD(fromsql);
3756 : 52 : READ_NODE_FIELD(tosql);
3757 : :
3758 : 52 : READ_DONE();
3759 : : }
3760 : :
3761 : : static PrepareStmt *
3762 : 2276 : _readPrepareStmt(void)
3763 : : {
3764 : 2276 : READ_LOCALS(PrepareStmt);
3765 : :
3766 : 2276 : READ_STRING_FIELD(name);
3767 : 2276 : READ_NODE_FIELD(argtypes);
3768 : 2276 : READ_NODE_FIELD(query);
3769 : :
3770 : 2276 : READ_DONE();
3771 : : }
3772 : :
3773 : : static ExecuteStmt *
3774 : 18040 : _readExecuteStmt(void)
3775 : : {
3776 : 18040 : READ_LOCALS(ExecuteStmt);
3777 : :
3778 : 18040 : READ_STRING_FIELD(name);
3779 : 18040 : READ_NODE_FIELD(params);
3780 : :
3781 : 18040 : READ_DONE();
3782 : : }
3783 : :
3784 : : static DeallocateStmt *
3785 : 4196 : _readDeallocateStmt(void)
3786 : : {
3787 : 4196 : READ_LOCALS(DeallocateStmt);
3788 : :
3789 : 4196 : READ_STRING_FIELD(name);
3790 : 4196 : READ_BOOL_FIELD(isall);
3791 [ + - ]: 4196 : READ_LOCATION_FIELD(location);
3792 : :
3793 : 4196 : READ_DONE();
3794 : : }
3795 : :
3796 : : static DropOwnedStmt *
3797 : 188 : _readDropOwnedStmt(void)
3798 : : {
3799 : 188 : READ_LOCALS(DropOwnedStmt);
3800 : :
3801 : 188 : READ_NODE_FIELD(roles);
3802 : 188 : READ_ENUM_FIELD(behavior, DropBehavior);
3803 : :
3804 : 188 : READ_DONE();
3805 : : }
3806 : :
3807 : : static ReassignOwnedStmt *
3808 : 72 : _readReassignOwnedStmt(void)
3809 : : {
3810 : 72 : READ_LOCALS(ReassignOwnedStmt);
3811 : :
3812 : 72 : READ_NODE_FIELD(roles);
3813 : 72 : READ_NODE_FIELD(newrole);
3814 : :
3815 : 72 : READ_DONE();
3816 : : }
3817 : :
3818 : : static AlterTSDictionaryStmt *
3819 : 46 : _readAlterTSDictionaryStmt(void)
3820 : : {
3821 : 46 : READ_LOCALS(AlterTSDictionaryStmt);
3822 : :
3823 : 46 : READ_NODE_FIELD(dictname);
3824 : 46 : READ_NODE_FIELD(options);
3825 : :
3826 : 46 : READ_DONE();
3827 : : }
3828 : :
3829 : : static AlterTSConfigurationStmt *
3830 : 10500 : _readAlterTSConfigurationStmt(void)
3831 : : {
3832 : 10500 : READ_LOCALS(AlterTSConfigurationStmt);
3833 : :
3834 : 10500 : READ_ENUM_FIELD(kind, AlterTSConfigType);
3835 : 10500 : READ_NODE_FIELD(cfgname);
3836 : 10500 : READ_NODE_FIELD(tokentype);
3837 : 10500 : READ_NODE_FIELD(dicts);
3838 : 10500 : READ_BOOL_FIELD(override);
3839 : 10500 : READ_BOOL_FIELD(replace);
3840 : 10500 : READ_BOOL_FIELD(missing_ok);
3841 : :
3842 : 10500 : READ_DONE();
3843 : : }
3844 : :
3845 : : static PublicationTable *
3846 : 2052 : _readPublicationTable(void)
3847 : : {
3848 : 2052 : READ_LOCALS(PublicationTable);
3849 : :
3850 : 2052 : READ_NODE_FIELD(relation);
3851 : 2052 : READ_NODE_FIELD(whereClause);
3852 : 2052 : READ_NODE_FIELD(columns);
3853 : 2052 : READ_BOOL_FIELD(except);
3854 : :
3855 : 2052 : READ_DONE();
3856 : : }
3857 : :
3858 : : static PublicationObjSpec *
3859 : 2582 : _readPublicationObjSpec(void)
3860 : : {
3861 : 2582 : READ_LOCALS(PublicationObjSpec);
3862 : :
3863 : 2582 : READ_ENUM_FIELD(pubobjtype, PublicationObjSpecType);
3864 : 2582 : READ_STRING_FIELD(name);
3865 : 2582 : READ_NODE_FIELD(pubtable);
3866 [ + - ]: 2582 : READ_LOCATION_FIELD(location);
3867 : :
3868 : 2582 : READ_DONE();
3869 : : }
3870 : :
3871 : : static PublicationAllObjSpec *
3872 : 0 : _readPublicationAllObjSpec(void)
3873 : : {
3874 : 0 : READ_LOCALS(PublicationAllObjSpec);
3875 : :
3876 : 0 : READ_ENUM_FIELD(pubobjtype, PublicationAllObjType);
3877 : 0 : READ_NODE_FIELD(except_tables);
3878 [ # # ]: 0 : READ_LOCATION_FIELD(location);
3879 : :
3880 : 0 : READ_DONE();
3881 : : }
3882 : :
3883 : : static CreatePublicationStmt *
3884 : 1274 : _readCreatePublicationStmt(void)
3885 : : {
3886 : 1274 : READ_LOCALS(CreatePublicationStmt);
3887 : :
3888 : 1274 : READ_STRING_FIELD(pubname);
3889 : 1274 : READ_NODE_FIELD(options);
3890 : 1274 : READ_NODE_FIELD(pubobjects);
3891 : 1274 : READ_BOOL_FIELD(for_all_tables);
3892 : 1274 : READ_BOOL_FIELD(for_all_sequences);
3893 : :
3894 : 1274 : READ_DONE();
3895 : : }
3896 : :
3897 : : static AlterPublicationStmt *
3898 : 1562 : _readAlterPublicationStmt(void)
3899 : : {
3900 : 1562 : READ_LOCALS(AlterPublicationStmt);
3901 : :
3902 : 1562 : READ_STRING_FIELD(pubname);
3903 : 1562 : READ_NODE_FIELD(options);
3904 : 1562 : READ_NODE_FIELD(pubobjects);
3905 : 1562 : READ_ENUM_FIELD(action, AlterPublicationAction);
3906 : 1562 : READ_BOOL_FIELD(for_all_tables);
3907 : 1562 : READ_BOOL_FIELD(for_all_sequences);
3908 : :
3909 : 1562 : READ_DONE();
3910 : : }
3911 : :
3912 : : static CreateSubscriptionStmt *
3913 : 676 : _readCreateSubscriptionStmt(void)
3914 : : {
3915 : 676 : READ_LOCALS(CreateSubscriptionStmt);
3916 : :
3917 : 676 : READ_STRING_FIELD(subname);
3918 : 676 : READ_STRING_FIELD(servername);
3919 : 676 : READ_STRING_FIELD(conninfo);
3920 : 676 : READ_NODE_FIELD(publication);
3921 : 676 : READ_NODE_FIELD(options);
3922 : :
3923 : 676 : READ_DONE();
3924 : : }
3925 : :
3926 : : static AlterSubscriptionStmt *
3927 : 833 : _readAlterSubscriptionStmt(void)
3928 : : {
3929 : 833 : READ_LOCALS(AlterSubscriptionStmt);
3930 : :
3931 : 833 : READ_ENUM_FIELD(kind, AlterSubscriptionType);
3932 : 833 : READ_STRING_FIELD(subname);
3933 : 833 : READ_STRING_FIELD(servername);
3934 : 833 : READ_STRING_FIELD(conninfo);
3935 : 833 : READ_NODE_FIELD(publication);
3936 : 833 : READ_NODE_FIELD(options);
3937 : :
3938 : 833 : READ_DONE();
3939 : : }
3940 : :
3941 : : static DropSubscriptionStmt *
3942 : 360 : _readDropSubscriptionStmt(void)
3943 : : {
3944 : 360 : READ_LOCALS(DropSubscriptionStmt);
3945 : :
3946 : 360 : READ_STRING_FIELD(subname);
3947 : 360 : READ_BOOL_FIELD(missing_ok);
3948 : 360 : READ_ENUM_FIELD(behavior, DropBehavior);
3949 : :
3950 : 360 : READ_DONE();
3951 : : }
3952 : :
3953 : : static WaitStmt *
3954 : 505 : _readWaitStmt(void)
3955 : : {
3956 : 505 : READ_LOCALS(WaitStmt);
3957 : :
3958 : 505 : READ_STRING_FIELD(lsn_literal);
3959 : 505 : READ_NODE_FIELD(options);
3960 : :
3961 : 505 : READ_DONE();
3962 : : }
3963 : :
3964 : : static GroupByOrdering *
3965 : 0 : _readGroupByOrdering(void)
3966 : : {
3967 : 0 : READ_LOCALS(GroupByOrdering);
3968 : :
3969 : 0 : READ_NODE_FIELD(pathkeys);
3970 : 0 : READ_NODE_FIELD(clauses);
3971 : :
3972 : 0 : READ_DONE();
3973 : : }
3974 : :
3975 : : static PlaceHolderVar *
3976 : 0 : _readPlaceHolderVar(void)
3977 : : {
3978 : 0 : READ_LOCALS(PlaceHolderVar);
3979 : :
3980 : 0 : READ_NODE_FIELD(phexpr);
3981 : 0 : READ_BITMAPSET_FIELD(phrels);
3982 : 0 : READ_BITMAPSET_FIELD(phnullingrels);
3983 : 0 : READ_UINT_FIELD(phid);
3984 : 0 : READ_UINT_FIELD(phlevelsup);
3985 : :
3986 : 0 : READ_DONE();
3987 : : }
3988 : :
3989 : : static AppendRelInfo *
3990 : 39679 : _readAppendRelInfo(void)
3991 : : {
3992 : 39679 : READ_LOCALS(AppendRelInfo);
3993 : :
3994 : 39679 : READ_UINT_FIELD(parent_relid);
3995 : 39679 : READ_UINT_FIELD(child_relid);
3996 : 39679 : READ_OID_FIELD(parent_reltype);
3997 : 39679 : READ_OID_FIELD(child_reltype);
3998 : 39679 : READ_NODE_FIELD(translated_vars);
3999 : 39679 : READ_INT_FIELD(num_child_cols);
4000 : 39679 : READ_ATTRNUMBER_ARRAY(parent_colnos, local_node->num_child_cols);
4001 : 39679 : READ_OID_FIELD(parent_reloid);
4002 : :
4003 : 39679 : READ_DONE();
4004 : : }
4005 : :
4006 : : static PlannedStmt *
4007 : 290587 : _readPlannedStmt(void)
4008 : : {
4009 : 290587 : READ_LOCALS(PlannedStmt);
4010 : :
4011 : 290587 : READ_ENUM_FIELD(commandType, CmdType);
4012 : 290587 : READ_INT64_FIELD(queryId);
4013 : 290587 : READ_INT64_FIELD(planId);
4014 : 290587 : READ_ENUM_FIELD(planOrigin, PlannedStmtOrigin);
4015 : 290587 : READ_BOOL_FIELD(hasReturning);
4016 : 290587 : READ_BOOL_FIELD(hasModifyingCTE);
4017 : 290587 : READ_BOOL_FIELD(canSetTag);
4018 : 290587 : READ_BOOL_FIELD(transientPlan);
4019 : 290587 : READ_BOOL_FIELD(dependsOnRole);
4020 : 290587 : READ_BOOL_FIELD(parallelModeNeeded);
4021 : 290587 : READ_INT_FIELD(jitFlags);
4022 : 290587 : READ_NODE_FIELD(planTree);
4023 : 290587 : READ_NODE_FIELD(partPruneInfos);
4024 : 290587 : READ_NODE_FIELD(rtable);
4025 : 290587 : READ_BITMAPSET_FIELD(unprunableRelids);
4026 : 290587 : READ_NODE_FIELD(permInfos);
4027 : 290587 : READ_BITMAPSET_FIELD(resultRelationRelids);
4028 : 290587 : READ_NODE_FIELD(appendRelations);
4029 : 290587 : READ_NODE_FIELD(subplans);
4030 : 290587 : READ_NODE_FIELD(subrtinfos);
4031 : 290587 : READ_BITMAPSET_FIELD(rewindPlanIDs);
4032 : 290587 : READ_NODE_FIELD(rowMarks);
4033 : 290587 : READ_BITMAPSET_FIELD(rowMarkRelids);
4034 : 290587 : READ_NODE_FIELD(relationOids);
4035 : 290587 : READ_NODE_FIELD(invalItems);
4036 : 290587 : READ_NODE_FIELD(paramExecTypes);
4037 : 290587 : READ_NODE_FIELD(utilityStmt);
4038 : 290587 : READ_NODE_FIELD(elidedNodes);
4039 : 290587 : READ_NODE_FIELD(extension_state);
4040 [ + + ]: 290587 : READ_LOCATION_FIELD(stmt_location);
4041 [ + + ]: 290587 : READ_LOCATION_FIELD(stmt_len);
4042 : :
4043 : 290587 : READ_DONE();
4044 : : }
4045 : :
4046 : : static Result *
4047 : 135376 : _readResult(void)
4048 : : {
4049 : 135376 : READ_LOCALS(Result);
4050 : :
4051 : 135376 : READ_INT_FIELD(plan.disabled_nodes);
4052 : 135376 : READ_FLOAT_FIELD(plan.startup_cost);
4053 : 135376 : READ_FLOAT_FIELD(plan.total_cost);
4054 : 135376 : READ_FLOAT_FIELD(plan.plan_rows);
4055 : 135376 : READ_INT_FIELD(plan.plan_width);
4056 : 135376 : READ_BOOL_FIELD(plan.parallel_aware);
4057 : 135376 : READ_BOOL_FIELD(plan.parallel_safe);
4058 : 135376 : READ_BOOL_FIELD(plan.async_capable);
4059 : 135376 : READ_INT_FIELD(plan.plan_node_id);
4060 : 135376 : READ_NODE_FIELD(plan.targetlist);
4061 : 135376 : READ_NODE_FIELD(plan.qual);
4062 : 135376 : READ_NODE_FIELD(plan.lefttree);
4063 : 135376 : READ_NODE_FIELD(plan.righttree);
4064 : 135376 : READ_NODE_FIELD(plan.initPlan);
4065 : 135376 : READ_BITMAPSET_FIELD(plan.extParam);
4066 : 135376 : READ_BITMAPSET_FIELD(plan.allParam);
4067 : 135376 : READ_ENUM_FIELD(result_type, ResultType);
4068 : 135376 : READ_NODE_FIELD(resconstantqual);
4069 : 135376 : READ_BITMAPSET_FIELD(relids);
4070 : :
4071 : 135376 : READ_DONE();
4072 : : }
4073 : :
4074 : : static ProjectSet *
4075 : 8465 : _readProjectSet(void)
4076 : : {
4077 : 8465 : READ_LOCALS(ProjectSet);
4078 : :
4079 : 8465 : READ_INT_FIELD(plan.disabled_nodes);
4080 : 8465 : READ_FLOAT_FIELD(plan.startup_cost);
4081 : 8465 : READ_FLOAT_FIELD(plan.total_cost);
4082 : 8465 : READ_FLOAT_FIELD(plan.plan_rows);
4083 : 8465 : READ_INT_FIELD(plan.plan_width);
4084 : 8465 : READ_BOOL_FIELD(plan.parallel_aware);
4085 : 8465 : READ_BOOL_FIELD(plan.parallel_safe);
4086 : 8465 : READ_BOOL_FIELD(plan.async_capable);
4087 : 8465 : READ_INT_FIELD(plan.plan_node_id);
4088 : 8465 : READ_NODE_FIELD(plan.targetlist);
4089 : 8465 : READ_NODE_FIELD(plan.qual);
4090 : 8465 : READ_NODE_FIELD(plan.lefttree);
4091 : 8465 : READ_NODE_FIELD(plan.righttree);
4092 : 8465 : READ_NODE_FIELD(plan.initPlan);
4093 : 8465 : READ_BITMAPSET_FIELD(plan.extParam);
4094 : 8465 : READ_BITMAPSET_FIELD(plan.allParam);
4095 : :
4096 : 8465 : READ_DONE();
4097 : : }
4098 : :
4099 : : static ModifyTable *
4100 : 57834 : _readModifyTable(void)
4101 : : {
4102 : 57834 : READ_LOCALS(ModifyTable);
4103 : :
4104 : 57834 : READ_INT_FIELD(plan.disabled_nodes);
4105 : 57834 : READ_FLOAT_FIELD(plan.startup_cost);
4106 : 57834 : READ_FLOAT_FIELD(plan.total_cost);
4107 : 57834 : READ_FLOAT_FIELD(plan.plan_rows);
4108 : 57834 : READ_INT_FIELD(plan.plan_width);
4109 : 57834 : READ_BOOL_FIELD(plan.parallel_aware);
4110 : 57834 : READ_BOOL_FIELD(plan.parallel_safe);
4111 : 57834 : READ_BOOL_FIELD(plan.async_capable);
4112 : 57834 : READ_INT_FIELD(plan.plan_node_id);
4113 : 57834 : READ_NODE_FIELD(plan.targetlist);
4114 : 57834 : READ_NODE_FIELD(plan.qual);
4115 : 57834 : READ_NODE_FIELD(plan.lefttree);
4116 : 57834 : READ_NODE_FIELD(plan.righttree);
4117 : 57834 : READ_NODE_FIELD(plan.initPlan);
4118 : 57834 : READ_BITMAPSET_FIELD(plan.extParam);
4119 : 57834 : READ_BITMAPSET_FIELD(plan.allParam);
4120 : 57834 : READ_ENUM_FIELD(operation, CmdType);
4121 : 57834 : READ_BOOL_FIELD(canSetTag);
4122 : 57834 : READ_UINT_FIELD(nominalRelation);
4123 : 57834 : READ_UINT_FIELD(rootRelation);
4124 : 57834 : READ_NODE_FIELD(resultRelations);
4125 : 57834 : READ_NODE_FIELD(updateColnosLists);
4126 : 57834 : READ_NODE_FIELD(withCheckOptionLists);
4127 : 57834 : READ_STRING_FIELD(returningOldAlias);
4128 : 57834 : READ_STRING_FIELD(returningNewAlias);
4129 : 57834 : READ_NODE_FIELD(returningLists);
4130 : 57834 : READ_NODE_FIELD(fdwPrivLists);
4131 : 57834 : READ_BITMAPSET_FIELD(fdwDirectModifyPlans);
4132 : 57834 : READ_NODE_FIELD(rowMarks);
4133 : 57834 : READ_INT_FIELD(epqParam);
4134 : 57834 : READ_ENUM_FIELD(onConflictAction, OnConflictAction);
4135 : 57834 : READ_NODE_FIELD(arbiterIndexes);
4136 : 57834 : READ_ENUM_FIELD(onConflictLockStrength, LockClauseStrength);
4137 : 57834 : READ_NODE_FIELD(onConflictSet);
4138 : 57834 : READ_NODE_FIELD(onConflictCols);
4139 : 57834 : READ_NODE_FIELD(onConflictWhere);
4140 : 57834 : READ_NODE_FIELD(forPortionOf);
4141 : 57834 : READ_UINT_FIELD(exclRelRTI);
4142 : 57834 : READ_NODE_FIELD(exclRelTlist);
4143 : 57834 : READ_NODE_FIELD(mergeActionLists);
4144 : 57834 : READ_NODE_FIELD(mergeJoinConditions);
4145 : :
4146 : 57834 : READ_DONE();
4147 : : }
4148 : :
4149 : : static Append *
4150 : 12589 : _readAppend(void)
4151 : : {
4152 : 12589 : READ_LOCALS(Append);
4153 : :
4154 : 12589 : READ_INT_FIELD(plan.disabled_nodes);
4155 : 12589 : READ_FLOAT_FIELD(plan.startup_cost);
4156 : 12589 : READ_FLOAT_FIELD(plan.total_cost);
4157 : 12589 : READ_FLOAT_FIELD(plan.plan_rows);
4158 : 12589 : READ_INT_FIELD(plan.plan_width);
4159 : 12589 : READ_BOOL_FIELD(plan.parallel_aware);
4160 : 12589 : READ_BOOL_FIELD(plan.parallel_safe);
4161 : 12589 : READ_BOOL_FIELD(plan.async_capable);
4162 : 12589 : READ_INT_FIELD(plan.plan_node_id);
4163 : 12589 : READ_NODE_FIELD(plan.targetlist);
4164 : 12589 : READ_NODE_FIELD(plan.qual);
4165 : 12589 : READ_NODE_FIELD(plan.lefttree);
4166 : 12589 : READ_NODE_FIELD(plan.righttree);
4167 : 12589 : READ_NODE_FIELD(plan.initPlan);
4168 : 12589 : READ_BITMAPSET_FIELD(plan.extParam);
4169 : 12589 : READ_BITMAPSET_FIELD(plan.allParam);
4170 : 12589 : READ_BITMAPSET_FIELD(apprelids);
4171 : 12589 : READ_NODE_FIELD(child_append_relid_sets);
4172 : 12589 : READ_NODE_FIELD(appendplans);
4173 : 12589 : READ_INT_FIELD(nasyncplans);
4174 : 12589 : READ_INT_FIELD(first_partial_plan);
4175 : 12589 : READ_INT_FIELD(part_prune_index);
4176 : :
4177 : 12589 : READ_DONE();
4178 : : }
4179 : :
4180 : : static MergeAppend *
4181 : 370 : _readMergeAppend(void)
4182 : : {
4183 : 370 : READ_LOCALS(MergeAppend);
4184 : :
4185 : 370 : READ_INT_FIELD(plan.disabled_nodes);
4186 : 370 : READ_FLOAT_FIELD(plan.startup_cost);
4187 : 370 : READ_FLOAT_FIELD(plan.total_cost);
4188 : 370 : READ_FLOAT_FIELD(plan.plan_rows);
4189 : 370 : READ_INT_FIELD(plan.plan_width);
4190 : 370 : READ_BOOL_FIELD(plan.parallel_aware);
4191 : 370 : READ_BOOL_FIELD(plan.parallel_safe);
4192 : 370 : READ_BOOL_FIELD(plan.async_capable);
4193 : 370 : READ_INT_FIELD(plan.plan_node_id);
4194 : 370 : READ_NODE_FIELD(plan.targetlist);
4195 : 370 : READ_NODE_FIELD(plan.qual);
4196 : 370 : READ_NODE_FIELD(plan.lefttree);
4197 : 370 : READ_NODE_FIELD(plan.righttree);
4198 : 370 : READ_NODE_FIELD(plan.initPlan);
4199 : 370 : READ_BITMAPSET_FIELD(plan.extParam);
4200 : 370 : READ_BITMAPSET_FIELD(plan.allParam);
4201 : 370 : READ_BITMAPSET_FIELD(apprelids);
4202 : 370 : READ_NODE_FIELD(child_append_relid_sets);
4203 : 370 : READ_NODE_FIELD(mergeplans);
4204 : 370 : READ_INT_FIELD(numCols);
4205 : 370 : READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
4206 : 370 : READ_OID_ARRAY(sortOperators, local_node->numCols);
4207 : 370 : READ_OID_ARRAY(collations, local_node->numCols);
4208 : 370 : READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
4209 : 370 : READ_INT_FIELD(part_prune_index);
4210 : :
4211 : 370 : READ_DONE();
4212 : : }
4213 : :
4214 : : static RecursiveUnion *
4215 : 558 : _readRecursiveUnion(void)
4216 : : {
4217 : 558 : READ_LOCALS(RecursiveUnion);
4218 : :
4219 : 558 : READ_INT_FIELD(plan.disabled_nodes);
4220 : 558 : READ_FLOAT_FIELD(plan.startup_cost);
4221 : 558 : READ_FLOAT_FIELD(plan.total_cost);
4222 : 558 : READ_FLOAT_FIELD(plan.plan_rows);
4223 : 558 : READ_INT_FIELD(plan.plan_width);
4224 : 558 : READ_BOOL_FIELD(plan.parallel_aware);
4225 : 558 : READ_BOOL_FIELD(plan.parallel_safe);
4226 : 558 : READ_BOOL_FIELD(plan.async_capable);
4227 : 558 : READ_INT_FIELD(plan.plan_node_id);
4228 : 558 : READ_NODE_FIELD(plan.targetlist);
4229 : 558 : READ_NODE_FIELD(plan.qual);
4230 : 558 : READ_NODE_FIELD(plan.lefttree);
4231 : 558 : READ_NODE_FIELD(plan.righttree);
4232 : 558 : READ_NODE_FIELD(plan.initPlan);
4233 : 558 : READ_BITMAPSET_FIELD(plan.extParam);
4234 : 558 : READ_BITMAPSET_FIELD(plan.allParam);
4235 : 558 : READ_INT_FIELD(wtParam);
4236 : 558 : READ_INT_FIELD(numCols);
4237 : 558 : READ_ATTRNUMBER_ARRAY(dupColIdx, local_node->numCols);
4238 : 558 : READ_OID_ARRAY(dupOperators, local_node->numCols);
4239 : 558 : READ_OID_ARRAY(dupCollations, local_node->numCols);
4240 : 558 : READ_FLOAT_FIELD(numGroups);
4241 : :
4242 : 558 : READ_DONE();
4243 : : }
4244 : :
4245 : : static BitmapAnd *
4246 : 148 : _readBitmapAnd(void)
4247 : : {
4248 : 148 : READ_LOCALS(BitmapAnd);
4249 : :
4250 : 148 : READ_INT_FIELD(plan.disabled_nodes);
4251 : 148 : READ_FLOAT_FIELD(plan.startup_cost);
4252 : 148 : READ_FLOAT_FIELD(plan.total_cost);
4253 : 148 : READ_FLOAT_FIELD(plan.plan_rows);
4254 : 148 : READ_INT_FIELD(plan.plan_width);
4255 : 148 : READ_BOOL_FIELD(plan.parallel_aware);
4256 : 148 : READ_BOOL_FIELD(plan.parallel_safe);
4257 : 148 : READ_BOOL_FIELD(plan.async_capable);
4258 : 148 : READ_INT_FIELD(plan.plan_node_id);
4259 : 148 : READ_NODE_FIELD(plan.targetlist);
4260 : 148 : READ_NODE_FIELD(plan.qual);
4261 : 148 : READ_NODE_FIELD(plan.lefttree);
4262 : 148 : READ_NODE_FIELD(plan.righttree);
4263 : 148 : READ_NODE_FIELD(plan.initPlan);
4264 : 148 : READ_BITMAPSET_FIELD(plan.extParam);
4265 : 148 : READ_BITMAPSET_FIELD(plan.allParam);
4266 : 148 : READ_NODE_FIELD(bitmapplans);
4267 : :
4268 : 148 : READ_DONE();
4269 : : }
4270 : :
4271 : : static BitmapOr *
4272 : 256 : _readBitmapOr(void)
4273 : : {
4274 : 256 : READ_LOCALS(BitmapOr);
4275 : :
4276 : 256 : READ_INT_FIELD(plan.disabled_nodes);
4277 : 256 : READ_FLOAT_FIELD(plan.startup_cost);
4278 : 256 : READ_FLOAT_FIELD(plan.total_cost);
4279 : 256 : READ_FLOAT_FIELD(plan.plan_rows);
4280 : 256 : READ_INT_FIELD(plan.plan_width);
4281 : 256 : READ_BOOL_FIELD(plan.parallel_aware);
4282 : 256 : READ_BOOL_FIELD(plan.parallel_safe);
4283 : 256 : READ_BOOL_FIELD(plan.async_capable);
4284 : 256 : READ_INT_FIELD(plan.plan_node_id);
4285 : 256 : READ_NODE_FIELD(plan.targetlist);
4286 : 256 : READ_NODE_FIELD(plan.qual);
4287 : 256 : READ_NODE_FIELD(plan.lefttree);
4288 : 256 : READ_NODE_FIELD(plan.righttree);
4289 : 256 : READ_NODE_FIELD(plan.initPlan);
4290 : 256 : READ_BITMAPSET_FIELD(plan.extParam);
4291 : 256 : READ_BITMAPSET_FIELD(plan.allParam);
4292 : 256 : READ_BOOL_FIELD(isshared);
4293 : 256 : READ_NODE_FIELD(bitmapplans);
4294 : :
4295 : 256 : READ_DONE();
4296 : : }
4297 : :
4298 : : static SeqScan *
4299 : 152453 : _readSeqScan(void)
4300 : : {
4301 : 152453 : READ_LOCALS(SeqScan);
4302 : :
4303 : 152453 : READ_INT_FIELD(scan.plan.disabled_nodes);
4304 : 152453 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4305 : 152453 : READ_FLOAT_FIELD(scan.plan.total_cost);
4306 : 152453 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4307 : 152453 : READ_INT_FIELD(scan.plan.plan_width);
4308 : 152453 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4309 : 152453 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4310 : 152453 : READ_BOOL_FIELD(scan.plan.async_capable);
4311 : 152453 : READ_INT_FIELD(scan.plan.plan_node_id);
4312 : 152453 : READ_NODE_FIELD(scan.plan.targetlist);
4313 : 152453 : READ_NODE_FIELD(scan.plan.qual);
4314 : 152453 : READ_NODE_FIELD(scan.plan.lefttree);
4315 : 152453 : READ_NODE_FIELD(scan.plan.righttree);
4316 : 152453 : READ_NODE_FIELD(scan.plan.initPlan);
4317 : 152453 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4318 : 152453 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4319 : 152453 : READ_UINT_FIELD(scan.scanrelid);
4320 : :
4321 : 152453 : READ_DONE();
4322 : : }
4323 : :
4324 : : static SampleScan *
4325 : 200 : _readSampleScan(void)
4326 : : {
4327 : 200 : READ_LOCALS(SampleScan);
4328 : :
4329 : 200 : READ_INT_FIELD(scan.plan.disabled_nodes);
4330 : 200 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4331 : 200 : READ_FLOAT_FIELD(scan.plan.total_cost);
4332 : 200 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4333 : 200 : READ_INT_FIELD(scan.plan.plan_width);
4334 : 200 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4335 : 200 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4336 : 200 : READ_BOOL_FIELD(scan.plan.async_capable);
4337 : 200 : READ_INT_FIELD(scan.plan.plan_node_id);
4338 : 200 : READ_NODE_FIELD(scan.plan.targetlist);
4339 : 200 : READ_NODE_FIELD(scan.plan.qual);
4340 : 200 : READ_NODE_FIELD(scan.plan.lefttree);
4341 : 200 : READ_NODE_FIELD(scan.plan.righttree);
4342 : 200 : READ_NODE_FIELD(scan.plan.initPlan);
4343 : 200 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4344 : 200 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4345 : 200 : READ_UINT_FIELD(scan.scanrelid);
4346 : 200 : READ_NODE_FIELD(tablesample);
4347 : :
4348 : 200 : READ_DONE();
4349 : : }
4350 : :
4351 : : static IndexScan *
4352 : 92597 : _readIndexScan(void)
4353 : : {
4354 : 92597 : READ_LOCALS(IndexScan);
4355 : :
4356 : 92597 : READ_INT_FIELD(scan.plan.disabled_nodes);
4357 : 92597 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4358 : 92597 : READ_FLOAT_FIELD(scan.plan.total_cost);
4359 : 92597 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4360 : 92597 : READ_INT_FIELD(scan.plan.plan_width);
4361 : 92597 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4362 : 92597 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4363 : 92597 : READ_BOOL_FIELD(scan.plan.async_capable);
4364 : 92597 : READ_INT_FIELD(scan.plan.plan_node_id);
4365 : 92597 : READ_NODE_FIELD(scan.plan.targetlist);
4366 : 92597 : READ_NODE_FIELD(scan.plan.qual);
4367 : 92597 : READ_NODE_FIELD(scan.plan.lefttree);
4368 : 92597 : READ_NODE_FIELD(scan.plan.righttree);
4369 : 92597 : READ_NODE_FIELD(scan.plan.initPlan);
4370 : 92597 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4371 : 92597 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4372 : 92597 : READ_UINT_FIELD(scan.scanrelid);
4373 : 92597 : READ_OID_FIELD(indexid);
4374 : 92597 : READ_NODE_FIELD(indexqual);
4375 : 92597 : READ_NODE_FIELD(indexqualorig);
4376 : 92597 : READ_NODE_FIELD(indexorderby);
4377 : 92597 : READ_NODE_FIELD(indexorderbyorig);
4378 : 92597 : READ_NODE_FIELD(indexorderbyops);
4379 : 92597 : READ_ENUM_FIELD(indexorderdir, ScanDirection);
4380 : :
4381 : 92597 : READ_DONE();
4382 : : }
4383 : :
4384 : : static IndexOnlyScan *
4385 : 11251 : _readIndexOnlyScan(void)
4386 : : {
4387 : 11251 : READ_LOCALS(IndexOnlyScan);
4388 : :
4389 : 11251 : READ_INT_FIELD(scan.plan.disabled_nodes);
4390 : 11251 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4391 : 11251 : READ_FLOAT_FIELD(scan.plan.total_cost);
4392 : 11251 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4393 : 11251 : READ_INT_FIELD(scan.plan.plan_width);
4394 : 11251 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4395 : 11251 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4396 : 11251 : READ_BOOL_FIELD(scan.plan.async_capable);
4397 : 11251 : READ_INT_FIELD(scan.plan.plan_node_id);
4398 : 11251 : READ_NODE_FIELD(scan.plan.targetlist);
4399 : 11251 : READ_NODE_FIELD(scan.plan.qual);
4400 : 11251 : READ_NODE_FIELD(scan.plan.lefttree);
4401 : 11251 : READ_NODE_FIELD(scan.plan.righttree);
4402 : 11251 : READ_NODE_FIELD(scan.plan.initPlan);
4403 : 11251 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4404 : 11251 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4405 : 11251 : READ_UINT_FIELD(scan.scanrelid);
4406 : 11251 : READ_OID_FIELD(indexid);
4407 : 11251 : READ_NODE_FIELD(indexqual);
4408 : 11251 : READ_NODE_FIELD(recheckqual);
4409 : 11251 : READ_NODE_FIELD(indexorderby);
4410 : 11251 : READ_NODE_FIELD(indextlist);
4411 : 11251 : READ_ENUM_FIELD(indexorderdir, ScanDirection);
4412 : :
4413 : 11251 : READ_DONE();
4414 : : }
4415 : :
4416 : : static BitmapIndexScan *
4417 : 17471 : _readBitmapIndexScan(void)
4418 : : {
4419 : 17471 : READ_LOCALS(BitmapIndexScan);
4420 : :
4421 : 17471 : READ_INT_FIELD(scan.plan.disabled_nodes);
4422 : 17471 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4423 : 17471 : READ_FLOAT_FIELD(scan.plan.total_cost);
4424 : 17471 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4425 : 17471 : READ_INT_FIELD(scan.plan.plan_width);
4426 : 17471 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4427 : 17471 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4428 : 17471 : READ_BOOL_FIELD(scan.plan.async_capable);
4429 : 17471 : READ_INT_FIELD(scan.plan.plan_node_id);
4430 : 17471 : READ_NODE_FIELD(scan.plan.targetlist);
4431 : 17471 : READ_NODE_FIELD(scan.plan.qual);
4432 : 17471 : READ_NODE_FIELD(scan.plan.lefttree);
4433 : 17471 : READ_NODE_FIELD(scan.plan.righttree);
4434 : 17471 : READ_NODE_FIELD(scan.plan.initPlan);
4435 : 17471 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4436 : 17471 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4437 : 17471 : READ_UINT_FIELD(scan.scanrelid);
4438 : 17471 : READ_OID_FIELD(indexid);
4439 : 17471 : READ_BOOL_FIELD(isshared);
4440 : 17471 : READ_NODE_FIELD(indexqual);
4441 : 17471 : READ_NODE_FIELD(indexqualorig);
4442 : :
4443 : 17471 : READ_DONE();
4444 : : }
4445 : :
4446 : : static BitmapHeapScan *
4447 : 17063 : _readBitmapHeapScan(void)
4448 : : {
4449 : 17063 : READ_LOCALS(BitmapHeapScan);
4450 : :
4451 : 17063 : READ_INT_FIELD(scan.plan.disabled_nodes);
4452 : 17063 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4453 : 17063 : READ_FLOAT_FIELD(scan.plan.total_cost);
4454 : 17063 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4455 : 17063 : READ_INT_FIELD(scan.plan.plan_width);
4456 : 17063 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4457 : 17063 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4458 : 17063 : READ_BOOL_FIELD(scan.plan.async_capable);
4459 : 17063 : READ_INT_FIELD(scan.plan.plan_node_id);
4460 : 17063 : READ_NODE_FIELD(scan.plan.targetlist);
4461 : 17063 : READ_NODE_FIELD(scan.plan.qual);
4462 : 17063 : READ_NODE_FIELD(scan.plan.lefttree);
4463 : 17063 : READ_NODE_FIELD(scan.plan.righttree);
4464 : 17063 : READ_NODE_FIELD(scan.plan.initPlan);
4465 : 17063 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4466 : 17063 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4467 : 17063 : READ_UINT_FIELD(scan.scanrelid);
4468 : 17063 : READ_NODE_FIELD(bitmapqualorig);
4469 : :
4470 : 17063 : READ_DONE();
4471 : : }
4472 : :
4473 : : static TidScan *
4474 : 472 : _readTidScan(void)
4475 : : {
4476 : 472 : READ_LOCALS(TidScan);
4477 : :
4478 : 472 : READ_INT_FIELD(scan.plan.disabled_nodes);
4479 : 472 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4480 : 472 : READ_FLOAT_FIELD(scan.plan.total_cost);
4481 : 472 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4482 : 472 : READ_INT_FIELD(scan.plan.plan_width);
4483 : 472 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4484 : 472 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4485 : 472 : READ_BOOL_FIELD(scan.plan.async_capable);
4486 : 472 : READ_INT_FIELD(scan.plan.plan_node_id);
4487 : 472 : READ_NODE_FIELD(scan.plan.targetlist);
4488 : 472 : READ_NODE_FIELD(scan.plan.qual);
4489 : 472 : READ_NODE_FIELD(scan.plan.lefttree);
4490 : 472 : READ_NODE_FIELD(scan.plan.righttree);
4491 : 472 : READ_NODE_FIELD(scan.plan.initPlan);
4492 : 472 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4493 : 472 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4494 : 472 : READ_UINT_FIELD(scan.scanrelid);
4495 : 472 : READ_NODE_FIELD(tidquals);
4496 : :
4497 : 472 : READ_DONE();
4498 : : }
4499 : :
4500 : : static TidRangeScan *
4501 : 1396 : _readTidRangeScan(void)
4502 : : {
4503 : 1396 : READ_LOCALS(TidRangeScan);
4504 : :
4505 : 1396 : READ_INT_FIELD(scan.plan.disabled_nodes);
4506 : 1396 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4507 : 1396 : READ_FLOAT_FIELD(scan.plan.total_cost);
4508 : 1396 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4509 : 1396 : READ_INT_FIELD(scan.plan.plan_width);
4510 : 1396 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4511 : 1396 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4512 : 1396 : READ_BOOL_FIELD(scan.plan.async_capable);
4513 : 1396 : READ_INT_FIELD(scan.plan.plan_node_id);
4514 : 1396 : READ_NODE_FIELD(scan.plan.targetlist);
4515 : 1396 : READ_NODE_FIELD(scan.plan.qual);
4516 : 1396 : READ_NODE_FIELD(scan.plan.lefttree);
4517 : 1396 : READ_NODE_FIELD(scan.plan.righttree);
4518 : 1396 : READ_NODE_FIELD(scan.plan.initPlan);
4519 : 1396 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4520 : 1396 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4521 : 1396 : READ_UINT_FIELD(scan.scanrelid);
4522 : 1396 : READ_NODE_FIELD(tidrangequals);
4523 : :
4524 : 1396 : READ_DONE();
4525 : : }
4526 : :
4527 : : static SubqueryScan *
4528 : 13648 : _readSubqueryScan(void)
4529 : : {
4530 : 13648 : READ_LOCALS(SubqueryScan);
4531 : :
4532 : 13648 : READ_INT_FIELD(scan.plan.disabled_nodes);
4533 : 13648 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4534 : 13648 : READ_FLOAT_FIELD(scan.plan.total_cost);
4535 : 13648 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4536 : 13648 : READ_INT_FIELD(scan.plan.plan_width);
4537 : 13648 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4538 : 13648 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4539 : 13648 : READ_BOOL_FIELD(scan.plan.async_capable);
4540 : 13648 : READ_INT_FIELD(scan.plan.plan_node_id);
4541 : 13648 : READ_NODE_FIELD(scan.plan.targetlist);
4542 : 13648 : READ_NODE_FIELD(scan.plan.qual);
4543 : 13648 : READ_NODE_FIELD(scan.plan.lefttree);
4544 : 13648 : READ_NODE_FIELD(scan.plan.righttree);
4545 : 13648 : READ_NODE_FIELD(scan.plan.initPlan);
4546 : 13648 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4547 : 13648 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4548 : 13648 : READ_UINT_FIELD(scan.scanrelid);
4549 : 13648 : READ_NODE_FIELD(subplan);
4550 : 13648 : READ_ENUM_FIELD(scanstatus, SubqueryScanStatus);
4551 : :
4552 : 13648 : READ_DONE();
4553 : : }
4554 : :
4555 : : static FunctionScan *
4556 : 31334 : _readFunctionScan(void)
4557 : : {
4558 : 31334 : READ_LOCALS(FunctionScan);
4559 : :
4560 : 31334 : READ_INT_FIELD(scan.plan.disabled_nodes);
4561 : 31334 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4562 : 31334 : READ_FLOAT_FIELD(scan.plan.total_cost);
4563 : 31334 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4564 : 31334 : READ_INT_FIELD(scan.plan.plan_width);
4565 : 31334 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4566 : 31334 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4567 : 31334 : READ_BOOL_FIELD(scan.plan.async_capable);
4568 : 31334 : READ_INT_FIELD(scan.plan.plan_node_id);
4569 : 31334 : READ_NODE_FIELD(scan.plan.targetlist);
4570 : 31334 : READ_NODE_FIELD(scan.plan.qual);
4571 : 31334 : READ_NODE_FIELD(scan.plan.lefttree);
4572 : 31334 : READ_NODE_FIELD(scan.plan.righttree);
4573 : 31334 : READ_NODE_FIELD(scan.plan.initPlan);
4574 : 31334 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4575 : 31334 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4576 : 31334 : READ_UINT_FIELD(scan.scanrelid);
4577 : 31334 : READ_NODE_FIELD(functions);
4578 : 31334 : READ_BOOL_FIELD(funcordinality);
4579 : :
4580 : 31334 : READ_DONE();
4581 : : }
4582 : :
4583 : : static ValuesScan *
4584 : 5799 : _readValuesScan(void)
4585 : : {
4586 : 5799 : READ_LOCALS(ValuesScan);
4587 : :
4588 : 5799 : READ_INT_FIELD(scan.plan.disabled_nodes);
4589 : 5799 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4590 : 5799 : READ_FLOAT_FIELD(scan.plan.total_cost);
4591 : 5799 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4592 : 5799 : READ_INT_FIELD(scan.plan.plan_width);
4593 : 5799 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4594 : 5799 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4595 : 5799 : READ_BOOL_FIELD(scan.plan.async_capable);
4596 : 5799 : READ_INT_FIELD(scan.plan.plan_node_id);
4597 : 5799 : READ_NODE_FIELD(scan.plan.targetlist);
4598 : 5799 : READ_NODE_FIELD(scan.plan.qual);
4599 : 5799 : READ_NODE_FIELD(scan.plan.lefttree);
4600 : 5799 : READ_NODE_FIELD(scan.plan.righttree);
4601 : 5799 : READ_NODE_FIELD(scan.plan.initPlan);
4602 : 5799 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4603 : 5799 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4604 : 5799 : READ_UINT_FIELD(scan.scanrelid);
4605 : 5799 : READ_NODE_FIELD(values_lists);
4606 : :
4607 : 5799 : READ_DONE();
4608 : : }
4609 : :
4610 : : static TableFuncScan *
4611 : 484 : _readTableFuncScan(void)
4612 : : {
4613 : 484 : READ_LOCALS(TableFuncScan);
4614 : :
4615 : 484 : READ_INT_FIELD(scan.plan.disabled_nodes);
4616 : 484 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4617 : 484 : READ_FLOAT_FIELD(scan.plan.total_cost);
4618 : 484 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4619 : 484 : READ_INT_FIELD(scan.plan.plan_width);
4620 : 484 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4621 : 484 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4622 : 484 : READ_BOOL_FIELD(scan.plan.async_capable);
4623 : 484 : READ_INT_FIELD(scan.plan.plan_node_id);
4624 : 484 : READ_NODE_FIELD(scan.plan.targetlist);
4625 : 484 : READ_NODE_FIELD(scan.plan.qual);
4626 : 484 : READ_NODE_FIELD(scan.plan.lefttree);
4627 : 484 : READ_NODE_FIELD(scan.plan.righttree);
4628 : 484 : READ_NODE_FIELD(scan.plan.initPlan);
4629 : 484 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4630 : 484 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4631 : 484 : READ_UINT_FIELD(scan.scanrelid);
4632 : 484 : READ_NODE_FIELD(tablefunc);
4633 : :
4634 : 484 : READ_DONE();
4635 : : }
4636 : :
4637 : : static CteScan *
4638 : 2646 : _readCteScan(void)
4639 : : {
4640 : 2646 : READ_LOCALS(CteScan);
4641 : :
4642 : 2646 : READ_INT_FIELD(scan.plan.disabled_nodes);
4643 : 2646 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4644 : 2646 : READ_FLOAT_FIELD(scan.plan.total_cost);
4645 : 2646 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4646 : 2646 : READ_INT_FIELD(scan.plan.plan_width);
4647 : 2646 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4648 : 2646 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4649 : 2646 : READ_BOOL_FIELD(scan.plan.async_capable);
4650 : 2646 : READ_INT_FIELD(scan.plan.plan_node_id);
4651 : 2646 : READ_NODE_FIELD(scan.plan.targetlist);
4652 : 2646 : READ_NODE_FIELD(scan.plan.qual);
4653 : 2646 : READ_NODE_FIELD(scan.plan.lefttree);
4654 : 2646 : READ_NODE_FIELD(scan.plan.righttree);
4655 : 2646 : READ_NODE_FIELD(scan.plan.initPlan);
4656 : 2646 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4657 : 2646 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4658 : 2646 : READ_UINT_FIELD(scan.scanrelid);
4659 : 2646 : READ_INT_FIELD(ctePlanId);
4660 : 2646 : READ_INT_FIELD(cteParam);
4661 : :
4662 : 2646 : READ_DONE();
4663 : : }
4664 : :
4665 : : static NamedTuplestoreScan *
4666 : 348 : _readNamedTuplestoreScan(void)
4667 : : {
4668 : 348 : READ_LOCALS(NamedTuplestoreScan);
4669 : :
4670 : 348 : READ_INT_FIELD(scan.plan.disabled_nodes);
4671 : 348 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4672 : 348 : READ_FLOAT_FIELD(scan.plan.total_cost);
4673 : 348 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4674 : 348 : READ_INT_FIELD(scan.plan.plan_width);
4675 : 348 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4676 : 348 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4677 : 348 : READ_BOOL_FIELD(scan.plan.async_capable);
4678 : 348 : READ_INT_FIELD(scan.plan.plan_node_id);
4679 : 348 : READ_NODE_FIELD(scan.plan.targetlist);
4680 : 348 : READ_NODE_FIELD(scan.plan.qual);
4681 : 348 : READ_NODE_FIELD(scan.plan.lefttree);
4682 : 348 : READ_NODE_FIELD(scan.plan.righttree);
4683 : 348 : READ_NODE_FIELD(scan.plan.initPlan);
4684 : 348 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4685 : 348 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4686 : 348 : READ_UINT_FIELD(scan.scanrelid);
4687 : 348 : READ_STRING_FIELD(enrname);
4688 : :
4689 : 348 : READ_DONE();
4690 : : }
4691 : :
4692 : : static WorkTableScan *
4693 : 558 : _readWorkTableScan(void)
4694 : : {
4695 : 558 : READ_LOCALS(WorkTableScan);
4696 : :
4697 : 558 : READ_INT_FIELD(scan.plan.disabled_nodes);
4698 : 558 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4699 : 558 : READ_FLOAT_FIELD(scan.plan.total_cost);
4700 : 558 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4701 : 558 : READ_INT_FIELD(scan.plan.plan_width);
4702 : 558 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4703 : 558 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4704 : 558 : READ_BOOL_FIELD(scan.plan.async_capable);
4705 : 558 : READ_INT_FIELD(scan.plan.plan_node_id);
4706 : 558 : READ_NODE_FIELD(scan.plan.targetlist);
4707 : 558 : READ_NODE_FIELD(scan.plan.qual);
4708 : 558 : READ_NODE_FIELD(scan.plan.lefttree);
4709 : 558 : READ_NODE_FIELD(scan.plan.righttree);
4710 : 558 : READ_NODE_FIELD(scan.plan.initPlan);
4711 : 558 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4712 : 558 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4713 : 558 : READ_UINT_FIELD(scan.scanrelid);
4714 : 558 : READ_INT_FIELD(wtParam);
4715 : :
4716 : 558 : READ_DONE();
4717 : : }
4718 : :
4719 : : static ForeignScan *
4720 : 1065 : _readForeignScan(void)
4721 : : {
4722 : 1065 : READ_LOCALS(ForeignScan);
4723 : :
4724 : 1065 : READ_INT_FIELD(scan.plan.disabled_nodes);
4725 : 1065 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4726 : 1065 : READ_FLOAT_FIELD(scan.plan.total_cost);
4727 : 1065 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4728 : 1065 : READ_INT_FIELD(scan.plan.plan_width);
4729 : 1065 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4730 : 1065 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4731 : 1065 : READ_BOOL_FIELD(scan.plan.async_capable);
4732 : 1065 : READ_INT_FIELD(scan.plan.plan_node_id);
4733 : 1065 : READ_NODE_FIELD(scan.plan.targetlist);
4734 : 1065 : READ_NODE_FIELD(scan.plan.qual);
4735 : 1065 : READ_NODE_FIELD(scan.plan.lefttree);
4736 : 1065 : READ_NODE_FIELD(scan.plan.righttree);
4737 : 1065 : READ_NODE_FIELD(scan.plan.initPlan);
4738 : 1065 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4739 : 1065 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4740 : 1065 : READ_UINT_FIELD(scan.scanrelid);
4741 : 1065 : READ_ENUM_FIELD(operation, CmdType);
4742 : 1065 : READ_UINT_FIELD(resultRelation);
4743 : 1065 : READ_OID_FIELD(checkAsUser);
4744 : 1065 : READ_OID_FIELD(fs_server);
4745 : 1065 : READ_NODE_FIELD(fdw_exprs);
4746 : 1065 : READ_NODE_FIELD(fdw_private);
4747 : 1065 : READ_NODE_FIELD(fdw_scan_tlist);
4748 : 1065 : READ_NODE_FIELD(fdw_recheck_quals);
4749 : 1065 : READ_BITMAPSET_FIELD(fs_relids);
4750 : 1065 : READ_BITMAPSET_FIELD(fs_base_relids);
4751 : 1065 : READ_BOOL_FIELD(fsSystemCol);
4752 : :
4753 : 1065 : READ_DONE();
4754 : : }
4755 : :
4756 : : static CustomScan *
4757 : 0 : _readCustomScan(void)
4758 : : {
4759 : 0 : READ_LOCALS(CustomScan);
4760 : :
4761 : 0 : READ_INT_FIELD(scan.plan.disabled_nodes);
4762 : 0 : READ_FLOAT_FIELD(scan.plan.startup_cost);
4763 : 0 : READ_FLOAT_FIELD(scan.plan.total_cost);
4764 : 0 : READ_FLOAT_FIELD(scan.plan.plan_rows);
4765 : 0 : READ_INT_FIELD(scan.plan.plan_width);
4766 : 0 : READ_BOOL_FIELD(scan.plan.parallel_aware);
4767 : 0 : READ_BOOL_FIELD(scan.plan.parallel_safe);
4768 : 0 : READ_BOOL_FIELD(scan.plan.async_capable);
4769 : 0 : READ_INT_FIELD(scan.plan.plan_node_id);
4770 : 0 : READ_NODE_FIELD(scan.plan.targetlist);
4771 : 0 : READ_NODE_FIELD(scan.plan.qual);
4772 : 0 : READ_NODE_FIELD(scan.plan.lefttree);
4773 : 0 : READ_NODE_FIELD(scan.plan.righttree);
4774 : 0 : READ_NODE_FIELD(scan.plan.initPlan);
4775 : 0 : READ_BITMAPSET_FIELD(scan.plan.extParam);
4776 : 0 : READ_BITMAPSET_FIELD(scan.plan.allParam);
4777 : 0 : READ_UINT_FIELD(scan.scanrelid);
4778 : 0 : READ_UINT_FIELD(flags);
4779 : 0 : READ_NODE_FIELD(custom_plans);
4780 : 0 : READ_NODE_FIELD(custom_exprs);
4781 : 0 : READ_NODE_FIELD(custom_private);
4782 : 0 : READ_NODE_FIELD(custom_scan_tlist);
4783 : 0 : READ_BITMAPSET_FIELD(custom_relids);
4784 : :
4785 : : {
4786 : : /* Lookup CustomScanMethods by CustomName */
4787 : : char *custom_name;
4788 : : const CustomScanMethods *methods;
4789 : 0 : token = pg_strtok(&length); /* skip methods: */
4790 : 0 : token = pg_strtok(&length); /* CustomName */
4791 : 0 : custom_name = nullable_string(token, length);
4792 : 0 : methods = GetCustomScanMethods(custom_name, false);
4793 : 0 : local_node->methods = methods;
4794 : : }
4795 : :
4796 : 0 : READ_DONE();
4797 : : }
4798 : :
4799 : : static NestLoop *
4800 : 64833 : _readNestLoop(void)
4801 : : {
4802 : 64833 : READ_LOCALS(NestLoop);
4803 : :
4804 : 64833 : READ_INT_FIELD(join.plan.disabled_nodes);
4805 : 64833 : READ_FLOAT_FIELD(join.plan.startup_cost);
4806 : 64833 : READ_FLOAT_FIELD(join.plan.total_cost);
4807 : 64833 : READ_FLOAT_FIELD(join.plan.plan_rows);
4808 : 64833 : READ_INT_FIELD(join.plan.plan_width);
4809 : 64833 : READ_BOOL_FIELD(join.plan.parallel_aware);
4810 : 64833 : READ_BOOL_FIELD(join.plan.parallel_safe);
4811 : 64833 : READ_BOOL_FIELD(join.plan.async_capable);
4812 : 64833 : READ_INT_FIELD(join.plan.plan_node_id);
4813 : 64833 : READ_NODE_FIELD(join.plan.targetlist);
4814 : 64833 : READ_NODE_FIELD(join.plan.qual);
4815 : 64833 : READ_NODE_FIELD(join.plan.lefttree);
4816 : 64833 : READ_NODE_FIELD(join.plan.righttree);
4817 : 64833 : READ_NODE_FIELD(join.plan.initPlan);
4818 : 64833 : READ_BITMAPSET_FIELD(join.plan.extParam);
4819 : 64833 : READ_BITMAPSET_FIELD(join.plan.allParam);
4820 : 64833 : READ_ENUM_FIELD(join.jointype, JoinType);
4821 : 64833 : READ_BOOL_FIELD(join.inner_unique);
4822 : 64833 : READ_NODE_FIELD(join.joinqual);
4823 : 64833 : READ_BITMAPSET_FIELD(join.ojrelids);
4824 : 64833 : READ_NODE_FIELD(nestParams);
4825 : :
4826 : 64833 : READ_DONE();
4827 : : }
4828 : :
4829 : : static NestLoopParam *
4830 : 38454 : _readNestLoopParam(void)
4831 : : {
4832 : 38454 : READ_LOCALS(NestLoopParam);
4833 : :
4834 : 38454 : READ_INT_FIELD(paramno);
4835 : 38454 : READ_NODE_FIELD(paramval);
4836 : :
4837 : 38454 : READ_DONE();
4838 : : }
4839 : :
4840 : : static MergeJoin *
4841 : 4905 : _readMergeJoin(void)
4842 : : {
4843 : 4905 : READ_LOCALS(MergeJoin);
4844 : :
4845 : 4905 : READ_INT_FIELD(join.plan.disabled_nodes);
4846 : 4905 : READ_FLOAT_FIELD(join.plan.startup_cost);
4847 : 4905 : READ_FLOAT_FIELD(join.plan.total_cost);
4848 : 4905 : READ_FLOAT_FIELD(join.plan.plan_rows);
4849 : 4905 : READ_INT_FIELD(join.plan.plan_width);
4850 : 4905 : READ_BOOL_FIELD(join.plan.parallel_aware);
4851 : 4905 : READ_BOOL_FIELD(join.plan.parallel_safe);
4852 : 4905 : READ_BOOL_FIELD(join.plan.async_capable);
4853 : 4905 : READ_INT_FIELD(join.plan.plan_node_id);
4854 : 4905 : READ_NODE_FIELD(join.plan.targetlist);
4855 : 4905 : READ_NODE_FIELD(join.plan.qual);
4856 : 4905 : READ_NODE_FIELD(join.plan.lefttree);
4857 : 4905 : READ_NODE_FIELD(join.plan.righttree);
4858 : 4905 : READ_NODE_FIELD(join.plan.initPlan);
4859 : 4905 : READ_BITMAPSET_FIELD(join.plan.extParam);
4860 : 4905 : READ_BITMAPSET_FIELD(join.plan.allParam);
4861 : 4905 : READ_ENUM_FIELD(join.jointype, JoinType);
4862 : 4905 : READ_BOOL_FIELD(join.inner_unique);
4863 : 4905 : READ_NODE_FIELD(join.joinqual);
4864 : 4905 : READ_BITMAPSET_FIELD(join.ojrelids);
4865 : 4905 : READ_BOOL_FIELD(skip_mark_restore);
4866 : 4905 : READ_NODE_FIELD(mergeclauses);
4867 : 4905 : READ_OID_ARRAY(mergeFamilies, list_length(local_node->mergeclauses));
4868 : 4905 : READ_OID_ARRAY(mergeCollations, list_length(local_node->mergeclauses));
4869 : 4905 : READ_BOOL_ARRAY(mergeReversals, list_length(local_node->mergeclauses));
4870 : 4905 : READ_BOOL_ARRAY(mergeNullsFirst, list_length(local_node->mergeclauses));
4871 : :
4872 : 4905 : READ_DONE();
4873 : : }
4874 : :
4875 : : static HashJoin *
4876 : 29036 : _readHashJoin(void)
4877 : : {
4878 : 29036 : READ_LOCALS(HashJoin);
4879 : :
4880 : 29036 : READ_INT_FIELD(join.plan.disabled_nodes);
4881 : 29036 : READ_FLOAT_FIELD(join.plan.startup_cost);
4882 : 29036 : READ_FLOAT_FIELD(join.plan.total_cost);
4883 : 29036 : READ_FLOAT_FIELD(join.plan.plan_rows);
4884 : 29036 : READ_INT_FIELD(join.plan.plan_width);
4885 : 29036 : READ_BOOL_FIELD(join.plan.parallel_aware);
4886 : 29036 : READ_BOOL_FIELD(join.plan.parallel_safe);
4887 : 29036 : READ_BOOL_FIELD(join.plan.async_capable);
4888 : 29036 : READ_INT_FIELD(join.plan.plan_node_id);
4889 : 29036 : READ_NODE_FIELD(join.plan.targetlist);
4890 : 29036 : READ_NODE_FIELD(join.plan.qual);
4891 : 29036 : READ_NODE_FIELD(join.plan.lefttree);
4892 : 29036 : READ_NODE_FIELD(join.plan.righttree);
4893 : 29036 : READ_NODE_FIELD(join.plan.initPlan);
4894 : 29036 : READ_BITMAPSET_FIELD(join.plan.extParam);
4895 : 29036 : READ_BITMAPSET_FIELD(join.plan.allParam);
4896 : 29036 : READ_ENUM_FIELD(join.jointype, JoinType);
4897 : 29036 : READ_BOOL_FIELD(join.inner_unique);
4898 : 29036 : READ_NODE_FIELD(join.joinqual);
4899 : 29036 : READ_BITMAPSET_FIELD(join.ojrelids);
4900 : 29036 : READ_NODE_FIELD(hashclauses);
4901 : 29036 : READ_NODE_FIELD(hashoperators);
4902 : 29036 : READ_NODE_FIELD(hashcollations);
4903 : 29036 : READ_NODE_FIELD(hashkeys);
4904 : :
4905 : 29036 : READ_DONE();
4906 : : }
4907 : :
4908 : : static Material *
4909 : 2757 : _readMaterial(void)
4910 : : {
4911 : 2757 : READ_LOCALS(Material);
4912 : :
4913 : 2757 : READ_INT_FIELD(plan.disabled_nodes);
4914 : 2757 : READ_FLOAT_FIELD(plan.startup_cost);
4915 : 2757 : READ_FLOAT_FIELD(plan.total_cost);
4916 : 2757 : READ_FLOAT_FIELD(plan.plan_rows);
4917 : 2757 : READ_INT_FIELD(plan.plan_width);
4918 : 2757 : READ_BOOL_FIELD(plan.parallel_aware);
4919 : 2757 : READ_BOOL_FIELD(plan.parallel_safe);
4920 : 2757 : READ_BOOL_FIELD(plan.async_capable);
4921 : 2757 : READ_INT_FIELD(plan.plan_node_id);
4922 : 2757 : READ_NODE_FIELD(plan.targetlist);
4923 : 2757 : READ_NODE_FIELD(plan.qual);
4924 : 2757 : READ_NODE_FIELD(plan.lefttree);
4925 : 2757 : READ_NODE_FIELD(plan.righttree);
4926 : 2757 : READ_NODE_FIELD(plan.initPlan);
4927 : 2757 : READ_BITMAPSET_FIELD(plan.extParam);
4928 : 2757 : READ_BITMAPSET_FIELD(plan.allParam);
4929 : :
4930 : 2757 : READ_DONE();
4931 : : }
4932 : :
4933 : : static Memoize *
4934 : 1289 : _readMemoize(void)
4935 : : {
4936 : 1289 : READ_LOCALS(Memoize);
4937 : :
4938 : 1289 : READ_INT_FIELD(plan.disabled_nodes);
4939 : 1289 : READ_FLOAT_FIELD(plan.startup_cost);
4940 : 1289 : READ_FLOAT_FIELD(plan.total_cost);
4941 : 1289 : READ_FLOAT_FIELD(plan.plan_rows);
4942 : 1289 : READ_INT_FIELD(plan.plan_width);
4943 : 1289 : READ_BOOL_FIELD(plan.parallel_aware);
4944 : 1289 : READ_BOOL_FIELD(plan.parallel_safe);
4945 : 1289 : READ_BOOL_FIELD(plan.async_capable);
4946 : 1289 : READ_INT_FIELD(plan.plan_node_id);
4947 : 1289 : READ_NODE_FIELD(plan.targetlist);
4948 : 1289 : READ_NODE_FIELD(plan.qual);
4949 : 1289 : READ_NODE_FIELD(plan.lefttree);
4950 : 1289 : READ_NODE_FIELD(plan.righttree);
4951 : 1289 : READ_NODE_FIELD(plan.initPlan);
4952 : 1289 : READ_BITMAPSET_FIELD(plan.extParam);
4953 : 1289 : READ_BITMAPSET_FIELD(plan.allParam);
4954 : 1289 : READ_INT_FIELD(numKeys);
4955 : 1289 : READ_OID_ARRAY(hashOperators, local_node->numKeys);
4956 : 1289 : READ_OID_ARRAY(collations, local_node->numKeys);
4957 : 1289 : READ_NODE_FIELD(param_exprs);
4958 : 1289 : READ_BOOL_FIELD(singlerow);
4959 : 1289 : READ_BOOL_FIELD(binary_mode);
4960 : 1289 : READ_UINT_FIELD(est_entries);
4961 : 1289 : READ_BITMAPSET_FIELD(keyparamids);
4962 : 1289 : READ_FLOAT_FIELD(est_calls);
4963 : 1289 : READ_FLOAT_FIELD(est_unique_keys);
4964 : 1289 : READ_FLOAT_FIELD(est_hit_ratio);
4965 : :
4966 : 1289 : READ_DONE();
4967 : : }
4968 : :
4969 : : static Sort *
4970 : 55488 : _readSort(void)
4971 : : {
4972 : 55488 : READ_LOCALS(Sort);
4973 : :
4974 : 55488 : READ_INT_FIELD(plan.disabled_nodes);
4975 : 55488 : READ_FLOAT_FIELD(plan.startup_cost);
4976 : 55488 : READ_FLOAT_FIELD(plan.total_cost);
4977 : 55488 : READ_FLOAT_FIELD(plan.plan_rows);
4978 : 55488 : READ_INT_FIELD(plan.plan_width);
4979 : 55488 : READ_BOOL_FIELD(plan.parallel_aware);
4980 : 55488 : READ_BOOL_FIELD(plan.parallel_safe);
4981 : 55488 : READ_BOOL_FIELD(plan.async_capable);
4982 : 55488 : READ_INT_FIELD(plan.plan_node_id);
4983 : 55488 : READ_NODE_FIELD(plan.targetlist);
4984 : 55488 : READ_NODE_FIELD(plan.qual);
4985 : 55488 : READ_NODE_FIELD(plan.lefttree);
4986 : 55488 : READ_NODE_FIELD(plan.righttree);
4987 : 55488 : READ_NODE_FIELD(plan.initPlan);
4988 : 55488 : READ_BITMAPSET_FIELD(plan.extParam);
4989 : 55488 : READ_BITMAPSET_FIELD(plan.allParam);
4990 : 55488 : READ_INT_FIELD(numCols);
4991 : 55488 : READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
4992 : 55488 : READ_OID_ARRAY(sortOperators, local_node->numCols);
4993 : 55488 : READ_OID_ARRAY(collations, local_node->numCols);
4994 : 55488 : READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
4995 : :
4996 : 55488 : READ_DONE();
4997 : : }
4998 : :
4999 : : static IncrementalSort *
5000 : 746 : _readIncrementalSort(void)
5001 : : {
5002 : 746 : READ_LOCALS(IncrementalSort);
5003 : :
5004 : 746 : READ_INT_FIELD(sort.plan.disabled_nodes);
5005 : 746 : READ_FLOAT_FIELD(sort.plan.startup_cost);
5006 : 746 : READ_FLOAT_FIELD(sort.plan.total_cost);
5007 : 746 : READ_FLOAT_FIELD(sort.plan.plan_rows);
5008 : 746 : READ_INT_FIELD(sort.plan.plan_width);
5009 : 746 : READ_BOOL_FIELD(sort.plan.parallel_aware);
5010 : 746 : READ_BOOL_FIELD(sort.plan.parallel_safe);
5011 : 746 : READ_BOOL_FIELD(sort.plan.async_capable);
5012 : 746 : READ_INT_FIELD(sort.plan.plan_node_id);
5013 : 746 : READ_NODE_FIELD(sort.plan.targetlist);
5014 : 746 : READ_NODE_FIELD(sort.plan.qual);
5015 : 746 : READ_NODE_FIELD(sort.plan.lefttree);
5016 : 746 : READ_NODE_FIELD(sort.plan.righttree);
5017 : 746 : READ_NODE_FIELD(sort.plan.initPlan);
5018 : 746 : READ_BITMAPSET_FIELD(sort.plan.extParam);
5019 : 746 : READ_BITMAPSET_FIELD(sort.plan.allParam);
5020 : 746 : READ_INT_FIELD(sort.numCols);
5021 : 746 : READ_ATTRNUMBER_ARRAY(sort.sortColIdx, local_node->sort.numCols);
5022 : 746 : READ_OID_ARRAY(sort.sortOperators, local_node->sort.numCols);
5023 : 746 : READ_OID_ARRAY(sort.collations, local_node->sort.numCols);
5024 : 746 : READ_BOOL_ARRAY(sort.nullsFirst, local_node->sort.numCols);
5025 : 746 : READ_INT_FIELD(nPresortedCols);
5026 : :
5027 : 746 : READ_DONE();
5028 : : }
5029 : :
5030 : : static Group *
5031 : 182 : _readGroup(void)
5032 : : {
5033 : 182 : READ_LOCALS(Group);
5034 : :
5035 : 182 : READ_INT_FIELD(plan.disabled_nodes);
5036 : 182 : READ_FLOAT_FIELD(plan.startup_cost);
5037 : 182 : READ_FLOAT_FIELD(plan.total_cost);
5038 : 182 : READ_FLOAT_FIELD(plan.plan_rows);
5039 : 182 : READ_INT_FIELD(plan.plan_width);
5040 : 182 : READ_BOOL_FIELD(plan.parallel_aware);
5041 : 182 : READ_BOOL_FIELD(plan.parallel_safe);
5042 : 182 : READ_BOOL_FIELD(plan.async_capable);
5043 : 182 : READ_INT_FIELD(plan.plan_node_id);
5044 : 182 : READ_NODE_FIELD(plan.targetlist);
5045 : 182 : READ_NODE_FIELD(plan.qual);
5046 : 182 : READ_NODE_FIELD(plan.lefttree);
5047 : 182 : READ_NODE_FIELD(plan.righttree);
5048 : 182 : READ_NODE_FIELD(plan.initPlan);
5049 : 182 : READ_BITMAPSET_FIELD(plan.extParam);
5050 : 182 : READ_BITMAPSET_FIELD(plan.allParam);
5051 : 182 : READ_INT_FIELD(numCols);
5052 : 182 : READ_ATTRNUMBER_ARRAY(grpColIdx, local_node->numCols);
5053 : 182 : READ_OID_ARRAY(grpOperators, local_node->numCols);
5054 : 182 : READ_OID_ARRAY(grpCollations, local_node->numCols);
5055 : :
5056 : 182 : READ_DONE();
5057 : : }
5058 : :
5059 : : static Agg *
5060 : 33430 : _readAgg(void)
5061 : : {
5062 : 33430 : READ_LOCALS(Agg);
5063 : :
5064 : 33430 : READ_INT_FIELD(plan.disabled_nodes);
5065 : 33430 : READ_FLOAT_FIELD(plan.startup_cost);
5066 : 33430 : READ_FLOAT_FIELD(plan.total_cost);
5067 : 33430 : READ_FLOAT_FIELD(plan.plan_rows);
5068 : 33430 : READ_INT_FIELD(plan.plan_width);
5069 : 33430 : READ_BOOL_FIELD(plan.parallel_aware);
5070 : 33430 : READ_BOOL_FIELD(plan.parallel_safe);
5071 : 33430 : READ_BOOL_FIELD(plan.async_capable);
5072 : 33430 : READ_INT_FIELD(plan.plan_node_id);
5073 : 33430 : READ_NODE_FIELD(plan.targetlist);
5074 : 33430 : READ_NODE_FIELD(plan.qual);
5075 : 33430 : READ_NODE_FIELD(plan.lefttree);
5076 : 33430 : READ_NODE_FIELD(plan.righttree);
5077 : 33430 : READ_NODE_FIELD(plan.initPlan);
5078 : 33430 : READ_BITMAPSET_FIELD(plan.extParam);
5079 : 33430 : READ_BITMAPSET_FIELD(plan.allParam);
5080 : 33430 : READ_ENUM_FIELD(aggstrategy, AggStrategy);
5081 : 33430 : READ_ENUM_FIELD(aggsplit, AggSplit);
5082 : 33430 : READ_INT_FIELD(numCols);
5083 : 33430 : READ_ATTRNUMBER_ARRAY(grpColIdx, local_node->numCols);
5084 : 33430 : READ_OID_ARRAY(grpOperators, local_node->numCols);
5085 : 33430 : READ_OID_ARRAY(grpCollations, local_node->numCols);
5086 : 33430 : READ_FLOAT_FIELD(numGroups);
5087 : 33430 : READ_UINT64_FIELD(transitionSpace);
5088 : 33430 : READ_BITMAPSET_FIELD(aggParams);
5089 : 33430 : READ_NODE_FIELD(groupingSets);
5090 : 33430 : READ_NODE_FIELD(chain);
5091 : :
5092 : 33430 : READ_DONE();
5093 : : }
5094 : :
5095 : : static WindowAgg *
5096 : 2005 : _readWindowAgg(void)
5097 : : {
5098 : 2005 : READ_LOCALS(WindowAgg);
5099 : :
5100 : 2005 : READ_INT_FIELD(plan.disabled_nodes);
5101 : 2005 : READ_FLOAT_FIELD(plan.startup_cost);
5102 : 2005 : READ_FLOAT_FIELD(plan.total_cost);
5103 : 2005 : READ_FLOAT_FIELD(plan.plan_rows);
5104 : 2005 : READ_INT_FIELD(plan.plan_width);
5105 : 2005 : READ_BOOL_FIELD(plan.parallel_aware);
5106 : 2005 : READ_BOOL_FIELD(plan.parallel_safe);
5107 : 2005 : READ_BOOL_FIELD(plan.async_capable);
5108 : 2005 : READ_INT_FIELD(plan.plan_node_id);
5109 : 2005 : READ_NODE_FIELD(plan.targetlist);
5110 : 2005 : READ_NODE_FIELD(plan.qual);
5111 : 2005 : READ_NODE_FIELD(plan.lefttree);
5112 : 2005 : READ_NODE_FIELD(plan.righttree);
5113 : 2005 : READ_NODE_FIELD(plan.initPlan);
5114 : 2005 : READ_BITMAPSET_FIELD(plan.extParam);
5115 : 2005 : READ_BITMAPSET_FIELD(plan.allParam);
5116 : 2005 : READ_STRING_FIELD(winname);
5117 : 2005 : READ_UINT_FIELD(winref);
5118 : 2005 : READ_INT_FIELD(partNumCols);
5119 : 2005 : READ_ATTRNUMBER_ARRAY(partColIdx, local_node->partNumCols);
5120 : 2005 : READ_OID_ARRAY(partOperators, local_node->partNumCols);
5121 : 2005 : READ_OID_ARRAY(partCollations, local_node->partNumCols);
5122 : 2005 : READ_INT_FIELD(ordNumCols);
5123 : 2005 : READ_ATTRNUMBER_ARRAY(ordColIdx, local_node->ordNumCols);
5124 : 2005 : READ_OID_ARRAY(ordOperators, local_node->ordNumCols);
5125 : 2005 : READ_OID_ARRAY(ordCollations, local_node->ordNumCols);
5126 : 2005 : READ_INT_FIELD(frameOptions);
5127 : 2005 : READ_NODE_FIELD(startOffset);
5128 : 2005 : READ_NODE_FIELD(endOffset);
5129 : 2005 : READ_NODE_FIELD(runCondition);
5130 : 2005 : READ_NODE_FIELD(runConditionOrig);
5131 : 2005 : READ_OID_FIELD(startInRangeFunc);
5132 : 2005 : READ_OID_FIELD(endInRangeFunc);
5133 : 2005 : READ_OID_FIELD(inRangeColl);
5134 : 2005 : READ_BOOL_FIELD(inRangeAsc);
5135 : 2005 : READ_BOOL_FIELD(inRangeNullsFirst);
5136 : 2005 : READ_BOOL_FIELD(topWindow);
5137 : :
5138 : 2005 : READ_DONE();
5139 : : }
5140 : :
5141 : : static Unique *
5142 : 3512 : _readUnique(void)
5143 : : {
5144 : 3512 : READ_LOCALS(Unique);
5145 : :
5146 : 3512 : READ_INT_FIELD(plan.disabled_nodes);
5147 : 3512 : READ_FLOAT_FIELD(plan.startup_cost);
5148 : 3512 : READ_FLOAT_FIELD(plan.total_cost);
5149 : 3512 : READ_FLOAT_FIELD(plan.plan_rows);
5150 : 3512 : READ_INT_FIELD(plan.plan_width);
5151 : 3512 : READ_BOOL_FIELD(plan.parallel_aware);
5152 : 3512 : READ_BOOL_FIELD(plan.parallel_safe);
5153 : 3512 : READ_BOOL_FIELD(plan.async_capable);
5154 : 3512 : READ_INT_FIELD(plan.plan_node_id);
5155 : 3512 : READ_NODE_FIELD(plan.targetlist);
5156 : 3512 : READ_NODE_FIELD(plan.qual);
5157 : 3512 : READ_NODE_FIELD(plan.lefttree);
5158 : 3512 : READ_NODE_FIELD(plan.righttree);
5159 : 3512 : READ_NODE_FIELD(plan.initPlan);
5160 : 3512 : READ_BITMAPSET_FIELD(plan.extParam);
5161 : 3512 : READ_BITMAPSET_FIELD(plan.allParam);
5162 : 3512 : READ_INT_FIELD(numCols);
5163 : 3512 : READ_ATTRNUMBER_ARRAY(uniqColIdx, local_node->numCols);
5164 : 3512 : READ_OID_ARRAY(uniqOperators, local_node->numCols);
5165 : 3512 : READ_OID_ARRAY(uniqCollations, local_node->numCols);
5166 : :
5167 : 3512 : READ_DONE();
5168 : : }
5169 : :
5170 : : static Gather *
5171 : 772 : _readGather(void)
5172 : : {
5173 : 772 : READ_LOCALS(Gather);
5174 : :
5175 : 772 : READ_INT_FIELD(plan.disabled_nodes);
5176 : 772 : READ_FLOAT_FIELD(plan.startup_cost);
5177 : 772 : READ_FLOAT_FIELD(plan.total_cost);
5178 : 772 : READ_FLOAT_FIELD(plan.plan_rows);
5179 : 772 : READ_INT_FIELD(plan.plan_width);
5180 : 772 : READ_BOOL_FIELD(plan.parallel_aware);
5181 : 772 : READ_BOOL_FIELD(plan.parallel_safe);
5182 : 772 : READ_BOOL_FIELD(plan.async_capable);
5183 : 772 : READ_INT_FIELD(plan.plan_node_id);
5184 : 772 : READ_NODE_FIELD(plan.targetlist);
5185 : 772 : READ_NODE_FIELD(plan.qual);
5186 : 772 : READ_NODE_FIELD(plan.lefttree);
5187 : 772 : READ_NODE_FIELD(plan.righttree);
5188 : 772 : READ_NODE_FIELD(plan.initPlan);
5189 : 772 : READ_BITMAPSET_FIELD(plan.extParam);
5190 : 772 : READ_BITMAPSET_FIELD(plan.allParam);
5191 : 772 : READ_INT_FIELD(num_workers);
5192 : 772 : READ_INT_FIELD(rescan_param);
5193 : 772 : READ_BOOL_FIELD(single_copy);
5194 : 772 : READ_BOOL_FIELD(invisible);
5195 : 772 : READ_BITMAPSET_FIELD(initParam);
5196 : :
5197 : 772 : READ_DONE();
5198 : : }
5199 : :
5200 : : static GatherMerge *
5201 : 260 : _readGatherMerge(void)
5202 : : {
5203 : 260 : READ_LOCALS(GatherMerge);
5204 : :
5205 : 260 : READ_INT_FIELD(plan.disabled_nodes);
5206 : 260 : READ_FLOAT_FIELD(plan.startup_cost);
5207 : 260 : READ_FLOAT_FIELD(plan.total_cost);
5208 : 260 : READ_FLOAT_FIELD(plan.plan_rows);
5209 : 260 : READ_INT_FIELD(plan.plan_width);
5210 : 260 : READ_BOOL_FIELD(plan.parallel_aware);
5211 : 260 : READ_BOOL_FIELD(plan.parallel_safe);
5212 : 260 : READ_BOOL_FIELD(plan.async_capable);
5213 : 260 : READ_INT_FIELD(plan.plan_node_id);
5214 : 260 : READ_NODE_FIELD(plan.targetlist);
5215 : 260 : READ_NODE_FIELD(plan.qual);
5216 : 260 : READ_NODE_FIELD(plan.lefttree);
5217 : 260 : READ_NODE_FIELD(plan.righttree);
5218 : 260 : READ_NODE_FIELD(plan.initPlan);
5219 : 260 : READ_BITMAPSET_FIELD(plan.extParam);
5220 : 260 : READ_BITMAPSET_FIELD(plan.allParam);
5221 : 260 : READ_INT_FIELD(num_workers);
5222 : 260 : READ_INT_FIELD(rescan_param);
5223 : 260 : READ_INT_FIELD(numCols);
5224 : 260 : READ_ATTRNUMBER_ARRAY(sortColIdx, local_node->numCols);
5225 : 260 : READ_OID_ARRAY(sortOperators, local_node->numCols);
5226 : 260 : READ_OID_ARRAY(collations, local_node->numCols);
5227 : 260 : READ_BOOL_ARRAY(nullsFirst, local_node->numCols);
5228 : 260 : READ_BITMAPSET_FIELD(initParam);
5229 : :
5230 : 260 : READ_DONE();
5231 : : }
5232 : :
5233 : : static Hash *
5234 : 29036 : _readHash(void)
5235 : : {
5236 : 29036 : READ_LOCALS(Hash);
5237 : :
5238 : 29036 : READ_INT_FIELD(plan.disabled_nodes);
5239 : 29036 : READ_FLOAT_FIELD(plan.startup_cost);
5240 : 29036 : READ_FLOAT_FIELD(plan.total_cost);
5241 : 29036 : READ_FLOAT_FIELD(plan.plan_rows);
5242 : 29036 : READ_INT_FIELD(plan.plan_width);
5243 : 29036 : READ_BOOL_FIELD(plan.parallel_aware);
5244 : 29036 : READ_BOOL_FIELD(plan.parallel_safe);
5245 : 29036 : READ_BOOL_FIELD(plan.async_capable);
5246 : 29036 : READ_INT_FIELD(plan.plan_node_id);
5247 : 29036 : READ_NODE_FIELD(plan.targetlist);
5248 : 29036 : READ_NODE_FIELD(plan.qual);
5249 : 29036 : READ_NODE_FIELD(plan.lefttree);
5250 : 29036 : READ_NODE_FIELD(plan.righttree);
5251 : 29036 : READ_NODE_FIELD(plan.initPlan);
5252 : 29036 : READ_BITMAPSET_FIELD(plan.extParam);
5253 : 29036 : READ_BITMAPSET_FIELD(plan.allParam);
5254 : 29036 : READ_NODE_FIELD(hashkeys);
5255 : 29036 : READ_OID_FIELD(skewTable);
5256 : 29036 : READ_INT_FIELD(skewColumn);
5257 : 29036 : READ_BOOL_FIELD(skewInherit);
5258 : 29036 : READ_FLOAT_FIELD(rows_total);
5259 : :
5260 : 29036 : READ_DONE();
5261 : : }
5262 : :
5263 : : static SetOp *
5264 : 515 : _readSetOp(void)
5265 : : {
5266 : 515 : READ_LOCALS(SetOp);
5267 : :
5268 : 515 : READ_INT_FIELD(plan.disabled_nodes);
5269 : 515 : READ_FLOAT_FIELD(plan.startup_cost);
5270 : 515 : READ_FLOAT_FIELD(plan.total_cost);
5271 : 515 : READ_FLOAT_FIELD(plan.plan_rows);
5272 : 515 : READ_INT_FIELD(plan.plan_width);
5273 : 515 : READ_BOOL_FIELD(plan.parallel_aware);
5274 : 515 : READ_BOOL_FIELD(plan.parallel_safe);
5275 : 515 : READ_BOOL_FIELD(plan.async_capable);
5276 : 515 : READ_INT_FIELD(plan.plan_node_id);
5277 : 515 : READ_NODE_FIELD(plan.targetlist);
5278 : 515 : READ_NODE_FIELD(plan.qual);
5279 : 515 : READ_NODE_FIELD(plan.lefttree);
5280 : 515 : READ_NODE_FIELD(plan.righttree);
5281 : 515 : READ_NODE_FIELD(plan.initPlan);
5282 : 515 : READ_BITMAPSET_FIELD(plan.extParam);
5283 : 515 : READ_BITMAPSET_FIELD(plan.allParam);
5284 : 515 : READ_ENUM_FIELD(cmd, SetOpCmd);
5285 : 515 : READ_ENUM_FIELD(strategy, SetOpStrategy);
5286 : 515 : READ_INT_FIELD(numCols);
5287 : 515 : READ_ATTRNUMBER_ARRAY(cmpColIdx, local_node->numCols);
5288 : 515 : READ_OID_ARRAY(cmpOperators, local_node->numCols);
5289 : 515 : READ_OID_ARRAY(cmpCollations, local_node->numCols);
5290 : 515 : READ_BOOL_ARRAY(cmpNullsFirst, local_node->numCols);
5291 : 515 : READ_FLOAT_FIELD(numGroups);
5292 : :
5293 : 515 : READ_DONE();
5294 : : }
5295 : :
5296 : : static LockRows *
5297 : 6064 : _readLockRows(void)
5298 : : {
5299 : 6064 : READ_LOCALS(LockRows);
5300 : :
5301 : 6064 : READ_INT_FIELD(plan.disabled_nodes);
5302 : 6064 : READ_FLOAT_FIELD(plan.startup_cost);
5303 : 6064 : READ_FLOAT_FIELD(plan.total_cost);
5304 : 6064 : READ_FLOAT_FIELD(plan.plan_rows);
5305 : 6064 : READ_INT_FIELD(plan.plan_width);
5306 : 6064 : READ_BOOL_FIELD(plan.parallel_aware);
5307 : 6064 : READ_BOOL_FIELD(plan.parallel_safe);
5308 : 6064 : READ_BOOL_FIELD(plan.async_capable);
5309 : 6064 : READ_INT_FIELD(plan.plan_node_id);
5310 : 6064 : READ_NODE_FIELD(plan.targetlist);
5311 : 6064 : READ_NODE_FIELD(plan.qual);
5312 : 6064 : READ_NODE_FIELD(plan.lefttree);
5313 : 6064 : READ_NODE_FIELD(plan.righttree);
5314 : 6064 : READ_NODE_FIELD(plan.initPlan);
5315 : 6064 : READ_BITMAPSET_FIELD(plan.extParam);
5316 : 6064 : READ_BITMAPSET_FIELD(plan.allParam);
5317 : 6064 : READ_NODE_FIELD(rowMarks);
5318 : 6064 : READ_INT_FIELD(epqParam);
5319 : :
5320 : 6064 : READ_DONE();
5321 : : }
5322 : :
5323 : : static Limit *
5324 : 3136 : _readLimit(void)
5325 : : {
5326 : 3136 : READ_LOCALS(Limit);
5327 : :
5328 : 3136 : READ_INT_FIELD(plan.disabled_nodes);
5329 : 3136 : READ_FLOAT_FIELD(plan.startup_cost);
5330 : 3136 : READ_FLOAT_FIELD(plan.total_cost);
5331 : 3136 : READ_FLOAT_FIELD(plan.plan_rows);
5332 : 3136 : READ_INT_FIELD(plan.plan_width);
5333 : 3136 : READ_BOOL_FIELD(plan.parallel_aware);
5334 : 3136 : READ_BOOL_FIELD(plan.parallel_safe);
5335 : 3136 : READ_BOOL_FIELD(plan.async_capable);
5336 : 3136 : READ_INT_FIELD(plan.plan_node_id);
5337 : 3136 : READ_NODE_FIELD(plan.targetlist);
5338 : 3136 : READ_NODE_FIELD(plan.qual);
5339 : 3136 : READ_NODE_FIELD(plan.lefttree);
5340 : 3136 : READ_NODE_FIELD(plan.righttree);
5341 : 3136 : READ_NODE_FIELD(plan.initPlan);
5342 : 3136 : READ_BITMAPSET_FIELD(plan.extParam);
5343 : 3136 : READ_BITMAPSET_FIELD(plan.allParam);
5344 : 3136 : READ_NODE_FIELD(limitOffset);
5345 : 3136 : READ_NODE_FIELD(limitCount);
5346 : 3136 : READ_ENUM_FIELD(limitOption, LimitOption);
5347 : 3136 : READ_INT_FIELD(uniqNumCols);
5348 : 3136 : READ_ATTRNUMBER_ARRAY(uniqColIdx, local_node->uniqNumCols);
5349 : 3136 : READ_OID_ARRAY(uniqOperators, local_node->uniqNumCols);
5350 : 3136 : READ_OID_ARRAY(uniqCollations, local_node->uniqNumCols);
5351 : :
5352 : 3136 : READ_DONE();
5353 : : }
5354 : :
5355 : : static PlanRowMark *
5356 : 19114 : _readPlanRowMark(void)
5357 : : {
5358 : 19114 : READ_LOCALS(PlanRowMark);
5359 : :
5360 : 19114 : READ_UINT_FIELD(rti);
5361 : 19114 : READ_UINT_FIELD(prti);
5362 : 19114 : READ_UINT_FIELD(rowmarkId);
5363 : 19114 : READ_ENUM_FIELD(markType, RowMarkType);
5364 : 19114 : READ_INT_FIELD(allMarkTypes);
5365 : 19114 : READ_ENUM_FIELD(strength, LockClauseStrength);
5366 : 19114 : READ_ENUM_FIELD(waitPolicy, LockWaitPolicy);
5367 : 19114 : READ_BOOL_FIELD(isParent);
5368 : :
5369 : 19114 : READ_DONE();
5370 : : }
5371 : :
5372 : : static PartitionPruneInfo *
5373 : 460 : _readPartitionPruneInfo(void)
5374 : : {
5375 : 460 : READ_LOCALS(PartitionPruneInfo);
5376 : :
5377 : 460 : READ_BITMAPSET_FIELD(relids);
5378 : 460 : READ_NODE_FIELD(prune_infos);
5379 : 460 : READ_BITMAPSET_FIELD(other_subplans);
5380 : :
5381 : 460 : READ_DONE();
5382 : : }
5383 : :
5384 : : static PartitionedRelPruneInfo *
5385 : 927 : _readPartitionedRelPruneInfo(void)
5386 : : {
5387 : 927 : READ_LOCALS(PartitionedRelPruneInfo);
5388 : :
5389 : 927 : READ_UINT_FIELD(rtindex);
5390 : 927 : READ_BITMAPSET_FIELD(present_parts);
5391 : 927 : READ_INT_FIELD(nparts);
5392 : 927 : READ_INT_ARRAY(subplan_map, local_node->nparts);
5393 : 927 : READ_INT_ARRAY(subpart_map, local_node->nparts);
5394 : 927 : READ_INT_ARRAY(leafpart_rti_map, local_node->nparts);
5395 : 927 : READ_OID_ARRAY(relid_map, local_node->nparts);
5396 : 927 : READ_NODE_FIELD(initial_pruning_steps);
5397 : 927 : READ_NODE_FIELD(exec_pruning_steps);
5398 : 927 : READ_BITMAPSET_FIELD(execparamids);
5399 : :
5400 : 927 : READ_DONE();
5401 : : }
5402 : :
5403 : : static PartitionPruneStepOp *
5404 : 775 : _readPartitionPruneStepOp(void)
5405 : : {
5406 : 775 : READ_LOCALS(PartitionPruneStepOp);
5407 : :
5408 : 775 : READ_INT_FIELD(step.step_id);
5409 : 775 : READ_INT_FIELD(opstrategy);
5410 : 775 : READ_NODE_FIELD(exprs);
5411 : 775 : READ_NODE_FIELD(cmpfns);
5412 : 775 : READ_BITMAPSET_FIELD(nullkeys);
5413 : :
5414 : 775 : READ_DONE();
5415 : : }
5416 : :
5417 : : static PartitionPruneStepCombine *
5418 : 146 : _readPartitionPruneStepCombine(void)
5419 : : {
5420 : 146 : READ_LOCALS(PartitionPruneStepCombine);
5421 : :
5422 : 146 : READ_INT_FIELD(step.step_id);
5423 : 146 : READ_ENUM_FIELD(combineOp, PartitionPruneCombineOp);
5424 : 146 : READ_NODE_FIELD(source_stepids);
5425 : :
5426 : 146 : READ_DONE();
5427 : : }
5428 : :
5429 : : static PlanInvalItem *
5430 : 37233 : _readPlanInvalItem(void)
5431 : : {
5432 : 37233 : READ_LOCALS(PlanInvalItem);
5433 : :
5434 : 37233 : READ_INT_FIELD(cacheId);
5435 : 37233 : READ_UINT_FIELD(hashValue);
5436 : :
5437 : 37233 : READ_DONE();
5438 : : }
5439 : :
5440 : : static SubPlanRTInfo *
5441 : 53956 : _readSubPlanRTInfo(void)
5442 : : {
5443 : 53956 : READ_LOCALS(SubPlanRTInfo);
5444 : :
5445 : 53956 : READ_STRING_FIELD(plan_name);
5446 : 53956 : READ_UINT_FIELD(rtoffset);
5447 : 53956 : READ_BOOL_FIELD(dummy);
5448 : :
5449 : 53956 : READ_DONE();
5450 : : }
5451 : :
5452 : : static ElidedNode *
5453 : 16410 : _readElidedNode(void)
5454 : : {
5455 : 16410 : READ_LOCALS(ElidedNode);
5456 : :
5457 : 16410 : READ_INT_FIELD(plan_node_id);
5458 : 16410 : READ_ENUM_FIELD(elided_type, NodeTag);
5459 : 16410 : READ_BITMAPSET_FIELD(relids);
5460 : :
5461 : 16410 : READ_DONE();
5462 : : }
|