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