Line data Source code
1 : /*-------------------------------------------------------------------------
2 : *
3 : * outfuncs.funcs.c
4 : * Generated node infrastructure code
5 : *
6 : * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
7 : * Portions Copyright (c) 1994, Regents of the University of California
8 : *
9 : * NOTES
10 : * ******************************
11 : * *** DO NOT EDIT THIS FILE! ***
12 : * ******************************
13 : *
14 : * It has been GENERATED by src/backend/nodes/gen_node_support.pl
15 : *
16 : *-------------------------------------------------------------------------
17 : */
18 : #include "access/amapi.h"
19 : #include "access/cmptype.h"
20 : #include "access/sdir.h"
21 : #include "access/tableam.h"
22 : #include "access/tsmapi.h"
23 : #include "commands/event_trigger.h"
24 : #include "commands/trigger.h"
25 : #include "executor/tuptable.h"
26 : #include "foreign/fdwapi.h"
27 : #include "nodes/bitmapset.h"
28 : #include "nodes/execnodes.h"
29 : #include "nodes/extensible.h"
30 : #include "nodes/lockoptions.h"
31 : #include "nodes/miscnodes.h"
32 : #include "nodes/nodes.h"
33 : #include "nodes/parsenodes.h"
34 : #include "nodes/pathnodes.h"
35 : #include "nodes/plannodes.h"
36 : #include "nodes/primnodes.h"
37 : #include "nodes/replnodes.h"
38 : #include "nodes/supportnodes.h"
39 : #include "nodes/value.h"
40 : #include "utils/rel.h"
41 :
42 : static void
43 2770334 : _outAlias(StringInfo str, const Alias *node)
44 : {
45 2770334 : WRITE_NODE_TYPE("ALIAS");
46 :
47 2770334 : WRITE_STRING_FIELD(aliasname);
48 2770334 : WRITE_NODE_FIELD(colnames);
49 2770334 : }
50 :
51 : static void
52 904290 : _outRangeVar(StringInfo str, const RangeVar *node)
53 : {
54 904290 : WRITE_NODE_TYPE("RANGEVAR");
55 :
56 904290 : WRITE_STRING_FIELD(catalogname);
57 904290 : WRITE_STRING_FIELD(schemaname);
58 904290 : WRITE_STRING_FIELD(relname);
59 904290 : WRITE_BOOL_FIELD(inh);
60 904290 : WRITE_CHAR_FIELD(relpersistence);
61 904290 : WRITE_NODE_FIELD(alias);
62 904290 : WRITE_LOCATION_FIELD(location);
63 904290 : }
64 :
65 : static void
66 1296 : _outTableFunc(StringInfo str, const TableFunc *node)
67 : {
68 1296 : WRITE_NODE_TYPE("TABLEFUNC");
69 :
70 1296 : WRITE_ENUM_FIELD(functype, TableFuncType);
71 1296 : WRITE_NODE_FIELD(ns_uris);
72 1296 : WRITE_NODE_FIELD(ns_names);
73 1296 : WRITE_NODE_FIELD(docexpr);
74 1296 : WRITE_NODE_FIELD(rowexpr);
75 1296 : WRITE_NODE_FIELD(colnames);
76 1296 : WRITE_NODE_FIELD(coltypes);
77 1296 : WRITE_NODE_FIELD(coltypmods);
78 1296 : WRITE_NODE_FIELD(colcollations);
79 1296 : WRITE_NODE_FIELD(colexprs);
80 1296 : WRITE_NODE_FIELD(coldefexprs);
81 1296 : WRITE_NODE_FIELD(colvalexprs);
82 1296 : WRITE_NODE_FIELD(passingvalexprs);
83 1296 : WRITE_BITMAPSET_FIELD(notnulls);
84 1296 : WRITE_NODE_FIELD(plan);
85 1296 : WRITE_INT_FIELD(ordinalitycol);
86 1296 : WRITE_LOCATION_FIELD(location);
87 1296 : }
88 :
89 : static void
90 3932 : _outIntoClause(StringInfo str, const IntoClause *node)
91 : {
92 3932 : WRITE_NODE_TYPE("INTOCLAUSE");
93 :
94 3932 : WRITE_NODE_FIELD(rel);
95 3932 : WRITE_NODE_FIELD(colNames);
96 3932 : WRITE_STRING_FIELD(accessMethod);
97 3932 : WRITE_NODE_FIELD(options);
98 3932 : WRITE_ENUM_FIELD(onCommit, OnCommitAction);
99 3932 : WRITE_STRING_FIELD(tableSpaceName);
100 3932 : WRITE_NODE_FIELD(viewQuery);
101 3932 : WRITE_BOOL_FIELD(skipData);
102 3932 : }
103 :
104 : static void
105 12386354 : _outVar(StringInfo str, const Var *node)
106 : {
107 12386354 : WRITE_NODE_TYPE("VAR");
108 :
109 12386354 : WRITE_INT_FIELD(varno);
110 12386354 : WRITE_INT_FIELD(varattno);
111 12386354 : WRITE_OID_FIELD(vartype);
112 12386354 : WRITE_INT_FIELD(vartypmod);
113 12386354 : WRITE_OID_FIELD(varcollid);
114 12386354 : WRITE_BITMAPSET_FIELD(varnullingrels);
115 12386354 : WRITE_UINT_FIELD(varlevelsup);
116 12386354 : WRITE_ENUM_FIELD(varreturningtype, VarReturningType);
117 12386354 : WRITE_UINT_FIELD(varnosyn);
118 12386354 : WRITE_INT_FIELD(varattnosyn);
119 12386354 : WRITE_LOCATION_FIELD(location);
120 12386354 : }
121 :
122 : static void
123 317072 : _outParam(StringInfo str, const Param *node)
124 : {
125 317072 : WRITE_NODE_TYPE("PARAM");
126 :
127 317072 : WRITE_ENUM_FIELD(paramkind, ParamKind);
128 317072 : WRITE_INT_FIELD(paramid);
129 317072 : WRITE_OID_FIELD(paramtype);
130 317072 : WRITE_INT_FIELD(paramtypmod);
131 317072 : WRITE_OID_FIELD(paramcollid);
132 317072 : WRITE_LOCATION_FIELD(location);
133 317072 : }
134 :
135 : static void
136 91280 : _outAggref(StringInfo str, const Aggref *node)
137 : {
138 91280 : WRITE_NODE_TYPE("AGGREF");
139 :
140 91280 : WRITE_OID_FIELD(aggfnoid);
141 91280 : WRITE_OID_FIELD(aggtype);
142 91280 : WRITE_OID_FIELD(aggcollid);
143 91280 : WRITE_OID_FIELD(inputcollid);
144 91280 : WRITE_OID_FIELD(aggtranstype);
145 91280 : WRITE_NODE_FIELD(aggargtypes);
146 91280 : WRITE_NODE_FIELD(aggdirectargs);
147 91280 : WRITE_NODE_FIELD(args);
148 91280 : WRITE_NODE_FIELD(aggorder);
149 91280 : WRITE_NODE_FIELD(aggdistinct);
150 91280 : WRITE_NODE_FIELD(aggfilter);
151 91280 : WRITE_BOOL_FIELD(aggstar);
152 91280 : WRITE_BOOL_FIELD(aggvariadic);
153 91280 : WRITE_CHAR_FIELD(aggkind);
154 91280 : WRITE_BOOL_FIELD(aggpresorted);
155 91280 : WRITE_UINT_FIELD(agglevelsup);
156 91280 : WRITE_ENUM_FIELD(aggsplit, AggSplit);
157 91280 : WRITE_INT_FIELD(aggno);
158 91280 : WRITE_INT_FIELD(aggtransno);
159 91280 : WRITE_LOCATION_FIELD(location);
160 91280 : }
161 :
162 : static void
163 1074 : _outGroupingFunc(StringInfo str, const GroupingFunc *node)
164 : {
165 1074 : WRITE_NODE_TYPE("GROUPINGFUNC");
166 :
167 1074 : WRITE_NODE_FIELD(args);
168 1074 : WRITE_NODE_FIELD(refs);
169 1074 : WRITE_NODE_FIELD(cols);
170 1074 : WRITE_UINT_FIELD(agglevelsup);
171 1074 : WRITE_LOCATION_FIELD(location);
172 1074 : }
173 :
174 : static void
175 6888 : _outWindowFunc(StringInfo str, const WindowFunc *node)
176 : {
177 6888 : WRITE_NODE_TYPE("WINDOWFUNC");
178 :
179 6888 : WRITE_OID_FIELD(winfnoid);
180 6888 : WRITE_OID_FIELD(wintype);
181 6888 : WRITE_OID_FIELD(wincollid);
182 6888 : WRITE_OID_FIELD(inputcollid);
183 6888 : WRITE_NODE_FIELD(args);
184 6888 : WRITE_NODE_FIELD(aggfilter);
185 6888 : WRITE_NODE_FIELD(runCondition);
186 6888 : WRITE_UINT_FIELD(winref);
187 6888 : WRITE_BOOL_FIELD(winstar);
188 6888 : WRITE_BOOL_FIELD(winagg);
189 6888 : WRITE_LOCATION_FIELD(location);
190 6888 : }
191 :
192 : static void
193 360 : _outWindowFuncRunCondition(StringInfo str, const WindowFuncRunCondition *node)
194 : {
195 360 : WRITE_NODE_TYPE("WINDOWFUNCRUNCONDITION");
196 :
197 360 : WRITE_OID_FIELD(opno);
198 360 : WRITE_OID_FIELD(inputcollid);
199 360 : WRITE_BOOL_FIELD(wfunc_left);
200 360 : WRITE_NODE_FIELD(arg);
201 360 : }
202 :
203 : static void
204 828 : _outMergeSupportFunc(StringInfo str, const MergeSupportFunc *node)
205 : {
206 828 : WRITE_NODE_TYPE("MERGESUPPORTFUNC");
207 :
208 828 : WRITE_OID_FIELD(msftype);
209 828 : WRITE_OID_FIELD(msfcollid);
210 828 : WRITE_LOCATION_FIELD(location);
211 828 : }
212 :
213 : static void
214 34316 : _outSubscriptingRef(StringInfo str, const SubscriptingRef *node)
215 : {
216 34316 : WRITE_NODE_TYPE("SUBSCRIPTINGREF");
217 :
218 34316 : WRITE_OID_FIELD(refcontainertype);
219 34316 : WRITE_OID_FIELD(refelemtype);
220 34316 : WRITE_OID_FIELD(refrestype);
221 34316 : WRITE_INT_FIELD(reftypmod);
222 34316 : WRITE_OID_FIELD(refcollid);
223 34316 : WRITE_NODE_FIELD(refupperindexpr);
224 34316 : WRITE_NODE_FIELD(reflowerindexpr);
225 34316 : WRITE_NODE_FIELD(refexpr);
226 34316 : WRITE_NODE_FIELD(refassgnexpr);
227 34316 : }
228 :
229 : static void
230 747314 : _outFuncExpr(StringInfo str, const FuncExpr *node)
231 : {
232 747314 : WRITE_NODE_TYPE("FUNCEXPR");
233 :
234 747314 : WRITE_OID_FIELD(funcid);
235 747314 : WRITE_OID_FIELD(funcresulttype);
236 747314 : WRITE_BOOL_FIELD(funcretset);
237 747314 : WRITE_BOOL_FIELD(funcvariadic);
238 747314 : WRITE_ENUM_FIELD(funcformat, CoercionForm);
239 747314 : WRITE_OID_FIELD(funccollid);
240 747314 : WRITE_OID_FIELD(inputcollid);
241 747314 : WRITE_NODE_FIELD(args);
242 747314 : WRITE_LOCATION_FIELD(location);
243 747314 : }
244 :
245 : static void
246 94038 : _outNamedArgExpr(StringInfo str, const NamedArgExpr *node)
247 : {
248 94038 : WRITE_NODE_TYPE("NAMEDARGEXPR");
249 :
250 94038 : WRITE_NODE_FIELD(arg);
251 94038 : WRITE_STRING_FIELD(name);
252 94038 : WRITE_INT_FIELD(argnumber);
253 94038 : WRITE_LOCATION_FIELD(location);
254 94038 : }
255 :
256 : static void
257 1477642 : _outOpExpr(StringInfo str, const OpExpr *node)
258 : {
259 1477642 : WRITE_NODE_TYPE("OPEXPR");
260 :
261 1477642 : WRITE_OID_FIELD(opno);
262 1477642 : WRITE_OID_FIELD(opfuncid);
263 1477642 : WRITE_OID_FIELD(opresulttype);
264 1477642 : WRITE_BOOL_FIELD(opretset);
265 1477642 : WRITE_OID_FIELD(opcollid);
266 1477642 : WRITE_OID_FIELD(inputcollid);
267 1477642 : WRITE_NODE_FIELD(args);
268 1477642 : WRITE_LOCATION_FIELD(location);
269 1477642 : }
270 :
271 : static void
272 2500 : _outDistinctExpr(StringInfo str, const DistinctExpr *node)
273 : {
274 2500 : WRITE_NODE_TYPE("DISTINCTEXPR");
275 :
276 2500 : WRITE_OID_FIELD(opno);
277 2500 : WRITE_OID_FIELD(opfuncid);
278 2500 : WRITE_OID_FIELD(opresulttype);
279 2500 : WRITE_BOOL_FIELD(opretset);
280 2500 : WRITE_OID_FIELD(opcollid);
281 2500 : WRITE_OID_FIELD(inputcollid);
282 2500 : WRITE_NODE_FIELD(args);
283 2500 : WRITE_LOCATION_FIELD(location);
284 2500 : }
285 :
286 : static void
287 676 : _outNullIfExpr(StringInfo str, const NullIfExpr *node)
288 : {
289 676 : WRITE_NODE_TYPE("NULLIFEXPR");
290 :
291 676 : WRITE_OID_FIELD(opno);
292 676 : WRITE_OID_FIELD(opfuncid);
293 676 : WRITE_OID_FIELD(opresulttype);
294 676 : WRITE_BOOL_FIELD(opretset);
295 676 : WRITE_OID_FIELD(opcollid);
296 676 : WRITE_OID_FIELD(inputcollid);
297 676 : WRITE_NODE_FIELD(args);
298 676 : WRITE_LOCATION_FIELD(location);
299 676 : }
300 :
301 : static void
302 75658 : _outScalarArrayOpExpr(StringInfo str, const ScalarArrayOpExpr *node)
303 : {
304 75658 : WRITE_NODE_TYPE("SCALARARRAYOPEXPR");
305 :
306 75658 : WRITE_OID_FIELD(opno);
307 75658 : WRITE_OID_FIELD(opfuncid);
308 75658 : WRITE_OID_FIELD(hashfuncid);
309 75658 : WRITE_OID_FIELD(negfuncid);
310 75658 : WRITE_BOOL_FIELD(useOr);
311 75658 : WRITE_OID_FIELD(inputcollid);
312 75658 : WRITE_NODE_FIELD(args);
313 75658 : WRITE_LOCATION_FIELD(location);
314 75658 : }
315 :
316 : static void
317 104896 : _outSubLink(StringInfo str, const SubLink *node)
318 : {
319 104896 : WRITE_NODE_TYPE("SUBLINK");
320 :
321 104896 : WRITE_ENUM_FIELD(subLinkType, SubLinkType);
322 104896 : WRITE_INT_FIELD(subLinkId);
323 104896 : WRITE_NODE_FIELD(testexpr);
324 104896 : WRITE_NODE_FIELD(operName);
325 104896 : WRITE_NODE_FIELD(subselect);
326 104896 : WRITE_LOCATION_FIELD(location);
327 104896 : }
328 :
329 : static void
330 44786 : _outSubPlan(StringInfo str, const SubPlan *node)
331 : {
332 44786 : WRITE_NODE_TYPE("SUBPLAN");
333 :
334 44786 : WRITE_ENUM_FIELD(subLinkType, SubLinkType);
335 44786 : WRITE_NODE_FIELD(testexpr);
336 44786 : WRITE_NODE_FIELD(paramIds);
337 44786 : WRITE_INT_FIELD(plan_id);
338 44786 : WRITE_STRING_FIELD(plan_name);
339 44786 : WRITE_OID_FIELD(firstColType);
340 44786 : WRITE_INT_FIELD(firstColTypmod);
341 44786 : WRITE_OID_FIELD(firstColCollation);
342 44786 : WRITE_BOOL_FIELD(useHashTable);
343 44786 : WRITE_BOOL_FIELD(unknownEqFalse);
344 44786 : WRITE_BOOL_FIELD(parallel_safe);
345 44786 : WRITE_NODE_FIELD(setParam);
346 44786 : WRITE_NODE_FIELD(parParam);
347 44786 : WRITE_NODE_FIELD(args);
348 44786 : WRITE_FLOAT_FIELD(startup_cost);
349 44786 : WRITE_FLOAT_FIELD(per_call_cost);
350 44786 : }
351 :
352 : static void
353 0 : _outAlternativeSubPlan(StringInfo str, const AlternativeSubPlan *node)
354 : {
355 0 : WRITE_NODE_TYPE("ALTERNATIVESUBPLAN");
356 :
357 0 : WRITE_NODE_FIELD(subplans);
358 0 : }
359 :
360 : static void
361 23858 : _outFieldSelect(StringInfo str, const FieldSelect *node)
362 : {
363 23858 : WRITE_NODE_TYPE("FIELDSELECT");
364 :
365 23858 : WRITE_NODE_FIELD(arg);
366 23858 : WRITE_INT_FIELD(fieldnum);
367 23858 : WRITE_OID_FIELD(resulttype);
368 23858 : WRITE_INT_FIELD(resulttypmod);
369 23858 : WRITE_OID_FIELD(resultcollid);
370 23858 : }
371 :
372 : static void
373 866 : _outFieldStore(StringInfo str, const FieldStore *node)
374 : {
375 866 : WRITE_NODE_TYPE("FIELDSTORE");
376 :
377 866 : WRITE_NODE_FIELD(arg);
378 866 : WRITE_NODE_FIELD(newvals);
379 866 : WRITE_NODE_FIELD(fieldnums);
380 866 : WRITE_OID_FIELD(resulttype);
381 866 : }
382 :
383 : static void
384 266230 : _outRelabelType(StringInfo str, const RelabelType *node)
385 : {
386 266230 : WRITE_NODE_TYPE("RELABELTYPE");
387 :
388 266230 : WRITE_NODE_FIELD(arg);
389 266230 : WRITE_OID_FIELD(resulttype);
390 266230 : WRITE_INT_FIELD(resulttypmod);
391 266230 : WRITE_OID_FIELD(resultcollid);
392 266230 : WRITE_ENUM_FIELD(relabelformat, CoercionForm);
393 266230 : WRITE_LOCATION_FIELD(location);
394 266230 : }
395 :
396 : static void
397 47452 : _outCoerceViaIO(StringInfo str, const CoerceViaIO *node)
398 : {
399 47452 : WRITE_NODE_TYPE("COERCEVIAIO");
400 :
401 47452 : WRITE_NODE_FIELD(arg);
402 47452 : WRITE_OID_FIELD(resulttype);
403 47452 : WRITE_OID_FIELD(resultcollid);
404 47452 : WRITE_ENUM_FIELD(coerceformat, CoercionForm);
405 47452 : WRITE_LOCATION_FIELD(location);
406 47452 : }
407 :
408 : static void
409 10726 : _outArrayCoerceExpr(StringInfo str, const ArrayCoerceExpr *node)
410 : {
411 10726 : WRITE_NODE_TYPE("ARRAYCOERCEEXPR");
412 :
413 10726 : WRITE_NODE_FIELD(arg);
414 10726 : WRITE_NODE_FIELD(elemexpr);
415 10726 : WRITE_OID_FIELD(resulttype);
416 10726 : WRITE_INT_FIELD(resulttypmod);
417 10726 : WRITE_OID_FIELD(resultcollid);
418 10726 : WRITE_ENUM_FIELD(coerceformat, CoercionForm);
419 10726 : WRITE_LOCATION_FIELD(location);
420 10726 : }
421 :
422 : static void
423 842 : _outConvertRowtypeExpr(StringInfo str, const ConvertRowtypeExpr *node)
424 : {
425 842 : WRITE_NODE_TYPE("CONVERTROWTYPEEXPR");
426 :
427 842 : WRITE_NODE_FIELD(arg);
428 842 : WRITE_OID_FIELD(resulttype);
429 842 : WRITE_ENUM_FIELD(convertformat, CoercionForm);
430 842 : WRITE_LOCATION_FIELD(location);
431 842 : }
432 :
433 : static void
434 8784 : _outCollateExpr(StringInfo str, const CollateExpr *node)
435 : {
436 8784 : WRITE_NODE_TYPE("COLLATEEXPR");
437 :
438 8784 : WRITE_NODE_FIELD(arg);
439 8784 : WRITE_OID_FIELD(collOid);
440 8784 : WRITE_LOCATION_FIELD(location);
441 8784 : }
442 :
443 : static void
444 136664 : _outCaseExpr(StringInfo str, const CaseExpr *node)
445 : {
446 136664 : WRITE_NODE_TYPE("CASEEXPR");
447 :
448 136664 : WRITE_OID_FIELD(casetype);
449 136664 : WRITE_OID_FIELD(casecollid);
450 136664 : WRITE_NODE_FIELD(arg);
451 136664 : WRITE_NODE_FIELD(args);
452 136664 : WRITE_NODE_FIELD(defresult);
453 136664 : WRITE_LOCATION_FIELD(location);
454 136664 : }
455 :
456 : static void
457 254290 : _outCaseWhen(StringInfo str, const CaseWhen *node)
458 : {
459 254290 : WRITE_NODE_TYPE("CASEWHEN");
460 :
461 254290 : WRITE_NODE_FIELD(expr);
462 254290 : WRITE_NODE_FIELD(result);
463 254290 : WRITE_LOCATION_FIELD(location);
464 254290 : }
465 :
466 : static void
467 57734 : _outCaseTestExpr(StringInfo str, const CaseTestExpr *node)
468 : {
469 57734 : WRITE_NODE_TYPE("CASETESTEXPR");
470 :
471 57734 : WRITE_OID_FIELD(typeId);
472 57734 : WRITE_INT_FIELD(typeMod);
473 57734 : WRITE_OID_FIELD(collation);
474 57734 : }
475 :
476 : static void
477 34876 : _outArrayExpr(StringInfo str, const ArrayExpr *node)
478 : {
479 34876 : WRITE_NODE_TYPE("ARRAYEXPR");
480 :
481 34876 : WRITE_OID_FIELD(array_typeid);
482 34876 : WRITE_OID_FIELD(array_collid);
483 34876 : WRITE_OID_FIELD(element_typeid);
484 34876 : WRITE_NODE_FIELD(elements);
485 34876 : WRITE_BOOL_FIELD(multidims);
486 34876 : WRITE_LOCATION_FIELD(list_start);
487 34876 : WRITE_LOCATION_FIELD(list_end);
488 34876 : WRITE_LOCATION_FIELD(location);
489 34876 : }
490 :
491 : static void
492 13328 : _outRowExpr(StringInfo str, const RowExpr *node)
493 : {
494 13328 : WRITE_NODE_TYPE("ROWEXPR");
495 :
496 13328 : WRITE_NODE_FIELD(args);
497 13328 : WRITE_OID_FIELD(row_typeid);
498 13328 : WRITE_ENUM_FIELD(row_format, CoercionForm);
499 13328 : WRITE_NODE_FIELD(colnames);
500 13328 : WRITE_LOCATION_FIELD(location);
501 13328 : }
502 :
503 : static void
504 726 : _outRowCompareExpr(StringInfo str, const RowCompareExpr *node)
505 : {
506 726 : WRITE_NODE_TYPE("ROWCOMPAREEXPR");
507 :
508 726 : WRITE_ENUM_FIELD(cmptype, CompareType);
509 726 : WRITE_NODE_FIELD(opnos);
510 726 : WRITE_NODE_FIELD(opfamilies);
511 726 : WRITE_NODE_FIELD(inputcollids);
512 726 : WRITE_NODE_FIELD(largs);
513 726 : WRITE_NODE_FIELD(rargs);
514 726 : }
515 :
516 : static void
517 15034 : _outCoalesceExpr(StringInfo str, const CoalesceExpr *node)
518 : {
519 15034 : WRITE_NODE_TYPE("COALESCEEXPR");
520 :
521 15034 : WRITE_OID_FIELD(coalescetype);
522 15034 : WRITE_OID_FIELD(coalescecollid);
523 15034 : WRITE_NODE_FIELD(args);
524 15034 : WRITE_LOCATION_FIELD(location);
525 15034 : }
526 :
527 : static void
528 882 : _outMinMaxExpr(StringInfo str, const MinMaxExpr *node)
529 : {
530 882 : WRITE_NODE_TYPE("MINMAXEXPR");
531 :
532 882 : WRITE_OID_FIELD(minmaxtype);
533 882 : WRITE_OID_FIELD(minmaxcollid);
534 882 : WRITE_OID_FIELD(inputcollid);
535 882 : WRITE_ENUM_FIELD(op, MinMaxOp);
536 882 : WRITE_NODE_FIELD(args);
537 882 : WRITE_LOCATION_FIELD(location);
538 882 : }
539 :
540 : static void
541 12702 : _outSQLValueFunction(StringInfo str, const SQLValueFunction *node)
542 : {
543 12702 : WRITE_NODE_TYPE("SQLVALUEFUNCTION");
544 :
545 12702 : WRITE_ENUM_FIELD(op, SQLValueFunctionOp);
546 12702 : WRITE_OID_FIELD(type);
547 12702 : WRITE_INT_FIELD(typmod);
548 12702 : WRITE_LOCATION_FIELD(location);
549 12702 : }
550 :
551 : static void
552 2200 : _outXmlExpr(StringInfo str, const XmlExpr *node)
553 : {
554 2200 : WRITE_NODE_TYPE("XMLEXPR");
555 :
556 2200 : WRITE_ENUM_FIELD(op, XmlExprOp);
557 2200 : WRITE_STRING_FIELD(name);
558 2200 : WRITE_NODE_FIELD(named_args);
559 2200 : WRITE_NODE_FIELD(arg_names);
560 2200 : WRITE_NODE_FIELD(args);
561 2200 : WRITE_ENUM_FIELD(xmloption, XmlOptionType);
562 2200 : WRITE_BOOL_FIELD(indent);
563 2200 : WRITE_OID_FIELD(type);
564 2200 : WRITE_INT_FIELD(typmod);
565 2200 : WRITE_LOCATION_FIELD(location);
566 2200 : }
567 :
568 : static void
569 22246 : _outJsonFormat(StringInfo str, const JsonFormat *node)
570 : {
571 22246 : WRITE_NODE_TYPE("JSONFORMAT");
572 :
573 22246 : WRITE_ENUM_FIELD(format_type, JsonFormatType);
574 22246 : WRITE_ENUM_FIELD(encoding, JsonEncoding);
575 22246 : WRITE_LOCATION_FIELD(location);
576 22246 : }
577 :
578 : static void
579 9554 : _outJsonReturning(StringInfo str, const JsonReturning *node)
580 : {
581 9554 : WRITE_NODE_TYPE("JSONRETURNING");
582 :
583 9554 : WRITE_NODE_FIELD(format);
584 9554 : WRITE_OID_FIELD(typid);
585 9554 : WRITE_INT_FIELD(typmod);
586 9554 : }
587 :
588 : static void
589 5720 : _outJsonValueExpr(StringInfo str, const JsonValueExpr *node)
590 : {
591 5720 : WRITE_NODE_TYPE("JSONVALUEEXPR");
592 :
593 5720 : WRITE_NODE_FIELD(raw_expr);
594 5720 : WRITE_NODE_FIELD(formatted_expr);
595 5720 : WRITE_NODE_FIELD(format);
596 5720 : }
597 :
598 : static void
599 2738 : _outJsonConstructorExpr(StringInfo str, const JsonConstructorExpr *node)
600 : {
601 2738 : WRITE_NODE_TYPE("JSONCONSTRUCTOREXPR");
602 :
603 2738 : WRITE_ENUM_FIELD(type, JsonConstructorType);
604 2738 : WRITE_NODE_FIELD(args);
605 2738 : WRITE_NODE_FIELD(func);
606 2738 : WRITE_NODE_FIELD(coercion);
607 2738 : WRITE_NODE_FIELD(returning);
608 2738 : WRITE_BOOL_FIELD(absent_on_null);
609 2738 : WRITE_BOOL_FIELD(unique);
610 2738 : WRITE_LOCATION_FIELD(location);
611 2738 : }
612 :
613 : static void
614 1038 : _outJsonIsPredicate(StringInfo str, const JsonIsPredicate *node)
615 : {
616 1038 : WRITE_NODE_TYPE("JSONISPREDICATE");
617 :
618 1038 : WRITE_NODE_FIELD(expr);
619 1038 : WRITE_NODE_FIELD(format);
620 1038 : WRITE_ENUM_FIELD(item_type, JsonValueType);
621 1038 : WRITE_BOOL_FIELD(unique_keys);
622 1038 : WRITE_LOCATION_FIELD(location);
623 1038 : }
624 :
625 : static void
626 10380 : _outJsonBehavior(StringInfo str, const JsonBehavior *node)
627 : {
628 10380 : WRITE_NODE_TYPE("JSONBEHAVIOR");
629 :
630 10380 : WRITE_ENUM_FIELD(btype, JsonBehaviorType);
631 10380 : WRITE_NODE_FIELD(expr);
632 10380 : WRITE_BOOL_FIELD(coerce);
633 10380 : WRITE_LOCATION_FIELD(location);
634 10380 : }
635 :
636 : static void
637 5330 : _outJsonExpr(StringInfo str, const JsonExpr *node)
638 : {
639 5330 : WRITE_NODE_TYPE("JSONEXPR");
640 :
641 5330 : WRITE_ENUM_FIELD(op, JsonExprOp);
642 5330 : WRITE_STRING_FIELD(column_name);
643 5330 : WRITE_NODE_FIELD(formatted_expr);
644 5330 : WRITE_NODE_FIELD(format);
645 5330 : WRITE_NODE_FIELD(path_spec);
646 5330 : WRITE_NODE_FIELD(returning);
647 5330 : WRITE_NODE_FIELD(passing_names);
648 5330 : WRITE_NODE_FIELD(passing_values);
649 5330 : WRITE_NODE_FIELD(on_empty);
650 5330 : WRITE_NODE_FIELD(on_error);
651 5330 : WRITE_BOOL_FIELD(use_io_coercion);
652 5330 : WRITE_BOOL_FIELD(use_json_coercion);
653 5330 : WRITE_ENUM_FIELD(wrapper, JsonWrapper);
654 5330 : WRITE_BOOL_FIELD(omit_quotes);
655 5330 : WRITE_OID_FIELD(collation);
656 5330 : WRITE_LOCATION_FIELD(location);
657 5330 : }
658 :
659 : static void
660 1292 : _outJsonTablePath(StringInfo str, const JsonTablePath *node)
661 : {
662 1292 : WRITE_NODE_TYPE("JSONTABLEPATH");
663 :
664 1292 : WRITE_NODE_FIELD(value);
665 1292 : WRITE_STRING_FIELD(name);
666 1292 : }
667 :
668 : static void
669 1292 : _outJsonTablePathScan(StringInfo str, const JsonTablePathScan *node)
670 : {
671 1292 : WRITE_NODE_TYPE("JSONTABLEPATHSCAN");
672 :
673 1292 : WRITE_NODE_FIELD(path);
674 1292 : WRITE_BOOL_FIELD(errorOnError);
675 1292 : WRITE_NODE_FIELD(child);
676 1292 : WRITE_INT_FIELD(colMin);
677 1292 : WRITE_INT_FIELD(colMax);
678 1292 : }
679 :
680 : static void
681 150 : _outJsonTableSiblingJoin(StringInfo str, const JsonTableSiblingJoin *node)
682 : {
683 150 : WRITE_NODE_TYPE("JSONTABLESIBLINGJOIN");
684 :
685 150 : WRITE_NODE_FIELD(lplan);
686 150 : WRITE_NODE_FIELD(rplan);
687 150 : }
688 :
689 : static void
690 55968 : _outNullTest(StringInfo str, const NullTest *node)
691 : {
692 55968 : WRITE_NODE_TYPE("NULLTEST");
693 :
694 55968 : WRITE_NODE_FIELD(arg);
695 55968 : WRITE_ENUM_FIELD(nulltesttype, NullTestType);
696 55968 : WRITE_BOOL_FIELD(argisrow);
697 55968 : WRITE_LOCATION_FIELD(location);
698 55968 : }
699 :
700 : static void
701 3792 : _outBooleanTest(StringInfo str, const BooleanTest *node)
702 : {
703 3792 : WRITE_NODE_TYPE("BOOLEANTEST");
704 :
705 3792 : WRITE_NODE_FIELD(arg);
706 3792 : WRITE_ENUM_FIELD(booltesttype, BoolTestType);
707 3792 : WRITE_LOCATION_FIELD(location);
708 3792 : }
709 :
710 : static void
711 6480 : _outMergeAction(StringInfo str, const MergeAction *node)
712 : {
713 6480 : WRITE_NODE_TYPE("MERGEACTION");
714 :
715 6480 : WRITE_ENUM_FIELD(matchKind, MergeMatchKind);
716 6480 : WRITE_ENUM_FIELD(commandType, CmdType);
717 6480 : WRITE_ENUM_FIELD(override, OverridingKind);
718 6480 : WRITE_NODE_FIELD(qual);
719 6480 : WRITE_NODE_FIELD(targetList);
720 6480 : WRITE_NODE_FIELD(updateColnos);
721 6480 : }
722 :
723 : static void
724 107378 : _outCoerceToDomain(StringInfo str, const CoerceToDomain *node)
725 : {
726 107378 : WRITE_NODE_TYPE("COERCETODOMAIN");
727 :
728 107378 : WRITE_NODE_FIELD(arg);
729 107378 : WRITE_OID_FIELD(resulttype);
730 107378 : WRITE_INT_FIELD(resulttypmod);
731 107378 : WRITE_OID_FIELD(resultcollid);
732 107378 : WRITE_ENUM_FIELD(coercionformat, CoercionForm);
733 107378 : WRITE_LOCATION_FIELD(location);
734 107378 : }
735 :
736 : static void
737 828 : _outCoerceToDomainValue(StringInfo str, const CoerceToDomainValue *node)
738 : {
739 828 : WRITE_NODE_TYPE("COERCETODOMAINVALUE");
740 :
741 828 : WRITE_OID_FIELD(typeId);
742 828 : WRITE_INT_FIELD(typeMod);
743 828 : WRITE_OID_FIELD(collation);
744 828 : WRITE_LOCATION_FIELD(location);
745 828 : }
746 :
747 : static void
748 1538 : _outSetToDefault(StringInfo str, const SetToDefault *node)
749 : {
750 1538 : WRITE_NODE_TYPE("SETTODEFAULT");
751 :
752 1538 : WRITE_OID_FIELD(typeId);
753 1538 : WRITE_INT_FIELD(typeMod);
754 1538 : WRITE_OID_FIELD(collation);
755 1538 : WRITE_LOCATION_FIELD(location);
756 1538 : }
757 :
758 : static void
759 902 : _outCurrentOfExpr(StringInfo str, const CurrentOfExpr *node)
760 : {
761 902 : WRITE_NODE_TYPE("CURRENTOFEXPR");
762 :
763 902 : WRITE_UINT_FIELD(cvarno);
764 902 : WRITE_STRING_FIELD(cursor_name);
765 902 : WRITE_INT_FIELD(cursor_param);
766 902 : }
767 :
768 : static void
769 816 : _outNextValueExpr(StringInfo str, const NextValueExpr *node)
770 : {
771 816 : WRITE_NODE_TYPE("NEXTVALUEEXPR");
772 :
773 816 : WRITE_OID_FIELD(seqid);
774 816 : WRITE_OID_FIELD(typeId);
775 816 : }
776 :
777 : static void
778 1858 : _outInferenceElem(StringInfo str, const InferenceElem *node)
779 : {
780 1858 : WRITE_NODE_TYPE("INFERENCEELEM");
781 :
782 1858 : WRITE_NODE_FIELD(expr);
783 1858 : WRITE_OID_FIELD(infercollid);
784 1858 : WRITE_OID_FIELD(inferopclass);
785 1858 : }
786 :
787 : static void
788 1158 : _outReturningExpr(StringInfo str, const ReturningExpr *node)
789 : {
790 1158 : WRITE_NODE_TYPE("RETURNINGEXPR");
791 :
792 1158 : WRITE_INT_FIELD(retlevelsup);
793 1158 : WRITE_BOOL_FIELD(retold);
794 1158 : WRITE_NODE_FIELD(retexpr);
795 1158 : }
796 :
797 : static void
798 7211016 : _outTargetEntry(StringInfo str, const TargetEntry *node)
799 : {
800 7211016 : WRITE_NODE_TYPE("TARGETENTRY");
801 :
802 7211016 : WRITE_NODE_FIELD(expr);
803 7211016 : WRITE_INT_FIELD(resno);
804 7211016 : WRITE_STRING_FIELD(resname);
805 7211016 : WRITE_UINT_FIELD(ressortgroupref);
806 7211016 : WRITE_OID_FIELD(resorigtbl);
807 7211016 : WRITE_INT_FIELD(resorigcol);
808 7211016 : WRITE_BOOL_FIELD(resjunk);
809 7211016 : }
810 :
811 : static void
812 576348 : _outRangeTblRef(StringInfo str, const RangeTblRef *node)
813 : {
814 576348 : WRITE_NODE_TYPE("RANGETBLREF");
815 :
816 576348 : WRITE_INT_FIELD(rtindex);
817 576348 : }
818 :
819 : static void
820 201446 : _outJoinExpr(StringInfo str, const JoinExpr *node)
821 : {
822 201446 : WRITE_NODE_TYPE("JOINEXPR");
823 :
824 201446 : WRITE_ENUM_FIELD(jointype, JoinType);
825 201446 : WRITE_BOOL_FIELD(isNatural);
826 201446 : WRITE_NODE_FIELD(larg);
827 201446 : WRITE_NODE_FIELD(rarg);
828 201446 : WRITE_NODE_FIELD(usingClause);
829 201446 : WRITE_NODE_FIELD(join_using_alias);
830 201446 : WRITE_NODE_FIELD(quals);
831 201446 : WRITE_NODE_FIELD(alias);
832 201446 : WRITE_INT_FIELD(rtindex);
833 201446 : }
834 :
835 : static void
836 600134 : _outFromExpr(StringInfo str, const FromExpr *node)
837 : {
838 600134 : WRITE_NODE_TYPE("FROMEXPR");
839 :
840 600134 : WRITE_NODE_FIELD(fromlist);
841 600134 : WRITE_NODE_FIELD(quals);
842 600134 : }
843 :
844 : static void
845 1818 : _outOnConflictExpr(StringInfo str, const OnConflictExpr *node)
846 : {
847 1818 : WRITE_NODE_TYPE("ONCONFLICTEXPR");
848 :
849 1818 : WRITE_ENUM_FIELD(action, OnConflictAction);
850 1818 : WRITE_NODE_FIELD(arbiterElems);
851 1818 : WRITE_NODE_FIELD(arbiterWhere);
852 1818 : WRITE_OID_FIELD(constraint);
853 1818 : WRITE_NODE_FIELD(onConflictSet);
854 1818 : WRITE_NODE_FIELD(onConflictWhere);
855 1818 : WRITE_INT_FIELD(exclRelIndex);
856 1818 : WRITE_NODE_FIELD(exclRelTlist);
857 1818 : }
858 :
859 : static void
860 1001682 : _outQuery(StringInfo str, const Query *node)
861 : {
862 1001682 : WRITE_NODE_TYPE("QUERY");
863 :
864 1001682 : WRITE_ENUM_FIELD(commandType, CmdType);
865 1001682 : WRITE_ENUM_FIELD(querySource, QuerySource);
866 1001682 : WRITE_BOOL_FIELD(canSetTag);
867 1001682 : WRITE_NODE_FIELD(utilityStmt);
868 1001682 : WRITE_INT_FIELD(resultRelation);
869 1001682 : WRITE_BOOL_FIELD(hasAggs);
870 1001682 : WRITE_BOOL_FIELD(hasWindowFuncs);
871 1001682 : WRITE_BOOL_FIELD(hasTargetSRFs);
872 1001682 : WRITE_BOOL_FIELD(hasSubLinks);
873 1001682 : WRITE_BOOL_FIELD(hasDistinctOn);
874 1001682 : WRITE_BOOL_FIELD(hasRecursive);
875 1001682 : WRITE_BOOL_FIELD(hasModifyingCTE);
876 1001682 : WRITE_BOOL_FIELD(hasForUpdate);
877 1001682 : WRITE_BOOL_FIELD(hasRowSecurity);
878 1001682 : WRITE_BOOL_FIELD(hasGroupRTE);
879 1001682 : WRITE_BOOL_FIELD(isReturn);
880 1001682 : WRITE_NODE_FIELD(cteList);
881 1001682 : WRITE_NODE_FIELD(rtable);
882 1001682 : WRITE_NODE_FIELD(rteperminfos);
883 1001682 : WRITE_NODE_FIELD(jointree);
884 1001682 : WRITE_NODE_FIELD(mergeActionList);
885 1001682 : WRITE_INT_FIELD(mergeTargetRelation);
886 1001682 : WRITE_NODE_FIELD(mergeJoinCondition);
887 1001682 : WRITE_NODE_FIELD(targetList);
888 1001682 : WRITE_ENUM_FIELD(override, OverridingKind);
889 1001682 : WRITE_NODE_FIELD(onConflict);
890 1001682 : WRITE_STRING_FIELD(returningOldAlias);
891 1001682 : WRITE_STRING_FIELD(returningNewAlias);
892 1001682 : WRITE_NODE_FIELD(returningList);
893 1001682 : WRITE_NODE_FIELD(groupClause);
894 1001682 : WRITE_BOOL_FIELD(groupDistinct);
895 1001682 : WRITE_NODE_FIELD(groupingSets);
896 1001682 : WRITE_NODE_FIELD(havingQual);
897 1001682 : WRITE_NODE_FIELD(windowClause);
898 1001682 : WRITE_NODE_FIELD(distinctClause);
899 1001682 : WRITE_NODE_FIELD(sortClause);
900 1001682 : WRITE_NODE_FIELD(limitOffset);
901 1001682 : WRITE_NODE_FIELD(limitCount);
902 1001682 : WRITE_ENUM_FIELD(limitOption, LimitOption);
903 1001682 : WRITE_NODE_FIELD(rowMarks);
904 1001682 : WRITE_NODE_FIELD(setOperations);
905 1001682 : WRITE_NODE_FIELD(constraintDeps);
906 1001682 : WRITE_NODE_FIELD(withCheckOptions);
907 1001682 : WRITE_LOCATION_FIELD(stmt_location);
908 1001682 : WRITE_LOCATION_FIELD(stmt_len);
909 1001682 : }
910 :
911 : static void
912 839566 : _outTypeName(StringInfo str, const TypeName *node)
913 : {
914 839566 : WRITE_NODE_TYPE("TYPENAME");
915 :
916 839566 : WRITE_NODE_FIELD(names);
917 839566 : WRITE_OID_FIELD(typeOid);
918 839566 : WRITE_BOOL_FIELD(setof);
919 839566 : WRITE_BOOL_FIELD(pct_type);
920 839566 : WRITE_NODE_FIELD(typmods);
921 839566 : WRITE_INT_FIELD(typemod);
922 839566 : WRITE_NODE_FIELD(arrayBounds);
923 839566 : WRITE_LOCATION_FIELD(location);
924 839566 : }
925 :
926 : static void
927 2141108 : _outColumnRef(StringInfo str, const ColumnRef *node)
928 : {
929 2141108 : WRITE_NODE_TYPE("COLUMNREF");
930 :
931 2141108 : WRITE_NODE_FIELD(fields);
932 2141108 : WRITE_LOCATION_FIELD(location);
933 2141108 : }
934 :
935 : static void
936 55206 : _outParamRef(StringInfo str, const ParamRef *node)
937 : {
938 55206 : WRITE_NODE_TYPE("PARAMREF");
939 :
940 55206 : WRITE_INT_FIELD(number);
941 55206 : WRITE_LOCATION_FIELD(location);
942 55206 : }
943 :
944 : static void
945 382214 : _outTypeCast(StringInfo str, const TypeCast *node)
946 : {
947 382214 : WRITE_NODE_TYPE("TYPECAST");
948 :
949 382214 : WRITE_NODE_FIELD(arg);
950 382214 : WRITE_NODE_FIELD(typeName);
951 382214 : WRITE_LOCATION_FIELD(location);
952 382214 : }
953 :
954 : static void
955 10686 : _outCollateClause(StringInfo str, const CollateClause *node)
956 : {
957 10686 : WRITE_NODE_TYPE("COLLATECLAUSE");
958 :
959 10686 : WRITE_NODE_FIELD(arg);
960 10686 : WRITE_NODE_FIELD(collname);
961 10686 : WRITE_LOCATION_FIELD(location);
962 10686 : }
963 :
964 : static void
965 65408 : _outRoleSpec(StringInfo str, const RoleSpec *node)
966 : {
967 65408 : WRITE_NODE_TYPE("ROLESPEC");
968 :
969 65408 : WRITE_ENUM_FIELD(roletype, RoleSpecType);
970 65408 : WRITE_STRING_FIELD(rolename);
971 65408 : WRITE_LOCATION_FIELD(location);
972 65408 : }
973 :
974 : static void
975 416748 : _outFuncCall(StringInfo str, const FuncCall *node)
976 : {
977 416748 : WRITE_NODE_TYPE("FUNCCALL");
978 :
979 416748 : WRITE_NODE_FIELD(funcname);
980 416748 : WRITE_NODE_FIELD(args);
981 416748 : WRITE_NODE_FIELD(agg_order);
982 416748 : WRITE_NODE_FIELD(agg_filter);
983 416748 : WRITE_NODE_FIELD(over);
984 416748 : WRITE_BOOL_FIELD(agg_within_group);
985 416748 : WRITE_BOOL_FIELD(agg_star);
986 416748 : WRITE_BOOL_FIELD(agg_distinct);
987 416748 : WRITE_BOOL_FIELD(func_variadic);
988 416748 : WRITE_ENUM_FIELD(funcformat, CoercionForm);
989 416748 : WRITE_LOCATION_FIELD(location);
990 416748 : }
991 :
992 : static void
993 64852 : _outA_Star(StringInfo str, const A_Star *node)
994 : {
995 64852 : WRITE_NODE_TYPE("A_STAR");
996 :
997 64852 : }
998 :
999 : static void
1000 15360 : _outA_Indices(StringInfo str, const A_Indices *node)
1001 : {
1002 15360 : WRITE_NODE_TYPE("A_INDICES");
1003 :
1004 15360 : WRITE_BOOL_FIELD(is_slice);
1005 15360 : WRITE_NODE_FIELD(lidx);
1006 15360 : WRITE_NODE_FIELD(uidx);
1007 15360 : }
1008 :
1009 : static void
1010 36390 : _outA_Indirection(StringInfo str, const A_Indirection *node)
1011 : {
1012 36390 : WRITE_NODE_TYPE("A_INDIRECTION");
1013 :
1014 36390 : WRITE_NODE_FIELD(arg);
1015 36390 : WRITE_NODE_FIELD(indirection);
1016 36390 : }
1017 :
1018 : static void
1019 7100 : _outA_ArrayExpr(StringInfo str, const A_ArrayExpr *node)
1020 : {
1021 7100 : WRITE_NODE_TYPE("A_ARRAYEXPR");
1022 :
1023 7100 : WRITE_NODE_FIELD(elements);
1024 7100 : WRITE_LOCATION_FIELD(list_start);
1025 7100 : WRITE_LOCATION_FIELD(list_end);
1026 7100 : WRITE_LOCATION_FIELD(location);
1027 7100 : }
1028 :
1029 : static void
1030 1352794 : _outResTarget(StringInfo str, const ResTarget *node)
1031 : {
1032 1352794 : WRITE_NODE_TYPE("RESTARGET");
1033 :
1034 1352794 : WRITE_STRING_FIELD(name);
1035 1352794 : WRITE_NODE_FIELD(indirection);
1036 1352794 : WRITE_NODE_FIELD(val);
1037 1352794 : WRITE_LOCATION_FIELD(location);
1038 1352794 : }
1039 :
1040 : static void
1041 402 : _outMultiAssignRef(StringInfo str, const MultiAssignRef *node)
1042 : {
1043 402 : WRITE_NODE_TYPE("MULTIASSIGNREF");
1044 :
1045 402 : WRITE_NODE_FIELD(source);
1046 402 : WRITE_INT_FIELD(colno);
1047 402 : WRITE_INT_FIELD(ncolumns);
1048 402 : }
1049 :
1050 : static void
1051 113516 : _outSortBy(StringInfo str, const SortBy *node)
1052 : {
1053 113516 : WRITE_NODE_TYPE("SORTBY");
1054 :
1055 113516 : WRITE_NODE_FIELD(node);
1056 113516 : WRITE_ENUM_FIELD(sortby_dir, SortByDir);
1057 113516 : WRITE_ENUM_FIELD(sortby_nulls, SortByNulls);
1058 113516 : WRITE_NODE_FIELD(useOp);
1059 113516 : WRITE_LOCATION_FIELD(location);
1060 113516 : }
1061 :
1062 : static void
1063 4180 : _outWindowDef(StringInfo str, const WindowDef *node)
1064 : {
1065 4180 : WRITE_NODE_TYPE("WINDOWDEF");
1066 :
1067 4180 : WRITE_STRING_FIELD(name);
1068 4180 : WRITE_STRING_FIELD(refname);
1069 4180 : WRITE_NODE_FIELD(partitionClause);
1070 4180 : WRITE_NODE_FIELD(orderClause);
1071 4180 : WRITE_INT_FIELD(frameOptions);
1072 4180 : WRITE_NODE_FIELD(startOffset);
1073 4180 : WRITE_NODE_FIELD(endOffset);
1074 4180 : WRITE_LOCATION_FIELD(location);
1075 4180 : }
1076 :
1077 : static void
1078 19006 : _outRangeSubselect(StringInfo str, const RangeSubselect *node)
1079 : {
1080 19006 : WRITE_NODE_TYPE("RANGESUBSELECT");
1081 :
1082 19006 : WRITE_BOOL_FIELD(lateral);
1083 19006 : WRITE_NODE_FIELD(subquery);
1084 19006 : WRITE_NODE_FIELD(alias);
1085 19006 : }
1086 :
1087 : static void
1088 53364 : _outRangeFunction(StringInfo str, const RangeFunction *node)
1089 : {
1090 53364 : WRITE_NODE_TYPE("RANGEFUNCTION");
1091 :
1092 53364 : WRITE_BOOL_FIELD(lateral);
1093 53364 : WRITE_BOOL_FIELD(ordinality);
1094 53364 : WRITE_BOOL_FIELD(is_rowsfrom);
1095 53364 : WRITE_NODE_FIELD(functions);
1096 53364 : WRITE_NODE_FIELD(alias);
1097 53364 : WRITE_NODE_FIELD(coldeflist);
1098 53364 : }
1099 :
1100 : static void
1101 250 : _outRangeTableFunc(StringInfo str, const RangeTableFunc *node)
1102 : {
1103 250 : WRITE_NODE_TYPE("RANGETABLEFUNC");
1104 :
1105 250 : WRITE_BOOL_FIELD(lateral);
1106 250 : WRITE_NODE_FIELD(docexpr);
1107 250 : WRITE_NODE_FIELD(rowexpr);
1108 250 : WRITE_NODE_FIELD(namespaces);
1109 250 : WRITE_NODE_FIELD(columns);
1110 250 : WRITE_NODE_FIELD(alias);
1111 250 : WRITE_LOCATION_FIELD(location);
1112 250 : }
1113 :
1114 : static void
1115 906 : _outRangeTableFuncCol(StringInfo str, const RangeTableFuncCol *node)
1116 : {
1117 906 : WRITE_NODE_TYPE("RANGETABLEFUNCCOL");
1118 :
1119 906 : WRITE_STRING_FIELD(colname);
1120 906 : WRITE_NODE_FIELD(typeName);
1121 906 : WRITE_BOOL_FIELD(for_ordinality);
1122 906 : WRITE_BOOL_FIELD(is_not_null);
1123 906 : WRITE_NODE_FIELD(colexpr);
1124 906 : WRITE_NODE_FIELD(coldefexpr);
1125 906 : WRITE_LOCATION_FIELD(location);
1126 906 : }
1127 :
1128 : static void
1129 288 : _outRangeTableSample(StringInfo str, const RangeTableSample *node)
1130 : {
1131 288 : WRITE_NODE_TYPE("RANGETABLESAMPLE");
1132 :
1133 288 : WRITE_NODE_FIELD(relation);
1134 288 : WRITE_NODE_FIELD(method);
1135 288 : WRITE_NODE_FIELD(args);
1136 288 : WRITE_NODE_FIELD(repeatable);
1137 288 : WRITE_LOCATION_FIELD(location);
1138 288 : }
1139 :
1140 : static void
1141 153198 : _outColumnDef(StringInfo str, const ColumnDef *node)
1142 : {
1143 153198 : WRITE_NODE_TYPE("COLUMNDEF");
1144 :
1145 153198 : WRITE_STRING_FIELD(colname);
1146 153198 : WRITE_NODE_FIELD(typeName);
1147 153198 : WRITE_STRING_FIELD(compression);
1148 153198 : WRITE_INT_FIELD(inhcount);
1149 153198 : WRITE_BOOL_FIELD(is_local);
1150 153198 : WRITE_BOOL_FIELD(is_not_null);
1151 153198 : WRITE_BOOL_FIELD(is_from_type);
1152 153198 : WRITE_CHAR_FIELD(storage);
1153 153198 : WRITE_STRING_FIELD(storage_name);
1154 153198 : WRITE_NODE_FIELD(raw_default);
1155 153198 : WRITE_NODE_FIELD(cooked_default);
1156 153198 : WRITE_CHAR_FIELD(identity);
1157 153198 : WRITE_NODE_FIELD(identitySequence);
1158 153198 : WRITE_CHAR_FIELD(generated);
1159 153198 : WRITE_NODE_FIELD(collClause);
1160 153198 : WRITE_OID_FIELD(collOid);
1161 153198 : WRITE_NODE_FIELD(constraints);
1162 153198 : WRITE_NODE_FIELD(fdwoptions);
1163 153198 : WRITE_LOCATION_FIELD(location);
1164 153198 : }
1165 :
1166 : static void
1167 1548 : _outTableLikeClause(StringInfo str, const TableLikeClause *node)
1168 : {
1169 1548 : WRITE_NODE_TYPE("TABLELIKECLAUSE");
1170 :
1171 1548 : WRITE_NODE_FIELD(relation);
1172 1548 : WRITE_UINT_FIELD(options);
1173 1548 : WRITE_OID_FIELD(relationOid);
1174 1548 : }
1175 :
1176 : static void
1177 20332 : _outIndexElem(StringInfo str, const IndexElem *node)
1178 : {
1179 20332 : WRITE_NODE_TYPE("INDEXELEM");
1180 :
1181 20332 : WRITE_STRING_FIELD(name);
1182 20332 : WRITE_NODE_FIELD(expr);
1183 20332 : WRITE_STRING_FIELD(indexcolname);
1184 20332 : WRITE_NODE_FIELD(collation);
1185 20332 : WRITE_NODE_FIELD(opclass);
1186 20332 : WRITE_NODE_FIELD(opclassopts);
1187 20332 : WRITE_ENUM_FIELD(ordering, SortByDir);
1188 20332 : WRITE_ENUM_FIELD(nulls_ordering, SortByNulls);
1189 20332 : }
1190 :
1191 : static void
1192 353724 : _outDefElem(StringInfo str, const DefElem *node)
1193 : {
1194 353724 : WRITE_NODE_TYPE("DEFELEM");
1195 :
1196 353724 : WRITE_STRING_FIELD(defnamespace);
1197 353724 : WRITE_STRING_FIELD(defname);
1198 353724 : WRITE_NODE_FIELD(arg);
1199 353724 : WRITE_ENUM_FIELD(defaction, DefElemAction);
1200 353724 : WRITE_LOCATION_FIELD(location);
1201 353724 : }
1202 :
1203 : static void
1204 2178 : _outLockingClause(StringInfo str, const LockingClause *node)
1205 : {
1206 2178 : WRITE_NODE_TYPE("LOCKINGCLAUSE");
1207 :
1208 2178 : WRITE_NODE_FIELD(lockedRels);
1209 2178 : WRITE_ENUM_FIELD(strength, LockClauseStrength);
1210 2178 : WRITE_ENUM_FIELD(waitPolicy, LockWaitPolicy);
1211 2178 : }
1212 :
1213 : static void
1214 266 : _outXmlSerialize(StringInfo str, const XmlSerialize *node)
1215 : {
1216 266 : WRITE_NODE_TYPE("XMLSERIALIZE");
1217 :
1218 266 : WRITE_ENUM_FIELD(xmloption, XmlOptionType);
1219 266 : WRITE_NODE_FIELD(expr);
1220 266 : WRITE_NODE_FIELD(typeName);
1221 266 : WRITE_BOOL_FIELD(indent);
1222 266 : WRITE_LOCATION_FIELD(location);
1223 266 : }
1224 :
1225 : static void
1226 11224 : _outPartitionElem(StringInfo str, const PartitionElem *node)
1227 : {
1228 11224 : WRITE_NODE_TYPE("PARTITIONELEM");
1229 :
1230 11224 : WRITE_STRING_FIELD(name);
1231 11224 : WRITE_NODE_FIELD(expr);
1232 11224 : WRITE_NODE_FIELD(collation);
1233 11224 : WRITE_NODE_FIELD(opclass);
1234 11224 : WRITE_LOCATION_FIELD(location);
1235 11224 : }
1236 :
1237 : static void
1238 10292 : _outPartitionSpec(StringInfo str, const PartitionSpec *node)
1239 : {
1240 10292 : WRITE_NODE_TYPE("PARTITIONSPEC");
1241 :
1242 10292 : WRITE_ENUM_FIELD(strategy, PartitionStrategy);
1243 10292 : WRITE_NODE_FIELD(partParams);
1244 10292 : WRITE_LOCATION_FIELD(location);
1245 10292 : }
1246 :
1247 : static void
1248 31644 : _outPartitionBoundSpec(StringInfo str, const PartitionBoundSpec *node)
1249 : {
1250 31644 : WRITE_NODE_TYPE("PARTITIONBOUNDSPEC");
1251 :
1252 31644 : WRITE_CHAR_FIELD(strategy);
1253 31644 : WRITE_BOOL_FIELD(is_default);
1254 31644 : WRITE_INT_FIELD(modulus);
1255 31644 : WRITE_INT_FIELD(remainder);
1256 31644 : WRITE_NODE_FIELD(listdatums);
1257 31644 : WRITE_NODE_FIELD(lowerdatums);
1258 31644 : WRITE_NODE_FIELD(upperdatums);
1259 31644 : WRITE_LOCATION_FIELD(location);
1260 31644 : }
1261 :
1262 : static void
1263 10124 : _outPartitionRangeDatum(StringInfo str, const PartitionRangeDatum *node)
1264 : {
1265 10124 : WRITE_NODE_TYPE("PARTITIONRANGEDATUM");
1266 :
1267 10124 : WRITE_ENUM_FIELD(kind, PartitionRangeDatumKind);
1268 10124 : WRITE_NODE_FIELD(value);
1269 10124 : WRITE_LOCATION_FIELD(location);
1270 10124 : }
1271 :
1272 : static void
1273 7874 : _outPartitionCmd(StringInfo str, const PartitionCmd *node)
1274 : {
1275 7874 : WRITE_NODE_TYPE("PARTITIONCMD");
1276 :
1277 7874 : WRITE_NODE_FIELD(name);
1278 7874 : WRITE_NODE_FIELD(bound);
1279 7874 : WRITE_BOOL_FIELD(concurrent);
1280 7874 : }
1281 :
1282 : static void
1283 1014996 : _outRTEPermissionInfo(StringInfo str, const RTEPermissionInfo *node)
1284 : {
1285 1014996 : WRITE_NODE_TYPE("RTEPERMISSIONINFO");
1286 :
1287 1014996 : WRITE_OID_FIELD(relid);
1288 1014996 : WRITE_BOOL_FIELD(inh);
1289 1014996 : WRITE_UINT64_FIELD(requiredPerms);
1290 1014996 : WRITE_OID_FIELD(checkAsUser);
1291 1014996 : WRITE_BITMAPSET_FIELD(selectedCols);
1292 1014996 : WRITE_BITMAPSET_FIELD(insertedCols);
1293 1014996 : WRITE_BITMAPSET_FIELD(updatedCols);
1294 1014996 : }
1295 :
1296 : static void
1297 108014 : _outRangeTblFunction(StringInfo str, const RangeTblFunction *node)
1298 : {
1299 108014 : WRITE_NODE_TYPE("RANGETBLFUNCTION");
1300 :
1301 108014 : WRITE_NODE_FIELD(funcexpr);
1302 108014 : WRITE_INT_FIELD(funccolcount);
1303 108014 : WRITE_NODE_FIELD(funccolnames);
1304 108014 : WRITE_NODE_FIELD(funccoltypes);
1305 108014 : WRITE_NODE_FIELD(funccoltypmods);
1306 108014 : WRITE_NODE_FIELD(funccolcollations);
1307 108014 : WRITE_BITMAPSET_FIELD(funcparams);
1308 108014 : }
1309 :
1310 : static void
1311 550 : _outTableSampleClause(StringInfo str, const TableSampleClause *node)
1312 : {
1313 550 : WRITE_NODE_TYPE("TABLESAMPLECLAUSE");
1314 :
1315 550 : WRITE_OID_FIELD(tsmhandler);
1316 550 : WRITE_NODE_FIELD(args);
1317 550 : WRITE_NODE_FIELD(repeatable);
1318 550 : }
1319 :
1320 : static void
1321 4842 : _outWithCheckOption(StringInfo str, const WithCheckOption *node)
1322 : {
1323 4842 : WRITE_NODE_TYPE("WITHCHECKOPTION");
1324 :
1325 4842 : WRITE_ENUM_FIELD(kind, WCOKind);
1326 4842 : WRITE_STRING_FIELD(relname);
1327 4842 : WRITE_STRING_FIELD(polname);
1328 4842 : WRITE_NODE_FIELD(qual);
1329 4842 : WRITE_BOOL_FIELD(cascaded);
1330 4842 : }
1331 :
1332 : static void
1333 164658 : _outSortGroupClause(StringInfo str, const SortGroupClause *node)
1334 : {
1335 164658 : WRITE_NODE_TYPE("SORTGROUPCLAUSE");
1336 :
1337 164658 : WRITE_UINT_FIELD(tleSortGroupRef);
1338 164658 : WRITE_OID_FIELD(eqop);
1339 164658 : WRITE_OID_FIELD(sortop);
1340 164658 : WRITE_BOOL_FIELD(reverse_sort);
1341 164658 : WRITE_BOOL_FIELD(nulls_first);
1342 164658 : WRITE_BOOL_FIELD(hashable);
1343 164658 : }
1344 :
1345 : static void
1346 4258 : _outGroupingSet(StringInfo str, const GroupingSet *node)
1347 : {
1348 4258 : WRITE_NODE_TYPE("GROUPINGSET");
1349 :
1350 4258 : WRITE_ENUM_FIELD(kind, GroupingSetKind);
1351 4258 : WRITE_NODE_FIELD(content);
1352 4258 : WRITE_LOCATION_FIELD(location);
1353 4258 : }
1354 :
1355 : static void
1356 2806 : _outWindowClause(StringInfo str, const WindowClause *node)
1357 : {
1358 2806 : WRITE_NODE_TYPE("WINDOWCLAUSE");
1359 :
1360 2806 : WRITE_STRING_FIELD(name);
1361 2806 : WRITE_STRING_FIELD(refname);
1362 2806 : WRITE_NODE_FIELD(partitionClause);
1363 2806 : WRITE_NODE_FIELD(orderClause);
1364 2806 : WRITE_INT_FIELD(frameOptions);
1365 2806 : WRITE_NODE_FIELD(startOffset);
1366 2806 : WRITE_NODE_FIELD(endOffset);
1367 2806 : WRITE_OID_FIELD(startInRangeFunc);
1368 2806 : WRITE_OID_FIELD(endInRangeFunc);
1369 2806 : WRITE_OID_FIELD(inRangeColl);
1370 2806 : WRITE_BOOL_FIELD(inRangeAsc);
1371 2806 : WRITE_BOOL_FIELD(inRangeNullsFirst);
1372 2806 : WRITE_UINT_FIELD(winref);
1373 2806 : WRITE_BOOL_FIELD(copiedOrder);
1374 2806 : }
1375 :
1376 : static void
1377 5344 : _outRowMarkClause(StringInfo str, const RowMarkClause *node)
1378 : {
1379 5344 : WRITE_NODE_TYPE("ROWMARKCLAUSE");
1380 :
1381 5344 : WRITE_UINT_FIELD(rti);
1382 5344 : WRITE_ENUM_FIELD(strength, LockClauseStrength);
1383 5344 : WRITE_ENUM_FIELD(waitPolicy, LockWaitPolicy);
1384 5344 : WRITE_BOOL_FIELD(pushedDown);
1385 5344 : }
1386 :
1387 : static void
1388 3380 : _outWithClause(StringInfo str, const WithClause *node)
1389 : {
1390 3380 : WRITE_NODE_TYPE("WITHCLAUSE");
1391 :
1392 3380 : WRITE_NODE_FIELD(ctes);
1393 3380 : WRITE_BOOL_FIELD(recursive);
1394 3380 : WRITE_LOCATION_FIELD(location);
1395 3380 : }
1396 :
1397 : static void
1398 1632 : _outInferClause(StringInfo str, const InferClause *node)
1399 : {
1400 1632 : WRITE_NODE_TYPE("INFERCLAUSE");
1401 :
1402 1632 : WRITE_NODE_FIELD(indexElems);
1403 1632 : WRITE_NODE_FIELD(whereClause);
1404 1632 : WRITE_STRING_FIELD(conname);
1405 1632 : WRITE_LOCATION_FIELD(location);
1406 1632 : }
1407 :
1408 : static void
1409 1872 : _outOnConflictClause(StringInfo str, const OnConflictClause *node)
1410 : {
1411 1872 : WRITE_NODE_TYPE("ONCONFLICTCLAUSE");
1412 :
1413 1872 : WRITE_ENUM_FIELD(action, OnConflictAction);
1414 1872 : WRITE_NODE_FIELD(infer);
1415 1872 : WRITE_NODE_FIELD(targetList);
1416 1872 : WRITE_NODE_FIELD(whereClause);
1417 1872 : WRITE_LOCATION_FIELD(location);
1418 1872 : }
1419 :
1420 : static void
1421 216 : _outCTESearchClause(StringInfo str, const CTESearchClause *node)
1422 : {
1423 216 : WRITE_NODE_TYPE("CTESEARCHCLAUSE");
1424 :
1425 216 : WRITE_NODE_FIELD(search_col_list);
1426 216 : WRITE_BOOL_FIELD(search_breadth_first);
1427 216 : WRITE_STRING_FIELD(search_seq_column);
1428 216 : WRITE_LOCATION_FIELD(location);
1429 216 : }
1430 :
1431 : static void
1432 222 : _outCTECycleClause(StringInfo str, const CTECycleClause *node)
1433 : {
1434 222 : WRITE_NODE_TYPE("CTECYCLECLAUSE");
1435 :
1436 222 : WRITE_NODE_FIELD(cycle_col_list);
1437 222 : WRITE_STRING_FIELD(cycle_mark_column);
1438 222 : WRITE_NODE_FIELD(cycle_mark_value);
1439 222 : WRITE_NODE_FIELD(cycle_mark_default);
1440 222 : WRITE_STRING_FIELD(cycle_path_column);
1441 222 : WRITE_LOCATION_FIELD(location);
1442 222 : WRITE_OID_FIELD(cycle_mark_type);
1443 222 : WRITE_INT_FIELD(cycle_mark_typmod);
1444 222 : WRITE_OID_FIELD(cycle_mark_collation);
1445 222 : WRITE_OID_FIELD(cycle_mark_neop);
1446 222 : }
1447 :
1448 : static void
1449 8716 : _outCommonTableExpr(StringInfo str, const CommonTableExpr *node)
1450 : {
1451 8716 : WRITE_NODE_TYPE("COMMONTABLEEXPR");
1452 :
1453 8716 : WRITE_STRING_FIELD(ctename);
1454 8716 : WRITE_NODE_FIELD(aliascolnames);
1455 8716 : WRITE_ENUM_FIELD(ctematerialized, CTEMaterialize);
1456 8716 : WRITE_NODE_FIELD(ctequery);
1457 8716 : WRITE_NODE_FIELD(search_clause);
1458 8716 : WRITE_NODE_FIELD(cycle_clause);
1459 8716 : WRITE_LOCATION_FIELD(location);
1460 8716 : WRITE_BOOL_FIELD(cterecursive);
1461 8716 : WRITE_INT_FIELD(cterefcount);
1462 8716 : WRITE_NODE_FIELD(ctecolnames);
1463 8716 : WRITE_NODE_FIELD(ctecoltypes);
1464 8716 : WRITE_NODE_FIELD(ctecoltypmods);
1465 8716 : WRITE_NODE_FIELD(ctecolcollations);
1466 8716 : }
1467 :
1468 : static void
1469 3014 : _outMergeWhenClause(StringInfo str, const MergeWhenClause *node)
1470 : {
1471 3014 : WRITE_NODE_TYPE("MERGEWHENCLAUSE");
1472 :
1473 3014 : WRITE_ENUM_FIELD(matchKind, MergeMatchKind);
1474 3014 : WRITE_ENUM_FIELD(commandType, CmdType);
1475 3014 : WRITE_ENUM_FIELD(override, OverridingKind);
1476 3014 : WRITE_NODE_FIELD(condition);
1477 3014 : WRITE_NODE_FIELD(targetList);
1478 3014 : WRITE_NODE_FIELD(values);
1479 3014 : }
1480 :
1481 : static void
1482 150 : _outReturningOption(StringInfo str, const ReturningOption *node)
1483 : {
1484 150 : WRITE_NODE_TYPE("RETURNINGOPTION");
1485 :
1486 150 : WRITE_ENUM_FIELD(option, ReturningOptionKind);
1487 150 : WRITE_STRING_FIELD(value);
1488 150 : WRITE_LOCATION_FIELD(location);
1489 150 : }
1490 :
1491 : static void
1492 3302 : _outReturningClause(StringInfo str, const ReturningClause *node)
1493 : {
1494 3302 : WRITE_NODE_TYPE("RETURNINGCLAUSE");
1495 :
1496 3302 : WRITE_NODE_FIELD(options);
1497 3302 : WRITE_NODE_FIELD(exprs);
1498 3302 : }
1499 :
1500 : static void
1501 1228 : _outTriggerTransition(StringInfo str, const TriggerTransition *node)
1502 : {
1503 1228 : WRITE_NODE_TYPE("TRIGGERTRANSITION");
1504 :
1505 1228 : WRITE_STRING_FIELD(name);
1506 1228 : WRITE_BOOL_FIELD(isNew);
1507 1228 : WRITE_BOOL_FIELD(isTable);
1508 1228 : }
1509 :
1510 : static void
1511 1486 : _outJsonOutput(StringInfo str, const JsonOutput *node)
1512 : {
1513 1486 : WRITE_NODE_TYPE("JSONOUTPUT");
1514 :
1515 1486 : WRITE_NODE_FIELD(typeName);
1516 1486 : WRITE_NODE_FIELD(returning);
1517 1486 : }
1518 :
1519 : static void
1520 630 : _outJsonArgument(StringInfo str, const JsonArgument *node)
1521 : {
1522 630 : WRITE_NODE_TYPE("JSONARGUMENT");
1523 :
1524 630 : WRITE_NODE_FIELD(val);
1525 630 : WRITE_STRING_FIELD(name);
1526 630 : }
1527 :
1528 : static void
1529 1992 : _outJsonFuncExpr(StringInfo str, const JsonFuncExpr *node)
1530 : {
1531 1992 : WRITE_NODE_TYPE("JSONFUNCEXPR");
1532 :
1533 1992 : WRITE_ENUM_FIELD(op, JsonExprOp);
1534 1992 : WRITE_STRING_FIELD(column_name);
1535 1992 : WRITE_NODE_FIELD(context_item);
1536 1992 : WRITE_NODE_FIELD(pathspec);
1537 1992 : WRITE_NODE_FIELD(passing);
1538 1992 : WRITE_NODE_FIELD(output);
1539 1992 : WRITE_NODE_FIELD(on_empty);
1540 1992 : WRITE_NODE_FIELD(on_error);
1541 1992 : WRITE_ENUM_FIELD(wrapper, JsonWrapper);
1542 1992 : WRITE_ENUM_FIELD(quotes, JsonQuotes);
1543 1992 : WRITE_LOCATION_FIELD(location);
1544 1992 : }
1545 :
1546 : static void
1547 1972 : _outJsonTablePathSpec(StringInfo str, const JsonTablePathSpec *node)
1548 : {
1549 1972 : WRITE_NODE_TYPE("JSONTABLEPATHSPEC");
1550 :
1551 1972 : WRITE_NODE_FIELD(string);
1552 1972 : WRITE_STRING_FIELD(name);
1553 1972 : WRITE_LOCATION_FIELD(name_location);
1554 1972 : WRITE_LOCATION_FIELD(location);
1555 1972 : }
1556 :
1557 : static void
1558 590 : _outJsonTable(StringInfo str, const JsonTable *node)
1559 : {
1560 590 : WRITE_NODE_TYPE("JSONTABLE");
1561 :
1562 590 : WRITE_NODE_FIELD(context_item);
1563 590 : WRITE_NODE_FIELD(pathspec);
1564 590 : WRITE_NODE_FIELD(passing);
1565 590 : WRITE_NODE_FIELD(columns);
1566 590 : WRITE_NODE_FIELD(on_error);
1567 590 : WRITE_NODE_FIELD(alias);
1568 590 : WRITE_BOOL_FIELD(lateral);
1569 590 : WRITE_LOCATION_FIELD(location);
1570 590 : }
1571 :
1572 : static void
1573 1648 : _outJsonTableColumn(StringInfo str, const JsonTableColumn *node)
1574 : {
1575 1648 : WRITE_NODE_TYPE("JSONTABLECOLUMN");
1576 :
1577 1648 : WRITE_ENUM_FIELD(coltype, JsonTableColumnType);
1578 1648 : WRITE_STRING_FIELD(name);
1579 1648 : WRITE_NODE_FIELD(typeName);
1580 1648 : WRITE_NODE_FIELD(pathspec);
1581 1648 : WRITE_NODE_FIELD(format);
1582 1648 : WRITE_ENUM_FIELD(wrapper, JsonWrapper);
1583 1648 : WRITE_ENUM_FIELD(quotes, JsonQuotes);
1584 1648 : WRITE_NODE_FIELD(columns);
1585 1648 : WRITE_NODE_FIELD(on_empty);
1586 1648 : WRITE_NODE_FIELD(on_error);
1587 1648 : WRITE_LOCATION_FIELD(location);
1588 1648 : }
1589 :
1590 : static void
1591 826 : _outJsonKeyValue(StringInfo str, const JsonKeyValue *node)
1592 : {
1593 826 : WRITE_NODE_TYPE("JSONKEYVALUE");
1594 :
1595 826 : WRITE_NODE_FIELD(key);
1596 826 : WRITE_NODE_FIELD(value);
1597 826 : }
1598 :
1599 : static void
1600 164 : _outJsonParseExpr(StringInfo str, const JsonParseExpr *node)
1601 : {
1602 164 : WRITE_NODE_TYPE("JSONPARSEEXPR");
1603 :
1604 164 : WRITE_NODE_FIELD(expr);
1605 164 : WRITE_NODE_FIELD(output);
1606 164 : WRITE_BOOL_FIELD(unique_keys);
1607 164 : WRITE_LOCATION_FIELD(location);
1608 164 : }
1609 :
1610 : static void
1611 112 : _outJsonScalarExpr(StringInfo str, const JsonScalarExpr *node)
1612 : {
1613 112 : WRITE_NODE_TYPE("JSONSCALAREXPR");
1614 :
1615 112 : WRITE_NODE_FIELD(expr);
1616 112 : WRITE_NODE_FIELD(output);
1617 112 : WRITE_LOCATION_FIELD(location);
1618 112 : }
1619 :
1620 : static void
1621 108 : _outJsonSerializeExpr(StringInfo str, const JsonSerializeExpr *node)
1622 : {
1623 108 : WRITE_NODE_TYPE("JSONSERIALIZEEXPR");
1624 :
1625 108 : WRITE_NODE_FIELD(expr);
1626 108 : WRITE_NODE_FIELD(output);
1627 108 : WRITE_LOCATION_FIELD(location);
1628 108 : }
1629 :
1630 : static void
1631 446 : _outJsonObjectConstructor(StringInfo str, const JsonObjectConstructor *node)
1632 : {
1633 446 : WRITE_NODE_TYPE("JSONOBJECTCONSTRUCTOR");
1634 :
1635 446 : WRITE_NODE_FIELD(exprs);
1636 446 : WRITE_NODE_FIELD(output);
1637 446 : WRITE_BOOL_FIELD(absent_on_null);
1638 446 : WRITE_BOOL_FIELD(unique);
1639 446 : WRITE_LOCATION_FIELD(location);
1640 446 : }
1641 :
1642 : static void
1643 200 : _outJsonArrayConstructor(StringInfo str, const JsonArrayConstructor *node)
1644 : {
1645 200 : WRITE_NODE_TYPE("JSONARRAYCONSTRUCTOR");
1646 :
1647 200 : WRITE_NODE_FIELD(exprs);
1648 200 : WRITE_NODE_FIELD(output);
1649 200 : WRITE_BOOL_FIELD(absent_on_null);
1650 200 : WRITE_LOCATION_FIELD(location);
1651 200 : }
1652 :
1653 : static void
1654 66 : _outJsonArrayQueryConstructor(StringInfo str, const JsonArrayQueryConstructor *node)
1655 : {
1656 66 : WRITE_NODE_TYPE("JSONARRAYQUERYCONSTRUCTOR");
1657 :
1658 66 : WRITE_NODE_FIELD(query);
1659 66 : WRITE_NODE_FIELD(output);
1660 66 : WRITE_NODE_FIELD(format);
1661 66 : WRITE_BOOL_FIELD(absent_on_null);
1662 66 : WRITE_LOCATION_FIELD(location);
1663 66 : }
1664 :
1665 : static void
1666 372 : _outJsonAggConstructor(StringInfo str, const JsonAggConstructor *node)
1667 : {
1668 372 : WRITE_NODE_TYPE("JSONAGGCONSTRUCTOR");
1669 :
1670 372 : WRITE_NODE_FIELD(output);
1671 372 : WRITE_NODE_FIELD(agg_filter);
1672 372 : WRITE_NODE_FIELD(agg_order);
1673 372 : WRITE_NODE_FIELD(over);
1674 372 : WRITE_LOCATION_FIELD(location);
1675 372 : }
1676 :
1677 : static void
1678 210 : _outJsonObjectAgg(StringInfo str, const JsonObjectAgg *node)
1679 : {
1680 210 : WRITE_NODE_TYPE("JSONOBJECTAGG");
1681 :
1682 210 : WRITE_NODE_FIELD(constructor);
1683 210 : WRITE_NODE_FIELD(arg);
1684 210 : WRITE_BOOL_FIELD(absent_on_null);
1685 210 : WRITE_BOOL_FIELD(unique);
1686 210 : }
1687 :
1688 : static void
1689 162 : _outJsonArrayAgg(StringInfo str, const JsonArrayAgg *node)
1690 : {
1691 162 : WRITE_NODE_TYPE("JSONARRAYAGG");
1692 :
1693 162 : WRITE_NODE_FIELD(constructor);
1694 162 : WRITE_NODE_FIELD(arg);
1695 162 : WRITE_BOOL_FIELD(absent_on_null);
1696 162 : }
1697 :
1698 : static void
1699 752368 : _outRawStmt(StringInfo str, const RawStmt *node)
1700 : {
1701 752368 : WRITE_NODE_TYPE("RAWSTMT");
1702 :
1703 752368 : WRITE_NODE_FIELD(stmt);
1704 752368 : WRITE_LOCATION_FIELD(stmt_location);
1705 752368 : WRITE_LOCATION_FIELD(stmt_len);
1706 752368 : }
1707 :
1708 : static void
1709 71236 : _outInsertStmt(StringInfo str, const InsertStmt *node)
1710 : {
1711 71236 : WRITE_NODE_TYPE("INSERTSTMT");
1712 :
1713 71236 : WRITE_NODE_FIELD(relation);
1714 71236 : WRITE_NODE_FIELD(cols);
1715 71236 : WRITE_NODE_FIELD(selectStmt);
1716 71236 : WRITE_NODE_FIELD(onConflictClause);
1717 71236 : WRITE_NODE_FIELD(returningClause);
1718 71236 : WRITE_NODE_FIELD(withClause);
1719 71236 : WRITE_ENUM_FIELD(override, OverridingKind);
1720 71236 : }
1721 :
1722 : static void
1723 4472 : _outDeleteStmt(StringInfo str, const DeleteStmt *node)
1724 : {
1725 4472 : WRITE_NODE_TYPE("DELETESTMT");
1726 :
1727 4472 : WRITE_NODE_FIELD(relation);
1728 4472 : WRITE_NODE_FIELD(usingClause);
1729 4472 : WRITE_NODE_FIELD(whereClause);
1730 4472 : WRITE_NODE_FIELD(returningClause);
1731 4472 : WRITE_NODE_FIELD(withClause);
1732 4472 : }
1733 :
1734 : static void
1735 13614 : _outUpdateStmt(StringInfo str, const UpdateStmt *node)
1736 : {
1737 13614 : WRITE_NODE_TYPE("UPDATESTMT");
1738 :
1739 13614 : WRITE_NODE_FIELD(relation);
1740 13614 : WRITE_NODE_FIELD(targetList);
1741 13614 : WRITE_NODE_FIELD(whereClause);
1742 13614 : WRITE_NODE_FIELD(fromClause);
1743 13614 : WRITE_NODE_FIELD(returningClause);
1744 13614 : WRITE_NODE_FIELD(withClause);
1745 13614 : }
1746 :
1747 : static void
1748 1960 : _outMergeStmt(StringInfo str, const MergeStmt *node)
1749 : {
1750 1960 : WRITE_NODE_TYPE("MERGESTMT");
1751 :
1752 1960 : WRITE_NODE_FIELD(relation);
1753 1960 : WRITE_NODE_FIELD(sourceRelation);
1754 1960 : WRITE_NODE_FIELD(joinCondition);
1755 1960 : WRITE_NODE_FIELD(mergeWhenClauses);
1756 1960 : WRITE_NODE_FIELD(returningClause);
1757 1960 : WRITE_NODE_FIELD(withClause);
1758 1960 : }
1759 :
1760 : static void
1761 523348 : _outSelectStmt(StringInfo str, const SelectStmt *node)
1762 : {
1763 523348 : WRITE_NODE_TYPE("SELECTSTMT");
1764 :
1765 523348 : WRITE_NODE_FIELD(distinctClause);
1766 523348 : WRITE_NODE_FIELD(intoClause);
1767 523348 : WRITE_NODE_FIELD(targetList);
1768 523348 : WRITE_NODE_FIELD(fromClause);
1769 523348 : WRITE_NODE_FIELD(whereClause);
1770 523348 : WRITE_NODE_FIELD(groupClause);
1771 523348 : WRITE_BOOL_FIELD(groupDistinct);
1772 523348 : WRITE_NODE_FIELD(havingClause);
1773 523348 : WRITE_NODE_FIELD(windowClause);
1774 523348 : WRITE_NODE_FIELD(valuesLists);
1775 523348 : WRITE_NODE_FIELD(sortClause);
1776 523348 : WRITE_NODE_FIELD(limitOffset);
1777 523348 : WRITE_NODE_FIELD(limitCount);
1778 523348 : WRITE_ENUM_FIELD(limitOption, LimitOption);
1779 523348 : WRITE_NODE_FIELD(lockingClause);
1780 523348 : WRITE_NODE_FIELD(withClause);
1781 523348 : WRITE_ENUM_FIELD(op, SetOperation);
1782 523348 : WRITE_BOOL_FIELD(all);
1783 523348 : WRITE_NODE_FIELD(larg);
1784 523348 : WRITE_NODE_FIELD(rarg);
1785 523348 : }
1786 :
1787 : static void
1788 19520 : _outSetOperationStmt(StringInfo str, const SetOperationStmt *node)
1789 : {
1790 19520 : WRITE_NODE_TYPE("SETOPERATIONSTMT");
1791 :
1792 19520 : WRITE_ENUM_FIELD(op, SetOperation);
1793 19520 : WRITE_BOOL_FIELD(all);
1794 19520 : WRITE_NODE_FIELD(larg);
1795 19520 : WRITE_NODE_FIELD(rarg);
1796 19520 : WRITE_NODE_FIELD(colTypes);
1797 19520 : WRITE_NODE_FIELD(colTypmods);
1798 19520 : WRITE_NODE_FIELD(colCollations);
1799 19520 : WRITE_NODE_FIELD(groupClauses);
1800 19520 : }
1801 :
1802 : static void
1803 9960 : _outReturnStmt(StringInfo str, const ReturnStmt *node)
1804 : {
1805 9960 : WRITE_NODE_TYPE("RETURNSTMT");
1806 :
1807 9960 : WRITE_NODE_FIELD(returnval);
1808 9960 : }
1809 :
1810 : static void
1811 0 : _outPLAssignStmt(StringInfo str, const PLAssignStmt *node)
1812 : {
1813 0 : WRITE_NODE_TYPE("PLASSIGNSTMT");
1814 :
1815 0 : WRITE_STRING_FIELD(name);
1816 0 : WRITE_NODE_FIELD(indirection);
1817 0 : WRITE_INT_FIELD(nnames);
1818 0 : WRITE_NODE_FIELD(val);
1819 0 : WRITE_LOCATION_FIELD(location);
1820 0 : }
1821 :
1822 : static void
1823 2136 : _outCreateSchemaStmt(StringInfo str, const CreateSchemaStmt *node)
1824 : {
1825 2136 : WRITE_NODE_TYPE("CREATESCHEMASTMT");
1826 :
1827 2136 : WRITE_STRING_FIELD(schemaname);
1828 2136 : WRITE_NODE_FIELD(authrole);
1829 2136 : WRITE_NODE_FIELD(schemaElts);
1830 2136 : WRITE_BOOL_FIELD(if_not_exists);
1831 2136 : }
1832 :
1833 : static void
1834 66392 : _outAlterTableStmt(StringInfo str, const AlterTableStmt *node)
1835 : {
1836 66392 : WRITE_NODE_TYPE("ALTERTABLESTMT");
1837 :
1838 66392 : WRITE_NODE_FIELD(relation);
1839 66392 : WRITE_NODE_FIELD(cmds);
1840 66392 : WRITE_ENUM_FIELD(objtype, ObjectType);
1841 66392 : WRITE_BOOL_FIELD(missing_ok);
1842 66392 : }
1843 :
1844 : static void
1845 68408 : _outAlterTableCmd(StringInfo str, const AlterTableCmd *node)
1846 : {
1847 68408 : WRITE_NODE_TYPE("ALTERTABLECMD");
1848 :
1849 68408 : WRITE_ENUM_FIELD(subtype, AlterTableType);
1850 68408 : WRITE_STRING_FIELD(name);
1851 68408 : WRITE_INT_FIELD(num);
1852 68408 : WRITE_NODE_FIELD(newowner);
1853 68408 : WRITE_NODE_FIELD(def);
1854 68408 : WRITE_ENUM_FIELD(behavior, DropBehavior);
1855 68408 : WRITE_BOOL_FIELD(missing_ok);
1856 68408 : WRITE_BOOL_FIELD(recurse);
1857 68408 : }
1858 :
1859 : static void
1860 588 : _outATAlterConstraint(StringInfo str, const ATAlterConstraint *node)
1861 : {
1862 588 : WRITE_NODE_TYPE("ATALTERCONSTRAINT");
1863 :
1864 588 : WRITE_STRING_FIELD(conname);
1865 588 : WRITE_BOOL_FIELD(alterEnforceability);
1866 588 : WRITE_BOOL_FIELD(is_enforced);
1867 588 : WRITE_BOOL_FIELD(alterDeferrability);
1868 588 : WRITE_BOOL_FIELD(deferrable);
1869 588 : WRITE_BOOL_FIELD(initdeferred);
1870 588 : WRITE_BOOL_FIELD(alterInheritability);
1871 588 : WRITE_BOOL_FIELD(noinherit);
1872 588 : }
1873 :
1874 : static void
1875 980 : _outReplicaIdentityStmt(StringInfo str, const ReplicaIdentityStmt *node)
1876 : {
1877 980 : WRITE_NODE_TYPE("REPLICAIDENTITYSTMT");
1878 :
1879 980 : WRITE_CHAR_FIELD(identity_type);
1880 980 : WRITE_STRING_FIELD(name);
1881 980 : }
1882 :
1883 : static void
1884 12 : _outAlterCollationStmt(StringInfo str, const AlterCollationStmt *node)
1885 : {
1886 12 : WRITE_NODE_TYPE("ALTERCOLLATIONSTMT");
1887 :
1888 12 : WRITE_NODE_FIELD(collname);
1889 12 : }
1890 :
1891 : static void
1892 564 : _outAlterDomainStmt(StringInfo str, const AlterDomainStmt *node)
1893 : {
1894 564 : WRITE_NODE_TYPE("ALTERDOMAINSTMT");
1895 :
1896 564 : WRITE_ENUM_FIELD(subtype, AlterDomainType);
1897 564 : WRITE_NODE_FIELD(typeName);
1898 564 : WRITE_STRING_FIELD(name);
1899 564 : WRITE_NODE_FIELD(def);
1900 564 : WRITE_ENUM_FIELD(behavior, DropBehavior);
1901 564 : WRITE_BOOL_FIELD(missing_ok);
1902 564 : }
1903 :
1904 : static void
1905 41974 : _outGrantStmt(StringInfo str, const GrantStmt *node)
1906 : {
1907 41974 : WRITE_NODE_TYPE("GRANTSTMT");
1908 :
1909 41974 : WRITE_BOOL_FIELD(is_grant);
1910 41974 : WRITE_ENUM_FIELD(targtype, GrantTargetType);
1911 41974 : WRITE_ENUM_FIELD(objtype, ObjectType);
1912 41974 : WRITE_NODE_FIELD(objects);
1913 41974 : WRITE_NODE_FIELD(privileges);
1914 41974 : WRITE_NODE_FIELD(grantees);
1915 41974 : WRITE_BOOL_FIELD(grant_option);
1916 41974 : WRITE_NODE_FIELD(grantor);
1917 41974 : WRITE_ENUM_FIELD(behavior, DropBehavior);
1918 41974 : }
1919 :
1920 : static void
1921 40934 : _outObjectWithArgs(StringInfo str, const ObjectWithArgs *node)
1922 : {
1923 40934 : WRITE_NODE_TYPE("OBJECTWITHARGS");
1924 :
1925 40934 : WRITE_NODE_FIELD(objname);
1926 40934 : WRITE_NODE_FIELD(objargs);
1927 40934 : WRITE_NODE_FIELD(objfuncargs);
1928 40934 : WRITE_BOOL_FIELD(args_unspecified);
1929 40934 : }
1930 :
1931 : static void
1932 39474 : _outAccessPriv(StringInfo str, const AccessPriv *node)
1933 : {
1934 39474 : WRITE_NODE_TYPE("ACCESSPRIV");
1935 :
1936 39474 : WRITE_STRING_FIELD(priv_name);
1937 39474 : WRITE_NODE_FIELD(cols);
1938 39474 : }
1939 :
1940 : static void
1941 1836 : _outGrantRoleStmt(StringInfo str, const GrantRoleStmt *node)
1942 : {
1943 1836 : WRITE_NODE_TYPE("GRANTROLESTMT");
1944 :
1945 1836 : WRITE_NODE_FIELD(granted_roles);
1946 1836 : WRITE_NODE_FIELD(grantee_roles);
1947 1836 : WRITE_BOOL_FIELD(is_grant);
1948 1836 : WRITE_NODE_FIELD(opt);
1949 1836 : WRITE_NODE_FIELD(grantor);
1950 1836 : WRITE_ENUM_FIELD(behavior, DropBehavior);
1951 1836 : }
1952 :
1953 : static void
1954 380 : _outAlterDefaultPrivilegesStmt(StringInfo str, const AlterDefaultPrivilegesStmt *node)
1955 : {
1956 380 : WRITE_NODE_TYPE("ALTERDEFAULTPRIVILEGESSTMT");
1957 :
1958 380 : WRITE_NODE_FIELD(options);
1959 380 : WRITE_NODE_FIELD(action);
1960 380 : }
1961 :
1962 : static void
1963 32740 : _outCopyStmt(StringInfo str, const CopyStmt *node)
1964 : {
1965 32740 : WRITE_NODE_TYPE("COPYSTMT");
1966 :
1967 32740 : WRITE_NODE_FIELD(relation);
1968 32740 : WRITE_NODE_FIELD(query);
1969 32740 : WRITE_NODE_FIELD(attlist);
1970 32740 : WRITE_BOOL_FIELD(is_from);
1971 32740 : WRITE_BOOL_FIELD(is_program);
1972 32740 : WRITE_STRING_FIELD(filename);
1973 32740 : WRITE_NODE_FIELD(options);
1974 32740 : WRITE_NODE_FIELD(whereClause);
1975 32740 : }
1976 :
1977 : static void
1978 58704 : _outVariableSetStmt(StringInfo str, const VariableSetStmt *node)
1979 : {
1980 58704 : WRITE_NODE_TYPE("VARIABLESETSTMT");
1981 :
1982 58704 : WRITE_ENUM_FIELD(kind, VariableSetKind);
1983 58704 : WRITE_STRING_FIELD(name);
1984 58704 : WRITE_NODE_FIELD(args);
1985 58704 : WRITE_BOOL_FIELD(jumble_args);
1986 58704 : WRITE_BOOL_FIELD(is_local);
1987 58704 : WRITE_LOCATION_FIELD(location);
1988 58704 : }
1989 :
1990 : static void
1991 1756 : _outVariableShowStmt(StringInfo str, const VariableShowStmt *node)
1992 : {
1993 1756 : WRITE_NODE_TYPE("VARIABLESHOWSTMT");
1994 :
1995 1756 : WRITE_STRING_FIELD(name);
1996 1756 : }
1997 :
1998 : static void
1999 77540 : _outCreateStmt(StringInfo str, const CreateStmt *node)
2000 : {
2001 77540 : WRITE_NODE_TYPE("CREATESTMT");
2002 :
2003 77540 : WRITE_NODE_FIELD(relation);
2004 77540 : WRITE_NODE_FIELD(tableElts);
2005 77540 : WRITE_NODE_FIELD(inhRelations);
2006 77540 : WRITE_NODE_FIELD(partbound);
2007 77540 : WRITE_NODE_FIELD(partspec);
2008 77540 : WRITE_NODE_FIELD(ofTypename);
2009 77540 : WRITE_NODE_FIELD(constraints);
2010 77540 : WRITE_NODE_FIELD(nnconstraints);
2011 77540 : WRITE_NODE_FIELD(options);
2012 77540 : WRITE_ENUM_FIELD(oncommit, OnCommitAction);
2013 77540 : WRITE_STRING_FIELD(tablespacename);
2014 77540 : WRITE_STRING_FIELD(accessMethod);
2015 77540 : WRITE_BOOL_FIELD(if_not_exists);
2016 77540 : }
2017 :
2018 : static void
2019 74390 : _outConstraint(StringInfo str, const Constraint *node)
2020 : {
2021 74390 : WRITE_NODE_TYPE("CONSTRAINT");
2022 :
2023 74390 : WRITE_ENUM_FIELD(contype, ConstrType);
2024 74390 : WRITE_STRING_FIELD(conname);
2025 74390 : WRITE_BOOL_FIELD(deferrable);
2026 74390 : WRITE_BOOL_FIELD(initdeferred);
2027 74390 : WRITE_BOOL_FIELD(is_enforced);
2028 74390 : WRITE_BOOL_FIELD(skip_validation);
2029 74390 : WRITE_BOOL_FIELD(initially_valid);
2030 74390 : WRITE_BOOL_FIELD(is_no_inherit);
2031 74390 : WRITE_NODE_FIELD(raw_expr);
2032 74390 : WRITE_STRING_FIELD(cooked_expr);
2033 74390 : WRITE_CHAR_FIELD(generated_when);
2034 74390 : WRITE_CHAR_FIELD(generated_kind);
2035 74390 : WRITE_BOOL_FIELD(nulls_not_distinct);
2036 74390 : WRITE_NODE_FIELD(keys);
2037 74390 : WRITE_BOOL_FIELD(without_overlaps);
2038 74390 : WRITE_NODE_FIELD(including);
2039 74390 : WRITE_NODE_FIELD(exclusions);
2040 74390 : WRITE_NODE_FIELD(options);
2041 74390 : WRITE_STRING_FIELD(indexname);
2042 74390 : WRITE_STRING_FIELD(indexspace);
2043 74390 : WRITE_BOOL_FIELD(reset_default_tblspc);
2044 74390 : WRITE_STRING_FIELD(access_method);
2045 74390 : WRITE_NODE_FIELD(where_clause);
2046 74390 : WRITE_NODE_FIELD(pktable);
2047 74390 : WRITE_NODE_FIELD(fk_attrs);
2048 74390 : WRITE_NODE_FIELD(pk_attrs);
2049 74390 : WRITE_BOOL_FIELD(fk_with_period);
2050 74390 : WRITE_BOOL_FIELD(pk_with_period);
2051 74390 : WRITE_CHAR_FIELD(fk_matchtype);
2052 74390 : WRITE_CHAR_FIELD(fk_upd_action);
2053 74390 : WRITE_CHAR_FIELD(fk_del_action);
2054 74390 : WRITE_NODE_FIELD(fk_del_set_cols);
2055 74390 : WRITE_NODE_FIELD(old_conpfeqop);
2056 74390 : WRITE_OID_FIELD(old_pktable_oid);
2057 74390 : WRITE_LOCATION_FIELD(location);
2058 74390 : }
2059 :
2060 : static void
2061 232 : _outCreateTableSpaceStmt(StringInfo str, const CreateTableSpaceStmt *node)
2062 : {
2063 232 : WRITE_NODE_TYPE("CREATETABLESPACESTMT");
2064 :
2065 232 : WRITE_STRING_FIELD(tablespacename);
2066 232 : WRITE_NODE_FIELD(owner);
2067 232 : WRITE_STRING_FIELD(location);
2068 232 : WRITE_NODE_FIELD(options);
2069 232 : }
2070 :
2071 : static void
2072 128 : _outDropTableSpaceStmt(StringInfo str, const DropTableSpaceStmt *node)
2073 : {
2074 128 : WRITE_NODE_TYPE("DROPTABLESPACESTMT");
2075 :
2076 128 : WRITE_STRING_FIELD(tablespacename);
2077 128 : WRITE_BOOL_FIELD(missing_ok);
2078 128 : }
2079 :
2080 : static void
2081 48 : _outAlterTableSpaceOptionsStmt(StringInfo str, const AlterTableSpaceOptionsStmt *node)
2082 : {
2083 48 : WRITE_NODE_TYPE("ALTERTABLESPACEOPTIONSSTMT");
2084 :
2085 48 : WRITE_STRING_FIELD(tablespacename);
2086 48 : WRITE_NODE_FIELD(options);
2087 48 : WRITE_BOOL_FIELD(isReset);
2088 48 : }
2089 :
2090 : static void
2091 60 : _outAlterTableMoveAllStmt(StringInfo str, const AlterTableMoveAllStmt *node)
2092 : {
2093 60 : WRITE_NODE_TYPE("ALTERTABLEMOVEALLSTMT");
2094 :
2095 60 : WRITE_STRING_FIELD(orig_tablespacename);
2096 60 : WRITE_ENUM_FIELD(objtype, ObjectType);
2097 60 : WRITE_NODE_FIELD(roles);
2098 60 : WRITE_STRING_FIELD(new_tablespacename);
2099 60 : WRITE_BOOL_FIELD(nowait);
2100 60 : }
2101 :
2102 : static void
2103 1060 : _outCreateExtensionStmt(StringInfo str, const CreateExtensionStmt *node)
2104 : {
2105 1060 : WRITE_NODE_TYPE("CREATEEXTENSIONSTMT");
2106 :
2107 1060 : WRITE_STRING_FIELD(extname);
2108 1060 : WRITE_BOOL_FIELD(if_not_exists);
2109 1060 : WRITE_NODE_FIELD(options);
2110 1060 : }
2111 :
2112 : static void
2113 70 : _outAlterExtensionStmt(StringInfo str, const AlterExtensionStmt *node)
2114 : {
2115 70 : WRITE_NODE_TYPE("ALTEREXTENSIONSTMT");
2116 :
2117 70 : WRITE_STRING_FIELD(extname);
2118 70 : WRITE_NODE_FIELD(options);
2119 70 : }
2120 :
2121 : static void
2122 484 : _outAlterExtensionContentsStmt(StringInfo str, const AlterExtensionContentsStmt *node)
2123 : {
2124 484 : WRITE_NODE_TYPE("ALTEREXTENSIONCONTENTSSTMT");
2125 :
2126 484 : WRITE_STRING_FIELD(extname);
2127 484 : WRITE_INT_FIELD(action);
2128 484 : WRITE_ENUM_FIELD(objtype, ObjectType);
2129 484 : WRITE_NODE_FIELD(object);
2130 484 : }
2131 :
2132 : static void
2133 412 : _outCreateFdwStmt(StringInfo str, const CreateFdwStmt *node)
2134 : {
2135 412 : WRITE_NODE_TYPE("CREATEFDWSTMT");
2136 :
2137 412 : WRITE_STRING_FIELD(fdwname);
2138 412 : WRITE_NODE_FIELD(func_options);
2139 412 : WRITE_NODE_FIELD(options);
2140 412 : }
2141 :
2142 : static void
2143 244 : _outAlterFdwStmt(StringInfo str, const AlterFdwStmt *node)
2144 : {
2145 244 : WRITE_NODE_TYPE("ALTERFDWSTMT");
2146 :
2147 244 : WRITE_STRING_FIELD(fdwname);
2148 244 : WRITE_NODE_FIELD(func_options);
2149 244 : WRITE_NODE_FIELD(options);
2150 244 : }
2151 :
2152 : static void
2153 582 : _outCreateForeignServerStmt(StringInfo str, const CreateForeignServerStmt *node)
2154 : {
2155 582 : WRITE_NODE_TYPE("CREATEFOREIGNSERVERSTMT");
2156 :
2157 582 : WRITE_STRING_FIELD(servername);
2158 582 : WRITE_STRING_FIELD(servertype);
2159 582 : WRITE_STRING_FIELD(version);
2160 582 : WRITE_STRING_FIELD(fdwname);
2161 582 : WRITE_BOOL_FIELD(if_not_exists);
2162 582 : WRITE_NODE_FIELD(options);
2163 582 : }
2164 :
2165 : static void
2166 454 : _outAlterForeignServerStmt(StringInfo str, const AlterForeignServerStmt *node)
2167 : {
2168 454 : WRITE_NODE_TYPE("ALTERFOREIGNSERVERSTMT");
2169 :
2170 454 : WRITE_STRING_FIELD(servername);
2171 454 : WRITE_STRING_FIELD(version);
2172 454 : WRITE_NODE_FIELD(options);
2173 454 : WRITE_BOOL_FIELD(has_version);
2174 454 : }
2175 :
2176 : static void
2177 904 : _outCreateForeignTableStmt(StringInfo str, const CreateForeignTableStmt *node)
2178 : {
2179 904 : WRITE_NODE_TYPE("CREATEFOREIGNTABLESTMT");
2180 :
2181 904 : WRITE_NODE_FIELD(base.relation);
2182 904 : WRITE_NODE_FIELD(base.tableElts);
2183 904 : WRITE_NODE_FIELD(base.inhRelations);
2184 904 : WRITE_NODE_FIELD(base.partbound);
2185 904 : WRITE_NODE_FIELD(base.partspec);
2186 904 : WRITE_NODE_FIELD(base.ofTypename);
2187 904 : WRITE_NODE_FIELD(base.constraints);
2188 904 : WRITE_NODE_FIELD(base.nnconstraints);
2189 904 : WRITE_NODE_FIELD(base.options);
2190 904 : WRITE_ENUM_FIELD(base.oncommit, OnCommitAction);
2191 904 : WRITE_STRING_FIELD(base.tablespacename);
2192 904 : WRITE_STRING_FIELD(base.accessMethod);
2193 904 : WRITE_BOOL_FIELD(base.if_not_exists);
2194 904 : WRITE_STRING_FIELD(servername);
2195 904 : WRITE_NODE_FIELD(options);
2196 904 : }
2197 :
2198 : static void
2199 504 : _outCreateUserMappingStmt(StringInfo str, const CreateUserMappingStmt *node)
2200 : {
2201 504 : WRITE_NODE_TYPE("CREATEUSERMAPPINGSTMT");
2202 :
2203 504 : WRITE_NODE_FIELD(user);
2204 504 : WRITE_STRING_FIELD(servername);
2205 504 : WRITE_BOOL_FIELD(if_not_exists);
2206 504 : WRITE_NODE_FIELD(options);
2207 504 : }
2208 :
2209 : static void
2210 236 : _outAlterUserMappingStmt(StringInfo str, const AlterUserMappingStmt *node)
2211 : {
2212 236 : WRITE_NODE_TYPE("ALTERUSERMAPPINGSTMT");
2213 :
2214 236 : WRITE_NODE_FIELD(user);
2215 236 : WRITE_STRING_FIELD(servername);
2216 236 : WRITE_NODE_FIELD(options);
2217 236 : }
2218 :
2219 : static void
2220 252 : _outDropUserMappingStmt(StringInfo str, const DropUserMappingStmt *node)
2221 : {
2222 252 : WRITE_NODE_TYPE("DROPUSERMAPPINGSTMT");
2223 :
2224 252 : WRITE_NODE_FIELD(user);
2225 252 : WRITE_STRING_FIELD(servername);
2226 252 : WRITE_BOOL_FIELD(missing_ok);
2227 252 : }
2228 :
2229 : static void
2230 96 : _outImportForeignSchemaStmt(StringInfo str, const ImportForeignSchemaStmt *node)
2231 : {
2232 96 : WRITE_NODE_TYPE("IMPORTFOREIGNSCHEMASTMT");
2233 :
2234 96 : WRITE_STRING_FIELD(server_name);
2235 96 : WRITE_STRING_FIELD(remote_schema);
2236 96 : WRITE_STRING_FIELD(local_schema);
2237 96 : WRITE_ENUM_FIELD(list_type, ImportForeignSchemaType);
2238 96 : WRITE_NODE_FIELD(table_list);
2239 96 : WRITE_NODE_FIELD(options);
2240 96 : }
2241 :
2242 : static void
2243 1412 : _outCreatePolicyStmt(StringInfo str, const CreatePolicyStmt *node)
2244 : {
2245 1412 : WRITE_NODE_TYPE("CREATEPOLICYSTMT");
2246 :
2247 1412 : WRITE_STRING_FIELD(policy_name);
2248 1412 : WRITE_NODE_FIELD(table);
2249 1412 : WRITE_STRING_FIELD(cmd_name);
2250 1412 : WRITE_BOOL_FIELD(permissive);
2251 1412 : WRITE_NODE_FIELD(roles);
2252 1412 : WRITE_NODE_FIELD(qual);
2253 1412 : WRITE_NODE_FIELD(with_check);
2254 1412 : }
2255 :
2256 : static void
2257 168 : _outAlterPolicyStmt(StringInfo str, const AlterPolicyStmt *node)
2258 : {
2259 168 : WRITE_NODE_TYPE("ALTERPOLICYSTMT");
2260 :
2261 168 : WRITE_STRING_FIELD(policy_name);
2262 168 : WRITE_NODE_FIELD(table);
2263 168 : WRITE_NODE_FIELD(roles);
2264 168 : WRITE_NODE_FIELD(qual);
2265 168 : WRITE_NODE_FIELD(with_check);
2266 168 : }
2267 :
2268 : static void
2269 128 : _outCreateAmStmt(StringInfo str, const CreateAmStmt *node)
2270 : {
2271 128 : WRITE_NODE_TYPE("CREATEAMSTMT");
2272 :
2273 128 : WRITE_STRING_FIELD(amname);
2274 128 : WRITE_NODE_FIELD(handler_name);
2275 128 : WRITE_CHAR_FIELD(amtype);
2276 128 : }
2277 :
2278 : static void
2279 6644 : _outCreateTrigStmt(StringInfo str, const CreateTrigStmt *node)
2280 : {
2281 6644 : WRITE_NODE_TYPE("CREATETRIGSTMT");
2282 :
2283 6644 : WRITE_BOOL_FIELD(replace);
2284 6644 : WRITE_BOOL_FIELD(isconstraint);
2285 6644 : WRITE_STRING_FIELD(trigname);
2286 6644 : WRITE_NODE_FIELD(relation);
2287 6644 : WRITE_NODE_FIELD(funcname);
2288 6644 : WRITE_NODE_FIELD(args);
2289 6644 : WRITE_BOOL_FIELD(row);
2290 6644 : WRITE_INT_FIELD(timing);
2291 6644 : WRITE_INT_FIELD(events);
2292 6644 : WRITE_NODE_FIELD(columns);
2293 6644 : WRITE_NODE_FIELD(whenClause);
2294 6644 : WRITE_NODE_FIELD(transitionRels);
2295 6644 : WRITE_BOOL_FIELD(deferrable);
2296 6644 : WRITE_BOOL_FIELD(initdeferred);
2297 6644 : WRITE_NODE_FIELD(constrrel);
2298 6644 : }
2299 :
2300 : static void
2301 396 : _outCreateEventTrigStmt(StringInfo str, const CreateEventTrigStmt *node)
2302 : {
2303 396 : WRITE_NODE_TYPE("CREATEEVENTTRIGSTMT");
2304 :
2305 396 : WRITE_STRING_FIELD(trigname);
2306 396 : WRITE_STRING_FIELD(eventname);
2307 396 : WRITE_NODE_FIELD(whenclause);
2308 396 : WRITE_NODE_FIELD(funcname);
2309 396 : }
2310 :
2311 : static void
2312 96 : _outAlterEventTrigStmt(StringInfo str, const AlterEventTrigStmt *node)
2313 : {
2314 96 : WRITE_NODE_TYPE("ALTEREVENTTRIGSTMT");
2315 :
2316 96 : WRITE_STRING_FIELD(trigname);
2317 96 : WRITE_CHAR_FIELD(tgenabled);
2318 96 : }
2319 :
2320 : static void
2321 288 : _outCreatePLangStmt(StringInfo str, const CreatePLangStmt *node)
2322 : {
2323 288 : WRITE_NODE_TYPE("CREATEPLANGSTMT");
2324 :
2325 288 : WRITE_BOOL_FIELD(replace);
2326 288 : WRITE_STRING_FIELD(plname);
2327 288 : WRITE_NODE_FIELD(plhandler);
2328 288 : WRITE_NODE_FIELD(plinline);
2329 288 : WRITE_NODE_FIELD(plvalidator);
2330 288 : WRITE_BOOL_FIELD(pltrusted);
2331 288 : }
2332 :
2333 : static void
2334 3688 : _outCreateRoleStmt(StringInfo str, const CreateRoleStmt *node)
2335 : {
2336 3688 : WRITE_NODE_TYPE("CREATEROLESTMT");
2337 :
2338 3688 : WRITE_ENUM_FIELD(stmt_type, RoleStmtType);
2339 3688 : WRITE_STRING_FIELD(role);
2340 3688 : WRITE_NODE_FIELD(options);
2341 3688 : }
2342 :
2343 : static void
2344 920 : _outAlterRoleStmt(StringInfo str, const AlterRoleStmt *node)
2345 : {
2346 920 : WRITE_NODE_TYPE("ALTERROLESTMT");
2347 :
2348 920 : WRITE_NODE_FIELD(role);
2349 920 : WRITE_NODE_FIELD(options);
2350 920 : WRITE_INT_FIELD(action);
2351 920 : }
2352 :
2353 : static void
2354 164 : _outAlterRoleSetStmt(StringInfo str, const AlterRoleSetStmt *node)
2355 : {
2356 164 : WRITE_NODE_TYPE("ALTERROLESETSTMT");
2357 :
2358 164 : WRITE_NODE_FIELD(role);
2359 164 : WRITE_STRING_FIELD(database);
2360 164 : WRITE_NODE_FIELD(setstmt);
2361 164 : }
2362 :
2363 : static void
2364 3436 : _outDropRoleStmt(StringInfo str, const DropRoleStmt *node)
2365 : {
2366 3436 : WRITE_NODE_TYPE("DROPROLESTMT");
2367 :
2368 3436 : WRITE_NODE_FIELD(roles);
2369 3436 : WRITE_BOOL_FIELD(missing_ok);
2370 3436 : }
2371 :
2372 : static void
2373 1468 : _outCreateSeqStmt(StringInfo str, const CreateSeqStmt *node)
2374 : {
2375 1468 : WRITE_NODE_TYPE("CREATESEQSTMT");
2376 :
2377 1468 : WRITE_NODE_FIELD(sequence);
2378 1468 : WRITE_NODE_FIELD(options);
2379 1468 : WRITE_OID_FIELD(ownerId);
2380 1468 : WRITE_BOOL_FIELD(for_identity);
2381 1468 : WRITE_BOOL_FIELD(if_not_exists);
2382 1468 : }
2383 :
2384 : static void
2385 448 : _outAlterSeqStmt(StringInfo str, const AlterSeqStmt *node)
2386 : {
2387 448 : WRITE_NODE_TYPE("ALTERSEQSTMT");
2388 :
2389 448 : WRITE_NODE_FIELD(sequence);
2390 448 : WRITE_NODE_FIELD(options);
2391 448 : WRITE_BOOL_FIELD(for_identity);
2392 448 : WRITE_BOOL_FIELD(missing_ok);
2393 448 : }
2394 :
2395 : static void
2396 18992 : _outDefineStmt(StringInfo str, const DefineStmt *node)
2397 : {
2398 18992 : WRITE_NODE_TYPE("DEFINESTMT");
2399 :
2400 18992 : WRITE_ENUM_FIELD(kind, ObjectType);
2401 18992 : WRITE_BOOL_FIELD(oldstyle);
2402 18992 : WRITE_NODE_FIELD(defnames);
2403 18992 : WRITE_NODE_FIELD(args);
2404 18992 : WRITE_NODE_FIELD(definition);
2405 18992 : WRITE_BOOL_FIELD(if_not_exists);
2406 18992 : WRITE_BOOL_FIELD(replace);
2407 18992 : }
2408 :
2409 : static void
2410 3000 : _outCreateDomainStmt(StringInfo str, const CreateDomainStmt *node)
2411 : {
2412 3000 : WRITE_NODE_TYPE("CREATEDOMAINSTMT");
2413 :
2414 3000 : WRITE_NODE_FIELD(domainname);
2415 3000 : WRITE_NODE_FIELD(typeName);
2416 3000 : WRITE_NODE_FIELD(collClause);
2417 3000 : WRITE_NODE_FIELD(constraints);
2418 3000 : }
2419 :
2420 : static void
2421 788 : _outCreateOpClassStmt(StringInfo str, const CreateOpClassStmt *node)
2422 : {
2423 788 : WRITE_NODE_TYPE("CREATEOPCLASSSTMT");
2424 :
2425 788 : WRITE_NODE_FIELD(opclassname);
2426 788 : WRITE_NODE_FIELD(opfamilyname);
2427 788 : WRITE_STRING_FIELD(amname);
2428 788 : WRITE_NODE_FIELD(datatype);
2429 788 : WRITE_NODE_FIELD(items);
2430 788 : WRITE_BOOL_FIELD(isDefault);
2431 788 : }
2432 :
2433 : static void
2434 8500 : _outCreateOpClassItem(StringInfo str, const CreateOpClassItem *node)
2435 : {
2436 8500 : WRITE_NODE_TYPE("CREATEOPCLASSITEM");
2437 :
2438 8500 : WRITE_INT_FIELD(itemtype);
2439 8500 : WRITE_NODE_FIELD(name);
2440 8500 : WRITE_INT_FIELD(number);
2441 8500 : WRITE_NODE_FIELD(order_family);
2442 8500 : WRITE_NODE_FIELD(class_args);
2443 8500 : WRITE_NODE_FIELD(storedtype);
2444 8500 : }
2445 :
2446 : static void
2447 324 : _outCreateOpFamilyStmt(StringInfo str, const CreateOpFamilyStmt *node)
2448 : {
2449 324 : WRITE_NODE_TYPE("CREATEOPFAMILYSTMT");
2450 :
2451 324 : WRITE_NODE_FIELD(opfamilyname);
2452 324 : WRITE_STRING_FIELD(amname);
2453 324 : }
2454 :
2455 : static void
2456 1196 : _outAlterOpFamilyStmt(StringInfo str, const AlterOpFamilyStmt *node)
2457 : {
2458 1196 : WRITE_NODE_TYPE("ALTEROPFAMILYSTMT");
2459 :
2460 1196 : WRITE_NODE_FIELD(opfamilyname);
2461 1196 : WRITE_STRING_FIELD(amname);
2462 1196 : WRITE_BOOL_FIELD(isDrop);
2463 1196 : WRITE_NODE_FIELD(items);
2464 1196 : }
2465 :
2466 : static void
2467 50742 : _outDropStmt(StringInfo str, const DropStmt *node)
2468 : {
2469 50742 : WRITE_NODE_TYPE("DROPSTMT");
2470 :
2471 50742 : WRITE_NODE_FIELD(objects);
2472 50742 : WRITE_ENUM_FIELD(removeType, ObjectType);
2473 50742 : WRITE_ENUM_FIELD(behavior, DropBehavior);
2474 50742 : WRITE_BOOL_FIELD(missing_ok);
2475 50742 : WRITE_BOOL_FIELD(concurrent);
2476 50742 : }
2477 :
2478 : static void
2479 5886 : _outTruncateStmt(StringInfo str, const TruncateStmt *node)
2480 : {
2481 5886 : WRITE_NODE_TYPE("TRUNCATESTMT");
2482 :
2483 5886 : WRITE_NODE_FIELD(relations);
2484 5886 : WRITE_BOOL_FIELD(restart_seqs);
2485 5886 : WRITE_ENUM_FIELD(behavior, DropBehavior);
2486 5886 : }
2487 :
2488 : static void
2489 14364 : _outCommentStmt(StringInfo str, const CommentStmt *node)
2490 : {
2491 14364 : WRITE_NODE_TYPE("COMMENTSTMT");
2492 :
2493 14364 : WRITE_ENUM_FIELD(objtype, ObjectType);
2494 14364 : WRITE_NODE_FIELD(object);
2495 14364 : WRITE_STRING_FIELD(comment);
2496 14364 : }
2497 :
2498 : static void
2499 200 : _outSecLabelStmt(StringInfo str, const SecLabelStmt *node)
2500 : {
2501 200 : WRITE_NODE_TYPE("SECLABELSTMT");
2502 :
2503 200 : WRITE_ENUM_FIELD(objtype, ObjectType);
2504 200 : WRITE_NODE_FIELD(object);
2505 200 : WRITE_STRING_FIELD(provider);
2506 200 : WRITE_STRING_FIELD(label);
2507 200 : }
2508 :
2509 : static void
2510 7380 : _outDeclareCursorStmt(StringInfo str, const DeclareCursorStmt *node)
2511 : {
2512 7380 : WRITE_NODE_TYPE("DECLARECURSORSTMT");
2513 :
2514 7380 : WRITE_STRING_FIELD(portalname);
2515 7380 : WRITE_INT_FIELD(options);
2516 7380 : WRITE_NODE_FIELD(query);
2517 7380 : }
2518 :
2519 : static void
2520 4444 : _outClosePortalStmt(StringInfo str, const ClosePortalStmt *node)
2521 : {
2522 4444 : WRITE_NODE_TYPE("CLOSEPORTALSTMT");
2523 :
2524 4444 : WRITE_STRING_FIELD(portalname);
2525 4444 : }
2526 :
2527 : static void
2528 13434 : _outFetchStmt(StringInfo str, const FetchStmt *node)
2529 : {
2530 13434 : WRITE_NODE_TYPE("FETCHSTMT");
2531 :
2532 13434 : WRITE_ENUM_FIELD(direction, FetchDirection);
2533 13434 : WRITE_LONG_FIELD(howMany);
2534 13434 : WRITE_STRING_FIELD(portalname);
2535 13434 : WRITE_BOOL_FIELD(ismove);
2536 13434 : WRITE_ENUM_FIELD(direction_keyword, FetchDirectionKeywords);
2537 13434 : WRITE_LOCATION_FIELD(location);
2538 13434 : }
2539 :
2540 : static void
2541 13364 : _outIndexStmt(StringInfo str, const IndexStmt *node)
2542 : {
2543 13364 : WRITE_NODE_TYPE("INDEXSTMT");
2544 :
2545 13364 : WRITE_STRING_FIELD(idxname);
2546 13364 : WRITE_NODE_FIELD(relation);
2547 13364 : WRITE_STRING_FIELD(accessMethod);
2548 13364 : WRITE_STRING_FIELD(tableSpace);
2549 13364 : WRITE_NODE_FIELD(indexParams);
2550 13364 : WRITE_NODE_FIELD(indexIncludingParams);
2551 13364 : WRITE_NODE_FIELD(options);
2552 13364 : WRITE_NODE_FIELD(whereClause);
2553 13364 : WRITE_NODE_FIELD(excludeOpNames);
2554 13364 : WRITE_STRING_FIELD(idxcomment);
2555 13364 : WRITE_OID_FIELD(indexOid);
2556 13364 : WRITE_OID_FIELD(oldNumber);
2557 13364 : WRITE_UINT_FIELD(oldCreateSubid);
2558 13364 : WRITE_UINT_FIELD(oldFirstRelfilelocatorSubid);
2559 13364 : WRITE_BOOL_FIELD(unique);
2560 13364 : WRITE_BOOL_FIELD(nulls_not_distinct);
2561 13364 : WRITE_BOOL_FIELD(primary);
2562 13364 : WRITE_BOOL_FIELD(isconstraint);
2563 13364 : WRITE_BOOL_FIELD(iswithoutoverlaps);
2564 13364 : WRITE_BOOL_FIELD(deferrable);
2565 13364 : WRITE_BOOL_FIELD(initdeferred);
2566 13364 : WRITE_BOOL_FIELD(transformed);
2567 13364 : WRITE_BOOL_FIELD(concurrent);
2568 13364 : WRITE_BOOL_FIELD(if_not_exists);
2569 13364 : WRITE_BOOL_FIELD(reset_default_tblspc);
2570 13364 : }
2571 :
2572 : static void
2573 1346 : _outCreateStatsStmt(StringInfo str, const CreateStatsStmt *node)
2574 : {
2575 1346 : WRITE_NODE_TYPE("CREATESTATSSTMT");
2576 :
2577 1346 : WRITE_NODE_FIELD(defnames);
2578 1346 : WRITE_NODE_FIELD(stat_types);
2579 1346 : WRITE_NODE_FIELD(exprs);
2580 1346 : WRITE_NODE_FIELD(relations);
2581 1346 : WRITE_STRING_FIELD(stxcomment);
2582 1346 : WRITE_BOOL_FIELD(transformed);
2583 1346 : WRITE_BOOL_FIELD(if_not_exists);
2584 1346 : }
2585 :
2586 : static void
2587 3240 : _outStatsElem(StringInfo str, const StatsElem *node)
2588 : {
2589 3240 : WRITE_NODE_TYPE("STATSELEM");
2590 :
2591 3240 : WRITE_STRING_FIELD(name);
2592 3240 : WRITE_NODE_FIELD(expr);
2593 3240 : }
2594 :
2595 : static void
2596 52 : _outAlterStatsStmt(StringInfo str, const AlterStatsStmt *node)
2597 : {
2598 52 : WRITE_NODE_TYPE("ALTERSTATSSTMT");
2599 :
2600 52 : WRITE_NODE_FIELD(defnames);
2601 52 : WRITE_NODE_FIELD(stxstattarget);
2602 52 : WRITE_BOOL_FIELD(missing_ok);
2603 52 : }
2604 :
2605 : static void
2606 49908 : _outCreateFunctionStmt(StringInfo str, const CreateFunctionStmt *node)
2607 : {
2608 49908 : WRITE_NODE_TYPE("CREATEFUNCTIONSTMT");
2609 :
2610 49908 : WRITE_BOOL_FIELD(is_procedure);
2611 49908 : WRITE_BOOL_FIELD(replace);
2612 49908 : WRITE_NODE_FIELD(funcname);
2613 49908 : WRITE_NODE_FIELD(parameters);
2614 49908 : WRITE_NODE_FIELD(returnType);
2615 49908 : WRITE_NODE_FIELD(options);
2616 49908 : WRITE_NODE_FIELD(sql_body);
2617 49908 : }
2618 :
2619 : static void
2620 149038 : _outFunctionParameter(StringInfo str, const FunctionParameter *node)
2621 : {
2622 149038 : WRITE_NODE_TYPE("FUNCTIONPARAMETER");
2623 :
2624 149038 : WRITE_STRING_FIELD(name);
2625 149038 : WRITE_NODE_FIELD(argType);
2626 149038 : WRITE_ENUM_FIELD(mode, FunctionParameterMode);
2627 149038 : WRITE_NODE_FIELD(defexpr);
2628 149038 : WRITE_LOCATION_FIELD(location);
2629 149038 : }
2630 :
2631 : static void
2632 1344 : _outAlterFunctionStmt(StringInfo str, const AlterFunctionStmt *node)
2633 : {
2634 1344 : WRITE_NODE_TYPE("ALTERFUNCTIONSTMT");
2635 :
2636 1344 : WRITE_ENUM_FIELD(objtype, ObjectType);
2637 1344 : WRITE_NODE_FIELD(func);
2638 1344 : WRITE_NODE_FIELD(actions);
2639 1344 : }
2640 :
2641 : static void
2642 2208 : _outDoStmt(StringInfo str, const DoStmt *node)
2643 : {
2644 2208 : WRITE_NODE_TYPE("DOSTMT");
2645 :
2646 2208 : WRITE_NODE_FIELD(args);
2647 2208 : }
2648 :
2649 : static void
2650 898 : _outCallStmt(StringInfo str, const CallStmt *node)
2651 : {
2652 898 : WRITE_NODE_TYPE("CALLSTMT");
2653 :
2654 898 : WRITE_NODE_FIELD(funccall);
2655 898 : WRITE_NODE_FIELD(funcexpr);
2656 898 : WRITE_NODE_FIELD(outargs);
2657 898 : }
2658 :
2659 : static void
2660 2832 : _outRenameStmt(StringInfo str, const RenameStmt *node)
2661 : {
2662 2832 : WRITE_NODE_TYPE("RENAMESTMT");
2663 :
2664 2832 : WRITE_ENUM_FIELD(renameType, ObjectType);
2665 2832 : WRITE_ENUM_FIELD(relationType, ObjectType);
2666 2832 : WRITE_NODE_FIELD(relation);
2667 2832 : WRITE_NODE_FIELD(object);
2668 2832 : WRITE_STRING_FIELD(subname);
2669 2832 : WRITE_STRING_FIELD(newname);
2670 2832 : WRITE_ENUM_FIELD(behavior, DropBehavior);
2671 2832 : WRITE_BOOL_FIELD(missing_ok);
2672 2832 : }
2673 :
2674 : static void
2675 92 : _outAlterObjectDependsStmt(StringInfo str, const AlterObjectDependsStmt *node)
2676 : {
2677 92 : WRITE_NODE_TYPE("ALTEROBJECTDEPENDSSTMT");
2678 :
2679 92 : WRITE_ENUM_FIELD(objectType, ObjectType);
2680 92 : WRITE_NODE_FIELD(relation);
2681 92 : WRITE_NODE_FIELD(object);
2682 92 : WRITE_NODE_FIELD(extname);
2683 92 : WRITE_BOOL_FIELD(remove);
2684 92 : }
2685 :
2686 : static void
2687 796 : _outAlterObjectSchemaStmt(StringInfo str, const AlterObjectSchemaStmt *node)
2688 : {
2689 796 : WRITE_NODE_TYPE("ALTEROBJECTSCHEMASTMT");
2690 :
2691 796 : WRITE_ENUM_FIELD(objectType, ObjectType);
2692 796 : WRITE_NODE_FIELD(relation);
2693 796 : WRITE_NODE_FIELD(object);
2694 796 : WRITE_STRING_FIELD(newschema);
2695 796 : WRITE_BOOL_FIELD(missing_ok);
2696 796 : }
2697 :
2698 : static void
2699 5018 : _outAlterOwnerStmt(StringInfo str, const AlterOwnerStmt *node)
2700 : {
2701 5018 : WRITE_NODE_TYPE("ALTEROWNERSTMT");
2702 :
2703 5018 : WRITE_ENUM_FIELD(objectType, ObjectType);
2704 5018 : WRITE_NODE_FIELD(relation);
2705 5018 : WRITE_NODE_FIELD(object);
2706 5018 : WRITE_NODE_FIELD(newowner);
2707 5018 : }
2708 :
2709 : static void
2710 1216 : _outAlterOperatorStmt(StringInfo str, const AlterOperatorStmt *node)
2711 : {
2712 1216 : WRITE_NODE_TYPE("ALTEROPERATORSTMT");
2713 :
2714 1216 : WRITE_NODE_FIELD(opername);
2715 1216 : WRITE_NODE_FIELD(options);
2716 1216 : }
2717 :
2718 : static void
2719 120 : _outAlterTypeStmt(StringInfo str, const AlterTypeStmt *node)
2720 : {
2721 120 : WRITE_NODE_TYPE("ALTERTYPESTMT");
2722 :
2723 120 : WRITE_NODE_FIELD(typeName);
2724 120 : WRITE_NODE_FIELD(options);
2725 120 : }
2726 :
2727 : static void
2728 2348 : _outRuleStmt(StringInfo str, const RuleStmt *node)
2729 : {
2730 2348 : WRITE_NODE_TYPE("RULESTMT");
2731 :
2732 2348 : WRITE_NODE_FIELD(relation);
2733 2348 : WRITE_STRING_FIELD(rulename);
2734 2348 : WRITE_NODE_FIELD(whereClause);
2735 2348 : WRITE_ENUM_FIELD(event, CmdType);
2736 2348 : WRITE_BOOL_FIELD(instead);
2737 2348 : WRITE_NODE_FIELD(actions);
2738 2348 : WRITE_BOOL_FIELD(replace);
2739 2348 : }
2740 :
2741 : static void
2742 308 : _outNotifyStmt(StringInfo str, const NotifyStmt *node)
2743 : {
2744 308 : WRITE_NODE_TYPE("NOTIFYSTMT");
2745 :
2746 308 : WRITE_STRING_FIELD(conditionname);
2747 308 : WRITE_STRING_FIELD(payload);
2748 308 : }
2749 :
2750 : static void
2751 148 : _outListenStmt(StringInfo str, const ListenStmt *node)
2752 : {
2753 148 : WRITE_NODE_TYPE("LISTENSTMT");
2754 :
2755 148 : WRITE_STRING_FIELD(conditionname);
2756 148 : }
2757 :
2758 : static void
2759 76 : _outUnlistenStmt(StringInfo str, const UnlistenStmt *node)
2760 : {
2761 76 : WRITE_NODE_TYPE("UNLISTENSTMT");
2762 :
2763 76 : WRITE_STRING_FIELD(conditionname);
2764 76 : }
2765 :
2766 : static void
2767 75310 : _outTransactionStmt(StringInfo str, const TransactionStmt *node)
2768 : {
2769 75310 : WRITE_NODE_TYPE("TRANSACTIONSTMT");
2770 :
2771 75310 : WRITE_ENUM_FIELD(kind, TransactionStmtKind);
2772 75310 : WRITE_NODE_FIELD(options);
2773 75310 : WRITE_STRING_FIELD(savepoint_name);
2774 75310 : WRITE_STRING_FIELD(gid);
2775 75310 : WRITE_BOOL_FIELD(chain);
2776 75310 : WRITE_LOCATION_FIELD(location);
2777 75310 : }
2778 :
2779 : static void
2780 5288 : _outCompositeTypeStmt(StringInfo str, const CompositeTypeStmt *node)
2781 : {
2782 5288 : WRITE_NODE_TYPE("COMPOSITETYPESTMT");
2783 :
2784 5288 : WRITE_NODE_FIELD(typevar);
2785 5288 : WRITE_NODE_FIELD(coldeflist);
2786 5288 : }
2787 :
2788 : static void
2789 412 : _outCreateEnumStmt(StringInfo str, const CreateEnumStmt *node)
2790 : {
2791 412 : WRITE_NODE_TYPE("CREATEENUMSTMT");
2792 :
2793 412 : WRITE_NODE_FIELD(typeName);
2794 412 : WRITE_NODE_FIELD(vals);
2795 412 : }
2796 :
2797 : static void
2798 392 : _outCreateRangeStmt(StringInfo str, const CreateRangeStmt *node)
2799 : {
2800 392 : WRITE_NODE_TYPE("CREATERANGESTMT");
2801 :
2802 392 : WRITE_NODE_FIELD(typeName);
2803 392 : WRITE_NODE_FIELD(params);
2804 392 : }
2805 :
2806 : static void
2807 792 : _outAlterEnumStmt(StringInfo str, const AlterEnumStmt *node)
2808 : {
2809 792 : WRITE_NODE_TYPE("ALTERENUMSTMT");
2810 :
2811 792 : WRITE_NODE_FIELD(typeName);
2812 792 : WRITE_STRING_FIELD(oldVal);
2813 792 : WRITE_STRING_FIELD(newVal);
2814 792 : WRITE_STRING_FIELD(newValNeighbor);
2815 792 : WRITE_BOOL_FIELD(newValIsAfter);
2816 792 : WRITE_BOOL_FIELD(skipIfNewValExists);
2817 792 : }
2818 :
2819 : static void
2820 34460 : _outViewStmt(StringInfo str, const ViewStmt *node)
2821 : {
2822 34460 : WRITE_NODE_TYPE("VIEWSTMT");
2823 :
2824 34460 : WRITE_NODE_FIELD(view);
2825 34460 : WRITE_NODE_FIELD(aliases);
2826 34460 : WRITE_NODE_FIELD(query);
2827 34460 : WRITE_BOOL_FIELD(replace);
2828 34460 : WRITE_NODE_FIELD(options);
2829 34460 : WRITE_ENUM_FIELD(withCheckOption, ViewCheckOption);
2830 34460 : }
2831 :
2832 : static void
2833 104 : _outLoadStmt(StringInfo str, const LoadStmt *node)
2834 : {
2835 104 : WRITE_NODE_TYPE("LOADSTMT");
2836 :
2837 104 : WRITE_STRING_FIELD(filename);
2838 104 : }
2839 :
2840 : static void
2841 1584 : _outCreatedbStmt(StringInfo str, const CreatedbStmt *node)
2842 : {
2843 1584 : WRITE_NODE_TYPE("CREATEDBSTMT");
2844 :
2845 1584 : WRITE_STRING_FIELD(dbname);
2846 1584 : WRITE_NODE_FIELD(options);
2847 1584 : }
2848 :
2849 : static void
2850 152 : _outAlterDatabaseStmt(StringInfo str, const AlterDatabaseStmt *node)
2851 : {
2852 152 : WRITE_NODE_TYPE("ALTERDATABASESTMT");
2853 :
2854 152 : WRITE_STRING_FIELD(dbname);
2855 152 : WRITE_NODE_FIELD(options);
2856 152 : }
2857 :
2858 : static void
2859 12 : _outAlterDatabaseRefreshCollStmt(StringInfo str, const AlterDatabaseRefreshCollStmt *node)
2860 : {
2861 12 : WRITE_NODE_TYPE("ALTERDATABASEREFRESHCOLLSTMT");
2862 :
2863 12 : WRITE_STRING_FIELD(dbname);
2864 12 : }
2865 :
2866 : static void
2867 2388 : _outAlterDatabaseSetStmt(StringInfo str, const AlterDatabaseSetStmt *node)
2868 : {
2869 2388 : WRITE_NODE_TYPE("ALTERDATABASESETSTMT");
2870 :
2871 2388 : WRITE_STRING_FIELD(dbname);
2872 2388 : WRITE_NODE_FIELD(setstmt);
2873 2388 : }
2874 :
2875 : static void
2876 244 : _outDropdbStmt(StringInfo str, const DropdbStmt *node)
2877 : {
2878 244 : WRITE_NODE_TYPE("DROPDBSTMT");
2879 :
2880 244 : WRITE_STRING_FIELD(dbname);
2881 244 : WRITE_BOOL_FIELD(missing_ok);
2882 244 : WRITE_NODE_FIELD(options);
2883 244 : }
2884 :
2885 : static void
2886 364 : _outAlterSystemStmt(StringInfo str, const AlterSystemStmt *node)
2887 : {
2888 364 : WRITE_NODE_TYPE("ALTERSYSTEMSTMT");
2889 :
2890 364 : WRITE_NODE_FIELD(setstmt);
2891 364 : }
2892 :
2893 : static void
2894 460 : _outClusterStmt(StringInfo str, const ClusterStmt *node)
2895 : {
2896 460 : WRITE_NODE_TYPE("CLUSTERSTMT");
2897 :
2898 460 : WRITE_NODE_FIELD(relation);
2899 460 : WRITE_STRING_FIELD(indexname);
2900 460 : WRITE_NODE_FIELD(params);
2901 460 : }
2902 :
2903 : static void
2904 26950 : _outVacuumStmt(StringInfo str, const VacuumStmt *node)
2905 : {
2906 26950 : WRITE_NODE_TYPE("VACUUMSTMT");
2907 :
2908 26950 : WRITE_NODE_FIELD(options);
2909 26950 : WRITE_NODE_FIELD(rels);
2910 26950 : WRITE_BOOL_FIELD(is_vacuumcmd);
2911 26950 : }
2912 :
2913 : static void
2914 26486 : _outVacuumRelation(StringInfo str, const VacuumRelation *node)
2915 : {
2916 26486 : WRITE_NODE_TYPE("VACUUMRELATION");
2917 :
2918 26486 : WRITE_NODE_FIELD(relation);
2919 26486 : WRITE_OID_FIELD(oid);
2920 26486 : WRITE_NODE_FIELD(va_cols);
2921 26486 : }
2922 :
2923 : static void
2924 39582 : _outExplainStmt(StringInfo str, const ExplainStmt *node)
2925 : {
2926 39582 : WRITE_NODE_TYPE("EXPLAINSTMT");
2927 :
2928 39582 : WRITE_NODE_FIELD(query);
2929 39582 : WRITE_NODE_FIELD(options);
2930 39582 : }
2931 :
2932 : static void
2933 3812 : _outCreateTableAsStmt(StringInfo str, const CreateTableAsStmt *node)
2934 : {
2935 3812 : WRITE_NODE_TYPE("CREATETABLEASSTMT");
2936 :
2937 3812 : WRITE_NODE_FIELD(query);
2938 3812 : WRITE_NODE_FIELD(into);
2939 3812 : WRITE_ENUM_FIELD(objtype, ObjectType);
2940 3812 : WRITE_BOOL_FIELD(is_select_into);
2941 3812 : WRITE_BOOL_FIELD(if_not_exists);
2942 3812 : }
2943 :
2944 : static void
2945 568 : _outRefreshMatViewStmt(StringInfo str, const RefreshMatViewStmt *node)
2946 : {
2947 568 : WRITE_NODE_TYPE("REFRESHMATVIEWSTMT");
2948 :
2949 568 : WRITE_BOOL_FIELD(concurrent);
2950 568 : WRITE_BOOL_FIELD(skipData);
2951 568 : WRITE_NODE_FIELD(relation);
2952 568 : }
2953 :
2954 : static void
2955 442 : _outCheckPointStmt(StringInfo str, const CheckPointStmt *node)
2956 : {
2957 442 : WRITE_NODE_TYPE("CHECKPOINTSTMT");
2958 :
2959 442 : }
2960 :
2961 : static void
2962 60 : _outDiscardStmt(StringInfo str, const DiscardStmt *node)
2963 : {
2964 60 : WRITE_NODE_TYPE("DISCARDSTMT");
2965 :
2966 60 : WRITE_ENUM_FIELD(target, DiscardMode);
2967 60 : }
2968 :
2969 : static void
2970 5032 : _outLockStmt(StringInfo str, const LockStmt *node)
2971 : {
2972 5032 : WRITE_NODE_TYPE("LOCKSTMT");
2973 :
2974 5032 : WRITE_NODE_FIELD(relations);
2975 5032 : WRITE_INT_FIELD(mode);
2976 5032 : WRITE_BOOL_FIELD(nowait);
2977 5032 : }
2978 :
2979 : static void
2980 202 : _outConstraintsSetStmt(StringInfo str, const ConstraintsSetStmt *node)
2981 : {
2982 202 : WRITE_NODE_TYPE("CONSTRAINTSSETSTMT");
2983 :
2984 202 : WRITE_NODE_FIELD(constraints);
2985 202 : WRITE_BOOL_FIELD(deferred);
2986 202 : }
2987 :
2988 : static void
2989 2212 : _outReindexStmt(StringInfo str, const ReindexStmt *node)
2990 : {
2991 2212 : WRITE_NODE_TYPE("REINDEXSTMT");
2992 :
2993 2212 : WRITE_ENUM_FIELD(kind, ReindexObjectType);
2994 2212 : WRITE_NODE_FIELD(relation);
2995 2212 : WRITE_STRING_FIELD(name);
2996 2212 : WRITE_NODE_FIELD(params);
2997 2212 : }
2998 :
2999 : static void
3000 128 : _outCreateConversionStmt(StringInfo str, const CreateConversionStmt *node)
3001 : {
3002 128 : WRITE_NODE_TYPE("CREATECONVERSIONSTMT");
3003 :
3004 128 : WRITE_NODE_FIELD(conversion_name);
3005 128 : WRITE_STRING_FIELD(for_encoding_name);
3006 128 : WRITE_STRING_FIELD(to_encoding_name);
3007 128 : WRITE_NODE_FIELD(func_name);
3008 128 : WRITE_BOOL_FIELD(def);
3009 128 : }
3010 :
3011 : static void
3012 580 : _outCreateCastStmt(StringInfo str, const CreateCastStmt *node)
3013 : {
3014 580 : WRITE_NODE_TYPE("CREATECASTSTMT");
3015 :
3016 580 : WRITE_NODE_FIELD(sourcetype);
3017 580 : WRITE_NODE_FIELD(targettype);
3018 580 : WRITE_NODE_FIELD(func);
3019 580 : WRITE_ENUM_FIELD(context, CoercionContext);
3020 580 : WRITE_BOOL_FIELD(inout);
3021 580 : }
3022 :
3023 : static void
3024 104 : _outCreateTransformStmt(StringInfo str, const CreateTransformStmt *node)
3025 : {
3026 104 : WRITE_NODE_TYPE("CREATETRANSFORMSTMT");
3027 :
3028 104 : WRITE_BOOL_FIELD(replace);
3029 104 : WRITE_NODE_FIELD(type_name);
3030 104 : WRITE_STRING_FIELD(lang);
3031 104 : WRITE_NODE_FIELD(fromsql);
3032 104 : WRITE_NODE_FIELD(tosql);
3033 104 : }
3034 :
3035 : static void
3036 4280 : _outPrepareStmt(StringInfo str, const PrepareStmt *node)
3037 : {
3038 4280 : WRITE_NODE_TYPE("PREPARESTMT");
3039 :
3040 4280 : WRITE_STRING_FIELD(name);
3041 4280 : WRITE_NODE_FIELD(argtypes);
3042 4280 : WRITE_NODE_FIELD(query);
3043 4280 : }
3044 :
3045 : static void
3046 40050 : _outExecuteStmt(StringInfo str, const ExecuteStmt *node)
3047 : {
3048 40050 : WRITE_NODE_TYPE("EXECUTESTMT");
3049 :
3050 40050 : WRITE_STRING_FIELD(name);
3051 40050 : WRITE_NODE_FIELD(params);
3052 40050 : }
3053 :
3054 : static void
3055 8128 : _outDeallocateStmt(StringInfo str, const DeallocateStmt *node)
3056 : {
3057 8128 : WRITE_NODE_TYPE("DEALLOCATESTMT");
3058 :
3059 8128 : WRITE_STRING_FIELD(name);
3060 8128 : WRITE_BOOL_FIELD(isall);
3061 8128 : WRITE_LOCATION_FIELD(location);
3062 8128 : }
3063 :
3064 : static void
3065 308 : _outDropOwnedStmt(StringInfo str, const DropOwnedStmt *node)
3066 : {
3067 308 : WRITE_NODE_TYPE("DROPOWNEDSTMT");
3068 :
3069 308 : WRITE_NODE_FIELD(roles);
3070 308 : WRITE_ENUM_FIELD(behavior, DropBehavior);
3071 308 : }
3072 :
3073 : static void
3074 104 : _outReassignOwnedStmt(StringInfo str, const ReassignOwnedStmt *node)
3075 : {
3076 104 : WRITE_NODE_TYPE("REASSIGNOWNEDSTMT");
3077 :
3078 104 : WRITE_NODE_FIELD(roles);
3079 104 : WRITE_NODE_FIELD(newrole);
3080 104 : }
3081 :
3082 : static void
3083 80 : _outAlterTSDictionaryStmt(StringInfo str, const AlterTSDictionaryStmt *node)
3084 : {
3085 80 : WRITE_NODE_TYPE("ALTERTSDICTIONARYSTMT");
3086 :
3087 80 : WRITE_NODE_FIELD(dictname);
3088 80 : WRITE_NODE_FIELD(options);
3089 80 : }
3090 :
3091 : static void
3092 17836 : _outAlterTSConfigurationStmt(StringInfo str, const AlterTSConfigurationStmt *node)
3093 : {
3094 17836 : WRITE_NODE_TYPE("ALTERTSCONFIGURATIONSTMT");
3095 :
3096 17836 : WRITE_ENUM_FIELD(kind, AlterTSConfigType);
3097 17836 : WRITE_NODE_FIELD(cfgname);
3098 17836 : WRITE_NODE_FIELD(tokentype);
3099 17836 : WRITE_NODE_FIELD(dicts);
3100 17836 : WRITE_BOOL_FIELD(override);
3101 17836 : WRITE_BOOL_FIELD(replace);
3102 17836 : WRITE_BOOL_FIELD(missing_ok);
3103 17836 : }
3104 :
3105 : static void
3106 2772 : _outPublicationTable(StringInfo str, const PublicationTable *node)
3107 : {
3108 2772 : WRITE_NODE_TYPE("PUBLICATIONTABLE");
3109 :
3110 2772 : WRITE_NODE_FIELD(relation);
3111 2772 : WRITE_NODE_FIELD(whereClause);
3112 2772 : WRITE_NODE_FIELD(columns);
3113 2772 : }
3114 :
3115 : static void
3116 3484 : _outPublicationObjSpec(StringInfo str, const PublicationObjSpec *node)
3117 : {
3118 3484 : WRITE_NODE_TYPE("PUBLICATIONOBJSPEC");
3119 :
3120 3484 : WRITE_ENUM_FIELD(pubobjtype, PublicationObjSpecType);
3121 3484 : WRITE_STRING_FIELD(name);
3122 3484 : WRITE_NODE_FIELD(pubtable);
3123 3484 : WRITE_LOCATION_FIELD(location);
3124 3484 : }
3125 :
3126 : static void
3127 1620 : _outCreatePublicationStmt(StringInfo str, const CreatePublicationStmt *node)
3128 : {
3129 1620 : WRITE_NODE_TYPE("CREATEPUBLICATIONSTMT");
3130 :
3131 1620 : WRITE_STRING_FIELD(pubname);
3132 1620 : WRITE_NODE_FIELD(options);
3133 1620 : WRITE_NODE_FIELD(pubobjects);
3134 1620 : WRITE_BOOL_FIELD(for_all_tables);
3135 1620 : }
3136 :
3137 : static void
3138 2140 : _outAlterPublicationStmt(StringInfo str, const AlterPublicationStmt *node)
3139 : {
3140 2140 : WRITE_NODE_TYPE("ALTERPUBLICATIONSTMT");
3141 :
3142 2140 : WRITE_STRING_FIELD(pubname);
3143 2140 : WRITE_NODE_FIELD(options);
3144 2140 : WRITE_NODE_FIELD(pubobjects);
3145 2140 : WRITE_BOOL_FIELD(for_all_tables);
3146 2140 : WRITE_ENUM_FIELD(action, AlterPublicationAction);
3147 2140 : }
3148 :
3149 : static void
3150 896 : _outCreateSubscriptionStmt(StringInfo str, const CreateSubscriptionStmt *node)
3151 : {
3152 896 : WRITE_NODE_TYPE("CREATESUBSCRIPTIONSTMT");
3153 :
3154 896 : WRITE_STRING_FIELD(subname);
3155 896 : WRITE_STRING_FIELD(conninfo);
3156 896 : WRITE_NODE_FIELD(publication);
3157 896 : WRITE_NODE_FIELD(options);
3158 896 : }
3159 :
3160 : static void
3161 946 : _outAlterSubscriptionStmt(StringInfo str, const AlterSubscriptionStmt *node)
3162 : {
3163 946 : WRITE_NODE_TYPE("ALTERSUBSCRIPTIONSTMT");
3164 :
3165 946 : WRITE_ENUM_FIELD(kind, AlterSubscriptionType);
3166 946 : WRITE_STRING_FIELD(subname);
3167 946 : WRITE_STRING_FIELD(conninfo);
3168 946 : WRITE_NODE_FIELD(publication);
3169 946 : WRITE_NODE_FIELD(options);
3170 946 : }
3171 :
3172 : static void
3173 456 : _outDropSubscriptionStmt(StringInfo str, const DropSubscriptionStmt *node)
3174 : {
3175 456 : WRITE_NODE_TYPE("DROPSUBSCRIPTIONSTMT");
3176 :
3177 456 : WRITE_STRING_FIELD(subname);
3178 456 : WRITE_BOOL_FIELD(missing_ok);
3179 456 : WRITE_ENUM_FIELD(behavior, DropBehavior);
3180 456 : }
3181 :
3182 : static void
3183 0 : _outPlannerGlobal(StringInfo str, const PlannerGlobal *node)
3184 : {
3185 0 : WRITE_NODE_TYPE("PLANNERGLOBAL");
3186 :
3187 0 : WRITE_NODE_FIELD(subplans);
3188 0 : WRITE_NODE_FIELD(subpaths);
3189 0 : WRITE_BITMAPSET_FIELD(rewindPlanIDs);
3190 0 : WRITE_NODE_FIELD(finalrtable);
3191 0 : WRITE_BITMAPSET_FIELD(allRelids);
3192 0 : WRITE_BITMAPSET_FIELD(prunableRelids);
3193 0 : WRITE_NODE_FIELD(finalrteperminfos);
3194 0 : WRITE_NODE_FIELD(finalrowmarks);
3195 0 : WRITE_NODE_FIELD(resultRelations);
3196 0 : WRITE_NODE_FIELD(appendRelations);
3197 0 : WRITE_NODE_FIELD(partPruneInfos);
3198 0 : WRITE_NODE_FIELD(relationOids);
3199 0 : WRITE_NODE_FIELD(invalItems);
3200 0 : WRITE_NODE_FIELD(paramExecTypes);
3201 0 : WRITE_UINT_FIELD(lastPHId);
3202 0 : WRITE_UINT_FIELD(lastRowMarkId);
3203 0 : WRITE_INT_FIELD(lastPlanNodeId);
3204 0 : WRITE_BOOL_FIELD(transientPlan);
3205 0 : WRITE_BOOL_FIELD(dependsOnRole);
3206 0 : WRITE_BOOL_FIELD(parallelModeOK);
3207 0 : WRITE_BOOL_FIELD(parallelModeNeeded);
3208 0 : WRITE_CHAR_FIELD(maxParallelHazard);
3209 0 : }
3210 :
3211 : static void
3212 0 : _outPlannerInfo(StringInfo str, const PlannerInfo *node)
3213 : {
3214 0 : WRITE_NODE_TYPE("PLANNERINFO");
3215 :
3216 0 : WRITE_NODE_FIELD(parse);
3217 0 : WRITE_NODE_FIELD(glob);
3218 0 : WRITE_UINT_FIELD(query_level);
3219 0 : WRITE_NODE_FIELD(plan_params);
3220 0 : WRITE_BITMAPSET_FIELD(outer_params);
3221 0 : WRITE_NODE_ARRAY(simple_rel_array, node->simple_rel_array_size);
3222 0 : WRITE_INT_FIELD(simple_rel_array_size);
3223 0 : WRITE_BITMAPSET_FIELD(all_baserels);
3224 0 : WRITE_BITMAPSET_FIELD(outer_join_rels);
3225 0 : WRITE_BITMAPSET_FIELD(all_query_rels);
3226 0 : WRITE_NODE_FIELD(join_rel_list);
3227 0 : WRITE_INT_FIELD(join_cur_level);
3228 0 : WRITE_NODE_FIELD(init_plans);
3229 0 : WRITE_NODE_FIELD(cte_plan_ids);
3230 0 : WRITE_NODE_FIELD(multiexpr_params);
3231 0 : WRITE_NODE_FIELD(join_domains);
3232 0 : WRITE_NODE_FIELD(eq_classes);
3233 0 : WRITE_BOOL_FIELD(ec_merging_done);
3234 0 : WRITE_NODE_FIELD(canon_pathkeys);
3235 0 : WRITE_NODE_FIELD(left_join_clauses);
3236 0 : WRITE_NODE_FIELD(right_join_clauses);
3237 0 : WRITE_NODE_FIELD(full_join_clauses);
3238 0 : WRITE_NODE_FIELD(join_info_list);
3239 0 : WRITE_INT_FIELD(last_rinfo_serial);
3240 0 : WRITE_BITMAPSET_FIELD(all_result_relids);
3241 0 : WRITE_BITMAPSET_FIELD(leaf_result_relids);
3242 0 : WRITE_NODE_FIELD(append_rel_list);
3243 0 : WRITE_NODE_FIELD(row_identity_vars);
3244 0 : WRITE_NODE_FIELD(rowMarks);
3245 0 : WRITE_NODE_FIELD(placeholder_list);
3246 0 : WRITE_NODE_FIELD(fkey_list);
3247 0 : WRITE_NODE_FIELD(query_pathkeys);
3248 0 : WRITE_NODE_FIELD(group_pathkeys);
3249 0 : WRITE_INT_FIELD(num_groupby_pathkeys);
3250 0 : WRITE_NODE_FIELD(window_pathkeys);
3251 0 : WRITE_NODE_FIELD(distinct_pathkeys);
3252 0 : WRITE_NODE_FIELD(sort_pathkeys);
3253 0 : WRITE_NODE_FIELD(setop_pathkeys);
3254 0 : WRITE_NODE_FIELD(processed_groupClause);
3255 0 : WRITE_NODE_FIELD(processed_distinctClause);
3256 0 : WRITE_NODE_FIELD(processed_tlist);
3257 0 : WRITE_NODE_FIELD(update_colnos);
3258 0 : WRITE_NODE_FIELD(minmax_aggs);
3259 0 : WRITE_FLOAT_FIELD(total_table_pages);
3260 0 : WRITE_FLOAT_FIELD(tuple_fraction);
3261 0 : WRITE_FLOAT_FIELD(limit_tuples);
3262 0 : WRITE_UINT_FIELD(qual_security_level);
3263 0 : WRITE_BOOL_FIELD(hasJoinRTEs);
3264 0 : WRITE_BOOL_FIELD(hasLateralRTEs);
3265 0 : WRITE_BOOL_FIELD(hasHavingQual);
3266 0 : WRITE_BOOL_FIELD(hasPseudoConstantQuals);
3267 0 : WRITE_BOOL_FIELD(hasAlternativeSubPlans);
3268 0 : WRITE_BOOL_FIELD(placeholdersFrozen);
3269 0 : WRITE_BOOL_FIELD(hasRecursion);
3270 0 : WRITE_INT_FIELD(group_rtindex);
3271 0 : WRITE_NODE_FIELD(agginfos);
3272 0 : WRITE_NODE_FIELD(aggtransinfos);
3273 0 : WRITE_INT_FIELD(numOrderedAggs);
3274 0 : WRITE_BOOL_FIELD(hasNonPartialAggs);
3275 0 : WRITE_BOOL_FIELD(hasNonSerialAggs);
3276 0 : WRITE_INT_FIELD(wt_param_id);
3277 0 : WRITE_NODE_FIELD(non_recursive_path);
3278 0 : WRITE_BITMAPSET_FIELD(curOuterRels);
3279 0 : WRITE_NODE_FIELD(curOuterParams);
3280 0 : WRITE_BOOL_FIELD(partColsUpdated);
3281 0 : WRITE_NODE_FIELD(partPruneInfos);
3282 0 : }
3283 :
3284 : static void
3285 0 : _outRelOptInfo(StringInfo str, const RelOptInfo *node)
3286 : {
3287 0 : WRITE_NODE_TYPE("RELOPTINFO");
3288 :
3289 0 : WRITE_ENUM_FIELD(reloptkind, RelOptKind);
3290 0 : WRITE_BITMAPSET_FIELD(relids);
3291 0 : WRITE_FLOAT_FIELD(rows);
3292 0 : WRITE_BOOL_FIELD(consider_startup);
3293 0 : WRITE_BOOL_FIELD(consider_param_startup);
3294 0 : WRITE_BOOL_FIELD(consider_parallel);
3295 0 : WRITE_NODE_FIELD(reltarget);
3296 0 : WRITE_NODE_FIELD(pathlist);
3297 0 : WRITE_NODE_FIELD(ppilist);
3298 0 : WRITE_NODE_FIELD(partial_pathlist);
3299 0 : WRITE_NODE_FIELD(cheapest_startup_path);
3300 0 : WRITE_NODE_FIELD(cheapest_total_path);
3301 0 : WRITE_NODE_FIELD(cheapest_unique_path);
3302 0 : WRITE_NODE_FIELD(cheapest_parameterized_paths);
3303 0 : WRITE_BITMAPSET_FIELD(direct_lateral_relids);
3304 0 : WRITE_BITMAPSET_FIELD(lateral_relids);
3305 0 : WRITE_UINT_FIELD(relid);
3306 0 : WRITE_OID_FIELD(reltablespace);
3307 0 : WRITE_ENUM_FIELD(rtekind, RTEKind);
3308 0 : WRITE_INT_FIELD(min_attr);
3309 0 : WRITE_INT_FIELD(max_attr);
3310 0 : WRITE_BITMAPSET_FIELD(notnullattnums);
3311 0 : WRITE_BITMAPSET_FIELD(nulling_relids);
3312 0 : WRITE_NODE_FIELD(lateral_vars);
3313 0 : WRITE_BITMAPSET_FIELD(lateral_referencers);
3314 0 : WRITE_NODE_FIELD(indexlist);
3315 0 : WRITE_NODE_FIELD(statlist);
3316 0 : WRITE_UINT_FIELD(pages);
3317 0 : WRITE_FLOAT_FIELD(tuples);
3318 0 : WRITE_FLOAT_FIELD(allvisfrac);
3319 0 : WRITE_BITMAPSET_FIELD(eclass_indexes);
3320 0 : WRITE_NODE_FIELD(subroot);
3321 0 : WRITE_NODE_FIELD(subplan_params);
3322 0 : WRITE_INT_FIELD(rel_parallel_workers);
3323 0 : WRITE_UINT_FIELD(amflags);
3324 0 : WRITE_OID_FIELD(serverid);
3325 0 : WRITE_OID_FIELD(userid);
3326 0 : WRITE_BOOL_FIELD(useridiscurrent);
3327 0 : WRITE_NODE_FIELD(unique_for_rels);
3328 0 : WRITE_NODE_FIELD(non_unique_for_rels);
3329 0 : WRITE_NODE_FIELD(baserestrictinfo);
3330 0 : WRITE_FLOAT_FIELD(baserestrictcost.startup);
3331 0 : WRITE_FLOAT_FIELD(baserestrictcost.per_tuple);
3332 0 : WRITE_UINT_FIELD(baserestrict_min_security);
3333 0 : WRITE_NODE_FIELD(joininfo);
3334 0 : WRITE_BOOL_FIELD(has_eclass_joins);
3335 0 : WRITE_BOOL_FIELD(consider_partitionwise_join);
3336 0 : WRITE_BITMAPSET_FIELD(top_parent_relids);
3337 0 : WRITE_INT_FIELD(nparts);
3338 0 : WRITE_BOOL_FIELD(partbounds_merged);
3339 0 : WRITE_NODE_FIELD(partition_qual);
3340 0 : WRITE_BITMAPSET_FIELD(live_parts);
3341 0 : WRITE_BITMAPSET_FIELD(all_partrels);
3342 0 : }
3343 :
3344 : static void
3345 0 : _outIndexOptInfo(StringInfo str, const IndexOptInfo *node)
3346 : {
3347 0 : WRITE_NODE_TYPE("INDEXOPTINFO");
3348 :
3349 0 : WRITE_OID_FIELD(indexoid);
3350 0 : WRITE_OID_FIELD(reltablespace);
3351 0 : WRITE_UINT_FIELD(pages);
3352 0 : WRITE_FLOAT_FIELD(tuples);
3353 0 : WRITE_INT_FIELD(tree_height);
3354 0 : WRITE_INT_FIELD(ncolumns);
3355 0 : WRITE_INT_FIELD(nkeycolumns);
3356 0 : WRITE_INT_ARRAY(indexkeys, node->ncolumns);
3357 0 : WRITE_OID_ARRAY(indexcollations, node->nkeycolumns);
3358 0 : WRITE_OID_ARRAY(opfamily, node->nkeycolumns);
3359 0 : WRITE_OID_ARRAY(opcintype, node->nkeycolumns);
3360 0 : WRITE_OID_ARRAY(sortopfamily, node->nkeycolumns);
3361 0 : WRITE_BOOL_ARRAY(reverse_sort, node->nkeycolumns);
3362 0 : WRITE_BOOL_ARRAY(nulls_first, node->nkeycolumns);
3363 0 : WRITE_BOOL_ARRAY(canreturn, node->ncolumns);
3364 0 : WRITE_OID_FIELD(relam);
3365 0 : WRITE_NODE_FIELD(indpred);
3366 0 : WRITE_NODE_FIELD(indextlist);
3367 0 : WRITE_NODE_FIELD(indrestrictinfo);
3368 0 : WRITE_BOOL_FIELD(predOK);
3369 0 : WRITE_BOOL_FIELD(unique);
3370 0 : WRITE_BOOL_FIELD(nullsnotdistinct);
3371 0 : WRITE_BOOL_FIELD(immediate);
3372 0 : WRITE_BOOL_FIELD(hypothetical);
3373 0 : WRITE_BOOL_FIELD(amcanorderbyop);
3374 0 : WRITE_BOOL_FIELD(amoptionalkey);
3375 0 : WRITE_BOOL_FIELD(amsearcharray);
3376 0 : WRITE_BOOL_FIELD(amsearchnulls);
3377 0 : WRITE_BOOL_FIELD(amhasgettuple);
3378 0 : WRITE_BOOL_FIELD(amhasgetbitmap);
3379 0 : WRITE_BOOL_FIELD(amcanparallel);
3380 0 : WRITE_BOOL_FIELD(amcanmarkpos);
3381 0 : }
3382 :
3383 : static void
3384 0 : _outStatisticExtInfo(StringInfo str, const StatisticExtInfo *node)
3385 : {
3386 0 : WRITE_NODE_TYPE("STATISTICEXTINFO");
3387 :
3388 0 : WRITE_OID_FIELD(statOid);
3389 0 : WRITE_BOOL_FIELD(inherit);
3390 0 : WRITE_CHAR_FIELD(kind);
3391 0 : WRITE_BITMAPSET_FIELD(keys);
3392 0 : WRITE_NODE_FIELD(exprs);
3393 0 : }
3394 :
3395 : static void
3396 0 : _outJoinDomain(StringInfo str, const JoinDomain *node)
3397 : {
3398 0 : WRITE_NODE_TYPE("JOINDOMAIN");
3399 :
3400 0 : WRITE_BITMAPSET_FIELD(jd_relids);
3401 0 : }
3402 :
3403 : static void
3404 0 : _outEquivalenceMember(StringInfo str, const EquivalenceMember *node)
3405 : {
3406 0 : WRITE_NODE_TYPE("EQUIVALENCEMEMBER");
3407 :
3408 0 : WRITE_NODE_FIELD(em_expr);
3409 0 : WRITE_BITMAPSET_FIELD(em_relids);
3410 0 : WRITE_BOOL_FIELD(em_is_const);
3411 0 : WRITE_BOOL_FIELD(em_is_child);
3412 0 : WRITE_OID_FIELD(em_datatype);
3413 0 : WRITE_NODE_FIELD(em_jdomain);
3414 0 : }
3415 :
3416 : static void
3417 0 : _outPathKey(StringInfo str, const PathKey *node)
3418 : {
3419 0 : WRITE_NODE_TYPE("PATHKEY");
3420 :
3421 0 : WRITE_NODE_FIELD(pk_eclass);
3422 0 : WRITE_OID_FIELD(pk_opfamily);
3423 0 : WRITE_ENUM_FIELD(pk_cmptype, CompareType);
3424 0 : WRITE_BOOL_FIELD(pk_nulls_first);
3425 0 : }
3426 :
3427 : static void
3428 0 : _outGroupByOrdering(StringInfo str, const GroupByOrdering *node)
3429 : {
3430 0 : WRITE_NODE_TYPE("GROUPBYORDERING");
3431 :
3432 0 : WRITE_NODE_FIELD(pathkeys);
3433 0 : WRITE_NODE_FIELD(clauses);
3434 0 : }
3435 :
3436 : static void
3437 0 : _outPathTarget(StringInfo str, const PathTarget *node)
3438 : {
3439 0 : WRITE_NODE_TYPE("PATHTARGET");
3440 :
3441 0 : WRITE_NODE_FIELD(exprs);
3442 0 : WRITE_INDEX_ARRAY(sortgrouprefs, list_length(node->exprs));
3443 0 : WRITE_FLOAT_FIELD(cost.startup);
3444 0 : WRITE_FLOAT_FIELD(cost.per_tuple);
3445 0 : WRITE_INT_FIELD(width);
3446 0 : WRITE_ENUM_FIELD(has_volatile_expr, VolatileFunctionStatus);
3447 0 : }
3448 :
3449 : static void
3450 0 : _outParamPathInfo(StringInfo str, const ParamPathInfo *node)
3451 : {
3452 0 : WRITE_NODE_TYPE("PARAMPATHINFO");
3453 :
3454 0 : WRITE_BITMAPSET_FIELD(ppi_req_outer);
3455 0 : WRITE_FLOAT_FIELD(ppi_rows);
3456 0 : WRITE_NODE_FIELD(ppi_clauses);
3457 0 : WRITE_BITMAPSET_FIELD(ppi_serials);
3458 0 : }
3459 :
3460 : static void
3461 0 : _outPath(StringInfo str, const Path *node)
3462 : {
3463 0 : WRITE_NODE_TYPE("PATH");
3464 :
3465 0 : WRITE_ENUM_FIELD(pathtype, NodeTag);
3466 0 : appendStringInfoString(str, " :parent_relids ");
3467 0 : outBitmapset(str, node->parent->relids);
3468 0 : if (node->pathtarget != node->parent->reltarget)
3469 0 : WRITE_NODE_FIELD(pathtarget);
3470 0 : appendStringInfoString(str, " :required_outer ");
3471 0 : if (node->param_info)
3472 0 : outBitmapset(str, node->param_info->ppi_req_outer);
3473 : else
3474 0 : outBitmapset(str, NULL);
3475 0 : WRITE_BOOL_FIELD(parallel_aware);
3476 0 : WRITE_BOOL_FIELD(parallel_safe);
3477 0 : WRITE_INT_FIELD(parallel_workers);
3478 0 : WRITE_FLOAT_FIELD(rows);
3479 0 : WRITE_INT_FIELD(disabled_nodes);
3480 0 : WRITE_FLOAT_FIELD(startup_cost);
3481 0 : WRITE_FLOAT_FIELD(total_cost);
3482 0 : WRITE_NODE_FIELD(pathkeys);
3483 0 : }
3484 :
3485 : static void
3486 0 : _outIndexPath(StringInfo str, const IndexPath *node)
3487 : {
3488 0 : WRITE_NODE_TYPE("INDEXPATH");
3489 :
3490 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3491 0 : appendStringInfoString(str, " :parent_relids ");
3492 0 : outBitmapset(str, node->path.parent->relids);
3493 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3494 0 : WRITE_NODE_FIELD(path.pathtarget);
3495 0 : appendStringInfoString(str, " :required_outer ");
3496 0 : if (node->path.param_info)
3497 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3498 : else
3499 0 : outBitmapset(str, NULL);
3500 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3501 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3502 0 : WRITE_INT_FIELD(path.parallel_workers);
3503 0 : WRITE_FLOAT_FIELD(path.rows);
3504 0 : WRITE_INT_FIELD(path.disabled_nodes);
3505 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3506 0 : WRITE_FLOAT_FIELD(path.total_cost);
3507 0 : WRITE_NODE_FIELD(path.pathkeys);
3508 0 : WRITE_NODE_FIELD(indexinfo);
3509 0 : WRITE_NODE_FIELD(indexclauses);
3510 0 : WRITE_NODE_FIELD(indexorderbys);
3511 0 : WRITE_NODE_FIELD(indexorderbycols);
3512 0 : WRITE_ENUM_FIELD(indexscandir, ScanDirection);
3513 0 : WRITE_FLOAT_FIELD(indextotalcost);
3514 0 : WRITE_FLOAT_FIELD(indexselectivity);
3515 0 : }
3516 :
3517 : static void
3518 0 : _outIndexClause(StringInfo str, const IndexClause *node)
3519 : {
3520 0 : WRITE_NODE_TYPE("INDEXCLAUSE");
3521 :
3522 0 : WRITE_NODE_FIELD(rinfo);
3523 0 : WRITE_NODE_FIELD(indexquals);
3524 0 : WRITE_BOOL_FIELD(lossy);
3525 0 : WRITE_INT_FIELD(indexcol);
3526 0 : WRITE_NODE_FIELD(indexcols);
3527 0 : }
3528 :
3529 : static void
3530 0 : _outBitmapHeapPath(StringInfo str, const BitmapHeapPath *node)
3531 : {
3532 0 : WRITE_NODE_TYPE("BITMAPHEAPPATH");
3533 :
3534 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3535 0 : appendStringInfoString(str, " :parent_relids ");
3536 0 : outBitmapset(str, node->path.parent->relids);
3537 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3538 0 : WRITE_NODE_FIELD(path.pathtarget);
3539 0 : appendStringInfoString(str, " :required_outer ");
3540 0 : if (node->path.param_info)
3541 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3542 : else
3543 0 : outBitmapset(str, NULL);
3544 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3545 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3546 0 : WRITE_INT_FIELD(path.parallel_workers);
3547 0 : WRITE_FLOAT_FIELD(path.rows);
3548 0 : WRITE_INT_FIELD(path.disabled_nodes);
3549 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3550 0 : WRITE_FLOAT_FIELD(path.total_cost);
3551 0 : WRITE_NODE_FIELD(path.pathkeys);
3552 0 : WRITE_NODE_FIELD(bitmapqual);
3553 0 : }
3554 :
3555 : static void
3556 0 : _outBitmapAndPath(StringInfo str, const BitmapAndPath *node)
3557 : {
3558 0 : WRITE_NODE_TYPE("BITMAPANDPATH");
3559 :
3560 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3561 0 : appendStringInfoString(str, " :parent_relids ");
3562 0 : outBitmapset(str, node->path.parent->relids);
3563 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3564 0 : WRITE_NODE_FIELD(path.pathtarget);
3565 0 : appendStringInfoString(str, " :required_outer ");
3566 0 : if (node->path.param_info)
3567 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3568 : else
3569 0 : outBitmapset(str, NULL);
3570 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3571 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3572 0 : WRITE_INT_FIELD(path.parallel_workers);
3573 0 : WRITE_FLOAT_FIELD(path.rows);
3574 0 : WRITE_INT_FIELD(path.disabled_nodes);
3575 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3576 0 : WRITE_FLOAT_FIELD(path.total_cost);
3577 0 : WRITE_NODE_FIELD(path.pathkeys);
3578 0 : WRITE_NODE_FIELD(bitmapquals);
3579 0 : WRITE_FLOAT_FIELD(bitmapselectivity);
3580 0 : }
3581 :
3582 : static void
3583 0 : _outBitmapOrPath(StringInfo str, const BitmapOrPath *node)
3584 : {
3585 0 : WRITE_NODE_TYPE("BITMAPORPATH");
3586 :
3587 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3588 0 : appendStringInfoString(str, " :parent_relids ");
3589 0 : outBitmapset(str, node->path.parent->relids);
3590 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3591 0 : WRITE_NODE_FIELD(path.pathtarget);
3592 0 : appendStringInfoString(str, " :required_outer ");
3593 0 : if (node->path.param_info)
3594 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3595 : else
3596 0 : outBitmapset(str, NULL);
3597 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3598 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3599 0 : WRITE_INT_FIELD(path.parallel_workers);
3600 0 : WRITE_FLOAT_FIELD(path.rows);
3601 0 : WRITE_INT_FIELD(path.disabled_nodes);
3602 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3603 0 : WRITE_FLOAT_FIELD(path.total_cost);
3604 0 : WRITE_NODE_FIELD(path.pathkeys);
3605 0 : WRITE_NODE_FIELD(bitmapquals);
3606 0 : WRITE_FLOAT_FIELD(bitmapselectivity);
3607 0 : }
3608 :
3609 : static void
3610 0 : _outTidPath(StringInfo str, const TidPath *node)
3611 : {
3612 0 : WRITE_NODE_TYPE("TIDPATH");
3613 :
3614 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3615 0 : appendStringInfoString(str, " :parent_relids ");
3616 0 : outBitmapset(str, node->path.parent->relids);
3617 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3618 0 : WRITE_NODE_FIELD(path.pathtarget);
3619 0 : appendStringInfoString(str, " :required_outer ");
3620 0 : if (node->path.param_info)
3621 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3622 : else
3623 0 : outBitmapset(str, NULL);
3624 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3625 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3626 0 : WRITE_INT_FIELD(path.parallel_workers);
3627 0 : WRITE_FLOAT_FIELD(path.rows);
3628 0 : WRITE_INT_FIELD(path.disabled_nodes);
3629 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3630 0 : WRITE_FLOAT_FIELD(path.total_cost);
3631 0 : WRITE_NODE_FIELD(path.pathkeys);
3632 0 : WRITE_NODE_FIELD(tidquals);
3633 0 : }
3634 :
3635 : static void
3636 0 : _outTidRangePath(StringInfo str, const TidRangePath *node)
3637 : {
3638 0 : WRITE_NODE_TYPE("TIDRANGEPATH");
3639 :
3640 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3641 0 : appendStringInfoString(str, " :parent_relids ");
3642 0 : outBitmapset(str, node->path.parent->relids);
3643 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3644 0 : WRITE_NODE_FIELD(path.pathtarget);
3645 0 : appendStringInfoString(str, " :required_outer ");
3646 0 : if (node->path.param_info)
3647 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3648 : else
3649 0 : outBitmapset(str, NULL);
3650 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3651 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3652 0 : WRITE_INT_FIELD(path.parallel_workers);
3653 0 : WRITE_FLOAT_FIELD(path.rows);
3654 0 : WRITE_INT_FIELD(path.disabled_nodes);
3655 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3656 0 : WRITE_FLOAT_FIELD(path.total_cost);
3657 0 : WRITE_NODE_FIELD(path.pathkeys);
3658 0 : WRITE_NODE_FIELD(tidrangequals);
3659 0 : }
3660 :
3661 : static void
3662 0 : _outSubqueryScanPath(StringInfo str, const SubqueryScanPath *node)
3663 : {
3664 0 : WRITE_NODE_TYPE("SUBQUERYSCANPATH");
3665 :
3666 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3667 0 : appendStringInfoString(str, " :parent_relids ");
3668 0 : outBitmapset(str, node->path.parent->relids);
3669 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3670 0 : WRITE_NODE_FIELD(path.pathtarget);
3671 0 : appendStringInfoString(str, " :required_outer ");
3672 0 : if (node->path.param_info)
3673 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3674 : else
3675 0 : outBitmapset(str, NULL);
3676 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3677 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3678 0 : WRITE_INT_FIELD(path.parallel_workers);
3679 0 : WRITE_FLOAT_FIELD(path.rows);
3680 0 : WRITE_INT_FIELD(path.disabled_nodes);
3681 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3682 0 : WRITE_FLOAT_FIELD(path.total_cost);
3683 0 : WRITE_NODE_FIELD(path.pathkeys);
3684 0 : WRITE_NODE_FIELD(subpath);
3685 0 : }
3686 :
3687 : static void
3688 0 : _outForeignPath(StringInfo str, const ForeignPath *node)
3689 : {
3690 0 : WRITE_NODE_TYPE("FOREIGNPATH");
3691 :
3692 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3693 0 : appendStringInfoString(str, " :parent_relids ");
3694 0 : outBitmapset(str, node->path.parent->relids);
3695 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3696 0 : WRITE_NODE_FIELD(path.pathtarget);
3697 0 : appendStringInfoString(str, " :required_outer ");
3698 0 : if (node->path.param_info)
3699 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3700 : else
3701 0 : outBitmapset(str, NULL);
3702 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3703 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3704 0 : WRITE_INT_FIELD(path.parallel_workers);
3705 0 : WRITE_FLOAT_FIELD(path.rows);
3706 0 : WRITE_INT_FIELD(path.disabled_nodes);
3707 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3708 0 : WRITE_FLOAT_FIELD(path.total_cost);
3709 0 : WRITE_NODE_FIELD(path.pathkeys);
3710 0 : WRITE_NODE_FIELD(fdw_outerpath);
3711 0 : WRITE_NODE_FIELD(fdw_restrictinfo);
3712 0 : WRITE_NODE_FIELD(fdw_private);
3713 0 : }
3714 :
3715 : static void
3716 0 : _outCustomPath(StringInfo str, const CustomPath *node)
3717 : {
3718 0 : WRITE_NODE_TYPE("CUSTOMPATH");
3719 :
3720 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3721 0 : appendStringInfoString(str, " :parent_relids ");
3722 0 : outBitmapset(str, node->path.parent->relids);
3723 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3724 0 : WRITE_NODE_FIELD(path.pathtarget);
3725 0 : appendStringInfoString(str, " :required_outer ");
3726 0 : if (node->path.param_info)
3727 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3728 : else
3729 0 : outBitmapset(str, NULL);
3730 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3731 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3732 0 : WRITE_INT_FIELD(path.parallel_workers);
3733 0 : WRITE_FLOAT_FIELD(path.rows);
3734 0 : WRITE_INT_FIELD(path.disabled_nodes);
3735 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3736 0 : WRITE_FLOAT_FIELD(path.total_cost);
3737 0 : WRITE_NODE_FIELD(path.pathkeys);
3738 0 : WRITE_UINT_FIELD(flags);
3739 0 : WRITE_NODE_FIELD(custom_paths);
3740 0 : WRITE_NODE_FIELD(custom_restrictinfo);
3741 0 : WRITE_NODE_FIELD(custom_private);
3742 :
3743 : /* CustomName is a key to lookup CustomScanMethods */
3744 0 : appendStringInfoString(str, " :methods ");
3745 0 : outToken(str, node->methods->CustomName);
3746 0 : }
3747 :
3748 : static void
3749 0 : _outAppendPath(StringInfo str, const AppendPath *node)
3750 : {
3751 0 : WRITE_NODE_TYPE("APPENDPATH");
3752 :
3753 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3754 0 : appendStringInfoString(str, " :parent_relids ");
3755 0 : outBitmapset(str, node->path.parent->relids);
3756 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3757 0 : WRITE_NODE_FIELD(path.pathtarget);
3758 0 : appendStringInfoString(str, " :required_outer ");
3759 0 : if (node->path.param_info)
3760 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3761 : else
3762 0 : outBitmapset(str, NULL);
3763 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3764 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3765 0 : WRITE_INT_FIELD(path.parallel_workers);
3766 0 : WRITE_FLOAT_FIELD(path.rows);
3767 0 : WRITE_INT_FIELD(path.disabled_nodes);
3768 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3769 0 : WRITE_FLOAT_FIELD(path.total_cost);
3770 0 : WRITE_NODE_FIELD(path.pathkeys);
3771 0 : WRITE_NODE_FIELD(subpaths);
3772 0 : WRITE_INT_FIELD(first_partial_path);
3773 0 : WRITE_FLOAT_FIELD(limit_tuples);
3774 0 : }
3775 :
3776 : static void
3777 0 : _outMergeAppendPath(StringInfo str, const MergeAppendPath *node)
3778 : {
3779 0 : WRITE_NODE_TYPE("MERGEAPPENDPATH");
3780 :
3781 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3782 0 : appendStringInfoString(str, " :parent_relids ");
3783 0 : outBitmapset(str, node->path.parent->relids);
3784 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3785 0 : WRITE_NODE_FIELD(path.pathtarget);
3786 0 : appendStringInfoString(str, " :required_outer ");
3787 0 : if (node->path.param_info)
3788 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3789 : else
3790 0 : outBitmapset(str, NULL);
3791 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3792 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3793 0 : WRITE_INT_FIELD(path.parallel_workers);
3794 0 : WRITE_FLOAT_FIELD(path.rows);
3795 0 : WRITE_INT_FIELD(path.disabled_nodes);
3796 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3797 0 : WRITE_FLOAT_FIELD(path.total_cost);
3798 0 : WRITE_NODE_FIELD(path.pathkeys);
3799 0 : WRITE_NODE_FIELD(subpaths);
3800 0 : WRITE_FLOAT_FIELD(limit_tuples);
3801 0 : }
3802 :
3803 : static void
3804 0 : _outGroupResultPath(StringInfo str, const GroupResultPath *node)
3805 : {
3806 0 : WRITE_NODE_TYPE("GROUPRESULTPATH");
3807 :
3808 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3809 0 : appendStringInfoString(str, " :parent_relids ");
3810 0 : outBitmapset(str, node->path.parent->relids);
3811 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3812 0 : WRITE_NODE_FIELD(path.pathtarget);
3813 0 : appendStringInfoString(str, " :required_outer ");
3814 0 : if (node->path.param_info)
3815 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3816 : else
3817 0 : outBitmapset(str, NULL);
3818 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3819 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3820 0 : WRITE_INT_FIELD(path.parallel_workers);
3821 0 : WRITE_FLOAT_FIELD(path.rows);
3822 0 : WRITE_INT_FIELD(path.disabled_nodes);
3823 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3824 0 : WRITE_FLOAT_FIELD(path.total_cost);
3825 0 : WRITE_NODE_FIELD(path.pathkeys);
3826 0 : WRITE_NODE_FIELD(quals);
3827 0 : }
3828 :
3829 : static void
3830 0 : _outMaterialPath(StringInfo str, const MaterialPath *node)
3831 : {
3832 0 : WRITE_NODE_TYPE("MATERIALPATH");
3833 :
3834 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3835 0 : appendStringInfoString(str, " :parent_relids ");
3836 0 : outBitmapset(str, node->path.parent->relids);
3837 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3838 0 : WRITE_NODE_FIELD(path.pathtarget);
3839 0 : appendStringInfoString(str, " :required_outer ");
3840 0 : if (node->path.param_info)
3841 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3842 : else
3843 0 : outBitmapset(str, NULL);
3844 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3845 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3846 0 : WRITE_INT_FIELD(path.parallel_workers);
3847 0 : WRITE_FLOAT_FIELD(path.rows);
3848 0 : WRITE_INT_FIELD(path.disabled_nodes);
3849 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3850 0 : WRITE_FLOAT_FIELD(path.total_cost);
3851 0 : WRITE_NODE_FIELD(path.pathkeys);
3852 0 : WRITE_NODE_FIELD(subpath);
3853 0 : }
3854 :
3855 : static void
3856 0 : _outMemoizePath(StringInfo str, const MemoizePath *node)
3857 : {
3858 0 : WRITE_NODE_TYPE("MEMOIZEPATH");
3859 :
3860 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3861 0 : appendStringInfoString(str, " :parent_relids ");
3862 0 : outBitmapset(str, node->path.parent->relids);
3863 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3864 0 : WRITE_NODE_FIELD(path.pathtarget);
3865 0 : appendStringInfoString(str, " :required_outer ");
3866 0 : if (node->path.param_info)
3867 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3868 : else
3869 0 : outBitmapset(str, NULL);
3870 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3871 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3872 0 : WRITE_INT_FIELD(path.parallel_workers);
3873 0 : WRITE_FLOAT_FIELD(path.rows);
3874 0 : WRITE_INT_FIELD(path.disabled_nodes);
3875 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3876 0 : WRITE_FLOAT_FIELD(path.total_cost);
3877 0 : WRITE_NODE_FIELD(path.pathkeys);
3878 0 : WRITE_NODE_FIELD(subpath);
3879 0 : WRITE_NODE_FIELD(hash_operators);
3880 0 : WRITE_NODE_FIELD(param_exprs);
3881 0 : WRITE_BOOL_FIELD(singlerow);
3882 0 : WRITE_BOOL_FIELD(binary_mode);
3883 0 : WRITE_FLOAT_FIELD(calls);
3884 0 : WRITE_UINT_FIELD(est_entries);
3885 0 : }
3886 :
3887 : static void
3888 0 : _outUniquePath(StringInfo str, const UniquePath *node)
3889 : {
3890 0 : WRITE_NODE_TYPE("UNIQUEPATH");
3891 :
3892 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3893 0 : appendStringInfoString(str, " :parent_relids ");
3894 0 : outBitmapset(str, node->path.parent->relids);
3895 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3896 0 : WRITE_NODE_FIELD(path.pathtarget);
3897 0 : appendStringInfoString(str, " :required_outer ");
3898 0 : if (node->path.param_info)
3899 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3900 : else
3901 0 : outBitmapset(str, NULL);
3902 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3903 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3904 0 : WRITE_INT_FIELD(path.parallel_workers);
3905 0 : WRITE_FLOAT_FIELD(path.rows);
3906 0 : WRITE_INT_FIELD(path.disabled_nodes);
3907 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3908 0 : WRITE_FLOAT_FIELD(path.total_cost);
3909 0 : WRITE_NODE_FIELD(path.pathkeys);
3910 0 : WRITE_NODE_FIELD(subpath);
3911 0 : WRITE_ENUM_FIELD(umethod, UniquePathMethod);
3912 0 : WRITE_NODE_FIELD(in_operators);
3913 0 : WRITE_NODE_FIELD(uniq_exprs);
3914 0 : }
3915 :
3916 : static void
3917 0 : _outGatherPath(StringInfo str, const GatherPath *node)
3918 : {
3919 0 : WRITE_NODE_TYPE("GATHERPATH");
3920 :
3921 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3922 0 : appendStringInfoString(str, " :parent_relids ");
3923 0 : outBitmapset(str, node->path.parent->relids);
3924 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3925 0 : WRITE_NODE_FIELD(path.pathtarget);
3926 0 : appendStringInfoString(str, " :required_outer ");
3927 0 : if (node->path.param_info)
3928 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3929 : else
3930 0 : outBitmapset(str, NULL);
3931 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3932 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3933 0 : WRITE_INT_FIELD(path.parallel_workers);
3934 0 : WRITE_FLOAT_FIELD(path.rows);
3935 0 : WRITE_INT_FIELD(path.disabled_nodes);
3936 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3937 0 : WRITE_FLOAT_FIELD(path.total_cost);
3938 0 : WRITE_NODE_FIELD(path.pathkeys);
3939 0 : WRITE_NODE_FIELD(subpath);
3940 0 : WRITE_BOOL_FIELD(single_copy);
3941 0 : WRITE_INT_FIELD(num_workers);
3942 0 : }
3943 :
3944 : static void
3945 0 : _outGatherMergePath(StringInfo str, const GatherMergePath *node)
3946 : {
3947 0 : WRITE_NODE_TYPE("GATHERMERGEPATH");
3948 :
3949 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3950 0 : appendStringInfoString(str, " :parent_relids ");
3951 0 : outBitmapset(str, node->path.parent->relids);
3952 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3953 0 : WRITE_NODE_FIELD(path.pathtarget);
3954 0 : appendStringInfoString(str, " :required_outer ");
3955 0 : if (node->path.param_info)
3956 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3957 : else
3958 0 : outBitmapset(str, NULL);
3959 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3960 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3961 0 : WRITE_INT_FIELD(path.parallel_workers);
3962 0 : WRITE_FLOAT_FIELD(path.rows);
3963 0 : WRITE_INT_FIELD(path.disabled_nodes);
3964 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3965 0 : WRITE_FLOAT_FIELD(path.total_cost);
3966 0 : WRITE_NODE_FIELD(path.pathkeys);
3967 0 : WRITE_NODE_FIELD(subpath);
3968 0 : WRITE_INT_FIELD(num_workers);
3969 0 : }
3970 :
3971 : static void
3972 0 : _outNestPath(StringInfo str, const NestPath *node)
3973 : {
3974 0 : WRITE_NODE_TYPE("NESTPATH");
3975 :
3976 0 : WRITE_ENUM_FIELD(jpath.path.pathtype, NodeTag);
3977 0 : appendStringInfoString(str, " :parent_relids ");
3978 0 : outBitmapset(str, node->jpath.path.parent->relids);
3979 0 : if (node->jpath.path.pathtarget != node->jpath.path.parent->reltarget)
3980 0 : WRITE_NODE_FIELD(jpath.path.pathtarget);
3981 0 : appendStringInfoString(str, " :required_outer ");
3982 0 : if (node->jpath.path.param_info)
3983 0 : outBitmapset(str, node->jpath.path.param_info->ppi_req_outer);
3984 : else
3985 0 : outBitmapset(str, NULL);
3986 0 : WRITE_BOOL_FIELD(jpath.path.parallel_aware);
3987 0 : WRITE_BOOL_FIELD(jpath.path.parallel_safe);
3988 0 : WRITE_INT_FIELD(jpath.path.parallel_workers);
3989 0 : WRITE_FLOAT_FIELD(jpath.path.rows);
3990 0 : WRITE_INT_FIELD(jpath.path.disabled_nodes);
3991 0 : WRITE_FLOAT_FIELD(jpath.path.startup_cost);
3992 0 : WRITE_FLOAT_FIELD(jpath.path.total_cost);
3993 0 : WRITE_NODE_FIELD(jpath.path.pathkeys);
3994 0 : WRITE_ENUM_FIELD(jpath.jointype, JoinType);
3995 0 : WRITE_BOOL_FIELD(jpath.inner_unique);
3996 0 : WRITE_NODE_FIELD(jpath.outerjoinpath);
3997 0 : WRITE_NODE_FIELD(jpath.innerjoinpath);
3998 0 : WRITE_NODE_FIELD(jpath.joinrestrictinfo);
3999 0 : }
4000 :
4001 : static void
4002 0 : _outMergePath(StringInfo str, const MergePath *node)
4003 : {
4004 0 : WRITE_NODE_TYPE("MERGEPATH");
4005 :
4006 0 : WRITE_ENUM_FIELD(jpath.path.pathtype, NodeTag);
4007 0 : appendStringInfoString(str, " :parent_relids ");
4008 0 : outBitmapset(str, node->jpath.path.parent->relids);
4009 0 : if (node->jpath.path.pathtarget != node->jpath.path.parent->reltarget)
4010 0 : WRITE_NODE_FIELD(jpath.path.pathtarget);
4011 0 : appendStringInfoString(str, " :required_outer ");
4012 0 : if (node->jpath.path.param_info)
4013 0 : outBitmapset(str, node->jpath.path.param_info->ppi_req_outer);
4014 : else
4015 0 : outBitmapset(str, NULL);
4016 0 : WRITE_BOOL_FIELD(jpath.path.parallel_aware);
4017 0 : WRITE_BOOL_FIELD(jpath.path.parallel_safe);
4018 0 : WRITE_INT_FIELD(jpath.path.parallel_workers);
4019 0 : WRITE_FLOAT_FIELD(jpath.path.rows);
4020 0 : WRITE_INT_FIELD(jpath.path.disabled_nodes);
4021 0 : WRITE_FLOAT_FIELD(jpath.path.startup_cost);
4022 0 : WRITE_FLOAT_FIELD(jpath.path.total_cost);
4023 0 : WRITE_NODE_FIELD(jpath.path.pathkeys);
4024 0 : WRITE_ENUM_FIELD(jpath.jointype, JoinType);
4025 0 : WRITE_BOOL_FIELD(jpath.inner_unique);
4026 0 : WRITE_NODE_FIELD(jpath.outerjoinpath);
4027 0 : WRITE_NODE_FIELD(jpath.innerjoinpath);
4028 0 : WRITE_NODE_FIELD(jpath.joinrestrictinfo);
4029 0 : WRITE_NODE_FIELD(path_mergeclauses);
4030 0 : WRITE_NODE_FIELD(outersortkeys);
4031 0 : WRITE_NODE_FIELD(innersortkeys);
4032 0 : WRITE_INT_FIELD(outer_presorted_keys);
4033 0 : WRITE_BOOL_FIELD(skip_mark_restore);
4034 0 : WRITE_BOOL_FIELD(materialize_inner);
4035 0 : }
4036 :
4037 : static void
4038 0 : _outHashPath(StringInfo str, const HashPath *node)
4039 : {
4040 0 : WRITE_NODE_TYPE("HASHPATH");
4041 :
4042 0 : WRITE_ENUM_FIELD(jpath.path.pathtype, NodeTag);
4043 0 : appendStringInfoString(str, " :parent_relids ");
4044 0 : outBitmapset(str, node->jpath.path.parent->relids);
4045 0 : if (node->jpath.path.pathtarget != node->jpath.path.parent->reltarget)
4046 0 : WRITE_NODE_FIELD(jpath.path.pathtarget);
4047 0 : appendStringInfoString(str, " :required_outer ");
4048 0 : if (node->jpath.path.param_info)
4049 0 : outBitmapset(str, node->jpath.path.param_info->ppi_req_outer);
4050 : else
4051 0 : outBitmapset(str, NULL);
4052 0 : WRITE_BOOL_FIELD(jpath.path.parallel_aware);
4053 0 : WRITE_BOOL_FIELD(jpath.path.parallel_safe);
4054 0 : WRITE_INT_FIELD(jpath.path.parallel_workers);
4055 0 : WRITE_FLOAT_FIELD(jpath.path.rows);
4056 0 : WRITE_INT_FIELD(jpath.path.disabled_nodes);
4057 0 : WRITE_FLOAT_FIELD(jpath.path.startup_cost);
4058 0 : WRITE_FLOAT_FIELD(jpath.path.total_cost);
4059 0 : WRITE_NODE_FIELD(jpath.path.pathkeys);
4060 0 : WRITE_ENUM_FIELD(jpath.jointype, JoinType);
4061 0 : WRITE_BOOL_FIELD(jpath.inner_unique);
4062 0 : WRITE_NODE_FIELD(jpath.outerjoinpath);
4063 0 : WRITE_NODE_FIELD(jpath.innerjoinpath);
4064 0 : WRITE_NODE_FIELD(jpath.joinrestrictinfo);
4065 0 : WRITE_NODE_FIELD(path_hashclauses);
4066 0 : WRITE_INT_FIELD(num_batches);
4067 0 : WRITE_FLOAT_FIELD(inner_rows_total);
4068 0 : }
4069 :
4070 : static void
4071 0 : _outProjectionPath(StringInfo str, const ProjectionPath *node)
4072 : {
4073 0 : WRITE_NODE_TYPE("PROJECTIONPATH");
4074 :
4075 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4076 0 : appendStringInfoString(str, " :parent_relids ");
4077 0 : outBitmapset(str, node->path.parent->relids);
4078 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4079 0 : WRITE_NODE_FIELD(path.pathtarget);
4080 0 : appendStringInfoString(str, " :required_outer ");
4081 0 : if (node->path.param_info)
4082 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4083 : else
4084 0 : outBitmapset(str, NULL);
4085 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4086 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4087 0 : WRITE_INT_FIELD(path.parallel_workers);
4088 0 : WRITE_FLOAT_FIELD(path.rows);
4089 0 : WRITE_INT_FIELD(path.disabled_nodes);
4090 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4091 0 : WRITE_FLOAT_FIELD(path.total_cost);
4092 0 : WRITE_NODE_FIELD(path.pathkeys);
4093 0 : WRITE_NODE_FIELD(subpath);
4094 0 : WRITE_BOOL_FIELD(dummypp);
4095 0 : }
4096 :
4097 : static void
4098 0 : _outProjectSetPath(StringInfo str, const ProjectSetPath *node)
4099 : {
4100 0 : WRITE_NODE_TYPE("PROJECTSETPATH");
4101 :
4102 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4103 0 : appendStringInfoString(str, " :parent_relids ");
4104 0 : outBitmapset(str, node->path.parent->relids);
4105 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4106 0 : WRITE_NODE_FIELD(path.pathtarget);
4107 0 : appendStringInfoString(str, " :required_outer ");
4108 0 : if (node->path.param_info)
4109 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4110 : else
4111 0 : outBitmapset(str, NULL);
4112 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4113 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4114 0 : WRITE_INT_FIELD(path.parallel_workers);
4115 0 : WRITE_FLOAT_FIELD(path.rows);
4116 0 : WRITE_INT_FIELD(path.disabled_nodes);
4117 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4118 0 : WRITE_FLOAT_FIELD(path.total_cost);
4119 0 : WRITE_NODE_FIELD(path.pathkeys);
4120 0 : WRITE_NODE_FIELD(subpath);
4121 0 : }
4122 :
4123 : static void
4124 0 : _outSortPath(StringInfo str, const SortPath *node)
4125 : {
4126 0 : WRITE_NODE_TYPE("SORTPATH");
4127 :
4128 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4129 0 : appendStringInfoString(str, " :parent_relids ");
4130 0 : outBitmapset(str, node->path.parent->relids);
4131 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4132 0 : WRITE_NODE_FIELD(path.pathtarget);
4133 0 : appendStringInfoString(str, " :required_outer ");
4134 0 : if (node->path.param_info)
4135 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4136 : else
4137 0 : outBitmapset(str, NULL);
4138 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4139 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4140 0 : WRITE_INT_FIELD(path.parallel_workers);
4141 0 : WRITE_FLOAT_FIELD(path.rows);
4142 0 : WRITE_INT_FIELD(path.disabled_nodes);
4143 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4144 0 : WRITE_FLOAT_FIELD(path.total_cost);
4145 0 : WRITE_NODE_FIELD(path.pathkeys);
4146 0 : WRITE_NODE_FIELD(subpath);
4147 0 : }
4148 :
4149 : static void
4150 0 : _outIncrementalSortPath(StringInfo str, const IncrementalSortPath *node)
4151 : {
4152 0 : WRITE_NODE_TYPE("INCREMENTALSORTPATH");
4153 :
4154 0 : WRITE_ENUM_FIELD(spath.path.pathtype, NodeTag);
4155 0 : appendStringInfoString(str, " :parent_relids ");
4156 0 : outBitmapset(str, node->spath.path.parent->relids);
4157 0 : if (node->spath.path.pathtarget != node->spath.path.parent->reltarget)
4158 0 : WRITE_NODE_FIELD(spath.path.pathtarget);
4159 0 : appendStringInfoString(str, " :required_outer ");
4160 0 : if (node->spath.path.param_info)
4161 0 : outBitmapset(str, node->spath.path.param_info->ppi_req_outer);
4162 : else
4163 0 : outBitmapset(str, NULL);
4164 0 : WRITE_BOOL_FIELD(spath.path.parallel_aware);
4165 0 : WRITE_BOOL_FIELD(spath.path.parallel_safe);
4166 0 : WRITE_INT_FIELD(spath.path.parallel_workers);
4167 0 : WRITE_FLOAT_FIELD(spath.path.rows);
4168 0 : WRITE_INT_FIELD(spath.path.disabled_nodes);
4169 0 : WRITE_FLOAT_FIELD(spath.path.startup_cost);
4170 0 : WRITE_FLOAT_FIELD(spath.path.total_cost);
4171 0 : WRITE_NODE_FIELD(spath.path.pathkeys);
4172 0 : WRITE_NODE_FIELD(spath.subpath);
4173 0 : WRITE_INT_FIELD(nPresortedCols);
4174 0 : }
4175 :
4176 : static void
4177 0 : _outGroupPath(StringInfo str, const GroupPath *node)
4178 : {
4179 0 : WRITE_NODE_TYPE("GROUPPATH");
4180 :
4181 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4182 0 : appendStringInfoString(str, " :parent_relids ");
4183 0 : outBitmapset(str, node->path.parent->relids);
4184 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4185 0 : WRITE_NODE_FIELD(path.pathtarget);
4186 0 : appendStringInfoString(str, " :required_outer ");
4187 0 : if (node->path.param_info)
4188 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4189 : else
4190 0 : outBitmapset(str, NULL);
4191 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4192 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4193 0 : WRITE_INT_FIELD(path.parallel_workers);
4194 0 : WRITE_FLOAT_FIELD(path.rows);
4195 0 : WRITE_INT_FIELD(path.disabled_nodes);
4196 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4197 0 : WRITE_FLOAT_FIELD(path.total_cost);
4198 0 : WRITE_NODE_FIELD(path.pathkeys);
4199 0 : WRITE_NODE_FIELD(subpath);
4200 0 : WRITE_NODE_FIELD(groupClause);
4201 0 : WRITE_NODE_FIELD(qual);
4202 0 : }
4203 :
4204 : static void
4205 0 : _outUpperUniquePath(StringInfo str, const UpperUniquePath *node)
4206 : {
4207 0 : WRITE_NODE_TYPE("UPPERUNIQUEPATH");
4208 :
4209 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4210 0 : appendStringInfoString(str, " :parent_relids ");
4211 0 : outBitmapset(str, node->path.parent->relids);
4212 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4213 0 : WRITE_NODE_FIELD(path.pathtarget);
4214 0 : appendStringInfoString(str, " :required_outer ");
4215 0 : if (node->path.param_info)
4216 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4217 : else
4218 0 : outBitmapset(str, NULL);
4219 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4220 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4221 0 : WRITE_INT_FIELD(path.parallel_workers);
4222 0 : WRITE_FLOAT_FIELD(path.rows);
4223 0 : WRITE_INT_FIELD(path.disabled_nodes);
4224 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4225 0 : WRITE_FLOAT_FIELD(path.total_cost);
4226 0 : WRITE_NODE_FIELD(path.pathkeys);
4227 0 : WRITE_NODE_FIELD(subpath);
4228 0 : WRITE_INT_FIELD(numkeys);
4229 0 : }
4230 :
4231 : static void
4232 0 : _outAggPath(StringInfo str, const AggPath *node)
4233 : {
4234 0 : WRITE_NODE_TYPE("AGGPATH");
4235 :
4236 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4237 0 : appendStringInfoString(str, " :parent_relids ");
4238 0 : outBitmapset(str, node->path.parent->relids);
4239 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4240 0 : WRITE_NODE_FIELD(path.pathtarget);
4241 0 : appendStringInfoString(str, " :required_outer ");
4242 0 : if (node->path.param_info)
4243 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4244 : else
4245 0 : outBitmapset(str, NULL);
4246 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4247 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4248 0 : WRITE_INT_FIELD(path.parallel_workers);
4249 0 : WRITE_FLOAT_FIELD(path.rows);
4250 0 : WRITE_INT_FIELD(path.disabled_nodes);
4251 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4252 0 : WRITE_FLOAT_FIELD(path.total_cost);
4253 0 : WRITE_NODE_FIELD(path.pathkeys);
4254 0 : WRITE_NODE_FIELD(subpath);
4255 0 : WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
4256 0 : WRITE_ENUM_FIELD(aggsplit, AggSplit);
4257 0 : WRITE_FLOAT_FIELD(numGroups);
4258 0 : WRITE_UINT64_FIELD(transitionSpace);
4259 0 : WRITE_NODE_FIELD(groupClause);
4260 0 : WRITE_NODE_FIELD(qual);
4261 0 : }
4262 :
4263 : static void
4264 0 : _outGroupingSetData(StringInfo str, const GroupingSetData *node)
4265 : {
4266 0 : WRITE_NODE_TYPE("GROUPINGSETDATA");
4267 :
4268 0 : WRITE_NODE_FIELD(set);
4269 0 : WRITE_FLOAT_FIELD(numGroups);
4270 0 : }
4271 :
4272 : static void
4273 0 : _outRollupData(StringInfo str, const RollupData *node)
4274 : {
4275 0 : WRITE_NODE_TYPE("ROLLUPDATA");
4276 :
4277 0 : WRITE_NODE_FIELD(groupClause);
4278 0 : WRITE_NODE_FIELD(gsets);
4279 0 : WRITE_NODE_FIELD(gsets_data);
4280 0 : WRITE_FLOAT_FIELD(numGroups);
4281 0 : WRITE_BOOL_FIELD(hashable);
4282 0 : WRITE_BOOL_FIELD(is_hashed);
4283 0 : }
4284 :
4285 : static void
4286 0 : _outGroupingSetsPath(StringInfo str, const GroupingSetsPath *node)
4287 : {
4288 0 : WRITE_NODE_TYPE("GROUPINGSETSPATH");
4289 :
4290 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4291 0 : appendStringInfoString(str, " :parent_relids ");
4292 0 : outBitmapset(str, node->path.parent->relids);
4293 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4294 0 : WRITE_NODE_FIELD(path.pathtarget);
4295 0 : appendStringInfoString(str, " :required_outer ");
4296 0 : if (node->path.param_info)
4297 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4298 : else
4299 0 : outBitmapset(str, NULL);
4300 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4301 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4302 0 : WRITE_INT_FIELD(path.parallel_workers);
4303 0 : WRITE_FLOAT_FIELD(path.rows);
4304 0 : WRITE_INT_FIELD(path.disabled_nodes);
4305 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4306 0 : WRITE_FLOAT_FIELD(path.total_cost);
4307 0 : WRITE_NODE_FIELD(path.pathkeys);
4308 0 : WRITE_NODE_FIELD(subpath);
4309 0 : WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
4310 0 : WRITE_NODE_FIELD(rollups);
4311 0 : WRITE_NODE_FIELD(qual);
4312 0 : WRITE_UINT64_FIELD(transitionSpace);
4313 0 : }
4314 :
4315 : static void
4316 0 : _outMinMaxAggPath(StringInfo str, const MinMaxAggPath *node)
4317 : {
4318 0 : WRITE_NODE_TYPE("MINMAXAGGPATH");
4319 :
4320 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4321 0 : appendStringInfoString(str, " :parent_relids ");
4322 0 : outBitmapset(str, node->path.parent->relids);
4323 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4324 0 : WRITE_NODE_FIELD(path.pathtarget);
4325 0 : appendStringInfoString(str, " :required_outer ");
4326 0 : if (node->path.param_info)
4327 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4328 : else
4329 0 : outBitmapset(str, NULL);
4330 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4331 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4332 0 : WRITE_INT_FIELD(path.parallel_workers);
4333 0 : WRITE_FLOAT_FIELD(path.rows);
4334 0 : WRITE_INT_FIELD(path.disabled_nodes);
4335 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4336 0 : WRITE_FLOAT_FIELD(path.total_cost);
4337 0 : WRITE_NODE_FIELD(path.pathkeys);
4338 0 : WRITE_NODE_FIELD(mmaggregates);
4339 0 : WRITE_NODE_FIELD(quals);
4340 0 : }
4341 :
4342 : static void
4343 0 : _outWindowAggPath(StringInfo str, const WindowAggPath *node)
4344 : {
4345 0 : WRITE_NODE_TYPE("WINDOWAGGPATH");
4346 :
4347 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4348 0 : appendStringInfoString(str, " :parent_relids ");
4349 0 : outBitmapset(str, node->path.parent->relids);
4350 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4351 0 : WRITE_NODE_FIELD(path.pathtarget);
4352 0 : appendStringInfoString(str, " :required_outer ");
4353 0 : if (node->path.param_info)
4354 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4355 : else
4356 0 : outBitmapset(str, NULL);
4357 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4358 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4359 0 : WRITE_INT_FIELD(path.parallel_workers);
4360 0 : WRITE_FLOAT_FIELD(path.rows);
4361 0 : WRITE_INT_FIELD(path.disabled_nodes);
4362 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4363 0 : WRITE_FLOAT_FIELD(path.total_cost);
4364 0 : WRITE_NODE_FIELD(path.pathkeys);
4365 0 : WRITE_NODE_FIELD(subpath);
4366 0 : WRITE_NODE_FIELD(winclause);
4367 0 : WRITE_NODE_FIELD(qual);
4368 0 : WRITE_NODE_FIELD(runCondition);
4369 0 : WRITE_BOOL_FIELD(topwindow);
4370 0 : }
4371 :
4372 : static void
4373 0 : _outSetOpPath(StringInfo str, const SetOpPath *node)
4374 : {
4375 0 : WRITE_NODE_TYPE("SETOPPATH");
4376 :
4377 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4378 0 : appendStringInfoString(str, " :parent_relids ");
4379 0 : outBitmapset(str, node->path.parent->relids);
4380 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4381 0 : WRITE_NODE_FIELD(path.pathtarget);
4382 0 : appendStringInfoString(str, " :required_outer ");
4383 0 : if (node->path.param_info)
4384 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4385 : else
4386 0 : outBitmapset(str, NULL);
4387 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4388 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4389 0 : WRITE_INT_FIELD(path.parallel_workers);
4390 0 : WRITE_FLOAT_FIELD(path.rows);
4391 0 : WRITE_INT_FIELD(path.disabled_nodes);
4392 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4393 0 : WRITE_FLOAT_FIELD(path.total_cost);
4394 0 : WRITE_NODE_FIELD(path.pathkeys);
4395 0 : WRITE_NODE_FIELD(leftpath);
4396 0 : WRITE_NODE_FIELD(rightpath);
4397 0 : WRITE_ENUM_FIELD(cmd, SetOpCmd);
4398 0 : WRITE_ENUM_FIELD(strategy, SetOpStrategy);
4399 0 : WRITE_NODE_FIELD(groupList);
4400 0 : WRITE_FLOAT_FIELD(numGroups);
4401 0 : }
4402 :
4403 : static void
4404 0 : _outRecursiveUnionPath(StringInfo str, const RecursiveUnionPath *node)
4405 : {
4406 0 : WRITE_NODE_TYPE("RECURSIVEUNIONPATH");
4407 :
4408 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4409 0 : appendStringInfoString(str, " :parent_relids ");
4410 0 : outBitmapset(str, node->path.parent->relids);
4411 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4412 0 : WRITE_NODE_FIELD(path.pathtarget);
4413 0 : appendStringInfoString(str, " :required_outer ");
4414 0 : if (node->path.param_info)
4415 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4416 : else
4417 0 : outBitmapset(str, NULL);
4418 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4419 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4420 0 : WRITE_INT_FIELD(path.parallel_workers);
4421 0 : WRITE_FLOAT_FIELD(path.rows);
4422 0 : WRITE_INT_FIELD(path.disabled_nodes);
4423 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4424 0 : WRITE_FLOAT_FIELD(path.total_cost);
4425 0 : WRITE_NODE_FIELD(path.pathkeys);
4426 0 : WRITE_NODE_FIELD(leftpath);
4427 0 : WRITE_NODE_FIELD(rightpath);
4428 0 : WRITE_NODE_FIELD(distinctList);
4429 0 : WRITE_INT_FIELD(wtParam);
4430 0 : WRITE_FLOAT_FIELD(numGroups);
4431 0 : }
4432 :
4433 : static void
4434 0 : _outLockRowsPath(StringInfo str, const LockRowsPath *node)
4435 : {
4436 0 : WRITE_NODE_TYPE("LOCKROWSPATH");
4437 :
4438 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4439 0 : appendStringInfoString(str, " :parent_relids ");
4440 0 : outBitmapset(str, node->path.parent->relids);
4441 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4442 0 : WRITE_NODE_FIELD(path.pathtarget);
4443 0 : appendStringInfoString(str, " :required_outer ");
4444 0 : if (node->path.param_info)
4445 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4446 : else
4447 0 : outBitmapset(str, NULL);
4448 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4449 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4450 0 : WRITE_INT_FIELD(path.parallel_workers);
4451 0 : WRITE_FLOAT_FIELD(path.rows);
4452 0 : WRITE_INT_FIELD(path.disabled_nodes);
4453 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4454 0 : WRITE_FLOAT_FIELD(path.total_cost);
4455 0 : WRITE_NODE_FIELD(path.pathkeys);
4456 0 : WRITE_NODE_FIELD(subpath);
4457 0 : WRITE_NODE_FIELD(rowMarks);
4458 0 : WRITE_INT_FIELD(epqParam);
4459 0 : }
4460 :
4461 : static void
4462 0 : _outModifyTablePath(StringInfo str, const ModifyTablePath *node)
4463 : {
4464 0 : WRITE_NODE_TYPE("MODIFYTABLEPATH");
4465 :
4466 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4467 0 : appendStringInfoString(str, " :parent_relids ");
4468 0 : outBitmapset(str, node->path.parent->relids);
4469 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4470 0 : WRITE_NODE_FIELD(path.pathtarget);
4471 0 : appendStringInfoString(str, " :required_outer ");
4472 0 : if (node->path.param_info)
4473 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4474 : else
4475 0 : outBitmapset(str, NULL);
4476 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4477 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4478 0 : WRITE_INT_FIELD(path.parallel_workers);
4479 0 : WRITE_FLOAT_FIELD(path.rows);
4480 0 : WRITE_INT_FIELD(path.disabled_nodes);
4481 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4482 0 : WRITE_FLOAT_FIELD(path.total_cost);
4483 0 : WRITE_NODE_FIELD(path.pathkeys);
4484 0 : WRITE_NODE_FIELD(subpath);
4485 0 : WRITE_ENUM_FIELD(operation, CmdType);
4486 0 : WRITE_BOOL_FIELD(canSetTag);
4487 0 : WRITE_UINT_FIELD(nominalRelation);
4488 0 : WRITE_UINT_FIELD(rootRelation);
4489 0 : WRITE_BOOL_FIELD(partColsUpdated);
4490 0 : WRITE_NODE_FIELD(resultRelations);
4491 0 : WRITE_NODE_FIELD(updateColnosLists);
4492 0 : WRITE_NODE_FIELD(withCheckOptionLists);
4493 0 : WRITE_NODE_FIELD(returningLists);
4494 0 : WRITE_NODE_FIELD(rowMarks);
4495 0 : WRITE_NODE_FIELD(onconflict);
4496 0 : WRITE_INT_FIELD(epqParam);
4497 0 : WRITE_NODE_FIELD(mergeActionLists);
4498 0 : WRITE_NODE_FIELD(mergeJoinConditions);
4499 0 : }
4500 :
4501 : static void
4502 0 : _outLimitPath(StringInfo str, const LimitPath *node)
4503 : {
4504 0 : WRITE_NODE_TYPE("LIMITPATH");
4505 :
4506 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4507 0 : appendStringInfoString(str, " :parent_relids ");
4508 0 : outBitmapset(str, node->path.parent->relids);
4509 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4510 0 : WRITE_NODE_FIELD(path.pathtarget);
4511 0 : appendStringInfoString(str, " :required_outer ");
4512 0 : if (node->path.param_info)
4513 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4514 : else
4515 0 : outBitmapset(str, NULL);
4516 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4517 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4518 0 : WRITE_INT_FIELD(path.parallel_workers);
4519 0 : WRITE_FLOAT_FIELD(path.rows);
4520 0 : WRITE_INT_FIELD(path.disabled_nodes);
4521 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4522 0 : WRITE_FLOAT_FIELD(path.total_cost);
4523 0 : WRITE_NODE_FIELD(path.pathkeys);
4524 0 : WRITE_NODE_FIELD(subpath);
4525 0 : WRITE_NODE_FIELD(limitOffset);
4526 0 : WRITE_NODE_FIELD(limitCount);
4527 0 : WRITE_ENUM_FIELD(limitOption, LimitOption);
4528 0 : }
4529 :
4530 : static void
4531 0 : _outRestrictInfo(StringInfo str, const RestrictInfo *node)
4532 : {
4533 0 : WRITE_NODE_TYPE("RESTRICTINFO");
4534 :
4535 0 : WRITE_NODE_FIELD(clause);
4536 0 : WRITE_BOOL_FIELD(is_pushed_down);
4537 0 : WRITE_BOOL_FIELD(can_join);
4538 0 : WRITE_BOOL_FIELD(pseudoconstant);
4539 0 : WRITE_BOOL_FIELD(has_clone);
4540 0 : WRITE_BOOL_FIELD(is_clone);
4541 0 : WRITE_BOOL_FIELD(leakproof);
4542 0 : WRITE_ENUM_FIELD(has_volatile, VolatileFunctionStatus);
4543 0 : WRITE_UINT_FIELD(security_level);
4544 0 : WRITE_INT_FIELD(num_base_rels);
4545 0 : WRITE_BITMAPSET_FIELD(clause_relids);
4546 0 : WRITE_BITMAPSET_FIELD(required_relids);
4547 0 : WRITE_BITMAPSET_FIELD(incompatible_relids);
4548 0 : WRITE_BITMAPSET_FIELD(outer_relids);
4549 0 : WRITE_BITMAPSET_FIELD(left_relids);
4550 0 : WRITE_BITMAPSET_FIELD(right_relids);
4551 0 : WRITE_NODE_FIELD(orclause);
4552 0 : WRITE_INT_FIELD(rinfo_serial);
4553 0 : WRITE_FLOAT_FIELD(eval_cost.startup);
4554 0 : WRITE_FLOAT_FIELD(eval_cost.per_tuple);
4555 0 : WRITE_FLOAT_FIELD(norm_selec);
4556 0 : WRITE_FLOAT_FIELD(outer_selec);
4557 0 : WRITE_NODE_FIELD(mergeopfamilies);
4558 0 : WRITE_NODE_FIELD(left_em);
4559 0 : WRITE_NODE_FIELD(right_em);
4560 0 : WRITE_BOOL_FIELD(outer_is_left);
4561 0 : WRITE_OID_FIELD(hashjoinoperator);
4562 0 : WRITE_FLOAT_FIELD(left_bucketsize);
4563 0 : WRITE_FLOAT_FIELD(right_bucketsize);
4564 0 : WRITE_FLOAT_FIELD(left_mcvfreq);
4565 0 : WRITE_FLOAT_FIELD(right_mcvfreq);
4566 0 : WRITE_OID_FIELD(left_hasheqoperator);
4567 0 : WRITE_OID_FIELD(right_hasheqoperator);
4568 0 : }
4569 :
4570 : static void
4571 0 : _outPlaceHolderVar(StringInfo str, const PlaceHolderVar *node)
4572 : {
4573 0 : WRITE_NODE_TYPE("PLACEHOLDERVAR");
4574 :
4575 0 : WRITE_NODE_FIELD(phexpr);
4576 0 : WRITE_BITMAPSET_FIELD(phrels);
4577 0 : WRITE_BITMAPSET_FIELD(phnullingrels);
4578 0 : WRITE_UINT_FIELD(phid);
4579 0 : WRITE_UINT_FIELD(phlevelsup);
4580 0 : }
4581 :
4582 : static void
4583 0 : _outSpecialJoinInfo(StringInfo str, const SpecialJoinInfo *node)
4584 : {
4585 0 : WRITE_NODE_TYPE("SPECIALJOININFO");
4586 :
4587 0 : WRITE_BITMAPSET_FIELD(min_lefthand);
4588 0 : WRITE_BITMAPSET_FIELD(min_righthand);
4589 0 : WRITE_BITMAPSET_FIELD(syn_lefthand);
4590 0 : WRITE_BITMAPSET_FIELD(syn_righthand);
4591 0 : WRITE_ENUM_FIELD(jointype, JoinType);
4592 0 : WRITE_UINT_FIELD(ojrelid);
4593 0 : WRITE_BITMAPSET_FIELD(commute_above_l);
4594 0 : WRITE_BITMAPSET_FIELD(commute_above_r);
4595 0 : WRITE_BITMAPSET_FIELD(commute_below_l);
4596 0 : WRITE_BITMAPSET_FIELD(commute_below_r);
4597 0 : WRITE_BOOL_FIELD(lhs_strict);
4598 0 : WRITE_BOOL_FIELD(semi_can_btree);
4599 0 : WRITE_BOOL_FIELD(semi_can_hash);
4600 0 : WRITE_NODE_FIELD(semi_operators);
4601 0 : WRITE_NODE_FIELD(semi_rhs_exprs);
4602 0 : }
4603 :
4604 : static void
4605 0 : _outOuterJoinClauseInfo(StringInfo str, const OuterJoinClauseInfo *node)
4606 : {
4607 0 : WRITE_NODE_TYPE("OUTERJOINCLAUSEINFO");
4608 :
4609 0 : WRITE_NODE_FIELD(rinfo);
4610 0 : WRITE_NODE_FIELD(sjinfo);
4611 0 : }
4612 :
4613 : static void
4614 50340 : _outAppendRelInfo(StringInfo str, const AppendRelInfo *node)
4615 : {
4616 50340 : WRITE_NODE_TYPE("APPENDRELINFO");
4617 :
4618 50340 : WRITE_UINT_FIELD(parent_relid);
4619 50340 : WRITE_UINT_FIELD(child_relid);
4620 50340 : WRITE_OID_FIELD(parent_reltype);
4621 50340 : WRITE_OID_FIELD(child_reltype);
4622 50340 : WRITE_NODE_FIELD(translated_vars);
4623 50340 : WRITE_INT_FIELD(num_child_cols);
4624 50340 : WRITE_ATTRNUMBER_ARRAY(parent_colnos, node->num_child_cols);
4625 50340 : WRITE_OID_FIELD(parent_reloid);
4626 50340 : }
4627 :
4628 : static void
4629 0 : _outRowIdentityVarInfo(StringInfo str, const RowIdentityVarInfo *node)
4630 : {
4631 0 : WRITE_NODE_TYPE("ROWIDENTITYVARINFO");
4632 :
4633 0 : WRITE_NODE_FIELD(rowidvar);
4634 0 : WRITE_INT_FIELD(rowidwidth);
4635 0 : WRITE_STRING_FIELD(rowidname);
4636 0 : WRITE_BITMAPSET_FIELD(rowidrels);
4637 0 : }
4638 :
4639 : static void
4640 0 : _outPlaceHolderInfo(StringInfo str, const PlaceHolderInfo *node)
4641 : {
4642 0 : WRITE_NODE_TYPE("PLACEHOLDERINFO");
4643 :
4644 0 : WRITE_UINT_FIELD(phid);
4645 0 : WRITE_NODE_FIELD(ph_var);
4646 0 : WRITE_BITMAPSET_FIELD(ph_eval_at);
4647 0 : WRITE_BITMAPSET_FIELD(ph_lateral);
4648 0 : WRITE_BITMAPSET_FIELD(ph_needed);
4649 0 : WRITE_INT_FIELD(ph_width);
4650 0 : }
4651 :
4652 : static void
4653 0 : _outMinMaxAggInfo(StringInfo str, const MinMaxAggInfo *node)
4654 : {
4655 0 : WRITE_NODE_TYPE("MINMAXAGGINFO");
4656 :
4657 0 : WRITE_OID_FIELD(aggfnoid);
4658 0 : WRITE_OID_FIELD(aggsortop);
4659 0 : WRITE_NODE_FIELD(target);
4660 0 : WRITE_NODE_FIELD(path);
4661 0 : WRITE_FLOAT_FIELD(pathcost);
4662 0 : WRITE_NODE_FIELD(param);
4663 0 : }
4664 :
4665 : static void
4666 0 : _outPlannerParamItem(StringInfo str, const PlannerParamItem *node)
4667 : {
4668 0 : WRITE_NODE_TYPE("PLANNERPARAMITEM");
4669 :
4670 0 : WRITE_NODE_FIELD(item);
4671 0 : WRITE_INT_FIELD(paramId);
4672 0 : }
4673 :
4674 : static void
4675 0 : _outAggInfo(StringInfo str, const AggInfo *node)
4676 : {
4677 0 : WRITE_NODE_TYPE("AGGINFO");
4678 :
4679 0 : WRITE_NODE_FIELD(aggrefs);
4680 0 : WRITE_INT_FIELD(transno);
4681 0 : WRITE_BOOL_FIELD(shareable);
4682 0 : WRITE_OID_FIELD(finalfn_oid);
4683 0 : }
4684 :
4685 : static void
4686 0 : _outAggTransInfo(StringInfo str, const AggTransInfo *node)
4687 : {
4688 0 : WRITE_NODE_TYPE("AGGTRANSINFO");
4689 :
4690 0 : WRITE_NODE_FIELD(args);
4691 0 : WRITE_NODE_FIELD(aggfilter);
4692 0 : WRITE_OID_FIELD(transfn_oid);
4693 0 : WRITE_OID_FIELD(serialfn_oid);
4694 0 : WRITE_OID_FIELD(deserialfn_oid);
4695 0 : WRITE_OID_FIELD(combinefn_oid);
4696 0 : WRITE_OID_FIELD(aggtranstype);
4697 0 : WRITE_INT_FIELD(aggtranstypmod);
4698 0 : WRITE_INT_FIELD(transtypeLen);
4699 0 : WRITE_BOOL_FIELD(transtypeByVal);
4700 0 : WRITE_INT_FIELD(aggtransspace);
4701 0 : WRITE_BOOL_FIELD(initValueIsNull);
4702 0 : }
4703 :
4704 : static void
4705 0 : _outUniqueRelInfo(StringInfo str, const UniqueRelInfo *node)
4706 : {
4707 0 : WRITE_NODE_TYPE("UNIQUERELINFO");
4708 :
4709 0 : WRITE_BITMAPSET_FIELD(outerrelids);
4710 0 : WRITE_BOOL_FIELD(self_join);
4711 0 : WRITE_NODE_FIELD(extra_clauses);
4712 0 : }
4713 :
4714 : static void
4715 452348 : _outPlannedStmt(StringInfo str, const PlannedStmt *node)
4716 : {
4717 452348 : WRITE_NODE_TYPE("PLANNEDSTMT");
4718 :
4719 452348 : WRITE_ENUM_FIELD(commandType, CmdType);
4720 452348 : WRITE_INT64_FIELD(queryId);
4721 452348 : WRITE_INT64_FIELD(planId);
4722 452348 : WRITE_BOOL_FIELD(hasReturning);
4723 452348 : WRITE_BOOL_FIELD(hasModifyingCTE);
4724 452348 : WRITE_BOOL_FIELD(canSetTag);
4725 452348 : WRITE_BOOL_FIELD(transientPlan);
4726 452348 : WRITE_BOOL_FIELD(dependsOnRole);
4727 452348 : WRITE_BOOL_FIELD(parallelModeNeeded);
4728 452348 : WRITE_INT_FIELD(jitFlags);
4729 452348 : WRITE_NODE_FIELD(planTree);
4730 452348 : WRITE_NODE_FIELD(partPruneInfos);
4731 452348 : WRITE_NODE_FIELD(rtable);
4732 452348 : WRITE_BITMAPSET_FIELD(unprunableRelids);
4733 452348 : WRITE_NODE_FIELD(permInfos);
4734 452348 : WRITE_NODE_FIELD(resultRelations);
4735 452348 : WRITE_NODE_FIELD(appendRelations);
4736 452348 : WRITE_NODE_FIELD(subplans);
4737 452348 : WRITE_BITMAPSET_FIELD(rewindPlanIDs);
4738 452348 : WRITE_NODE_FIELD(rowMarks);
4739 452348 : WRITE_NODE_FIELD(relationOids);
4740 452348 : WRITE_NODE_FIELD(invalItems);
4741 452348 : WRITE_NODE_FIELD(paramExecTypes);
4742 452348 : WRITE_NODE_FIELD(utilityStmt);
4743 452348 : WRITE_LOCATION_FIELD(stmt_location);
4744 452348 : WRITE_LOCATION_FIELD(stmt_len);
4745 452348 : }
4746 :
4747 : static void
4748 210716 : _outResult(StringInfo str, const Result *node)
4749 : {
4750 210716 : WRITE_NODE_TYPE("RESULT");
4751 :
4752 210716 : WRITE_INT_FIELD(plan.disabled_nodes);
4753 210716 : WRITE_FLOAT_FIELD(plan.startup_cost);
4754 210716 : WRITE_FLOAT_FIELD(plan.total_cost);
4755 210716 : WRITE_FLOAT_FIELD(plan.plan_rows);
4756 210716 : WRITE_INT_FIELD(plan.plan_width);
4757 210716 : WRITE_BOOL_FIELD(plan.parallel_aware);
4758 210716 : WRITE_BOOL_FIELD(plan.parallel_safe);
4759 210716 : WRITE_BOOL_FIELD(plan.async_capable);
4760 210716 : WRITE_INT_FIELD(plan.plan_node_id);
4761 210716 : WRITE_NODE_FIELD(plan.targetlist);
4762 210716 : WRITE_NODE_FIELD(plan.qual);
4763 210716 : WRITE_NODE_FIELD(plan.lefttree);
4764 210716 : WRITE_NODE_FIELD(plan.righttree);
4765 210716 : WRITE_NODE_FIELD(plan.initPlan);
4766 210716 : WRITE_BITMAPSET_FIELD(plan.extParam);
4767 210716 : WRITE_BITMAPSET_FIELD(plan.allParam);
4768 210716 : WRITE_NODE_FIELD(resconstantqual);
4769 210716 : }
4770 :
4771 : static void
4772 12064 : _outProjectSet(StringInfo str, const ProjectSet *node)
4773 : {
4774 12064 : WRITE_NODE_TYPE("PROJECTSET");
4775 :
4776 12064 : WRITE_INT_FIELD(plan.disabled_nodes);
4777 12064 : WRITE_FLOAT_FIELD(plan.startup_cost);
4778 12064 : WRITE_FLOAT_FIELD(plan.total_cost);
4779 12064 : WRITE_FLOAT_FIELD(plan.plan_rows);
4780 12064 : WRITE_INT_FIELD(plan.plan_width);
4781 12064 : WRITE_BOOL_FIELD(plan.parallel_aware);
4782 12064 : WRITE_BOOL_FIELD(plan.parallel_safe);
4783 12064 : WRITE_BOOL_FIELD(plan.async_capable);
4784 12064 : WRITE_INT_FIELD(plan.plan_node_id);
4785 12064 : WRITE_NODE_FIELD(plan.targetlist);
4786 12064 : WRITE_NODE_FIELD(plan.qual);
4787 12064 : WRITE_NODE_FIELD(plan.lefttree);
4788 12064 : WRITE_NODE_FIELD(plan.righttree);
4789 12064 : WRITE_NODE_FIELD(plan.initPlan);
4790 12064 : WRITE_BITMAPSET_FIELD(plan.extParam);
4791 12064 : WRITE_BITMAPSET_FIELD(plan.allParam);
4792 12064 : }
4793 :
4794 : static void
4795 89920 : _outModifyTable(StringInfo str, const ModifyTable *node)
4796 : {
4797 89920 : WRITE_NODE_TYPE("MODIFYTABLE");
4798 :
4799 89920 : WRITE_INT_FIELD(plan.disabled_nodes);
4800 89920 : WRITE_FLOAT_FIELD(plan.startup_cost);
4801 89920 : WRITE_FLOAT_FIELD(plan.total_cost);
4802 89920 : WRITE_FLOAT_FIELD(plan.plan_rows);
4803 89920 : WRITE_INT_FIELD(plan.plan_width);
4804 89920 : WRITE_BOOL_FIELD(plan.parallel_aware);
4805 89920 : WRITE_BOOL_FIELD(plan.parallel_safe);
4806 89920 : WRITE_BOOL_FIELD(plan.async_capable);
4807 89920 : WRITE_INT_FIELD(plan.plan_node_id);
4808 89920 : WRITE_NODE_FIELD(plan.targetlist);
4809 89920 : WRITE_NODE_FIELD(plan.qual);
4810 89920 : WRITE_NODE_FIELD(plan.lefttree);
4811 89920 : WRITE_NODE_FIELD(plan.righttree);
4812 89920 : WRITE_NODE_FIELD(plan.initPlan);
4813 89920 : WRITE_BITMAPSET_FIELD(plan.extParam);
4814 89920 : WRITE_BITMAPSET_FIELD(plan.allParam);
4815 89920 : WRITE_ENUM_FIELD(operation, CmdType);
4816 89920 : WRITE_BOOL_FIELD(canSetTag);
4817 89920 : WRITE_UINT_FIELD(nominalRelation);
4818 89920 : WRITE_UINT_FIELD(rootRelation);
4819 89920 : WRITE_BOOL_FIELD(partColsUpdated);
4820 89920 : WRITE_NODE_FIELD(resultRelations);
4821 89920 : WRITE_NODE_FIELD(updateColnosLists);
4822 89920 : WRITE_NODE_FIELD(withCheckOptionLists);
4823 89920 : WRITE_STRING_FIELD(returningOldAlias);
4824 89920 : WRITE_STRING_FIELD(returningNewAlias);
4825 89920 : WRITE_NODE_FIELD(returningLists);
4826 89920 : WRITE_NODE_FIELD(fdwPrivLists);
4827 89920 : WRITE_BITMAPSET_FIELD(fdwDirectModifyPlans);
4828 89920 : WRITE_NODE_FIELD(rowMarks);
4829 89920 : WRITE_INT_FIELD(epqParam);
4830 89920 : WRITE_ENUM_FIELD(onConflictAction, OnConflictAction);
4831 89920 : WRITE_NODE_FIELD(arbiterIndexes);
4832 89920 : WRITE_NODE_FIELD(onConflictSet);
4833 89920 : WRITE_NODE_FIELD(onConflictCols);
4834 89920 : WRITE_NODE_FIELD(onConflictWhere);
4835 89920 : WRITE_UINT_FIELD(exclRelRTI);
4836 89920 : WRITE_NODE_FIELD(exclRelTlist);
4837 89920 : WRITE_NODE_FIELD(mergeActionLists);
4838 89920 : WRITE_NODE_FIELD(mergeJoinConditions);
4839 89920 : }
4840 :
4841 : static void
4842 16988 : _outAppend(StringInfo str, const Append *node)
4843 : {
4844 16988 : WRITE_NODE_TYPE("APPEND");
4845 :
4846 16988 : WRITE_INT_FIELD(plan.disabled_nodes);
4847 16988 : WRITE_FLOAT_FIELD(plan.startup_cost);
4848 16988 : WRITE_FLOAT_FIELD(plan.total_cost);
4849 16988 : WRITE_FLOAT_FIELD(plan.plan_rows);
4850 16988 : WRITE_INT_FIELD(plan.plan_width);
4851 16988 : WRITE_BOOL_FIELD(plan.parallel_aware);
4852 16988 : WRITE_BOOL_FIELD(plan.parallel_safe);
4853 16988 : WRITE_BOOL_FIELD(plan.async_capable);
4854 16988 : WRITE_INT_FIELD(plan.plan_node_id);
4855 16988 : WRITE_NODE_FIELD(plan.targetlist);
4856 16988 : WRITE_NODE_FIELD(plan.qual);
4857 16988 : WRITE_NODE_FIELD(plan.lefttree);
4858 16988 : WRITE_NODE_FIELD(plan.righttree);
4859 16988 : WRITE_NODE_FIELD(plan.initPlan);
4860 16988 : WRITE_BITMAPSET_FIELD(plan.extParam);
4861 16988 : WRITE_BITMAPSET_FIELD(plan.allParam);
4862 16988 : WRITE_BITMAPSET_FIELD(apprelids);
4863 16988 : WRITE_NODE_FIELD(appendplans);
4864 16988 : WRITE_INT_FIELD(nasyncplans);
4865 16988 : WRITE_INT_FIELD(first_partial_plan);
4866 16988 : WRITE_INT_FIELD(part_prune_index);
4867 16988 : }
4868 :
4869 : static void
4870 526 : _outMergeAppend(StringInfo str, const MergeAppend *node)
4871 : {
4872 526 : WRITE_NODE_TYPE("MERGEAPPEND");
4873 :
4874 526 : WRITE_INT_FIELD(plan.disabled_nodes);
4875 526 : WRITE_FLOAT_FIELD(plan.startup_cost);
4876 526 : WRITE_FLOAT_FIELD(plan.total_cost);
4877 526 : WRITE_FLOAT_FIELD(plan.plan_rows);
4878 526 : WRITE_INT_FIELD(plan.plan_width);
4879 526 : WRITE_BOOL_FIELD(plan.parallel_aware);
4880 526 : WRITE_BOOL_FIELD(plan.parallel_safe);
4881 526 : WRITE_BOOL_FIELD(plan.async_capable);
4882 526 : WRITE_INT_FIELD(plan.plan_node_id);
4883 526 : WRITE_NODE_FIELD(plan.targetlist);
4884 526 : WRITE_NODE_FIELD(plan.qual);
4885 526 : WRITE_NODE_FIELD(plan.lefttree);
4886 526 : WRITE_NODE_FIELD(plan.righttree);
4887 526 : WRITE_NODE_FIELD(plan.initPlan);
4888 526 : WRITE_BITMAPSET_FIELD(plan.extParam);
4889 526 : WRITE_BITMAPSET_FIELD(plan.allParam);
4890 526 : WRITE_BITMAPSET_FIELD(apprelids);
4891 526 : WRITE_NODE_FIELD(mergeplans);
4892 526 : WRITE_INT_FIELD(numCols);
4893 526 : WRITE_ATTRNUMBER_ARRAY(sortColIdx, node->numCols);
4894 526 : WRITE_OID_ARRAY(sortOperators, node->numCols);
4895 526 : WRITE_OID_ARRAY(collations, node->numCols);
4896 526 : WRITE_BOOL_ARRAY(nullsFirst, node->numCols);
4897 526 : WRITE_INT_FIELD(part_prune_index);
4898 526 : }
4899 :
4900 : static void
4901 1000 : _outRecursiveUnion(StringInfo str, const RecursiveUnion *node)
4902 : {
4903 1000 : WRITE_NODE_TYPE("RECURSIVEUNION");
4904 :
4905 1000 : WRITE_INT_FIELD(plan.disabled_nodes);
4906 1000 : WRITE_FLOAT_FIELD(plan.startup_cost);
4907 1000 : WRITE_FLOAT_FIELD(plan.total_cost);
4908 1000 : WRITE_FLOAT_FIELD(plan.plan_rows);
4909 1000 : WRITE_INT_FIELD(plan.plan_width);
4910 1000 : WRITE_BOOL_FIELD(plan.parallel_aware);
4911 1000 : WRITE_BOOL_FIELD(plan.parallel_safe);
4912 1000 : WRITE_BOOL_FIELD(plan.async_capable);
4913 1000 : WRITE_INT_FIELD(plan.plan_node_id);
4914 1000 : WRITE_NODE_FIELD(plan.targetlist);
4915 1000 : WRITE_NODE_FIELD(plan.qual);
4916 1000 : WRITE_NODE_FIELD(plan.lefttree);
4917 1000 : WRITE_NODE_FIELD(plan.righttree);
4918 1000 : WRITE_NODE_FIELD(plan.initPlan);
4919 1000 : WRITE_BITMAPSET_FIELD(plan.extParam);
4920 1000 : WRITE_BITMAPSET_FIELD(plan.allParam);
4921 1000 : WRITE_INT_FIELD(wtParam);
4922 1000 : WRITE_INT_FIELD(numCols);
4923 1000 : WRITE_ATTRNUMBER_ARRAY(dupColIdx, node->numCols);
4924 1000 : WRITE_OID_ARRAY(dupOperators, node->numCols);
4925 1000 : WRITE_OID_ARRAY(dupCollations, node->numCols);
4926 1000 : WRITE_LONG_FIELD(numGroups);
4927 1000 : }
4928 :
4929 : static void
4930 226 : _outBitmapAnd(StringInfo str, const BitmapAnd *node)
4931 : {
4932 226 : WRITE_NODE_TYPE("BITMAPAND");
4933 :
4934 226 : WRITE_INT_FIELD(plan.disabled_nodes);
4935 226 : WRITE_FLOAT_FIELD(plan.startup_cost);
4936 226 : WRITE_FLOAT_FIELD(plan.total_cost);
4937 226 : WRITE_FLOAT_FIELD(plan.plan_rows);
4938 226 : WRITE_INT_FIELD(plan.plan_width);
4939 226 : WRITE_BOOL_FIELD(plan.parallel_aware);
4940 226 : WRITE_BOOL_FIELD(plan.parallel_safe);
4941 226 : WRITE_BOOL_FIELD(plan.async_capable);
4942 226 : WRITE_INT_FIELD(plan.plan_node_id);
4943 226 : WRITE_NODE_FIELD(plan.targetlist);
4944 226 : WRITE_NODE_FIELD(plan.qual);
4945 226 : WRITE_NODE_FIELD(plan.lefttree);
4946 226 : WRITE_NODE_FIELD(plan.righttree);
4947 226 : WRITE_NODE_FIELD(plan.initPlan);
4948 226 : WRITE_BITMAPSET_FIELD(plan.extParam);
4949 226 : WRITE_BITMAPSET_FIELD(plan.allParam);
4950 226 : WRITE_NODE_FIELD(bitmapplans);
4951 226 : }
4952 :
4953 : static void
4954 396 : _outBitmapOr(StringInfo str, const BitmapOr *node)
4955 : {
4956 396 : WRITE_NODE_TYPE("BITMAPOR");
4957 :
4958 396 : WRITE_INT_FIELD(plan.disabled_nodes);
4959 396 : WRITE_FLOAT_FIELD(plan.startup_cost);
4960 396 : WRITE_FLOAT_FIELD(plan.total_cost);
4961 396 : WRITE_FLOAT_FIELD(plan.plan_rows);
4962 396 : WRITE_INT_FIELD(plan.plan_width);
4963 396 : WRITE_BOOL_FIELD(plan.parallel_aware);
4964 396 : WRITE_BOOL_FIELD(plan.parallel_safe);
4965 396 : WRITE_BOOL_FIELD(plan.async_capable);
4966 396 : WRITE_INT_FIELD(plan.plan_node_id);
4967 396 : WRITE_NODE_FIELD(plan.targetlist);
4968 396 : WRITE_NODE_FIELD(plan.qual);
4969 396 : WRITE_NODE_FIELD(plan.lefttree);
4970 396 : WRITE_NODE_FIELD(plan.righttree);
4971 396 : WRITE_NODE_FIELD(plan.initPlan);
4972 396 : WRITE_BITMAPSET_FIELD(plan.extParam);
4973 396 : WRITE_BITMAPSET_FIELD(plan.allParam);
4974 396 : WRITE_BOOL_FIELD(isshared);
4975 396 : WRITE_NODE_FIELD(bitmapplans);
4976 396 : }
4977 :
4978 : static void
4979 215758 : _outSeqScan(StringInfo str, const SeqScan *node)
4980 : {
4981 215758 : WRITE_NODE_TYPE("SEQSCAN");
4982 :
4983 215758 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
4984 215758 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
4985 215758 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
4986 215758 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
4987 215758 : WRITE_INT_FIELD(scan.plan.plan_width);
4988 215758 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
4989 215758 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
4990 215758 : WRITE_BOOL_FIELD(scan.plan.async_capable);
4991 215758 : WRITE_INT_FIELD(scan.plan.plan_node_id);
4992 215758 : WRITE_NODE_FIELD(scan.plan.targetlist);
4993 215758 : WRITE_NODE_FIELD(scan.plan.qual);
4994 215758 : WRITE_NODE_FIELD(scan.plan.lefttree);
4995 215758 : WRITE_NODE_FIELD(scan.plan.righttree);
4996 215758 : WRITE_NODE_FIELD(scan.plan.initPlan);
4997 215758 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
4998 215758 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
4999 215758 : WRITE_UINT_FIELD(scan.scanrelid);
5000 215758 : }
5001 :
5002 : static void
5003 306 : _outSampleScan(StringInfo str, const SampleScan *node)
5004 : {
5005 306 : WRITE_NODE_TYPE("SAMPLESCAN");
5006 :
5007 306 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5008 306 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5009 306 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5010 306 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5011 306 : WRITE_INT_FIELD(scan.plan.plan_width);
5012 306 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5013 306 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5014 306 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5015 306 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5016 306 : WRITE_NODE_FIELD(scan.plan.targetlist);
5017 306 : WRITE_NODE_FIELD(scan.plan.qual);
5018 306 : WRITE_NODE_FIELD(scan.plan.lefttree);
5019 306 : WRITE_NODE_FIELD(scan.plan.righttree);
5020 306 : WRITE_NODE_FIELD(scan.plan.initPlan);
5021 306 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5022 306 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5023 306 : WRITE_UINT_FIELD(scan.scanrelid);
5024 306 : WRITE_NODE_FIELD(tablesample);
5025 306 : }
5026 :
5027 : static void
5028 142926 : _outIndexScan(StringInfo str, const IndexScan *node)
5029 : {
5030 142926 : WRITE_NODE_TYPE("INDEXSCAN");
5031 :
5032 142926 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5033 142926 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5034 142926 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5035 142926 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5036 142926 : WRITE_INT_FIELD(scan.plan.plan_width);
5037 142926 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5038 142926 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5039 142926 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5040 142926 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5041 142926 : WRITE_NODE_FIELD(scan.plan.targetlist);
5042 142926 : WRITE_NODE_FIELD(scan.plan.qual);
5043 142926 : WRITE_NODE_FIELD(scan.plan.lefttree);
5044 142926 : WRITE_NODE_FIELD(scan.plan.righttree);
5045 142926 : WRITE_NODE_FIELD(scan.plan.initPlan);
5046 142926 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5047 142926 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5048 142926 : WRITE_UINT_FIELD(scan.scanrelid);
5049 142926 : WRITE_OID_FIELD(indexid);
5050 142926 : WRITE_NODE_FIELD(indexqual);
5051 142926 : WRITE_NODE_FIELD(indexqualorig);
5052 142926 : WRITE_NODE_FIELD(indexorderby);
5053 142926 : WRITE_NODE_FIELD(indexorderbyorig);
5054 142926 : WRITE_NODE_FIELD(indexorderbyops);
5055 142926 : WRITE_ENUM_FIELD(indexorderdir, ScanDirection);
5056 142926 : }
5057 :
5058 : static void
5059 16430 : _outIndexOnlyScan(StringInfo str, const IndexOnlyScan *node)
5060 : {
5061 16430 : WRITE_NODE_TYPE("INDEXONLYSCAN");
5062 :
5063 16430 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5064 16430 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5065 16430 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5066 16430 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5067 16430 : WRITE_INT_FIELD(scan.plan.plan_width);
5068 16430 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5069 16430 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5070 16430 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5071 16430 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5072 16430 : WRITE_NODE_FIELD(scan.plan.targetlist);
5073 16430 : WRITE_NODE_FIELD(scan.plan.qual);
5074 16430 : WRITE_NODE_FIELD(scan.plan.lefttree);
5075 16430 : WRITE_NODE_FIELD(scan.plan.righttree);
5076 16430 : WRITE_NODE_FIELD(scan.plan.initPlan);
5077 16430 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5078 16430 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5079 16430 : WRITE_UINT_FIELD(scan.scanrelid);
5080 16430 : WRITE_OID_FIELD(indexid);
5081 16430 : WRITE_NODE_FIELD(indexqual);
5082 16430 : WRITE_NODE_FIELD(recheckqual);
5083 16430 : WRITE_NODE_FIELD(indexorderby);
5084 16430 : WRITE_NODE_FIELD(indextlist);
5085 16430 : WRITE_ENUM_FIELD(indexorderdir, ScanDirection);
5086 16430 : }
5087 :
5088 : static void
5089 21556 : _outBitmapIndexScan(StringInfo str, const BitmapIndexScan *node)
5090 : {
5091 21556 : WRITE_NODE_TYPE("BITMAPINDEXSCAN");
5092 :
5093 21556 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5094 21556 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5095 21556 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5096 21556 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5097 21556 : WRITE_INT_FIELD(scan.plan.plan_width);
5098 21556 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5099 21556 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5100 21556 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5101 21556 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5102 21556 : WRITE_NODE_FIELD(scan.plan.targetlist);
5103 21556 : WRITE_NODE_FIELD(scan.plan.qual);
5104 21556 : WRITE_NODE_FIELD(scan.plan.lefttree);
5105 21556 : WRITE_NODE_FIELD(scan.plan.righttree);
5106 21556 : WRITE_NODE_FIELD(scan.plan.initPlan);
5107 21556 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5108 21556 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5109 21556 : WRITE_UINT_FIELD(scan.scanrelid);
5110 21556 : WRITE_OID_FIELD(indexid);
5111 21556 : WRITE_BOOL_FIELD(isshared);
5112 21556 : WRITE_NODE_FIELD(indexqual);
5113 21556 : WRITE_NODE_FIELD(indexqualorig);
5114 21556 : }
5115 :
5116 : static void
5117 20928 : _outBitmapHeapScan(StringInfo str, const BitmapHeapScan *node)
5118 : {
5119 20928 : WRITE_NODE_TYPE("BITMAPHEAPSCAN");
5120 :
5121 20928 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5122 20928 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5123 20928 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5124 20928 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5125 20928 : WRITE_INT_FIELD(scan.plan.plan_width);
5126 20928 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5127 20928 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5128 20928 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5129 20928 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5130 20928 : WRITE_NODE_FIELD(scan.plan.targetlist);
5131 20928 : WRITE_NODE_FIELD(scan.plan.qual);
5132 20928 : WRITE_NODE_FIELD(scan.plan.lefttree);
5133 20928 : WRITE_NODE_FIELD(scan.plan.righttree);
5134 20928 : WRITE_NODE_FIELD(scan.plan.initPlan);
5135 20928 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5136 20928 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5137 20928 : WRITE_UINT_FIELD(scan.scanrelid);
5138 20928 : WRITE_NODE_FIELD(bitmapqualorig);
5139 20928 : }
5140 :
5141 : static void
5142 732 : _outTidScan(StringInfo str, const TidScan *node)
5143 : {
5144 732 : WRITE_NODE_TYPE("TIDSCAN");
5145 :
5146 732 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5147 732 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5148 732 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5149 732 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5150 732 : WRITE_INT_FIELD(scan.plan.plan_width);
5151 732 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5152 732 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5153 732 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5154 732 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5155 732 : WRITE_NODE_FIELD(scan.plan.targetlist);
5156 732 : WRITE_NODE_FIELD(scan.plan.qual);
5157 732 : WRITE_NODE_FIELD(scan.plan.lefttree);
5158 732 : WRITE_NODE_FIELD(scan.plan.righttree);
5159 732 : WRITE_NODE_FIELD(scan.plan.initPlan);
5160 732 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5161 732 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5162 732 : WRITE_UINT_FIELD(scan.scanrelid);
5163 732 : WRITE_NODE_FIELD(tidquals);
5164 732 : }
5165 :
5166 : static void
5167 1940 : _outTidRangeScan(StringInfo str, const TidRangeScan *node)
5168 : {
5169 1940 : WRITE_NODE_TYPE("TIDRANGESCAN");
5170 :
5171 1940 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5172 1940 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5173 1940 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5174 1940 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5175 1940 : WRITE_INT_FIELD(scan.plan.plan_width);
5176 1940 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5177 1940 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5178 1940 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5179 1940 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5180 1940 : WRITE_NODE_FIELD(scan.plan.targetlist);
5181 1940 : WRITE_NODE_FIELD(scan.plan.qual);
5182 1940 : WRITE_NODE_FIELD(scan.plan.lefttree);
5183 1940 : WRITE_NODE_FIELD(scan.plan.righttree);
5184 1940 : WRITE_NODE_FIELD(scan.plan.initPlan);
5185 1940 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5186 1940 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5187 1940 : WRITE_UINT_FIELD(scan.scanrelid);
5188 1940 : WRITE_NODE_FIELD(tidrangequals);
5189 1940 : }
5190 :
5191 : static void
5192 10906 : _outSubqueryScan(StringInfo str, const SubqueryScan *node)
5193 : {
5194 10906 : WRITE_NODE_TYPE("SUBQUERYSCAN");
5195 :
5196 10906 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5197 10906 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5198 10906 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5199 10906 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5200 10906 : WRITE_INT_FIELD(scan.plan.plan_width);
5201 10906 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5202 10906 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5203 10906 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5204 10906 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5205 10906 : WRITE_NODE_FIELD(scan.plan.targetlist);
5206 10906 : WRITE_NODE_FIELD(scan.plan.qual);
5207 10906 : WRITE_NODE_FIELD(scan.plan.lefttree);
5208 10906 : WRITE_NODE_FIELD(scan.plan.righttree);
5209 10906 : WRITE_NODE_FIELD(scan.plan.initPlan);
5210 10906 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5211 10906 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5212 10906 : WRITE_UINT_FIELD(scan.scanrelid);
5213 10906 : WRITE_NODE_FIELD(subplan);
5214 10906 : WRITE_ENUM_FIELD(scanstatus, SubqueryScanStatus);
5215 10906 : }
5216 :
5217 : static void
5218 51670 : _outFunctionScan(StringInfo str, const FunctionScan *node)
5219 : {
5220 51670 : WRITE_NODE_TYPE("FUNCTIONSCAN");
5221 :
5222 51670 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5223 51670 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5224 51670 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5225 51670 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5226 51670 : WRITE_INT_FIELD(scan.plan.plan_width);
5227 51670 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5228 51670 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5229 51670 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5230 51670 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5231 51670 : WRITE_NODE_FIELD(scan.plan.targetlist);
5232 51670 : WRITE_NODE_FIELD(scan.plan.qual);
5233 51670 : WRITE_NODE_FIELD(scan.plan.lefttree);
5234 51670 : WRITE_NODE_FIELD(scan.plan.righttree);
5235 51670 : WRITE_NODE_FIELD(scan.plan.initPlan);
5236 51670 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5237 51670 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5238 51670 : WRITE_UINT_FIELD(scan.scanrelid);
5239 51670 : WRITE_NODE_FIELD(functions);
5240 51670 : WRITE_BOOL_FIELD(funcordinality);
5241 51670 : }
5242 :
5243 : static void
5244 8240 : _outValuesScan(StringInfo str, const ValuesScan *node)
5245 : {
5246 8240 : WRITE_NODE_TYPE("VALUESSCAN");
5247 :
5248 8240 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5249 8240 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5250 8240 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5251 8240 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5252 8240 : WRITE_INT_FIELD(scan.plan.plan_width);
5253 8240 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5254 8240 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5255 8240 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5256 8240 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5257 8240 : WRITE_NODE_FIELD(scan.plan.targetlist);
5258 8240 : WRITE_NODE_FIELD(scan.plan.qual);
5259 8240 : WRITE_NODE_FIELD(scan.plan.lefttree);
5260 8240 : WRITE_NODE_FIELD(scan.plan.righttree);
5261 8240 : WRITE_NODE_FIELD(scan.plan.initPlan);
5262 8240 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5263 8240 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5264 8240 : WRITE_UINT_FIELD(scan.scanrelid);
5265 8240 : WRITE_NODE_FIELD(values_lists);
5266 8240 : }
5267 :
5268 : static void
5269 626 : _outTableFuncScan(StringInfo str, const TableFuncScan *node)
5270 : {
5271 626 : WRITE_NODE_TYPE("TABLEFUNCSCAN");
5272 :
5273 626 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5274 626 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5275 626 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5276 626 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5277 626 : WRITE_INT_FIELD(scan.plan.plan_width);
5278 626 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5279 626 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5280 626 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5281 626 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5282 626 : WRITE_NODE_FIELD(scan.plan.targetlist);
5283 626 : WRITE_NODE_FIELD(scan.plan.qual);
5284 626 : WRITE_NODE_FIELD(scan.plan.lefttree);
5285 626 : WRITE_NODE_FIELD(scan.plan.righttree);
5286 626 : WRITE_NODE_FIELD(scan.plan.initPlan);
5287 626 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5288 626 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5289 626 : WRITE_UINT_FIELD(scan.scanrelid);
5290 626 : WRITE_NODE_FIELD(tablefunc);
5291 626 : }
5292 :
5293 : static void
5294 4060 : _outCteScan(StringInfo str, const CteScan *node)
5295 : {
5296 4060 : WRITE_NODE_TYPE("CTESCAN");
5297 :
5298 4060 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5299 4060 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5300 4060 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5301 4060 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5302 4060 : WRITE_INT_FIELD(scan.plan.plan_width);
5303 4060 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5304 4060 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5305 4060 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5306 4060 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5307 4060 : WRITE_NODE_FIELD(scan.plan.targetlist);
5308 4060 : WRITE_NODE_FIELD(scan.plan.qual);
5309 4060 : WRITE_NODE_FIELD(scan.plan.lefttree);
5310 4060 : WRITE_NODE_FIELD(scan.plan.righttree);
5311 4060 : WRITE_NODE_FIELD(scan.plan.initPlan);
5312 4060 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5313 4060 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5314 4060 : WRITE_UINT_FIELD(scan.scanrelid);
5315 4060 : WRITE_INT_FIELD(ctePlanId);
5316 4060 : WRITE_INT_FIELD(cteParam);
5317 4060 : }
5318 :
5319 : static void
5320 462 : _outNamedTuplestoreScan(StringInfo str, const NamedTuplestoreScan *node)
5321 : {
5322 462 : WRITE_NODE_TYPE("NAMEDTUPLESTORESCAN");
5323 :
5324 462 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5325 462 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5326 462 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5327 462 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5328 462 : WRITE_INT_FIELD(scan.plan.plan_width);
5329 462 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5330 462 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5331 462 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5332 462 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5333 462 : WRITE_NODE_FIELD(scan.plan.targetlist);
5334 462 : WRITE_NODE_FIELD(scan.plan.qual);
5335 462 : WRITE_NODE_FIELD(scan.plan.lefttree);
5336 462 : WRITE_NODE_FIELD(scan.plan.righttree);
5337 462 : WRITE_NODE_FIELD(scan.plan.initPlan);
5338 462 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5339 462 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5340 462 : WRITE_UINT_FIELD(scan.scanrelid);
5341 462 : WRITE_STRING_FIELD(enrname);
5342 462 : }
5343 :
5344 : static void
5345 1000 : _outWorkTableScan(StringInfo str, const WorkTableScan *node)
5346 : {
5347 1000 : WRITE_NODE_TYPE("WORKTABLESCAN");
5348 :
5349 1000 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5350 1000 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5351 1000 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5352 1000 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5353 1000 : WRITE_INT_FIELD(scan.plan.plan_width);
5354 1000 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5355 1000 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5356 1000 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5357 1000 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5358 1000 : WRITE_NODE_FIELD(scan.plan.targetlist);
5359 1000 : WRITE_NODE_FIELD(scan.plan.qual);
5360 1000 : WRITE_NODE_FIELD(scan.plan.lefttree);
5361 1000 : WRITE_NODE_FIELD(scan.plan.righttree);
5362 1000 : WRITE_NODE_FIELD(scan.plan.initPlan);
5363 1000 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5364 1000 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5365 1000 : WRITE_UINT_FIELD(scan.scanrelid);
5366 1000 : WRITE_INT_FIELD(wtParam);
5367 1000 : }
5368 :
5369 : static void
5370 2002 : _outForeignScan(StringInfo str, const ForeignScan *node)
5371 : {
5372 2002 : WRITE_NODE_TYPE("FOREIGNSCAN");
5373 :
5374 2002 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5375 2002 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5376 2002 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5377 2002 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5378 2002 : WRITE_INT_FIELD(scan.plan.plan_width);
5379 2002 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5380 2002 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5381 2002 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5382 2002 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5383 2002 : WRITE_NODE_FIELD(scan.plan.targetlist);
5384 2002 : WRITE_NODE_FIELD(scan.plan.qual);
5385 2002 : WRITE_NODE_FIELD(scan.plan.lefttree);
5386 2002 : WRITE_NODE_FIELD(scan.plan.righttree);
5387 2002 : WRITE_NODE_FIELD(scan.plan.initPlan);
5388 2002 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5389 2002 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5390 2002 : WRITE_UINT_FIELD(scan.scanrelid);
5391 2002 : WRITE_ENUM_FIELD(operation, CmdType);
5392 2002 : WRITE_UINT_FIELD(resultRelation);
5393 2002 : WRITE_OID_FIELD(checkAsUser);
5394 2002 : WRITE_OID_FIELD(fs_server);
5395 2002 : WRITE_NODE_FIELD(fdw_exprs);
5396 2002 : WRITE_NODE_FIELD(fdw_private);
5397 2002 : WRITE_NODE_FIELD(fdw_scan_tlist);
5398 2002 : WRITE_NODE_FIELD(fdw_recheck_quals);
5399 2002 : WRITE_BITMAPSET_FIELD(fs_relids);
5400 2002 : WRITE_BITMAPSET_FIELD(fs_base_relids);
5401 2002 : WRITE_BOOL_FIELD(fsSystemCol);
5402 2002 : }
5403 :
5404 : static void
5405 0 : _outCustomScan(StringInfo str, const CustomScan *node)
5406 : {
5407 0 : WRITE_NODE_TYPE("CUSTOMSCAN");
5408 :
5409 0 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5410 0 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5411 0 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5412 0 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5413 0 : WRITE_INT_FIELD(scan.plan.plan_width);
5414 0 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5415 0 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5416 0 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5417 0 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5418 0 : WRITE_NODE_FIELD(scan.plan.targetlist);
5419 0 : WRITE_NODE_FIELD(scan.plan.qual);
5420 0 : WRITE_NODE_FIELD(scan.plan.lefttree);
5421 0 : WRITE_NODE_FIELD(scan.plan.righttree);
5422 0 : WRITE_NODE_FIELD(scan.plan.initPlan);
5423 0 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5424 0 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5425 0 : WRITE_UINT_FIELD(scan.scanrelid);
5426 0 : WRITE_UINT_FIELD(flags);
5427 0 : WRITE_NODE_FIELD(custom_plans);
5428 0 : WRITE_NODE_FIELD(custom_exprs);
5429 0 : WRITE_NODE_FIELD(custom_private);
5430 0 : WRITE_NODE_FIELD(custom_scan_tlist);
5431 0 : WRITE_BITMAPSET_FIELD(custom_relids);
5432 :
5433 : /* CustomName is a key to lookup CustomScanMethods */
5434 0 : appendStringInfoString(str, " :methods ");
5435 0 : outToken(str, node->methods->CustomName);
5436 0 : }
5437 :
5438 : static void
5439 94154 : _outNestLoop(StringInfo str, const NestLoop *node)
5440 : {
5441 94154 : WRITE_NODE_TYPE("NESTLOOP");
5442 :
5443 94154 : WRITE_INT_FIELD(join.plan.disabled_nodes);
5444 94154 : WRITE_FLOAT_FIELD(join.plan.startup_cost);
5445 94154 : WRITE_FLOAT_FIELD(join.plan.total_cost);
5446 94154 : WRITE_FLOAT_FIELD(join.plan.plan_rows);
5447 94154 : WRITE_INT_FIELD(join.plan.plan_width);
5448 94154 : WRITE_BOOL_FIELD(join.plan.parallel_aware);
5449 94154 : WRITE_BOOL_FIELD(join.plan.parallel_safe);
5450 94154 : WRITE_BOOL_FIELD(join.plan.async_capable);
5451 94154 : WRITE_INT_FIELD(join.plan.plan_node_id);
5452 94154 : WRITE_NODE_FIELD(join.plan.targetlist);
5453 94154 : WRITE_NODE_FIELD(join.plan.qual);
5454 94154 : WRITE_NODE_FIELD(join.plan.lefttree);
5455 94154 : WRITE_NODE_FIELD(join.plan.righttree);
5456 94154 : WRITE_NODE_FIELD(join.plan.initPlan);
5457 94154 : WRITE_BITMAPSET_FIELD(join.plan.extParam);
5458 94154 : WRITE_BITMAPSET_FIELD(join.plan.allParam);
5459 94154 : WRITE_ENUM_FIELD(join.jointype, JoinType);
5460 94154 : WRITE_BOOL_FIELD(join.inner_unique);
5461 94154 : WRITE_NODE_FIELD(join.joinqual);
5462 94154 : WRITE_NODE_FIELD(nestParams);
5463 94154 : }
5464 :
5465 : static void
5466 53164 : _outNestLoopParam(StringInfo str, const NestLoopParam *node)
5467 : {
5468 53164 : WRITE_NODE_TYPE("NESTLOOPPARAM");
5469 :
5470 53164 : WRITE_INT_FIELD(paramno);
5471 53164 : WRITE_NODE_FIELD(paramval);
5472 53164 : }
5473 :
5474 : static void
5475 8072 : _outMergeJoin(StringInfo str, const MergeJoin *node)
5476 : {
5477 8072 : WRITE_NODE_TYPE("MERGEJOIN");
5478 :
5479 8072 : WRITE_INT_FIELD(join.plan.disabled_nodes);
5480 8072 : WRITE_FLOAT_FIELD(join.plan.startup_cost);
5481 8072 : WRITE_FLOAT_FIELD(join.plan.total_cost);
5482 8072 : WRITE_FLOAT_FIELD(join.plan.plan_rows);
5483 8072 : WRITE_INT_FIELD(join.plan.plan_width);
5484 8072 : WRITE_BOOL_FIELD(join.plan.parallel_aware);
5485 8072 : WRITE_BOOL_FIELD(join.plan.parallel_safe);
5486 8072 : WRITE_BOOL_FIELD(join.plan.async_capable);
5487 8072 : WRITE_INT_FIELD(join.plan.plan_node_id);
5488 8072 : WRITE_NODE_FIELD(join.plan.targetlist);
5489 8072 : WRITE_NODE_FIELD(join.plan.qual);
5490 8072 : WRITE_NODE_FIELD(join.plan.lefttree);
5491 8072 : WRITE_NODE_FIELD(join.plan.righttree);
5492 8072 : WRITE_NODE_FIELD(join.plan.initPlan);
5493 8072 : WRITE_BITMAPSET_FIELD(join.plan.extParam);
5494 8072 : WRITE_BITMAPSET_FIELD(join.plan.allParam);
5495 8072 : WRITE_ENUM_FIELD(join.jointype, JoinType);
5496 8072 : WRITE_BOOL_FIELD(join.inner_unique);
5497 8072 : WRITE_NODE_FIELD(join.joinqual);
5498 8072 : WRITE_BOOL_FIELD(skip_mark_restore);
5499 8072 : WRITE_NODE_FIELD(mergeclauses);
5500 8072 : WRITE_OID_ARRAY(mergeFamilies, list_length(node->mergeclauses));
5501 8072 : WRITE_OID_ARRAY(mergeCollations, list_length(node->mergeclauses));
5502 8072 : WRITE_BOOL_ARRAY(mergeReversals, list_length(node->mergeclauses));
5503 8072 : WRITE_BOOL_ARRAY(mergeNullsFirst, list_length(node->mergeclauses));
5504 8072 : }
5505 :
5506 : static void
5507 33630 : _outHashJoin(StringInfo str, const HashJoin *node)
5508 : {
5509 33630 : WRITE_NODE_TYPE("HASHJOIN");
5510 :
5511 33630 : WRITE_INT_FIELD(join.plan.disabled_nodes);
5512 33630 : WRITE_FLOAT_FIELD(join.plan.startup_cost);
5513 33630 : WRITE_FLOAT_FIELD(join.plan.total_cost);
5514 33630 : WRITE_FLOAT_FIELD(join.plan.plan_rows);
5515 33630 : WRITE_INT_FIELD(join.plan.plan_width);
5516 33630 : WRITE_BOOL_FIELD(join.plan.parallel_aware);
5517 33630 : WRITE_BOOL_FIELD(join.plan.parallel_safe);
5518 33630 : WRITE_BOOL_FIELD(join.plan.async_capable);
5519 33630 : WRITE_INT_FIELD(join.plan.plan_node_id);
5520 33630 : WRITE_NODE_FIELD(join.plan.targetlist);
5521 33630 : WRITE_NODE_FIELD(join.plan.qual);
5522 33630 : WRITE_NODE_FIELD(join.plan.lefttree);
5523 33630 : WRITE_NODE_FIELD(join.plan.righttree);
5524 33630 : WRITE_NODE_FIELD(join.plan.initPlan);
5525 33630 : WRITE_BITMAPSET_FIELD(join.plan.extParam);
5526 33630 : WRITE_BITMAPSET_FIELD(join.plan.allParam);
5527 33630 : WRITE_ENUM_FIELD(join.jointype, JoinType);
5528 33630 : WRITE_BOOL_FIELD(join.inner_unique);
5529 33630 : WRITE_NODE_FIELD(join.joinqual);
5530 33630 : WRITE_NODE_FIELD(hashclauses);
5531 33630 : WRITE_NODE_FIELD(hashoperators);
5532 33630 : WRITE_NODE_FIELD(hashcollations);
5533 33630 : WRITE_NODE_FIELD(hashkeys);
5534 33630 : }
5535 :
5536 : static void
5537 4738 : _outMaterial(StringInfo str, const Material *node)
5538 : {
5539 4738 : WRITE_NODE_TYPE("MATERIAL");
5540 :
5541 4738 : WRITE_INT_FIELD(plan.disabled_nodes);
5542 4738 : WRITE_FLOAT_FIELD(plan.startup_cost);
5543 4738 : WRITE_FLOAT_FIELD(plan.total_cost);
5544 4738 : WRITE_FLOAT_FIELD(plan.plan_rows);
5545 4738 : WRITE_INT_FIELD(plan.plan_width);
5546 4738 : WRITE_BOOL_FIELD(plan.parallel_aware);
5547 4738 : WRITE_BOOL_FIELD(plan.parallel_safe);
5548 4738 : WRITE_BOOL_FIELD(plan.async_capable);
5549 4738 : WRITE_INT_FIELD(plan.plan_node_id);
5550 4738 : WRITE_NODE_FIELD(plan.targetlist);
5551 4738 : WRITE_NODE_FIELD(plan.qual);
5552 4738 : WRITE_NODE_FIELD(plan.lefttree);
5553 4738 : WRITE_NODE_FIELD(plan.righttree);
5554 4738 : WRITE_NODE_FIELD(plan.initPlan);
5555 4738 : WRITE_BITMAPSET_FIELD(plan.extParam);
5556 4738 : WRITE_BITMAPSET_FIELD(plan.allParam);
5557 4738 : }
5558 :
5559 : static void
5560 1904 : _outMemoize(StringInfo str, const Memoize *node)
5561 : {
5562 1904 : WRITE_NODE_TYPE("MEMOIZE");
5563 :
5564 1904 : WRITE_INT_FIELD(plan.disabled_nodes);
5565 1904 : WRITE_FLOAT_FIELD(plan.startup_cost);
5566 1904 : WRITE_FLOAT_FIELD(plan.total_cost);
5567 1904 : WRITE_FLOAT_FIELD(plan.plan_rows);
5568 1904 : WRITE_INT_FIELD(plan.plan_width);
5569 1904 : WRITE_BOOL_FIELD(plan.parallel_aware);
5570 1904 : WRITE_BOOL_FIELD(plan.parallel_safe);
5571 1904 : WRITE_BOOL_FIELD(plan.async_capable);
5572 1904 : WRITE_INT_FIELD(plan.plan_node_id);
5573 1904 : WRITE_NODE_FIELD(plan.targetlist);
5574 1904 : WRITE_NODE_FIELD(plan.qual);
5575 1904 : WRITE_NODE_FIELD(plan.lefttree);
5576 1904 : WRITE_NODE_FIELD(plan.righttree);
5577 1904 : WRITE_NODE_FIELD(plan.initPlan);
5578 1904 : WRITE_BITMAPSET_FIELD(plan.extParam);
5579 1904 : WRITE_BITMAPSET_FIELD(plan.allParam);
5580 1904 : WRITE_INT_FIELD(numKeys);
5581 1904 : WRITE_OID_ARRAY(hashOperators, node->numKeys);
5582 1904 : WRITE_OID_ARRAY(collations, node->numKeys);
5583 1904 : WRITE_NODE_FIELD(param_exprs);
5584 1904 : WRITE_BOOL_FIELD(singlerow);
5585 1904 : WRITE_BOOL_FIELD(binary_mode);
5586 1904 : WRITE_UINT_FIELD(est_entries);
5587 1904 : WRITE_BITMAPSET_FIELD(keyparamids);
5588 1904 : }
5589 :
5590 : static void
5591 81406 : _outSort(StringInfo str, const Sort *node)
5592 : {
5593 81406 : WRITE_NODE_TYPE("SORT");
5594 :
5595 81406 : WRITE_INT_FIELD(plan.disabled_nodes);
5596 81406 : WRITE_FLOAT_FIELD(plan.startup_cost);
5597 81406 : WRITE_FLOAT_FIELD(plan.total_cost);
5598 81406 : WRITE_FLOAT_FIELD(plan.plan_rows);
5599 81406 : WRITE_INT_FIELD(plan.plan_width);
5600 81406 : WRITE_BOOL_FIELD(plan.parallel_aware);
5601 81406 : WRITE_BOOL_FIELD(plan.parallel_safe);
5602 81406 : WRITE_BOOL_FIELD(plan.async_capable);
5603 81406 : WRITE_INT_FIELD(plan.plan_node_id);
5604 81406 : WRITE_NODE_FIELD(plan.targetlist);
5605 81406 : WRITE_NODE_FIELD(plan.qual);
5606 81406 : WRITE_NODE_FIELD(plan.lefttree);
5607 81406 : WRITE_NODE_FIELD(plan.righttree);
5608 81406 : WRITE_NODE_FIELD(plan.initPlan);
5609 81406 : WRITE_BITMAPSET_FIELD(plan.extParam);
5610 81406 : WRITE_BITMAPSET_FIELD(plan.allParam);
5611 81406 : WRITE_INT_FIELD(numCols);
5612 81406 : WRITE_ATTRNUMBER_ARRAY(sortColIdx, node->numCols);
5613 81406 : WRITE_OID_ARRAY(sortOperators, node->numCols);
5614 81406 : WRITE_OID_ARRAY(collations, node->numCols);
5615 81406 : WRITE_BOOL_ARRAY(nullsFirst, node->numCols);
5616 81406 : }
5617 :
5618 : static void
5619 982 : _outIncrementalSort(StringInfo str, const IncrementalSort *node)
5620 : {
5621 982 : WRITE_NODE_TYPE("INCREMENTALSORT");
5622 :
5623 982 : WRITE_INT_FIELD(sort.plan.disabled_nodes);
5624 982 : WRITE_FLOAT_FIELD(sort.plan.startup_cost);
5625 982 : WRITE_FLOAT_FIELD(sort.plan.total_cost);
5626 982 : WRITE_FLOAT_FIELD(sort.plan.plan_rows);
5627 982 : WRITE_INT_FIELD(sort.plan.plan_width);
5628 982 : WRITE_BOOL_FIELD(sort.plan.parallel_aware);
5629 982 : WRITE_BOOL_FIELD(sort.plan.parallel_safe);
5630 982 : WRITE_BOOL_FIELD(sort.plan.async_capable);
5631 982 : WRITE_INT_FIELD(sort.plan.plan_node_id);
5632 982 : WRITE_NODE_FIELD(sort.plan.targetlist);
5633 982 : WRITE_NODE_FIELD(sort.plan.qual);
5634 982 : WRITE_NODE_FIELD(sort.plan.lefttree);
5635 982 : WRITE_NODE_FIELD(sort.plan.righttree);
5636 982 : WRITE_NODE_FIELD(sort.plan.initPlan);
5637 982 : WRITE_BITMAPSET_FIELD(sort.plan.extParam);
5638 982 : WRITE_BITMAPSET_FIELD(sort.plan.allParam);
5639 982 : WRITE_INT_FIELD(sort.numCols);
5640 982 : WRITE_ATTRNUMBER_ARRAY(sort.sortColIdx, node->sort.numCols);
5641 982 : WRITE_OID_ARRAY(sort.sortOperators, node->sort.numCols);
5642 982 : WRITE_OID_ARRAY(sort.collations, node->sort.numCols);
5643 982 : WRITE_BOOL_ARRAY(sort.nullsFirst, node->sort.numCols);
5644 982 : WRITE_INT_FIELD(nPresortedCols);
5645 982 : }
5646 :
5647 : static void
5648 246 : _outGroup(StringInfo str, const Group *node)
5649 : {
5650 246 : WRITE_NODE_TYPE("GROUP");
5651 :
5652 246 : WRITE_INT_FIELD(plan.disabled_nodes);
5653 246 : WRITE_FLOAT_FIELD(plan.startup_cost);
5654 246 : WRITE_FLOAT_FIELD(plan.total_cost);
5655 246 : WRITE_FLOAT_FIELD(plan.plan_rows);
5656 246 : WRITE_INT_FIELD(plan.plan_width);
5657 246 : WRITE_BOOL_FIELD(plan.parallel_aware);
5658 246 : WRITE_BOOL_FIELD(plan.parallel_safe);
5659 246 : WRITE_BOOL_FIELD(plan.async_capable);
5660 246 : WRITE_INT_FIELD(plan.plan_node_id);
5661 246 : WRITE_NODE_FIELD(plan.targetlist);
5662 246 : WRITE_NODE_FIELD(plan.qual);
5663 246 : WRITE_NODE_FIELD(plan.lefttree);
5664 246 : WRITE_NODE_FIELD(plan.righttree);
5665 246 : WRITE_NODE_FIELD(plan.initPlan);
5666 246 : WRITE_BITMAPSET_FIELD(plan.extParam);
5667 246 : WRITE_BITMAPSET_FIELD(plan.allParam);
5668 246 : WRITE_INT_FIELD(numCols);
5669 246 : WRITE_ATTRNUMBER_ARRAY(grpColIdx, node->numCols);
5670 246 : WRITE_OID_ARRAY(grpOperators, node->numCols);
5671 246 : WRITE_OID_ARRAY(grpCollations, node->numCols);
5672 246 : }
5673 :
5674 : static void
5675 43236 : _outAgg(StringInfo str, const Agg *node)
5676 : {
5677 43236 : WRITE_NODE_TYPE("AGG");
5678 :
5679 43236 : WRITE_INT_FIELD(plan.disabled_nodes);
5680 43236 : WRITE_FLOAT_FIELD(plan.startup_cost);
5681 43236 : WRITE_FLOAT_FIELD(plan.total_cost);
5682 43236 : WRITE_FLOAT_FIELD(plan.plan_rows);
5683 43236 : WRITE_INT_FIELD(plan.plan_width);
5684 43236 : WRITE_BOOL_FIELD(plan.parallel_aware);
5685 43236 : WRITE_BOOL_FIELD(plan.parallel_safe);
5686 43236 : WRITE_BOOL_FIELD(plan.async_capable);
5687 43236 : WRITE_INT_FIELD(plan.plan_node_id);
5688 43236 : WRITE_NODE_FIELD(plan.targetlist);
5689 43236 : WRITE_NODE_FIELD(plan.qual);
5690 43236 : WRITE_NODE_FIELD(plan.lefttree);
5691 43236 : WRITE_NODE_FIELD(plan.righttree);
5692 43236 : WRITE_NODE_FIELD(plan.initPlan);
5693 43236 : WRITE_BITMAPSET_FIELD(plan.extParam);
5694 43236 : WRITE_BITMAPSET_FIELD(plan.allParam);
5695 43236 : WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
5696 43236 : WRITE_ENUM_FIELD(aggsplit, AggSplit);
5697 43236 : WRITE_INT_FIELD(numCols);
5698 43236 : WRITE_ATTRNUMBER_ARRAY(grpColIdx, node->numCols);
5699 43236 : WRITE_OID_ARRAY(grpOperators, node->numCols);
5700 43236 : WRITE_OID_ARRAY(grpCollations, node->numCols);
5701 43236 : WRITE_LONG_FIELD(numGroups);
5702 43236 : WRITE_UINT64_FIELD(transitionSpace);
5703 43236 : WRITE_BITMAPSET_FIELD(aggParams);
5704 43236 : WRITE_NODE_FIELD(groupingSets);
5705 43236 : WRITE_NODE_FIELD(chain);
5706 43236 : }
5707 :
5708 : static void
5709 2546 : _outWindowAgg(StringInfo str, const WindowAgg *node)
5710 : {
5711 2546 : WRITE_NODE_TYPE("WINDOWAGG");
5712 :
5713 2546 : WRITE_INT_FIELD(plan.disabled_nodes);
5714 2546 : WRITE_FLOAT_FIELD(plan.startup_cost);
5715 2546 : WRITE_FLOAT_FIELD(plan.total_cost);
5716 2546 : WRITE_FLOAT_FIELD(plan.plan_rows);
5717 2546 : WRITE_INT_FIELD(plan.plan_width);
5718 2546 : WRITE_BOOL_FIELD(plan.parallel_aware);
5719 2546 : WRITE_BOOL_FIELD(plan.parallel_safe);
5720 2546 : WRITE_BOOL_FIELD(plan.async_capable);
5721 2546 : WRITE_INT_FIELD(plan.plan_node_id);
5722 2546 : WRITE_NODE_FIELD(plan.targetlist);
5723 2546 : WRITE_NODE_FIELD(plan.qual);
5724 2546 : WRITE_NODE_FIELD(plan.lefttree);
5725 2546 : WRITE_NODE_FIELD(plan.righttree);
5726 2546 : WRITE_NODE_FIELD(plan.initPlan);
5727 2546 : WRITE_BITMAPSET_FIELD(plan.extParam);
5728 2546 : WRITE_BITMAPSET_FIELD(plan.allParam);
5729 2546 : WRITE_STRING_FIELD(winname);
5730 2546 : WRITE_UINT_FIELD(winref);
5731 2546 : WRITE_INT_FIELD(partNumCols);
5732 2546 : WRITE_ATTRNUMBER_ARRAY(partColIdx, node->partNumCols);
5733 2546 : WRITE_OID_ARRAY(partOperators, node->partNumCols);
5734 2546 : WRITE_OID_ARRAY(partCollations, node->partNumCols);
5735 2546 : WRITE_INT_FIELD(ordNumCols);
5736 2546 : WRITE_ATTRNUMBER_ARRAY(ordColIdx, node->ordNumCols);
5737 2546 : WRITE_OID_ARRAY(ordOperators, node->ordNumCols);
5738 2546 : WRITE_OID_ARRAY(ordCollations, node->ordNumCols);
5739 2546 : WRITE_INT_FIELD(frameOptions);
5740 2546 : WRITE_NODE_FIELD(startOffset);
5741 2546 : WRITE_NODE_FIELD(endOffset);
5742 2546 : WRITE_NODE_FIELD(runCondition);
5743 2546 : WRITE_NODE_FIELD(runConditionOrig);
5744 2546 : WRITE_OID_FIELD(startInRangeFunc);
5745 2546 : WRITE_OID_FIELD(endInRangeFunc);
5746 2546 : WRITE_OID_FIELD(inRangeColl);
5747 2546 : WRITE_BOOL_FIELD(inRangeAsc);
5748 2546 : WRITE_BOOL_FIELD(inRangeNullsFirst);
5749 2546 : WRITE_BOOL_FIELD(topWindow);
5750 2546 : }
5751 :
5752 : static void
5753 5566 : _outUnique(StringInfo str, const Unique *node)
5754 : {
5755 5566 : WRITE_NODE_TYPE("UNIQUE");
5756 :
5757 5566 : WRITE_INT_FIELD(plan.disabled_nodes);
5758 5566 : WRITE_FLOAT_FIELD(plan.startup_cost);
5759 5566 : WRITE_FLOAT_FIELD(plan.total_cost);
5760 5566 : WRITE_FLOAT_FIELD(plan.plan_rows);
5761 5566 : WRITE_INT_FIELD(plan.plan_width);
5762 5566 : WRITE_BOOL_FIELD(plan.parallel_aware);
5763 5566 : WRITE_BOOL_FIELD(plan.parallel_safe);
5764 5566 : WRITE_BOOL_FIELD(plan.async_capable);
5765 5566 : WRITE_INT_FIELD(plan.plan_node_id);
5766 5566 : WRITE_NODE_FIELD(plan.targetlist);
5767 5566 : WRITE_NODE_FIELD(plan.qual);
5768 5566 : WRITE_NODE_FIELD(plan.lefttree);
5769 5566 : WRITE_NODE_FIELD(plan.righttree);
5770 5566 : WRITE_NODE_FIELD(plan.initPlan);
5771 5566 : WRITE_BITMAPSET_FIELD(plan.extParam);
5772 5566 : WRITE_BITMAPSET_FIELD(plan.allParam);
5773 5566 : WRITE_INT_FIELD(numCols);
5774 5566 : WRITE_ATTRNUMBER_ARRAY(uniqColIdx, node->numCols);
5775 5566 : WRITE_OID_ARRAY(uniqOperators, node->numCols);
5776 5566 : WRITE_OID_ARRAY(uniqCollations, node->numCols);
5777 5566 : }
5778 :
5779 : static void
5780 1078 : _outGather(StringInfo str, const Gather *node)
5781 : {
5782 1078 : WRITE_NODE_TYPE("GATHER");
5783 :
5784 1078 : WRITE_INT_FIELD(plan.disabled_nodes);
5785 1078 : WRITE_FLOAT_FIELD(plan.startup_cost);
5786 1078 : WRITE_FLOAT_FIELD(plan.total_cost);
5787 1078 : WRITE_FLOAT_FIELD(plan.plan_rows);
5788 1078 : WRITE_INT_FIELD(plan.plan_width);
5789 1078 : WRITE_BOOL_FIELD(plan.parallel_aware);
5790 1078 : WRITE_BOOL_FIELD(plan.parallel_safe);
5791 1078 : WRITE_BOOL_FIELD(plan.async_capable);
5792 1078 : WRITE_INT_FIELD(plan.plan_node_id);
5793 1078 : WRITE_NODE_FIELD(plan.targetlist);
5794 1078 : WRITE_NODE_FIELD(plan.qual);
5795 1078 : WRITE_NODE_FIELD(plan.lefttree);
5796 1078 : WRITE_NODE_FIELD(plan.righttree);
5797 1078 : WRITE_NODE_FIELD(plan.initPlan);
5798 1078 : WRITE_BITMAPSET_FIELD(plan.extParam);
5799 1078 : WRITE_BITMAPSET_FIELD(plan.allParam);
5800 1078 : WRITE_INT_FIELD(num_workers);
5801 1078 : WRITE_INT_FIELD(rescan_param);
5802 1078 : WRITE_BOOL_FIELD(single_copy);
5803 1078 : WRITE_BOOL_FIELD(invisible);
5804 1078 : WRITE_BITMAPSET_FIELD(initParam);
5805 1078 : }
5806 :
5807 : static void
5808 330 : _outGatherMerge(StringInfo str, const GatherMerge *node)
5809 : {
5810 330 : WRITE_NODE_TYPE("GATHERMERGE");
5811 :
5812 330 : WRITE_INT_FIELD(plan.disabled_nodes);
5813 330 : WRITE_FLOAT_FIELD(plan.startup_cost);
5814 330 : WRITE_FLOAT_FIELD(plan.total_cost);
5815 330 : WRITE_FLOAT_FIELD(plan.plan_rows);
5816 330 : WRITE_INT_FIELD(plan.plan_width);
5817 330 : WRITE_BOOL_FIELD(plan.parallel_aware);
5818 330 : WRITE_BOOL_FIELD(plan.parallel_safe);
5819 330 : WRITE_BOOL_FIELD(plan.async_capable);
5820 330 : WRITE_INT_FIELD(plan.plan_node_id);
5821 330 : WRITE_NODE_FIELD(plan.targetlist);
5822 330 : WRITE_NODE_FIELD(plan.qual);
5823 330 : WRITE_NODE_FIELD(plan.lefttree);
5824 330 : WRITE_NODE_FIELD(plan.righttree);
5825 330 : WRITE_NODE_FIELD(plan.initPlan);
5826 330 : WRITE_BITMAPSET_FIELD(plan.extParam);
5827 330 : WRITE_BITMAPSET_FIELD(plan.allParam);
5828 330 : WRITE_INT_FIELD(num_workers);
5829 330 : WRITE_INT_FIELD(rescan_param);
5830 330 : WRITE_INT_FIELD(numCols);
5831 330 : WRITE_ATTRNUMBER_ARRAY(sortColIdx, node->numCols);
5832 330 : WRITE_OID_ARRAY(sortOperators, node->numCols);
5833 330 : WRITE_OID_ARRAY(collations, node->numCols);
5834 330 : WRITE_BOOL_ARRAY(nullsFirst, node->numCols);
5835 330 : WRITE_BITMAPSET_FIELD(initParam);
5836 330 : }
5837 :
5838 : static void
5839 33630 : _outHash(StringInfo str, const Hash *node)
5840 : {
5841 33630 : WRITE_NODE_TYPE("HASH");
5842 :
5843 33630 : WRITE_INT_FIELD(plan.disabled_nodes);
5844 33630 : WRITE_FLOAT_FIELD(plan.startup_cost);
5845 33630 : WRITE_FLOAT_FIELD(plan.total_cost);
5846 33630 : WRITE_FLOAT_FIELD(plan.plan_rows);
5847 33630 : WRITE_INT_FIELD(plan.plan_width);
5848 33630 : WRITE_BOOL_FIELD(plan.parallel_aware);
5849 33630 : WRITE_BOOL_FIELD(plan.parallel_safe);
5850 33630 : WRITE_BOOL_FIELD(plan.async_capable);
5851 33630 : WRITE_INT_FIELD(plan.plan_node_id);
5852 33630 : WRITE_NODE_FIELD(plan.targetlist);
5853 33630 : WRITE_NODE_FIELD(plan.qual);
5854 33630 : WRITE_NODE_FIELD(plan.lefttree);
5855 33630 : WRITE_NODE_FIELD(plan.righttree);
5856 33630 : WRITE_NODE_FIELD(plan.initPlan);
5857 33630 : WRITE_BITMAPSET_FIELD(plan.extParam);
5858 33630 : WRITE_BITMAPSET_FIELD(plan.allParam);
5859 33630 : WRITE_NODE_FIELD(hashkeys);
5860 33630 : WRITE_OID_FIELD(skewTable);
5861 33630 : WRITE_INT_FIELD(skewColumn);
5862 33630 : WRITE_BOOL_FIELD(skewInherit);
5863 33630 : WRITE_FLOAT_FIELD(rows_total);
5864 33630 : }
5865 :
5866 : static void
5867 662 : _outSetOp(StringInfo str, const SetOp *node)
5868 : {
5869 662 : WRITE_NODE_TYPE("SETOP");
5870 :
5871 662 : WRITE_INT_FIELD(plan.disabled_nodes);
5872 662 : WRITE_FLOAT_FIELD(plan.startup_cost);
5873 662 : WRITE_FLOAT_FIELD(plan.total_cost);
5874 662 : WRITE_FLOAT_FIELD(plan.plan_rows);
5875 662 : WRITE_INT_FIELD(plan.plan_width);
5876 662 : WRITE_BOOL_FIELD(plan.parallel_aware);
5877 662 : WRITE_BOOL_FIELD(plan.parallel_safe);
5878 662 : WRITE_BOOL_FIELD(plan.async_capable);
5879 662 : WRITE_INT_FIELD(plan.plan_node_id);
5880 662 : WRITE_NODE_FIELD(plan.targetlist);
5881 662 : WRITE_NODE_FIELD(plan.qual);
5882 662 : WRITE_NODE_FIELD(plan.lefttree);
5883 662 : WRITE_NODE_FIELD(plan.righttree);
5884 662 : WRITE_NODE_FIELD(plan.initPlan);
5885 662 : WRITE_BITMAPSET_FIELD(plan.extParam);
5886 662 : WRITE_BITMAPSET_FIELD(plan.allParam);
5887 662 : WRITE_ENUM_FIELD(cmd, SetOpCmd);
5888 662 : WRITE_ENUM_FIELD(strategy, SetOpStrategy);
5889 662 : WRITE_INT_FIELD(numCols);
5890 662 : WRITE_ATTRNUMBER_ARRAY(cmpColIdx, node->numCols);
5891 662 : WRITE_OID_ARRAY(cmpOperators, node->numCols);
5892 662 : WRITE_OID_ARRAY(cmpCollations, node->numCols);
5893 662 : WRITE_BOOL_ARRAY(cmpNullsFirst, node->numCols);
5894 662 : WRITE_LONG_FIELD(numGroups);
5895 662 : }
5896 :
5897 : static void
5898 7716 : _outLockRows(StringInfo str, const LockRows *node)
5899 : {
5900 7716 : WRITE_NODE_TYPE("LOCKROWS");
5901 :
5902 7716 : WRITE_INT_FIELD(plan.disabled_nodes);
5903 7716 : WRITE_FLOAT_FIELD(plan.startup_cost);
5904 7716 : WRITE_FLOAT_FIELD(plan.total_cost);
5905 7716 : WRITE_FLOAT_FIELD(plan.plan_rows);
5906 7716 : WRITE_INT_FIELD(plan.plan_width);
5907 7716 : WRITE_BOOL_FIELD(plan.parallel_aware);
5908 7716 : WRITE_BOOL_FIELD(plan.parallel_safe);
5909 7716 : WRITE_BOOL_FIELD(plan.async_capable);
5910 7716 : WRITE_INT_FIELD(plan.plan_node_id);
5911 7716 : WRITE_NODE_FIELD(plan.targetlist);
5912 7716 : WRITE_NODE_FIELD(plan.qual);
5913 7716 : WRITE_NODE_FIELD(plan.lefttree);
5914 7716 : WRITE_NODE_FIELD(plan.righttree);
5915 7716 : WRITE_NODE_FIELD(plan.initPlan);
5916 7716 : WRITE_BITMAPSET_FIELD(plan.extParam);
5917 7716 : WRITE_BITMAPSET_FIELD(plan.allParam);
5918 7716 : WRITE_NODE_FIELD(rowMarks);
5919 7716 : WRITE_INT_FIELD(epqParam);
5920 7716 : }
5921 :
5922 : static void
5923 4806 : _outLimit(StringInfo str, const Limit *node)
5924 : {
5925 4806 : WRITE_NODE_TYPE("LIMIT");
5926 :
5927 4806 : WRITE_INT_FIELD(plan.disabled_nodes);
5928 4806 : WRITE_FLOAT_FIELD(plan.startup_cost);
5929 4806 : WRITE_FLOAT_FIELD(plan.total_cost);
5930 4806 : WRITE_FLOAT_FIELD(plan.plan_rows);
5931 4806 : WRITE_INT_FIELD(plan.plan_width);
5932 4806 : WRITE_BOOL_FIELD(plan.parallel_aware);
5933 4806 : WRITE_BOOL_FIELD(plan.parallel_safe);
5934 4806 : WRITE_BOOL_FIELD(plan.async_capable);
5935 4806 : WRITE_INT_FIELD(plan.plan_node_id);
5936 4806 : WRITE_NODE_FIELD(plan.targetlist);
5937 4806 : WRITE_NODE_FIELD(plan.qual);
5938 4806 : WRITE_NODE_FIELD(plan.lefttree);
5939 4806 : WRITE_NODE_FIELD(plan.righttree);
5940 4806 : WRITE_NODE_FIELD(plan.initPlan);
5941 4806 : WRITE_BITMAPSET_FIELD(plan.extParam);
5942 4806 : WRITE_BITMAPSET_FIELD(plan.allParam);
5943 4806 : WRITE_NODE_FIELD(limitOffset);
5944 4806 : WRITE_NODE_FIELD(limitCount);
5945 4806 : WRITE_ENUM_FIELD(limitOption, LimitOption);
5946 4806 : WRITE_INT_FIELD(uniqNumCols);
5947 4806 : WRITE_ATTRNUMBER_ARRAY(uniqColIdx, node->uniqNumCols);
5948 4806 : WRITE_OID_ARRAY(uniqOperators, node->uniqNumCols);
5949 4806 : WRITE_OID_ARRAY(uniqCollations, node->uniqNumCols);
5950 4806 : }
5951 :
5952 : static void
5953 25948 : _outPlanRowMark(StringInfo str, const PlanRowMark *node)
5954 : {
5955 25948 : WRITE_NODE_TYPE("PLANROWMARK");
5956 :
5957 25948 : WRITE_UINT_FIELD(rti);
5958 25948 : WRITE_UINT_FIELD(prti);
5959 25948 : WRITE_UINT_FIELD(rowmarkId);
5960 25948 : WRITE_ENUM_FIELD(markType, RowMarkType);
5961 25948 : WRITE_INT_FIELD(allMarkTypes);
5962 25948 : WRITE_ENUM_FIELD(strength, LockClauseStrength);
5963 25948 : WRITE_ENUM_FIELD(waitPolicy, LockWaitPolicy);
5964 25948 : WRITE_BOOL_FIELD(isParent);
5965 25948 : }
5966 :
5967 : static void
5968 632 : _outPartitionPruneInfo(StringInfo str, const PartitionPruneInfo *node)
5969 : {
5970 632 : WRITE_NODE_TYPE("PARTITIONPRUNEINFO");
5971 :
5972 632 : WRITE_BITMAPSET_FIELD(relids);
5973 632 : WRITE_NODE_FIELD(prune_infos);
5974 632 : WRITE_BITMAPSET_FIELD(other_subplans);
5975 632 : }
5976 :
5977 : static void
5978 1232 : _outPartitionedRelPruneInfo(StringInfo str, const PartitionedRelPruneInfo *node)
5979 : {
5980 1232 : WRITE_NODE_TYPE("PARTITIONEDRELPRUNEINFO");
5981 :
5982 1232 : WRITE_UINT_FIELD(rtindex);
5983 1232 : WRITE_BITMAPSET_FIELD(present_parts);
5984 1232 : WRITE_INT_FIELD(nparts);
5985 1232 : WRITE_INT_ARRAY(subplan_map, node->nparts);
5986 1232 : WRITE_INT_ARRAY(subpart_map, node->nparts);
5987 1232 : WRITE_INT_ARRAY(leafpart_rti_map, node->nparts);
5988 1232 : WRITE_OID_ARRAY(relid_map, node->nparts);
5989 1232 : WRITE_NODE_FIELD(initial_pruning_steps);
5990 1232 : WRITE_NODE_FIELD(exec_pruning_steps);
5991 1232 : WRITE_BITMAPSET_FIELD(execparamids);
5992 1232 : }
5993 :
5994 : static void
5995 1052 : _outPartitionPruneStepOp(StringInfo str, const PartitionPruneStepOp *node)
5996 : {
5997 1052 : WRITE_NODE_TYPE("PARTITIONPRUNESTEPOP");
5998 :
5999 1052 : WRITE_INT_FIELD(step.step_id);
6000 1052 : WRITE_INT_FIELD(opstrategy);
6001 1052 : WRITE_NODE_FIELD(exprs);
6002 1052 : WRITE_NODE_FIELD(cmpfns);
6003 1052 : WRITE_BITMAPSET_FIELD(nullkeys);
6004 1052 : }
6005 :
6006 : static void
6007 188 : _outPartitionPruneStepCombine(StringInfo str, const PartitionPruneStepCombine *node)
6008 : {
6009 188 : WRITE_NODE_TYPE("PARTITIONPRUNESTEPCOMBINE");
6010 :
6011 188 : WRITE_INT_FIELD(step.step_id);
6012 188 : WRITE_ENUM_FIELD(combineOp, PartitionPruneCombineOp);
6013 188 : WRITE_NODE_FIELD(source_stepids);
6014 188 : }
6015 :
6016 : static void
6017 58494 : _outPlanInvalItem(StringInfo str, const PlanInvalItem *node)
6018 : {
6019 58494 : WRITE_NODE_TYPE("PLANINVALITEM");
6020 :
6021 58494 : WRITE_INT_FIELD(cacheId);
6022 58494 : WRITE_UINT_FIELD(hashValue);
6023 58494 : }
6024 :
6025 : static void
6026 0 : _outForeignKeyCacheInfo(StringInfo str, const ForeignKeyCacheInfo *node)
6027 : {
6028 0 : WRITE_NODE_TYPE("FOREIGNKEYCACHEINFO");
6029 :
6030 0 : WRITE_OID_FIELD(conoid);
6031 0 : WRITE_OID_FIELD(conrelid);
6032 0 : WRITE_OID_FIELD(confrelid);
6033 0 : WRITE_INT_FIELD(nkeys);
6034 0 : WRITE_BOOL_FIELD(conenforced);
6035 0 : WRITE_ATTRNUMBER_ARRAY(conkey, node->nkeys);
6036 0 : WRITE_ATTRNUMBER_ARRAY(confkey, node->nkeys);
6037 0 : WRITE_OID_ARRAY(conpfeqop, node->nkeys);
6038 0 : }
|