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