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 : 1832607 : _outAlias(StringInfo str, const Alias *node)
44 : : {
45 : 1832607 : WRITE_NODE_TYPE("ALIAS");
46 : :
47 : 1832607 : WRITE_STRING_FIELD(aliasname);
48 : 1832607 : WRITE_NODE_FIELD(colnames);
49 : 1832607 : }
50 : :
51 : : static void
52 : 577689 : _outRangeVar(StringInfo str, const RangeVar *node)
53 : : {
54 : 577689 : WRITE_NODE_TYPE("RANGEVAR");
55 : :
56 : 577689 : WRITE_STRING_FIELD(catalogname);
57 : 577689 : WRITE_STRING_FIELD(schemaname);
58 : 577689 : WRITE_STRING_FIELD(relname);
59 [ + + ]: 577689 : WRITE_BOOL_FIELD(inh);
60 : 577689 : WRITE_CHAR_FIELD(relpersistence);
61 : 577689 : WRITE_NODE_FIELD(alias);
62 [ + - ]: 577689 : WRITE_LOCATION_FIELD(location);
63 : 577689 : }
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 : 2605 : _outIntoClause(StringInfo str, const IntoClause *node)
91 : : {
92 : 2605 : WRITE_NODE_TYPE("INTOCLAUSE");
93 : :
94 : 2605 : WRITE_NODE_FIELD(rel);
95 : 2605 : WRITE_NODE_FIELD(colNames);
96 : 2605 : WRITE_STRING_FIELD(accessMethod);
97 : 2605 : WRITE_NODE_FIELD(options);
98 : 2605 : WRITE_ENUM_FIELD(onCommit, OnCommitAction);
99 : 2605 : WRITE_STRING_FIELD(tableSpaceName);
100 : 2605 : WRITE_NODE_FIELD(viewQuery);
101 [ + + ]: 2605 : WRITE_BOOL_FIELD(skipData);
102 : 2605 : }
103 : :
104 : : static void
105 : 8380619 : _outVar(StringInfo str, const Var *node)
106 : : {
107 : 8380619 : WRITE_NODE_TYPE("VAR");
108 : :
109 : 8380619 : WRITE_INT_FIELD(varno);
110 : 8380619 : WRITE_INT_FIELD(varattno);
111 : 8380619 : WRITE_OID_FIELD(vartype);
112 : 8380619 : WRITE_INT_FIELD(vartypmod);
113 : 8380619 : WRITE_OID_FIELD(varcollid);
114 : 8380619 : WRITE_BITMAPSET_FIELD(varnullingrels);
115 : 8380619 : WRITE_UINT_FIELD(varlevelsup);
116 : 8380619 : WRITE_ENUM_FIELD(varreturningtype, VarReturningType);
117 : 8380619 : WRITE_UINT_FIELD(varnosyn);
118 : 8380619 : WRITE_INT_FIELD(varattnosyn);
119 [ + + ]: 8380619 : WRITE_LOCATION_FIELD(location);
120 : 8380619 : }
121 : :
122 : : static void
123 : 210881 : _outParam(StringInfo str, const Param *node)
124 : : {
125 : 210881 : WRITE_NODE_TYPE("PARAM");
126 : :
127 : 210881 : WRITE_ENUM_FIELD(paramkind, ParamKind);
128 : 210881 : WRITE_INT_FIELD(paramid);
129 : 210881 : WRITE_OID_FIELD(paramtype);
130 : 210881 : WRITE_INT_FIELD(paramtypmod);
131 : 210881 : WRITE_OID_FIELD(paramcollid);
132 [ + + ]: 210881 : WRITE_LOCATION_FIELD(location);
133 : 210881 : }
134 : :
135 : : static void
136 : 68589 : _outAggref(StringInfo str, const Aggref *node)
137 : : {
138 : 68589 : WRITE_NODE_TYPE("AGGREF");
139 : :
140 : 68589 : WRITE_OID_FIELD(aggfnoid);
141 : 68589 : WRITE_OID_FIELD(aggtype);
142 : 68589 : WRITE_OID_FIELD(aggcollid);
143 : 68589 : WRITE_OID_FIELD(inputcollid);
144 : 68589 : WRITE_OID_FIELD(aggtranstype);
145 : 68589 : WRITE_NODE_FIELD(aggargtypes);
146 : 68589 : WRITE_NODE_FIELD(aggdirectargs);
147 : 68589 : WRITE_NODE_FIELD(args);
148 : 68589 : WRITE_NODE_FIELD(aggorder);
149 : 68589 : WRITE_NODE_FIELD(aggdistinct);
150 : 68589 : WRITE_NODE_FIELD(aggfilter);
151 [ + + ]: 68589 : WRITE_BOOL_FIELD(aggstar);
152 [ + + ]: 68589 : WRITE_BOOL_FIELD(aggvariadic);
153 : 68589 : WRITE_CHAR_FIELD(aggkind);
154 [ + + ]: 68589 : WRITE_BOOL_FIELD(aggpresorted);
155 : 68589 : WRITE_UINT_FIELD(agglevelsup);
156 : 68589 : WRITE_ENUM_FIELD(aggsplit, AggSplit);
157 : 68589 : WRITE_INT_FIELD(aggno);
158 : 68589 : WRITE_INT_FIELD(aggtransno);
159 [ + + ]: 68589 : WRITE_LOCATION_FIELD(location);
160 : 68589 : }
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 : 5411 : _outWindowFunc(StringInfo str, const WindowFunc *node)
176 : : {
177 : 5411 : WRITE_NODE_TYPE("WINDOWFUNC");
178 : :
179 : 5411 : WRITE_OID_FIELD(winfnoid);
180 : 5411 : WRITE_OID_FIELD(wintype);
181 : 5411 : WRITE_OID_FIELD(wincollid);
182 : 5411 : WRITE_OID_FIELD(inputcollid);
183 : 5411 : WRITE_NODE_FIELD(args);
184 : 5411 : WRITE_NODE_FIELD(aggfilter);
185 : 5411 : WRITE_NODE_FIELD(runCondition);
186 : 5411 : WRITE_UINT_FIELD(winref);
187 [ + + ]: 5411 : WRITE_BOOL_FIELD(winstar);
188 [ + + ]: 5411 : WRITE_BOOL_FIELD(winagg);
189 : 5411 : WRITE_INT_FIELD(ignore_nulls);
190 [ + + ]: 5411 : WRITE_LOCATION_FIELD(location);
191 : 5411 : }
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 : 26517 : _outSubscriptingRef(StringInfo str, const SubscriptingRef *node)
216 : : {
217 : 26517 : WRITE_NODE_TYPE("SUBSCRIPTINGREF");
218 : :
219 : 26517 : WRITE_OID_FIELD(refcontainertype);
220 : 26517 : WRITE_OID_FIELD(refelemtype);
221 : 26517 : WRITE_OID_FIELD(refrestype);
222 : 26517 : WRITE_INT_FIELD(reftypmod);
223 : 26517 : WRITE_OID_FIELD(refcollid);
224 : 26517 : WRITE_NODE_FIELD(refupperindexpr);
225 : 26517 : WRITE_NODE_FIELD(reflowerindexpr);
226 : 26517 : WRITE_NODE_FIELD(refexpr);
227 : 26517 : WRITE_NODE_FIELD(refassgnexpr);
228 : 26517 : }
229 : :
230 : : static void
231 : 499584 : _outFuncExpr(StringInfo str, const FuncExpr *node)
232 : : {
233 : 499584 : WRITE_NODE_TYPE("FUNCEXPR");
234 : :
235 : 499584 : WRITE_OID_FIELD(funcid);
236 : 499584 : WRITE_OID_FIELD(funcresulttype);
237 [ + + ]: 499584 : WRITE_BOOL_FIELD(funcretset);
238 [ + + ]: 499584 : WRITE_BOOL_FIELD(funcvariadic);
239 : 499584 : WRITE_ENUM_FIELD(funcformat, CoercionForm);
240 : 499584 : WRITE_OID_FIELD(funccollid);
241 : 499584 : WRITE_OID_FIELD(inputcollid);
242 : 499584 : WRITE_NODE_FIELD(args);
243 [ + + ]: 499584 : WRITE_LOCATION_FIELD(location);
244 : 499584 : }
245 : :
246 : : static void
247 : 50918 : _outNamedArgExpr(StringInfo str, const NamedArgExpr *node)
248 : : {
249 : 50918 : WRITE_NODE_TYPE("NAMEDARGEXPR");
250 : :
251 : 50918 : WRITE_NODE_FIELD(arg);
252 : 50918 : WRITE_STRING_FIELD(name);
253 : 50918 : WRITE_INT_FIELD(argnumber);
254 [ + + ]: 50918 : WRITE_LOCATION_FIELD(location);
255 : 50918 : }
256 : :
257 : : static void
258 : 1029762 : _outOpExpr(StringInfo str, const OpExpr *node)
259 : : {
260 : 1029762 : WRITE_NODE_TYPE("OPEXPR");
261 : :
262 : 1029762 : WRITE_OID_FIELD(opno);
263 : 1029762 : WRITE_OID_FIELD(opfuncid);
264 : 1029762 : WRITE_OID_FIELD(opresulttype);
265 [ + + ]: 1029762 : WRITE_BOOL_FIELD(opretset);
266 : 1029762 : WRITE_OID_FIELD(opcollid);
267 : 1029762 : WRITE_OID_FIELD(inputcollid);
268 : 1029762 : WRITE_NODE_FIELD(args);
269 [ + + ]: 1029762 : WRITE_LOCATION_FIELD(location);
270 : 1029762 : }
271 : :
272 : : static void
273 : 1298 : _outDistinctExpr(StringInfo str, const DistinctExpr *node)
274 : : {
275 : 1298 : WRITE_NODE_TYPE("DISTINCTEXPR");
276 : :
277 : 1298 : WRITE_OID_FIELD(opno);
278 : 1298 : WRITE_OID_FIELD(opfuncid);
279 : 1298 : WRITE_OID_FIELD(opresulttype);
280 [ - + ]: 1298 : WRITE_BOOL_FIELD(opretset);
281 : 1298 : WRITE_OID_FIELD(opcollid);
282 : 1298 : WRITE_OID_FIELD(inputcollid);
283 : 1298 : WRITE_NODE_FIELD(args);
284 [ + + ]: 1298 : WRITE_LOCATION_FIELD(location);
285 : 1298 : }
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 : 48513 : _outScalarArrayOpExpr(StringInfo str, const ScalarArrayOpExpr *node)
304 : : {
305 : 48513 : WRITE_NODE_TYPE("SCALARARRAYOPEXPR");
306 : :
307 : 48513 : WRITE_OID_FIELD(opno);
308 : 48513 : WRITE_OID_FIELD(opfuncid);
309 : 48513 : WRITE_OID_FIELD(hashfuncid);
310 : 48513 : WRITE_OID_FIELD(negfuncid);
311 [ + + ]: 48513 : WRITE_BOOL_FIELD(useOr);
312 : 48513 : WRITE_OID_FIELD(inputcollid);
313 : 48513 : WRITE_NODE_FIELD(args);
314 [ + + ]: 48513 : WRITE_LOCATION_FIELD(location);
315 : 48513 : }
316 : :
317 : : static void
318 : 72715 : _outSubLink(StringInfo str, const SubLink *node)
319 : : {
320 : 72715 : WRITE_NODE_TYPE("SUBLINK");
321 : :
322 : 72715 : WRITE_ENUM_FIELD(subLinkType, SubLinkType);
323 : 72715 : WRITE_INT_FIELD(subLinkId);
324 : 72715 : WRITE_NODE_FIELD(testexpr);
325 : 72715 : WRITE_NODE_FIELD(operName);
326 : 72715 : WRITE_NODE_FIELD(subselect);
327 [ + + ]: 72715 : WRITE_LOCATION_FIELD(location);
328 : 72715 : }
329 : :
330 : : static void
331 : 27426 : _outSubPlan(StringInfo str, const SubPlan *node)
332 : : {
333 : 27426 : WRITE_NODE_TYPE("SUBPLAN");
334 : :
335 : 27426 : WRITE_ENUM_FIELD(subLinkType, SubLinkType);
336 : 27426 : WRITE_NODE_FIELD(testexpr);
337 : 27426 : WRITE_NODE_FIELD(paramIds);
338 : 27426 : WRITE_INT_FIELD(plan_id);
339 : 27426 : WRITE_STRING_FIELD(plan_name);
340 : 27426 : WRITE_OID_FIELD(firstColType);
341 : 27426 : WRITE_INT_FIELD(firstColTypmod);
342 : 27426 : WRITE_OID_FIELD(firstColCollation);
343 [ + + ]: 27426 : WRITE_BOOL_FIELD(isInitPlan);
344 [ + + ]: 27426 : WRITE_BOOL_FIELD(useHashTable);
345 [ + + ]: 27426 : WRITE_BOOL_FIELD(unknownEqFalse);
346 [ + + ]: 27426 : WRITE_BOOL_FIELD(parallel_safe);
347 : 27426 : WRITE_NODE_FIELD(setParam);
348 : 27426 : WRITE_NODE_FIELD(parParam);
349 : 27426 : WRITE_NODE_FIELD(args);
350 : 27426 : WRITE_INT_FIELD(disabled_nodes);
351 : 27426 : WRITE_FLOAT_FIELD(startup_cost);
352 : 27426 : WRITE_FLOAT_FIELD(per_call_cost);
353 : 27426 : }
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 : 47893 : _outFieldSelect(StringInfo str, const FieldSelect *node)
365 : : {
366 : 47893 : WRITE_NODE_TYPE("FIELDSELECT");
367 : :
368 : 47893 : WRITE_NODE_FIELD(arg);
369 : 47893 : WRITE_INT_FIELD(fieldnum);
370 : 47893 : WRITE_OID_FIELD(resulttype);
371 : 47893 : WRITE_INT_FIELD(resulttypmod);
372 : 47893 : WRITE_OID_FIELD(resultcollid);
373 : 47893 : }
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 : 168615 : _outRelabelType(StringInfo str, const RelabelType *node)
388 : : {
389 : 168615 : WRITE_NODE_TYPE("RELABELTYPE");
390 : :
391 : 168615 : WRITE_NODE_FIELD(arg);
392 : 168615 : WRITE_OID_FIELD(resulttype);
393 : 168615 : WRITE_INT_FIELD(resulttypmod);
394 : 168615 : WRITE_OID_FIELD(resultcollid);
395 : 168615 : WRITE_ENUM_FIELD(relabelformat, CoercionForm);
396 [ + + ]: 168615 : WRITE_LOCATION_FIELD(location);
397 : 168615 : }
398 : :
399 : : static void
400 : 36176 : _outCoerceViaIO(StringInfo str, const CoerceViaIO *node)
401 : : {
402 : 36176 : WRITE_NODE_TYPE("COERCEVIAIO");
403 : :
404 : 36176 : WRITE_NODE_FIELD(arg);
405 : 36176 : WRITE_OID_FIELD(resulttype);
406 : 36176 : WRITE_OID_FIELD(resultcollid);
407 : 36176 : WRITE_ENUM_FIELD(coerceformat, CoercionForm);
408 [ + + ]: 36176 : WRITE_LOCATION_FIELD(location);
409 : 36176 : }
410 : :
411 : : static void
412 : 6791 : _outArrayCoerceExpr(StringInfo str, const ArrayCoerceExpr *node)
413 : : {
414 : 6791 : WRITE_NODE_TYPE("ARRAYCOERCEEXPR");
415 : :
416 : 6791 : WRITE_NODE_FIELD(arg);
417 : 6791 : WRITE_NODE_FIELD(elemexpr);
418 : 6791 : WRITE_OID_FIELD(resulttype);
419 : 6791 : WRITE_INT_FIELD(resulttypmod);
420 : 6791 : WRITE_OID_FIELD(resultcollid);
421 : 6791 : WRITE_ENUM_FIELD(coerceformat, CoercionForm);
422 [ + + ]: 6791 : WRITE_LOCATION_FIELD(location);
423 : 6791 : }
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 : 6940 : _outCollateExpr(StringInfo str, const CollateExpr *node)
438 : : {
439 : 6940 : WRITE_NODE_TYPE("COLLATEEXPR");
440 : :
441 : 6940 : WRITE_NODE_FIELD(arg);
442 : 6940 : WRITE_OID_FIELD(collOid);
443 [ + + ]: 6940 : WRITE_LOCATION_FIELD(location);
444 : 6940 : }
445 : :
446 : : static void
447 : 92039 : _outCaseExpr(StringInfo str, const CaseExpr *node)
448 : : {
449 : 92039 : WRITE_NODE_TYPE("CASEEXPR");
450 : :
451 : 92039 : WRITE_OID_FIELD(casetype);
452 : 92039 : WRITE_OID_FIELD(casecollid);
453 : 92039 : WRITE_NODE_FIELD(arg);
454 : 92039 : WRITE_NODE_FIELD(args);
455 : 92039 : WRITE_NODE_FIELD(defresult);
456 [ + + ]: 92039 : WRITE_LOCATION_FIELD(location);
457 : 92039 : }
458 : :
459 : : static void
460 : 187696 : _outCaseWhen(StringInfo str, const CaseWhen *node)
461 : : {
462 : 187696 : WRITE_NODE_TYPE("CASEWHEN");
463 : :
464 : 187696 : WRITE_NODE_FIELD(expr);
465 : 187696 : WRITE_NODE_FIELD(result);
466 [ + + ]: 187696 : WRITE_LOCATION_FIELD(location);
467 : 187696 : }
468 : :
469 : : static void
470 : 42497 : _outCaseTestExpr(StringInfo str, const CaseTestExpr *node)
471 : : {
472 : 42497 : WRITE_NODE_TYPE("CASETESTEXPR");
473 : :
474 : 42497 : WRITE_OID_FIELD(typeId);
475 : 42497 : WRITE_INT_FIELD(typeMod);
476 : 42497 : WRITE_OID_FIELD(collation);
477 : 42497 : }
478 : :
479 : : static void
480 : 21209 : _outArrayExpr(StringInfo str, const ArrayExpr *node)
481 : : {
482 : 21209 : WRITE_NODE_TYPE("ARRAYEXPR");
483 : :
484 : 21209 : WRITE_OID_FIELD(array_typeid);
485 : 21209 : WRITE_OID_FIELD(array_collid);
486 : 21209 : WRITE_OID_FIELD(element_typeid);
487 : 21209 : WRITE_NODE_FIELD(elements);
488 [ + + ]: 21209 : WRITE_BOOL_FIELD(multidims);
489 [ + + ]: 21209 : WRITE_LOCATION_FIELD(list_start);
490 [ + + ]: 21209 : WRITE_LOCATION_FIELD(list_end);
491 [ + + ]: 21209 : WRITE_LOCATION_FIELD(location);
492 : 21209 : }
493 : :
494 : : static void
495 : 9468 : _outRowExpr(StringInfo str, const RowExpr *node)
496 : : {
497 : 9468 : WRITE_NODE_TYPE("ROWEXPR");
498 : :
499 : 9468 : WRITE_NODE_FIELD(args);
500 : 9468 : WRITE_OID_FIELD(row_typeid);
501 : 9468 : WRITE_ENUM_FIELD(row_format, CoercionForm);
502 : 9468 : WRITE_NODE_FIELD(colnames);
503 [ + + ]: 9468 : WRITE_LOCATION_FIELD(location);
504 : 9468 : }
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 : 10209 : _outCoalesceExpr(StringInfo str, const CoalesceExpr *node)
521 : : {
522 : 10209 : WRITE_NODE_TYPE("COALESCEEXPR");
523 : :
524 : 10209 : WRITE_OID_FIELD(coalescetype);
525 : 10209 : WRITE_OID_FIELD(coalescecollid);
526 : 10209 : WRITE_NODE_FIELD(args);
527 [ + + ]: 10209 : WRITE_LOCATION_FIELD(location);
528 : 10209 : }
529 : :
530 : : static void
531 : 635 : _outMinMaxExpr(StringInfo str, const MinMaxExpr *node)
532 : : {
533 : 635 : WRITE_NODE_TYPE("MINMAXEXPR");
534 : :
535 : 635 : WRITE_OID_FIELD(minmaxtype);
536 : 635 : WRITE_OID_FIELD(minmaxcollid);
537 : 635 : WRITE_OID_FIELD(inputcollid);
538 : 635 : WRITE_ENUM_FIELD(op, MinMaxOp);
539 : 635 : WRITE_NODE_FIELD(args);
540 [ + + ]: 635 : WRITE_LOCATION_FIELD(location);
541 : 635 : }
542 : :
543 : : static void
544 : 8387 : _outSQLValueFunction(StringInfo str, const SQLValueFunction *node)
545 : : {
546 : 8387 : WRITE_NODE_TYPE("SQLVALUEFUNCTION");
547 : :
548 : 8387 : WRITE_ENUM_FIELD(op, SQLValueFunctionOp);
549 : 8387 : WRITE_OID_FIELD(type);
550 : 8387 : WRITE_INT_FIELD(typmod);
551 [ + + ]: 8387 : WRITE_LOCATION_FIELD(location);
552 : 8387 : }
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 : 35684 : _outNullTest(StringInfo str, const NullTest *node)
699 : : {
700 : 35684 : WRITE_NODE_TYPE("NULLTEST");
701 : :
702 : 35684 : WRITE_NODE_FIELD(arg);
703 : 35684 : WRITE_ENUM_FIELD(nulltesttype, NullTestType);
704 [ + + ]: 35684 : WRITE_BOOL_FIELD(argisrow);
705 [ + + ]: 35684 : WRITE_LOCATION_FIELD(location);
706 : 35684 : }
707 : :
708 : : static void
709 : 2504 : _outBooleanTest(StringInfo str, const BooleanTest *node)
710 : : {
711 : 2504 : WRITE_NODE_TYPE("BOOLEANTEST");
712 : :
713 : 2504 : WRITE_NODE_FIELD(arg);
714 : 2504 : WRITE_ENUM_FIELD(booltesttype, BoolTestType);
715 [ + + ]: 2504 : WRITE_LOCATION_FIELD(location);
716 : 2504 : }
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 : 67364 : _outCoerceToDomain(StringInfo str, const CoerceToDomain *node)
733 : : {
734 : 67364 : WRITE_NODE_TYPE("COERCETODOMAIN");
735 : :
736 : 67364 : WRITE_NODE_FIELD(arg);
737 : 67364 : WRITE_OID_FIELD(resulttype);
738 : 67364 : WRITE_INT_FIELD(resulttypmod);
739 : 67364 : WRITE_OID_FIELD(resultcollid);
740 : 67364 : WRITE_ENUM_FIELD(coercionformat, CoercionForm);
741 [ + + ]: 67364 : WRITE_LOCATION_FIELD(location);
742 : 67364 : }
743 : :
744 : : static void
745 : 564 : _outCoerceToDomainValue(StringInfo str, const CoerceToDomainValue *node)
746 : : {
747 : 564 : WRITE_NODE_TYPE("COERCETODOMAINVALUE");
748 : :
749 : 564 : WRITE_OID_FIELD(typeId);
750 : 564 : WRITE_INT_FIELD(typeMod);
751 : 564 : WRITE_OID_FIELD(collation);
752 [ - + ]: 564 : WRITE_LOCATION_FIELD(location);
753 : 564 : }
754 : :
755 : : static void
756 : 1039 : _outSetToDefault(StringInfo str, const SetToDefault *node)
757 : : {
758 : 1039 : WRITE_NODE_TYPE("SETTODEFAULT");
759 : :
760 : 1039 : WRITE_OID_FIELD(typeId);
761 : 1039 : WRITE_INT_FIELD(typeMod);
762 : 1039 : WRITE_OID_FIELD(collation);
763 [ + + ]: 1039 : WRITE_LOCATION_FIELD(location);
764 : 1039 : }
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 : 58 : _outGraphPropertyRef(StringInfo str, const GraphPropertyRef *node)
816 : : {
817 : 58 : WRITE_NODE_TYPE("GRAPHPROPERTYREF");
818 : :
819 : 58 : WRITE_STRING_FIELD(elvarname);
820 : 58 : WRITE_OID_FIELD(propid);
821 : 58 : WRITE_OID_FIELD(typeId);
822 : 58 : WRITE_INT_FIELD(typmod);
823 : 58 : WRITE_OID_FIELD(collation);
824 [ + + ]: 58 : WRITE_LOCATION_FIELD(location);
825 : 58 : }
826 : :
827 : : static void
828 : 4810413 : _outTargetEntry(StringInfo str, const TargetEntry *node)
829 : : {
830 : 4810413 : WRITE_NODE_TYPE("TARGETENTRY");
831 : :
832 : 4810413 : WRITE_NODE_FIELD(expr);
833 : 4810413 : WRITE_INT_FIELD(resno);
834 : 4810413 : WRITE_STRING_FIELD(resname);
835 : 4810413 : WRITE_UINT_FIELD(ressortgroupref);
836 : 4810413 : WRITE_OID_FIELD(resorigtbl);
837 : 4810413 : WRITE_INT_FIELD(resorigcol);
838 [ + + ]: 4810413 : WRITE_BOOL_FIELD(resjunk);
839 : 4810413 : }
840 : :
841 : : static void
842 : 393603 : _outRangeTblRef(StringInfo str, const RangeTblRef *node)
843 : : {
844 : 393603 : WRITE_NODE_TYPE("RANGETBLREF");
845 : :
846 : 393603 : WRITE_INT_FIELD(rtindex);
847 : 393603 : }
848 : :
849 : : static void
850 : 133594 : _outJoinExpr(StringInfo str, const JoinExpr *node)
851 : : {
852 : 133594 : WRITE_NODE_TYPE("JOINEXPR");
853 : :
854 : 133594 : WRITE_ENUM_FIELD(jointype, JoinType);
855 [ + + ]: 133594 : WRITE_BOOL_FIELD(isNatural);
856 : 133594 : WRITE_NODE_FIELD(larg);
857 : 133594 : WRITE_NODE_FIELD(rarg);
858 : 133594 : WRITE_NODE_FIELD(usingClause);
859 : 133594 : WRITE_NODE_FIELD(join_using_alias);
860 : 133594 : WRITE_NODE_FIELD(quals);
861 : 133594 : WRITE_NODE_FIELD(alias);
862 : 133594 : WRITE_INT_FIELD(rtindex);
863 : 133594 : }
864 : :
865 : : static void
866 : 399128 : _outFromExpr(StringInfo str, const FromExpr *node)
867 : : {
868 : 399128 : WRITE_NODE_TYPE("FROMEXPR");
869 : :
870 : 399128 : WRITE_NODE_FIELD(fromlist);
871 : 399128 : WRITE_NODE_FIELD(quals);
872 : 399128 : }
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 : 1994 : _outForPortionOfExpr(StringInfo str, const ForPortionOfExpr *node)
892 : : {
893 : 1994 : WRITE_NODE_TYPE("FORPORTIONOFEXPR");
894 : :
895 : 1994 : WRITE_NODE_FIELD(rangeVar);
896 : 1994 : WRITE_NODE_FIELD(targetFrom);
897 : 1994 : WRITE_NODE_FIELD(targetTo);
898 : 1994 : WRITE_NODE_FIELD(targetRange);
899 : 1994 : WRITE_OID_FIELD(rangeType);
900 [ + + ]: 1994 : WRITE_BOOL_FIELD(isDomain);
901 : 1994 : WRITE_NODE_FIELD(overlapsExpr);
902 : 1994 : WRITE_NODE_FIELD(rangeTargetList);
903 : 1994 : WRITE_OID_FIELD(withoutPortionProc);
904 [ + + ]: 1994 : WRITE_LOCATION_FIELD(location);
905 [ + + ]: 1994 : WRITE_LOCATION_FIELD(targetLocation);
906 : 1994 : }
907 : :
908 : : static void
909 : 645933 : _outQuery(StringInfo str, const Query *node)
910 : : {
911 : 645933 : WRITE_NODE_TYPE("QUERY");
912 : :
913 : 645933 : WRITE_ENUM_FIELD(commandType, CmdType);
914 : 645933 : WRITE_ENUM_FIELD(querySource, QuerySource);
915 [ + + ]: 645933 : WRITE_BOOL_FIELD(canSetTag);
916 : 645933 : WRITE_NODE_FIELD(utilityStmt);
917 : 645933 : WRITE_INT_FIELD(resultRelation);
918 : 645933 : WRITE_NODE_FIELD(forPortionOf);
919 [ + + ]: 645933 : WRITE_BOOL_FIELD(hasAggs);
920 [ + + ]: 645933 : WRITE_BOOL_FIELD(hasWindowFuncs);
921 [ + + ]: 645933 : WRITE_BOOL_FIELD(hasTargetSRFs);
922 [ + + ]: 645933 : WRITE_BOOL_FIELD(hasSubLinks);
923 [ + + ]: 645933 : WRITE_BOOL_FIELD(hasDistinctOn);
924 [ + + ]: 645933 : WRITE_BOOL_FIELD(hasRecursive);
925 [ + + ]: 645933 : WRITE_BOOL_FIELD(hasModifyingCTE);
926 [ + + ]: 645933 : WRITE_BOOL_FIELD(hasForUpdate);
927 [ + + ]: 645933 : WRITE_BOOL_FIELD(hasRowSecurity);
928 [ + + ]: 645933 : WRITE_BOOL_FIELD(hasGroupRTE);
929 [ + + ]: 645933 : WRITE_BOOL_FIELD(isReturn);
930 : 645933 : WRITE_NODE_FIELD(cteList);
931 : 645933 : WRITE_NODE_FIELD(rtable);
932 : 645933 : WRITE_NODE_FIELD(rteperminfos);
933 : 645933 : WRITE_NODE_FIELD(jointree);
934 : 645933 : WRITE_NODE_FIELD(mergeActionList);
935 : 645933 : WRITE_INT_FIELD(mergeTargetRelation);
936 : 645933 : WRITE_NODE_FIELD(mergeJoinCondition);
937 : 645933 : WRITE_NODE_FIELD(targetList);
938 : 645933 : WRITE_ENUM_FIELD(override, OverridingKind);
939 : 645933 : WRITE_NODE_FIELD(onConflict);
940 : 645933 : WRITE_STRING_FIELD(returningOldAlias);
941 : 645933 : WRITE_STRING_FIELD(returningNewAlias);
942 : 645933 : WRITE_NODE_FIELD(returningList);
943 : 645933 : WRITE_NODE_FIELD(groupClause);
944 [ + + ]: 645933 : WRITE_BOOL_FIELD(groupDistinct);
945 : 645933 : WRITE_NODE_FIELD(groupingSets);
946 : 645933 : WRITE_NODE_FIELD(havingQual);
947 : 645933 : WRITE_NODE_FIELD(windowClause);
948 : 645933 : WRITE_NODE_FIELD(distinctClause);
949 : 645933 : WRITE_NODE_FIELD(sortClause);
950 : 645933 : WRITE_NODE_FIELD(limitOffset);
951 : 645933 : WRITE_NODE_FIELD(limitCount);
952 : 645933 : WRITE_ENUM_FIELD(limitOption, LimitOption);
953 : 645933 : WRITE_NODE_FIELD(rowMarks);
954 : 645933 : WRITE_NODE_FIELD(setOperations);
955 : 645933 : WRITE_NODE_FIELD(constraintDeps);
956 : 645933 : WRITE_NODE_FIELD(withCheckOptions);
957 [ + + ]: 645933 : WRITE_LOCATION_FIELD(stmt_location);
958 [ + + ]: 645933 : WRITE_LOCATION_FIELD(stmt_len);
959 : 645933 : }
960 : :
961 : : static void
962 : 485028 : _outTypeName(StringInfo str, const TypeName *node)
963 : : {
964 : 485028 : WRITE_NODE_TYPE("TYPENAME");
965 : :
966 : 485028 : WRITE_NODE_FIELD(names);
967 : 485028 : WRITE_OID_FIELD(typeOid);
968 [ + + ]: 485028 : WRITE_BOOL_FIELD(setof);
969 [ + + ]: 485028 : WRITE_BOOL_FIELD(pct_type);
970 : 485028 : WRITE_NODE_FIELD(typmods);
971 : 485028 : WRITE_INT_FIELD(typemod);
972 : 485028 : WRITE_NODE_FIELD(arrayBounds);
973 [ + - ]: 485028 : WRITE_LOCATION_FIELD(location);
974 : 485028 : }
975 : :
976 : : static void
977 : 1358820 : _outColumnRef(StringInfo str, const ColumnRef *node)
978 : : {
979 : 1358820 : WRITE_NODE_TYPE("COLUMNREF");
980 : :
981 : 1358820 : WRITE_NODE_FIELD(fields);
982 [ + - ]: 1358820 : WRITE_LOCATION_FIELD(location);
983 : 1358820 : }
984 : :
985 : : static void
986 : 31651 : _outParamRef(StringInfo str, const ParamRef *node)
987 : : {
988 : 31651 : WRITE_NODE_TYPE("PARAMREF");
989 : :
990 : 31651 : WRITE_INT_FIELD(number);
991 [ + - ]: 31651 : WRITE_LOCATION_FIELD(location);
992 : 31651 : }
993 : :
994 : : static void
995 : 236419 : _outTypeCast(StringInfo str, const TypeCast *node)
996 : : {
997 : 236419 : WRITE_NODE_TYPE("TYPECAST");
998 : :
999 : 236419 : WRITE_NODE_FIELD(arg);
1000 : 236419 : WRITE_NODE_FIELD(typeName);
1001 [ + - ]: 236419 : WRITE_LOCATION_FIELD(location);
1002 : 236419 : }
1003 : :
1004 : : static void
1005 : 8204 : _outCollateClause(StringInfo str, const CollateClause *node)
1006 : : {
1007 : 8204 : WRITE_NODE_TYPE("COLLATECLAUSE");
1008 : :
1009 : 8204 : WRITE_NODE_FIELD(arg);
1010 : 8204 : WRITE_NODE_FIELD(collname);
1011 [ + - ]: 8204 : WRITE_LOCATION_FIELD(location);
1012 : 8204 : }
1013 : :
1014 : : static void
1015 : 29258 : _outRoleSpec(StringInfo str, const RoleSpec *node)
1016 : : {
1017 : 29258 : WRITE_NODE_TYPE("ROLESPEC");
1018 : :
1019 : 29258 : WRITE_ENUM_FIELD(roletype, RoleSpecType);
1020 : 29258 : WRITE_STRING_FIELD(rolename);
1021 [ + - ]: 29258 : WRITE_LOCATION_FIELD(location);
1022 : 29258 : }
1023 : :
1024 : : static void
1025 : 271565 : _outFuncCall(StringInfo str, const FuncCall *node)
1026 : : {
1027 : 271565 : WRITE_NODE_TYPE("FUNCCALL");
1028 : :
1029 : 271565 : WRITE_NODE_FIELD(funcname);
1030 : 271565 : WRITE_NODE_FIELD(args);
1031 : 271565 : WRITE_NODE_FIELD(agg_order);
1032 : 271565 : WRITE_NODE_FIELD(agg_filter);
1033 : 271565 : WRITE_NODE_FIELD(over);
1034 : 271565 : WRITE_INT_FIELD(ignore_nulls);
1035 [ + + ]: 271565 : WRITE_BOOL_FIELD(agg_within_group);
1036 [ + + ]: 271565 : WRITE_BOOL_FIELD(agg_star);
1037 [ + + ]: 271565 : WRITE_BOOL_FIELD(agg_distinct);
1038 [ + + ]: 271565 : WRITE_BOOL_FIELD(func_variadic);
1039 : 271565 : WRITE_ENUM_FIELD(funcformat, CoercionForm);
1040 [ + - ]: 271565 : WRITE_LOCATION_FIELD(location);
1041 : 271565 : }
1042 : :
1043 : : static void
1044 : 47869 : _outA_Star(StringInfo str, const A_Star *node)
1045 : : {
1046 : 47869 : WRITE_NODE_TYPE("A_STAR");
1047 : :
1048 : 47869 : }
1049 : :
1050 : : static void
1051 : 10216 : _outA_Indices(StringInfo str, const A_Indices *node)
1052 : : {
1053 : 10216 : WRITE_NODE_TYPE("A_INDICES");
1054 : :
1055 [ + + ]: 10216 : WRITE_BOOL_FIELD(is_slice);
1056 : 10216 : WRITE_NODE_FIELD(lidx);
1057 : 10216 : WRITE_NODE_FIELD(uidx);
1058 : 10216 : }
1059 : :
1060 : : static void
1061 : 25556 : _outA_Indirection(StringInfo str, const A_Indirection *node)
1062 : : {
1063 : 25556 : WRITE_NODE_TYPE("A_INDIRECTION");
1064 : :
1065 : 25556 : WRITE_NODE_FIELD(arg);
1066 : 25556 : WRITE_NODE_FIELD(indirection);
1067 : 25556 : }
1068 : :
1069 : : static void
1070 : 5142 : _outA_ArrayExpr(StringInfo str, const A_ArrayExpr *node)
1071 : : {
1072 : 5142 : WRITE_NODE_TYPE("A_ARRAYEXPR");
1073 : :
1074 : 5142 : WRITE_NODE_FIELD(elements);
1075 [ + - ]: 5142 : WRITE_LOCATION_FIELD(list_start);
1076 [ + - ]: 5142 : WRITE_LOCATION_FIELD(list_end);
1077 [ + - ]: 5142 : WRITE_LOCATION_FIELD(location);
1078 : 5142 : }
1079 : :
1080 : : static void
1081 : 843323 : _outResTarget(StringInfo str, const ResTarget *node)
1082 : : {
1083 : 843323 : WRITE_NODE_TYPE("RESTARGET");
1084 : :
1085 : 843323 : WRITE_STRING_FIELD(name);
1086 : 843323 : WRITE_NODE_FIELD(indirection);
1087 : 843323 : WRITE_NODE_FIELD(val);
1088 [ + - ]: 843323 : WRITE_LOCATION_FIELD(location);
1089 : 843323 : }
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 : 75614 : _outSortBy(StringInfo str, const SortBy *node)
1103 : : {
1104 : 75614 : WRITE_NODE_TYPE("SORTBY");
1105 : :
1106 : 75614 : WRITE_NODE_FIELD(node);
1107 : 75614 : WRITE_ENUM_FIELD(sortby_dir, SortByDir);
1108 : 75614 : WRITE_ENUM_FIELD(sortby_nulls, SortByNulls);
1109 : 75614 : WRITE_NODE_FIELD(useOp);
1110 [ + - ]: 75614 : WRITE_LOCATION_FIELD(location);
1111 : 75614 : }
1112 : :
1113 : : static void
1114 : 3277 : _outWindowDef(StringInfo str, const WindowDef *node)
1115 : : {
1116 : 3277 : WRITE_NODE_TYPE("WINDOWDEF");
1117 : :
1118 : 3277 : WRITE_STRING_FIELD(name);
1119 : 3277 : WRITE_STRING_FIELD(refname);
1120 : 3277 : WRITE_NODE_FIELD(partitionClause);
1121 : 3277 : WRITE_NODE_FIELD(orderClause);
1122 : 3277 : WRITE_INT_FIELD(frameOptions);
1123 : 3277 : WRITE_NODE_FIELD(startOffset);
1124 : 3277 : WRITE_NODE_FIELD(endOffset);
1125 [ + - ]: 3277 : WRITE_LOCATION_FIELD(location);
1126 : 3277 : }
1127 : :
1128 : : static void
1129 : 16451 : _outRangeSubselect(StringInfo str, const RangeSubselect *node)
1130 : : {
1131 : 16451 : WRITE_NODE_TYPE("RANGESUBSELECT");
1132 : :
1133 [ + + ]: 16451 : WRITE_BOOL_FIELD(lateral);
1134 : 16451 : WRITE_NODE_FIELD(subquery);
1135 : 16451 : WRITE_NODE_FIELD(alias);
1136 : 16451 : }
1137 : :
1138 : : static void
1139 : 33198 : _outRangeFunction(StringInfo str, const RangeFunction *node)
1140 : : {
1141 : 33198 : WRITE_NODE_TYPE("RANGEFUNCTION");
1142 : :
1143 [ + + ]: 33198 : WRITE_BOOL_FIELD(lateral);
1144 [ + + ]: 33198 : WRITE_BOOL_FIELD(ordinality);
1145 [ + + ]: 33198 : WRITE_BOOL_FIELD(is_rowsfrom);
1146 : 33198 : WRITE_NODE_FIELD(functions);
1147 : 33198 : WRITE_NODE_FIELD(alias);
1148 : 33198 : WRITE_NODE_FIELD(coldeflist);
1149 : 33198 : }
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 : 495 : _outRangeGraphTable(StringInfo str, const RangeGraphTable *node)
1181 : : {
1182 : 495 : WRITE_NODE_TYPE("RANGEGRAPHTABLE");
1183 : :
1184 : 495 : WRITE_NODE_FIELD(graph_name);
1185 : 495 : WRITE_NODE_FIELD(graph_pattern);
1186 : 495 : WRITE_NODE_FIELD(columns);
1187 : 495 : WRITE_NODE_FIELD(alias);
1188 [ + - ]: 495 : WRITE_LOCATION_FIELD(location);
1189 : 495 : }
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 : 96885 : _outColumnDef(StringInfo str, const ColumnDef *node)
1205 : : {
1206 : 96885 : WRITE_NODE_TYPE("COLUMNDEF");
1207 : :
1208 : 96885 : WRITE_STRING_FIELD(colname);
1209 : 96885 : WRITE_NODE_FIELD(typeName);
1210 : 96885 : WRITE_STRING_FIELD(compression);
1211 : 96885 : WRITE_INT_FIELD(inhcount);
1212 [ + + ]: 96885 : WRITE_BOOL_FIELD(is_local);
1213 [ - + ]: 96885 : WRITE_BOOL_FIELD(is_not_null);
1214 [ - + ]: 96885 : WRITE_BOOL_FIELD(is_from_type);
1215 : 96885 : WRITE_CHAR_FIELD(storage);
1216 : 96885 : WRITE_STRING_FIELD(storage_name);
1217 : 96885 : WRITE_NODE_FIELD(raw_default);
1218 : 96885 : WRITE_NODE_FIELD(cooked_default);
1219 : 96885 : WRITE_CHAR_FIELD(identity);
1220 : 96885 : WRITE_NODE_FIELD(identitySequence);
1221 : 96885 : WRITE_CHAR_FIELD(generated);
1222 : 96885 : WRITE_NODE_FIELD(collClause);
1223 : 96885 : WRITE_OID_FIELD(collOid);
1224 : 96885 : WRITE_NODE_FIELD(constraints);
1225 : 96885 : WRITE_NODE_FIELD(fdwoptions);
1226 [ + - ]: 96885 : WRITE_LOCATION_FIELD(location);
1227 : 96885 : }
1228 : :
1229 : : static void
1230 : 1066 : _outTableLikeClause(StringInfo str, const TableLikeClause *node)
1231 : : {
1232 : 1066 : WRITE_NODE_TYPE("TABLELIKECLAUSE");
1233 : :
1234 : 1066 : WRITE_NODE_FIELD(relation);
1235 : 1066 : WRITE_UINT_FIELD(options);
1236 : 1066 : WRITE_OID_FIELD(relationOid);
1237 : 1066 : }
1238 : :
1239 : : static void
1240 : 13528 : _outIndexElem(StringInfo str, const IndexElem *node)
1241 : : {
1242 : 13528 : WRITE_NODE_TYPE("INDEXELEM");
1243 : :
1244 : 13528 : WRITE_STRING_FIELD(name);
1245 : 13528 : WRITE_NODE_FIELD(expr);
1246 : 13528 : WRITE_STRING_FIELD(indexcolname);
1247 : 13528 : WRITE_NODE_FIELD(collation);
1248 : 13528 : WRITE_NODE_FIELD(opclass);
1249 : 13528 : WRITE_NODE_FIELD(opclassopts);
1250 : 13528 : WRITE_ENUM_FIELD(ordering, SortByDir);
1251 : 13528 : WRITE_ENUM_FIELD(nulls_ordering, SortByNulls);
1252 [ + - ]: 13528 : WRITE_LOCATION_FIELD(location);
1253 : 13528 : }
1254 : :
1255 : : static void
1256 : 438590 : _outDefElem(StringInfo str, const DefElem *node)
1257 : : {
1258 : 438590 : WRITE_NODE_TYPE("DEFELEM");
1259 : :
1260 : 438590 : WRITE_STRING_FIELD(defnamespace);
1261 : 438590 : WRITE_STRING_FIELD(defname);
1262 : 438590 : WRITE_NODE_FIELD(arg);
1263 : 438590 : WRITE_ENUM_FIELD(defaction, DefElemAction);
1264 [ + - ]: 438590 : WRITE_LOCATION_FIELD(location);
1265 : 438590 : }
1266 : :
1267 : : static void
1268 : 4050 : _outLockingClause(StringInfo str, const LockingClause *node)
1269 : : {
1270 : 4050 : WRITE_NODE_TYPE("LOCKINGCLAUSE");
1271 : :
1272 : 4050 : WRITE_NODE_FIELD(lockedRels);
1273 : 4050 : WRITE_ENUM_FIELD(strength, LockClauseStrength);
1274 : 4050 : WRITE_ENUM_FIELD(waitPolicy, LockWaitPolicy);
1275 : 4050 : }
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 : 8044 : _outPartitionElem(StringInfo str, const PartitionElem *node)
1291 : : {
1292 : 8044 : WRITE_NODE_TYPE("PARTITIONELEM");
1293 : :
1294 : 8044 : WRITE_STRING_FIELD(name);
1295 : 8044 : WRITE_NODE_FIELD(expr);
1296 : 8044 : WRITE_NODE_FIELD(collation);
1297 : 8044 : WRITE_NODE_FIELD(opclass);
1298 [ + - ]: 8044 : WRITE_LOCATION_FIELD(location);
1299 : 8044 : }
1300 : :
1301 : : static void
1302 : 7400 : _outPartitionSpec(StringInfo str, const PartitionSpec *node)
1303 : : {
1304 : 7400 : WRITE_NODE_TYPE("PARTITIONSPEC");
1305 : :
1306 : 7400 : WRITE_ENUM_FIELD(strategy, PartitionStrategy);
1307 : 7400 : WRITE_NODE_FIELD(partParams);
1308 [ + - ]: 7400 : WRITE_LOCATION_FIELD(location);
1309 : 7400 : }
1310 : :
1311 : : static void
1312 : 25695 : _outPartitionBoundSpec(StringInfo str, const PartitionBoundSpec *node)
1313 : : {
1314 : 25695 : WRITE_NODE_TYPE("PARTITIONBOUNDSPEC");
1315 : :
1316 : 25695 : WRITE_CHAR_FIELD(strategy);
1317 [ + + ]: 25695 : WRITE_BOOL_FIELD(is_default);
1318 : 25695 : WRITE_INT_FIELD(modulus);
1319 : 25695 : WRITE_INT_FIELD(remainder);
1320 : 25695 : WRITE_NODE_FIELD(listdatums);
1321 : 25695 : WRITE_NODE_FIELD(lowerdatums);
1322 : 25695 : WRITE_NODE_FIELD(upperdatums);
1323 [ + + ]: 25695 : WRITE_LOCATION_FIELD(location);
1324 : 25695 : }
1325 : :
1326 : : static void
1327 : 9842 : _outPartitionRangeDatum(StringInfo str, const PartitionRangeDatum *node)
1328 : : {
1329 : 9842 : WRITE_NODE_TYPE("PARTITIONRANGEDATUM");
1330 : :
1331 : 9842 : WRITE_ENUM_FIELD(kind, PartitionRangeDatumKind);
1332 : 9842 : WRITE_NODE_FIELD(value);
1333 [ - + ]: 9842 : WRITE_LOCATION_FIELD(location);
1334 : 9842 : }
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 : 524 : _outGraphPattern(StringInfo str, const GraphPattern *node)
1358 : : {
1359 : 524 : WRITE_NODE_TYPE("GRAPHPATTERN");
1360 : :
1361 : 524 : WRITE_NODE_FIELD(path_pattern_list);
1362 : 524 : WRITE_NODE_FIELD(whereClause);
1363 : 524 : }
1364 : :
1365 : : static void
1366 : 1510 : _outGraphElementPattern(StringInfo str, const GraphElementPattern *node)
1367 : : {
1368 : 1510 : WRITE_NODE_TYPE("GRAPHELEMENTPATTERN");
1369 : :
1370 : 1510 : WRITE_ENUM_FIELD(kind, GraphElementPatternKind);
1371 : 1510 : WRITE_STRING_FIELD(variable);
1372 : 1510 : WRITE_NODE_FIELD(labelexpr);
1373 : 1510 : WRITE_NODE_FIELD(subexpr);
1374 : 1510 : WRITE_NODE_FIELD(whereClause);
1375 : 1510 : WRITE_NODE_FIELD(quantifier);
1376 [ + + ]: 1510 : WRITE_LOCATION_FIELD(location);
1377 : 1510 : }
1378 : :
1379 : : static void
1380 : 682660 : _outRTEPermissionInfo(StringInfo str, const RTEPermissionInfo *node)
1381 : : {
1382 : 682660 : WRITE_NODE_TYPE("RTEPERMISSIONINFO");
1383 : :
1384 : 682660 : WRITE_OID_FIELD(relid);
1385 [ + + ]: 682660 : WRITE_BOOL_FIELD(inh);
1386 : 682660 : WRITE_UINT64_FIELD(requiredPerms);
1387 : 682660 : WRITE_OID_FIELD(checkAsUser);
1388 : 682660 : WRITE_BITMAPSET_FIELD(selectedCols);
1389 : 682660 : WRITE_BITMAPSET_FIELD(insertedCols);
1390 : 682660 : WRITE_BITMAPSET_FIELD(updatedCols);
1391 : 682660 : }
1392 : :
1393 : : static void
1394 : 65660 : _outRangeTblFunction(StringInfo str, const RangeTblFunction *node)
1395 : : {
1396 : 65660 : WRITE_NODE_TYPE("RANGETBLFUNCTION");
1397 : :
1398 : 65660 : WRITE_NODE_FIELD(funcexpr);
1399 : 65660 : WRITE_INT_FIELD(funccolcount);
1400 : 65660 : WRITE_NODE_FIELD(funccolnames);
1401 : 65660 : WRITE_NODE_FIELD(funccoltypes);
1402 : 65660 : WRITE_NODE_FIELD(funccoltypmods);
1403 : 65660 : WRITE_NODE_FIELD(funccolcollations);
1404 : 65660 : WRITE_BITMAPSET_FIELD(funcparams);
1405 : 65660 : }
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 : 4165 : _outWithCheckOption(StringInfo str, const WithCheckOption *node)
1419 : : {
1420 : 4165 : WRITE_NODE_TYPE("WITHCHECKOPTION");
1421 : :
1422 : 4165 : WRITE_ENUM_FIELD(kind, WCOKind);
1423 : 4165 : WRITE_STRING_FIELD(relname);
1424 : 4165 : WRITE_STRING_FIELD(polname);
1425 : 4165 : WRITE_NODE_FIELD(qual);
1426 [ + + ]: 4165 : WRITE_BOOL_FIELD(cascaded);
1427 : 4165 : }
1428 : :
1429 : : static void
1430 : 111978 : _outSortGroupClause(StringInfo str, const SortGroupClause *node)
1431 : : {
1432 : 111978 : WRITE_NODE_TYPE("SORTGROUPCLAUSE");
1433 : :
1434 : 111978 : WRITE_UINT_FIELD(tleSortGroupRef);
1435 : 111978 : WRITE_OID_FIELD(eqop);
1436 : 111978 : WRITE_OID_FIELD(sortop);
1437 [ + + ]: 111978 : WRITE_BOOL_FIELD(reverse_sort);
1438 [ + + ]: 111978 : WRITE_BOOL_FIELD(nulls_first);
1439 [ + + ]: 111978 : WRITE_BOOL_FIELD(hashable);
1440 : 111978 : }
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 : 2176 : _outWindowClause(StringInfo str, const WindowClause *node)
1454 : : {
1455 : 2176 : WRITE_NODE_TYPE("WINDOWCLAUSE");
1456 : :
1457 : 2176 : WRITE_STRING_FIELD(name);
1458 : 2176 : WRITE_STRING_FIELD(refname);
1459 : 2176 : WRITE_NODE_FIELD(partitionClause);
1460 : 2176 : WRITE_NODE_FIELD(orderClause);
1461 : 2176 : WRITE_INT_FIELD(frameOptions);
1462 : 2176 : WRITE_NODE_FIELD(startOffset);
1463 : 2176 : WRITE_NODE_FIELD(endOffset);
1464 : 2176 : WRITE_OID_FIELD(startInRangeFunc);
1465 : 2176 : WRITE_OID_FIELD(endInRangeFunc);
1466 : 2176 : WRITE_OID_FIELD(inRangeColl);
1467 [ + + ]: 2176 : WRITE_BOOL_FIELD(inRangeAsc);
1468 [ + + ]: 2176 : WRITE_BOOL_FIELD(inRangeNullsFirst);
1469 : 2176 : WRITE_UINT_FIELD(winref);
1470 [ + + ]: 2176 : WRITE_BOOL_FIELD(copiedOrder);
1471 : 2176 : }
1472 : :
1473 : : static void
1474 : 5112 : _outRowMarkClause(StringInfo str, const RowMarkClause *node)
1475 : : {
1476 : 5112 : WRITE_NODE_TYPE("ROWMARKCLAUSE");
1477 : :
1478 : 5112 : WRITE_UINT_FIELD(rti);
1479 : 5112 : WRITE_ENUM_FIELD(strength, LockClauseStrength);
1480 : 5112 : WRITE_ENUM_FIELD(waitPolicy, LockWaitPolicy);
1481 [ + + ]: 5112 : WRITE_BOOL_FIELD(pushedDown);
1482 : 5112 : }
1483 : :
1484 : : static void
1485 : 1189 : _outForPortionOfClause(StringInfo str, const ForPortionOfClause *node)
1486 : : {
1487 : 1189 : WRITE_NODE_TYPE("FORPORTIONOFCLAUSE");
1488 : :
1489 : 1189 : WRITE_STRING_FIELD(range_name);
1490 [ + - ]: 1189 : WRITE_LOCATION_FIELD(location);
1491 [ + - ]: 1189 : WRITE_LOCATION_FIELD(target_location);
1492 : 1189 : WRITE_NODE_FIELD(target);
1493 : 1189 : WRITE_NODE_FIELD(target_start);
1494 : 1189 : WRITE_NODE_FIELD(target_end);
1495 : 1189 : }
1496 : :
1497 : : static void
1498 : 2258 : _outWithClause(StringInfo str, const WithClause *node)
1499 : : {
1500 : 2258 : WRITE_NODE_TYPE("WITHCLAUSE");
1501 : :
1502 : 2258 : WRITE_NODE_FIELD(ctes);
1503 [ + + ]: 2258 : WRITE_BOOL_FIELD(recursive);
1504 [ + - ]: 2258 : WRITE_LOCATION_FIELD(location);
1505 : 2258 : }
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 : 5765 : _outCommonTableExpr(StringInfo str, const CommonTableExpr *node)
1561 : : {
1562 : 5765 : WRITE_NODE_TYPE("COMMONTABLEEXPR");
1563 : :
1564 : 5765 : WRITE_STRING_FIELD(ctename);
1565 : 5765 : WRITE_NODE_FIELD(aliascolnames);
1566 : 5765 : WRITE_ENUM_FIELD(ctematerialized, CTEMaterialize);
1567 : 5765 : WRITE_NODE_FIELD(ctequery);
1568 : 5765 : WRITE_NODE_FIELD(search_clause);
1569 : 5765 : WRITE_NODE_FIELD(cycle_clause);
1570 [ + + ]: 5765 : WRITE_LOCATION_FIELD(location);
1571 [ + + ]: 5765 : WRITE_BOOL_FIELD(cterecursive);
1572 : 5765 : WRITE_INT_FIELD(cterefcount);
1573 : 5765 : WRITE_NODE_FIELD(ctecolnames);
1574 : 5765 : WRITE_NODE_FIELD(ctecoltypes);
1575 : 5765 : WRITE_NODE_FIELD(ctecoltypmods);
1576 : 5765 : WRITE_NODE_FIELD(ctecolcollations);
1577 : 5765 : }
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 : 2510 : _outReturningClause(StringInfo str, const ReturningClause *node)
1604 : : {
1605 : 2510 : WRITE_NODE_TYPE("RETURNINGCLAUSE");
1606 : :
1607 : 2510 : WRITE_NODE_FIELD(options);
1608 : 2510 : WRITE_NODE_FIELD(exprs);
1609 : 2510 : }
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 : 473938 : _outRawStmt(StringInfo str, const RawStmt *node)
1825 : : {
1826 : 473938 : WRITE_NODE_TYPE("RAWSTMT");
1827 : :
1828 : 473938 : WRITE_NODE_FIELD(stmt);
1829 [ + - ]: 473938 : WRITE_LOCATION_FIELD(stmt_location);
1830 [ + - ]: 473938 : WRITE_LOCATION_FIELD(stmt_len);
1831 : 473938 : }
1832 : :
1833 : : static void
1834 : 45329 : _outInsertStmt(StringInfo str, const InsertStmt *node)
1835 : : {
1836 : 45329 : WRITE_NODE_TYPE("INSERTSTMT");
1837 : :
1838 : 45329 : WRITE_NODE_FIELD(relation);
1839 : 45329 : WRITE_NODE_FIELD(cols);
1840 : 45329 : WRITE_NODE_FIELD(selectStmt);
1841 : 45329 : WRITE_NODE_FIELD(onConflictClause);
1842 : 45329 : WRITE_NODE_FIELD(returningClause);
1843 : 45329 : WRITE_NODE_FIELD(withClause);
1844 : 45329 : WRITE_ENUM_FIELD(override, OverridingKind);
1845 : 45329 : }
1846 : :
1847 : : static void
1848 : 3429 : _outDeleteStmt(StringInfo str, const DeleteStmt *node)
1849 : : {
1850 : 3429 : WRITE_NODE_TYPE("DELETESTMT");
1851 : :
1852 : 3429 : WRITE_NODE_FIELD(relation);
1853 : 3429 : WRITE_NODE_FIELD(usingClause);
1854 : 3429 : WRITE_NODE_FIELD(whereClause);
1855 : 3429 : WRITE_NODE_FIELD(returningClause);
1856 : 3429 : WRITE_NODE_FIELD(withClause);
1857 : 3429 : WRITE_NODE_FIELD(forPortionOf);
1858 : 3429 : }
1859 : :
1860 : : static void
1861 : 9263 : _outUpdateStmt(StringInfo str, const UpdateStmt *node)
1862 : : {
1863 : 9263 : WRITE_NODE_TYPE("UPDATESTMT");
1864 : :
1865 : 9263 : WRITE_NODE_FIELD(relation);
1866 : 9263 : WRITE_NODE_FIELD(targetList);
1867 : 9263 : WRITE_NODE_FIELD(whereClause);
1868 : 9263 : WRITE_NODE_FIELD(fromClause);
1869 : 9263 : WRITE_NODE_FIELD(returningClause);
1870 : 9263 : WRITE_NODE_FIELD(withClause);
1871 : 9263 : WRITE_NODE_FIELD(forPortionOf);
1872 : 9263 : }
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 : 346716 : _outSelectStmt(StringInfo str, const SelectStmt *node)
1889 : : {
1890 : 346716 : WRITE_NODE_TYPE("SELECTSTMT");
1891 : :
1892 : 346716 : WRITE_NODE_FIELD(distinctClause);
1893 : 346716 : WRITE_NODE_FIELD(intoClause);
1894 : 346716 : WRITE_NODE_FIELD(targetList);
1895 : 346716 : WRITE_NODE_FIELD(fromClause);
1896 : 346716 : WRITE_NODE_FIELD(whereClause);
1897 : 346716 : WRITE_NODE_FIELD(groupClause);
1898 [ + + ]: 346716 : WRITE_BOOL_FIELD(groupDistinct);
1899 : 346716 : WRITE_NODE_FIELD(havingClause);
1900 : 346716 : WRITE_NODE_FIELD(windowClause);
1901 : 346716 : WRITE_NODE_FIELD(valuesLists);
1902 : 346716 : WRITE_NODE_FIELD(sortClause);
1903 : 346716 : WRITE_NODE_FIELD(limitOffset);
1904 : 346716 : WRITE_NODE_FIELD(limitCount);
1905 : 346716 : WRITE_ENUM_FIELD(limitOption, LimitOption);
1906 : 346716 : WRITE_NODE_FIELD(lockingClause);
1907 : 346716 : WRITE_NODE_FIELD(withClause);
1908 : 346716 : WRITE_ENUM_FIELD(op, SetOperation);
1909 [ + + ]: 346716 : WRITE_BOOL_FIELD(all);
1910 : 346716 : WRITE_NODE_FIELD(larg);
1911 : 346716 : WRITE_NODE_FIELD(rarg);
1912 : 346716 : }
1913 : :
1914 : : static void
1915 : 15977 : _outSetOperationStmt(StringInfo str, const SetOperationStmt *node)
1916 : : {
1917 : 15977 : WRITE_NODE_TYPE("SETOPERATIONSTMT");
1918 : :
1919 : 15977 : WRITE_ENUM_FIELD(op, SetOperation);
1920 [ + + ]: 15977 : WRITE_BOOL_FIELD(all);
1921 : 15977 : WRITE_NODE_FIELD(larg);
1922 : 15977 : WRITE_NODE_FIELD(rarg);
1923 : 15977 : WRITE_NODE_FIELD(colTypes);
1924 : 15977 : WRITE_NODE_FIELD(colTypmods);
1925 : 15977 : WRITE_NODE_FIELD(colCollations);
1926 : 15977 : WRITE_NODE_FIELD(groupClauses);
1927 : 15977 : }
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 : 1547 : _outCreateSchemaStmt(StringInfo str, const CreateSchemaStmt *node)
1951 : : {
1952 : 1547 : WRITE_NODE_TYPE("CREATESCHEMASTMT");
1953 : :
1954 : 1547 : WRITE_STRING_FIELD(schemaname);
1955 : 1547 : WRITE_NODE_FIELD(authrole);
1956 : 1547 : WRITE_NODE_FIELD(schemaElts);
1957 [ + + ]: 1547 : WRITE_BOOL_FIELD(if_not_exists);
1958 : 1547 : }
1959 : :
1960 : : static void
1961 : 41530 : _outAlterTableStmt(StringInfo str, const AlterTableStmt *node)
1962 : : {
1963 : 41530 : WRITE_NODE_TYPE("ALTERTABLESTMT");
1964 : :
1965 : 41530 : WRITE_NODE_FIELD(relation);
1966 : 41530 : WRITE_NODE_FIELD(cmds);
1967 : 41530 : WRITE_ENUM_FIELD(objtype, ObjectType);
1968 [ + + ]: 41530 : WRITE_BOOL_FIELD(missing_ok);
1969 : 41530 : }
1970 : :
1971 : : static void
1972 : 42940 : _outAlterTableCmd(StringInfo str, const AlterTableCmd *node)
1973 : : {
1974 : 42940 : WRITE_NODE_TYPE("ALTERTABLECMD");
1975 : :
1976 : 42940 : WRITE_ENUM_FIELD(subtype, AlterTableType);
1977 : 42940 : WRITE_STRING_FIELD(name);
1978 : 42940 : WRITE_INT_FIELD(num);
1979 : 42940 : WRITE_NODE_FIELD(newowner);
1980 : 42940 : WRITE_NODE_FIELD(def);
1981 : 42940 : WRITE_ENUM_FIELD(behavior, DropBehavior);
1982 [ + + ]: 42940 : WRITE_BOOL_FIELD(missing_ok);
1983 [ - + ]: 42940 : WRITE_BOOL_FIELD(recurse);
1984 : 42940 : }
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 : 628 : _outReplicaIdentityStmt(StringInfo str, const ReplicaIdentityStmt *node)
2003 : : {
2004 : 628 : WRITE_NODE_TYPE("REPLICAIDENTITYSTMT");
2005 : :
2006 : 628 : WRITE_CHAR_FIELD(identity_type);
2007 : 628 : WRITE_STRING_FIELD(name);
2008 : 628 : }
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 : 17229 : _outGrantStmt(StringInfo str, const GrantStmt *node)
2033 : : {
2034 : 17229 : WRITE_NODE_TYPE("GRANTSTMT");
2035 : :
2036 [ + + ]: 17229 : WRITE_BOOL_FIELD(is_grant);
2037 : 17229 : WRITE_ENUM_FIELD(targtype, GrantTargetType);
2038 : 17229 : WRITE_ENUM_FIELD(objtype, ObjectType);
2039 : 17229 : WRITE_NODE_FIELD(objects);
2040 : 17229 : WRITE_NODE_FIELD(privileges);
2041 : 17229 : WRITE_NODE_FIELD(grantees);
2042 [ + + ]: 17229 : WRITE_BOOL_FIELD(grant_option);
2043 : 17229 : WRITE_NODE_FIELD(grantor);
2044 : 17229 : WRITE_ENUM_FIELD(behavior, DropBehavior);
2045 : 17229 : }
2046 : :
2047 : : static void
2048 : 16404 : _outObjectWithArgs(StringInfo str, const ObjectWithArgs *node)
2049 : : {
2050 : 16404 : WRITE_NODE_TYPE("OBJECTWITHARGS");
2051 : :
2052 : 16404 : WRITE_NODE_FIELD(objname);
2053 : 16404 : WRITE_NODE_FIELD(objargs);
2054 : 16404 : WRITE_NODE_FIELD(objfuncargs);
2055 [ + + ]: 16404 : WRITE_BOOL_FIELD(args_unspecified);
2056 : 16404 : }
2057 : :
2058 : : static void
2059 : 15436 : _outAccessPriv(StringInfo str, const AccessPriv *node)
2060 : : {
2061 : 15436 : WRITE_NODE_TYPE("ACCESSPRIV");
2062 : :
2063 : 15436 : WRITE_STRING_FIELD(priv_name);
2064 : 15436 : WRITE_NODE_FIELD(cols);
2065 : 15436 : }
2066 : :
2067 : : static void
2068 : 857 : _outGrantRoleStmt(StringInfo str, const GrantRoleStmt *node)
2069 : : {
2070 : 857 : WRITE_NODE_TYPE("GRANTROLESTMT");
2071 : :
2072 : 857 : WRITE_NODE_FIELD(granted_roles);
2073 : 857 : WRITE_NODE_FIELD(grantee_roles);
2074 [ + + ]: 857 : WRITE_BOOL_FIELD(is_grant);
2075 : 857 : WRITE_NODE_FIELD(opt);
2076 : 857 : WRITE_NODE_FIELD(grantor);
2077 : 857 : WRITE_ENUM_FIELD(behavior, DropBehavior);
2078 : 857 : }
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 : 13429 : _outCopyStmt(StringInfo str, const CopyStmt *node)
2091 : : {
2092 : 13429 : WRITE_NODE_TYPE("COPYSTMT");
2093 : :
2094 : 13429 : WRITE_NODE_FIELD(relation);
2095 : 13429 : WRITE_NODE_FIELD(query);
2096 : 13429 : WRITE_NODE_FIELD(attlist);
2097 [ + + ]: 13429 : WRITE_BOOL_FIELD(is_from);
2098 [ + + ]: 13429 : WRITE_BOOL_FIELD(is_program);
2099 : 13429 : WRITE_STRING_FIELD(filename);
2100 : 13429 : WRITE_NODE_FIELD(options);
2101 : 13429 : WRITE_NODE_FIELD(whereClause);
2102 : 13429 : }
2103 : :
2104 : : static void
2105 : 38683 : _outVariableSetStmt(StringInfo str, const VariableSetStmt *node)
2106 : : {
2107 : 38683 : WRITE_NODE_TYPE("VARIABLESETSTMT");
2108 : :
2109 : 38683 : WRITE_ENUM_FIELD(kind, VariableSetKind);
2110 : 38683 : WRITE_STRING_FIELD(name);
2111 : 38683 : WRITE_NODE_FIELD(args);
2112 [ + + ]: 38683 : WRITE_BOOL_FIELD(jumble_args);
2113 [ + + ]: 38683 : WRITE_BOOL_FIELD(is_local);
2114 [ + - ]: 38683 : WRITE_LOCATION_FIELD(location);
2115 : 38683 : }
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 : 52886 : _outCreateStmt(StringInfo str, const CreateStmt *node)
2127 : : {
2128 : 52886 : WRITE_NODE_TYPE("CREATESTMT");
2129 : :
2130 : 52886 : WRITE_NODE_FIELD(relation);
2131 : 52886 : WRITE_NODE_FIELD(tableElts);
2132 : 52886 : WRITE_NODE_FIELD(inhRelations);
2133 : 52886 : WRITE_NODE_FIELD(partbound);
2134 : 52886 : WRITE_NODE_FIELD(partspec);
2135 : 52886 : WRITE_NODE_FIELD(ofTypename);
2136 : 52886 : WRITE_NODE_FIELD(constraints);
2137 : 52886 : WRITE_NODE_FIELD(nnconstraints);
2138 : 52886 : WRITE_NODE_FIELD(options);
2139 : 52886 : WRITE_ENUM_FIELD(oncommit, OnCommitAction);
2140 : 52886 : WRITE_STRING_FIELD(tablespacename);
2141 : 52886 : WRITE_STRING_FIELD(accessMethod);
2142 [ + + ]: 52886 : WRITE_BOOL_FIELD(if_not_exists);
2143 : 52886 : }
2144 : :
2145 : : static void
2146 : 48530 : _outConstraint(StringInfo str, const Constraint *node)
2147 : : {
2148 : 48530 : WRITE_NODE_TYPE("CONSTRAINT");
2149 : :
2150 : 48530 : WRITE_ENUM_FIELD(contype, ConstrType);
2151 : 48530 : WRITE_STRING_FIELD(conname);
2152 [ + + ]: 48530 : WRITE_BOOL_FIELD(deferrable);
2153 [ + + ]: 48530 : WRITE_BOOL_FIELD(initdeferred);
2154 [ + + ]: 48530 : WRITE_BOOL_FIELD(is_enforced);
2155 [ + + ]: 48530 : WRITE_BOOL_FIELD(skip_validation);
2156 [ + + ]: 48530 : WRITE_BOOL_FIELD(initially_valid);
2157 [ + + ]: 48530 : WRITE_BOOL_FIELD(is_no_inherit);
2158 : 48530 : WRITE_NODE_FIELD(raw_expr);
2159 : 48530 : WRITE_STRING_FIELD(cooked_expr);
2160 : 48530 : WRITE_CHAR_FIELD(generated_when);
2161 : 48530 : WRITE_CHAR_FIELD(generated_kind);
2162 [ + + ]: 48530 : WRITE_BOOL_FIELD(nulls_not_distinct);
2163 : 48530 : WRITE_NODE_FIELD(keys);
2164 [ + + ]: 48530 : WRITE_BOOL_FIELD(without_overlaps);
2165 : 48530 : WRITE_NODE_FIELD(including);
2166 : 48530 : WRITE_NODE_FIELD(exclusions);
2167 : 48530 : WRITE_NODE_FIELD(options);
2168 : 48530 : WRITE_STRING_FIELD(indexname);
2169 : 48530 : WRITE_STRING_FIELD(indexspace);
2170 [ - + ]: 48530 : WRITE_BOOL_FIELD(reset_default_tblspc);
2171 : 48530 : WRITE_STRING_FIELD(access_method);
2172 : 48530 : WRITE_NODE_FIELD(where_clause);
2173 : 48530 : WRITE_NODE_FIELD(pktable);
2174 : 48530 : WRITE_NODE_FIELD(fk_attrs);
2175 : 48530 : WRITE_NODE_FIELD(pk_attrs);
2176 [ + + ]: 48530 : WRITE_BOOL_FIELD(fk_with_period);
2177 [ + + ]: 48530 : WRITE_BOOL_FIELD(pk_with_period);
2178 : 48530 : WRITE_CHAR_FIELD(fk_matchtype);
2179 : 48530 : WRITE_CHAR_FIELD(fk_upd_action);
2180 : 48530 : WRITE_CHAR_FIELD(fk_del_action);
2181 : 48530 : WRITE_NODE_FIELD(fk_del_set_cols);
2182 : 48530 : WRITE_NODE_FIELD(old_conpfeqop);
2183 : 48530 : WRITE_OID_FIELD(old_pktable_oid);
2184 [ + - ]: 48530 : WRITE_LOCATION_FIELD(location);
2185 : 48530 : }
2186 : :
2187 : : static void
2188 : 154 : _outCreateTableSpaceStmt(StringInfo str, const CreateTableSpaceStmt *node)
2189 : : {
2190 : 154 : WRITE_NODE_TYPE("CREATETABLESPACESTMT");
2191 : :
2192 : 154 : WRITE_STRING_FIELD(tablespacename);
2193 : 154 : WRITE_NODE_FIELD(owner);
2194 : 154 : WRITE_STRING_FIELD(location);
2195 : 154 : WRITE_NODE_FIELD(options);
2196 : 154 : }
2197 : :
2198 : : static void
2199 : 72 : _outDropTableSpaceStmt(StringInfo str, const DropTableSpaceStmt *node)
2200 : : {
2201 : 72 : WRITE_NODE_TYPE("DROPTABLESPACESTMT");
2202 : :
2203 : 72 : WRITE_STRING_FIELD(tablespacename);
2204 [ - + ]: 72 : WRITE_BOOL_FIELD(missing_ok);
2205 : 72 : }
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 : 32 : _outAlterTableMoveAllStmt(StringInfo str, const AlterTableMoveAllStmt *node)
2219 : : {
2220 : 32 : WRITE_NODE_TYPE("ALTERTABLEMOVEALLSTMT");
2221 : :
2222 : 32 : WRITE_STRING_FIELD(orig_tablespacename);
2223 : 32 : WRITE_ENUM_FIELD(objtype, ObjectType);
2224 : 32 : WRITE_NODE_FIELD(roles);
2225 : 32 : WRITE_STRING_FIELD(new_tablespacename);
2226 [ - + ]: 32 : WRITE_BOOL_FIELD(nowait);
2227 : 32 : }
2228 : :
2229 : : static void
2230 : 670 : _outCreateExtensionStmt(StringInfo str, const CreateExtensionStmt *node)
2231 : : {
2232 : 670 : WRITE_NODE_TYPE("CREATEEXTENSIONSTMT");
2233 : :
2234 : 670 : WRITE_STRING_FIELD(extname);
2235 [ + + ]: 670 : WRITE_BOOL_FIELD(if_not_exists);
2236 : 670 : WRITE_NODE_FIELD(options);
2237 : 670 : }
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 : 206 : _outAlterFdwStmt(StringInfo str, const AlterFdwStmt *node)
2271 : : {
2272 : 206 : WRITE_NODE_TYPE("ALTERFDWSTMT");
2273 : :
2274 : 206 : WRITE_STRING_FIELD(fdwname);
2275 : 206 : WRITE_NODE_FIELD(func_options);
2276 : 206 : WRITE_NODE_FIELD(options);
2277 : 206 : }
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 : 334 : _outCreateUserMappingStmt(StringInfo str, const CreateUserMappingStmt *node)
2327 : : {
2328 : 334 : WRITE_NODE_TYPE("CREATEUSERMAPPINGSTMT");
2329 : :
2330 : 334 : WRITE_NODE_FIELD(user);
2331 : 334 : WRITE_STRING_FIELD(servername);
2332 [ + + ]: 334 : WRITE_BOOL_FIELD(if_not_exists);
2333 : 334 : WRITE_NODE_FIELD(options);
2334 : 334 : }
2335 : :
2336 : : static void
2337 : 146 : _outAlterUserMappingStmt(StringInfo str, const AlterUserMappingStmt *node)
2338 : : {
2339 : 146 : WRITE_NODE_TYPE("ALTERUSERMAPPINGSTMT");
2340 : :
2341 : 146 : WRITE_NODE_FIELD(user);
2342 : 146 : WRITE_STRING_FIELD(servername);
2343 : 146 : WRITE_NODE_FIELD(options);
2344 : 146 : }
2345 : :
2346 : : static void
2347 : 158 : _outDropUserMappingStmt(StringInfo str, const DropUserMappingStmt *node)
2348 : : {
2349 : 158 : WRITE_NODE_TYPE("DROPUSERMAPPINGSTMT");
2350 : :
2351 : 158 : WRITE_NODE_FIELD(user);
2352 : 158 : WRITE_STRING_FIELD(servername);
2353 [ + + ]: 158 : WRITE_BOOL_FIELD(missing_ok);
2354 : 158 : }
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 : 1222 : _outCreatePolicyStmt(StringInfo str, const CreatePolicyStmt *node)
2371 : : {
2372 : 1222 : WRITE_NODE_TYPE("CREATEPOLICYSTMT");
2373 : :
2374 : 1222 : WRITE_STRING_FIELD(policy_name);
2375 : 1222 : WRITE_NODE_FIELD(table);
2376 : 1222 : WRITE_STRING_FIELD(cmd_name);
2377 [ + + ]: 1222 : WRITE_BOOL_FIELD(permissive);
2378 : 1222 : WRITE_NODE_FIELD(roles);
2379 : 1222 : WRITE_NODE_FIELD(qual);
2380 : 1222 : WRITE_NODE_FIELD(with_check);
2381 : 1222 : }
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 : 2634 : _outCreateRoleStmt(StringInfo str, const CreateRoleStmt *node)
2462 : : {
2463 : 2634 : WRITE_NODE_TYPE("CREATEROLESTMT");
2464 : :
2465 : 2634 : WRITE_ENUM_FIELD(stmt_type, RoleStmtType);
2466 : 2634 : WRITE_STRING_FIELD(role);
2467 : 2634 : WRITE_NODE_FIELD(options);
2468 : 2634 : }
2469 : :
2470 : : static void
2471 : 588 : _outAlterRoleStmt(StringInfo str, const AlterRoleStmt *node)
2472 : : {
2473 : 588 : WRITE_NODE_TYPE("ALTERROLESTMT");
2474 : :
2475 : 588 : WRITE_NODE_FIELD(role);
2476 : 588 : WRITE_NODE_FIELD(options);
2477 : 588 : WRITE_INT_FIELD(action);
2478 : 588 : }
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 : 2518 : _outDropRoleStmt(StringInfo str, const DropRoleStmt *node)
2492 : : {
2493 : 2518 : WRITE_NODE_TYPE("DROPROLESTMT");
2494 : :
2495 : 2518 : WRITE_NODE_FIELD(roles);
2496 [ + + ]: 2518 : WRITE_BOOL_FIELD(missing_ok);
2497 : 2518 : }
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 : 2034 : _outCreateDomainStmt(StringInfo str, const CreateDomainStmt *node)
2538 : : {
2539 : 2034 : WRITE_NODE_TYPE("CREATEDOMAINSTMT");
2540 : :
2541 : 2034 : WRITE_NODE_FIELD(domainname);
2542 : 2034 : WRITE_NODE_FIELD(typeName);
2543 : 2034 : WRITE_NODE_FIELD(collClause);
2544 : 2034 : WRITE_NODE_FIELD(constraints);
2545 : 2034 : }
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 : 36249 : _outDropStmt(StringInfo str, const DropStmt *node)
2595 : : {
2596 : 36249 : WRITE_NODE_TYPE("DROPSTMT");
2597 : :
2598 : 36249 : WRITE_NODE_FIELD(objects);
2599 : 36249 : WRITE_ENUM_FIELD(removeType, ObjectType);
2600 : 36249 : WRITE_ENUM_FIELD(behavior, DropBehavior);
2601 [ + + ]: 36249 : WRITE_BOOL_FIELD(missing_ok);
2602 [ + + ]: 36249 : WRITE_BOOL_FIELD(concurrent);
2603 : 36249 : }
2604 : :
2605 : : static void
2606 : 2372 : _outTruncateStmt(StringInfo str, const TruncateStmt *node)
2607 : : {
2608 : 2372 : WRITE_NODE_TYPE("TRUNCATESTMT");
2609 : :
2610 : 2372 : WRITE_NODE_FIELD(relations);
2611 [ + + ]: 2372 : WRITE_BOOL_FIELD(restart_seqs);
2612 : 2372 : WRITE_ENUM_FIELD(behavior, DropBehavior);
2613 : 2372 : }
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 : 4362 : _outDeclareCursorStmt(StringInfo str, const DeclareCursorStmt *node)
2638 : : {
2639 : 4362 : WRITE_NODE_TYPE("DECLARECURSORSTMT");
2640 : :
2641 : 4362 : WRITE_STRING_FIELD(portalname);
2642 : 4362 : WRITE_INT_FIELD(options);
2643 : 4362 : WRITE_NODE_FIELD(query);
2644 : 4362 : }
2645 : :
2646 : : static void
2647 : 2386 : _outClosePortalStmt(StringInfo str, const ClosePortalStmt *node)
2648 : : {
2649 : 2386 : WRITE_NODE_TYPE("CLOSEPORTALSTMT");
2650 : :
2651 : 2386 : WRITE_STRING_FIELD(portalname);
2652 : 2386 : }
2653 : :
2654 : : static void
2655 : 7760 : _outFetchStmt(StringInfo str, const FetchStmt *node)
2656 : : {
2657 : 7760 : WRITE_NODE_TYPE("FETCHSTMT");
2658 : :
2659 : 7760 : WRITE_ENUM_FIELD(direction, FetchDirection);
2660 : 7760 : WRITE_LONG_FIELD(howMany);
2661 : 7760 : WRITE_STRING_FIELD(portalname);
2662 [ + + ]: 7760 : WRITE_BOOL_FIELD(ismove);
2663 : 7760 : WRITE_ENUM_FIELD(direction_keyword, FetchDirectionKeywords);
2664 [ + - ]: 7760 : WRITE_LOCATION_FIELD(location);
2665 : 7760 : }
2666 : :
2667 : : static void
2668 : 8803 : _outIndexStmt(StringInfo str, const IndexStmt *node)
2669 : : {
2670 : 8803 : WRITE_NODE_TYPE("INDEXSTMT");
2671 : :
2672 : 8803 : WRITE_STRING_FIELD(idxname);
2673 : 8803 : WRITE_NODE_FIELD(relation);
2674 : 8803 : WRITE_STRING_FIELD(accessMethod);
2675 : 8803 : WRITE_STRING_FIELD(tableSpace);
2676 : 8803 : WRITE_NODE_FIELD(indexParams);
2677 : 8803 : WRITE_NODE_FIELD(indexIncludingParams);
2678 : 8803 : WRITE_NODE_FIELD(options);
2679 : 8803 : WRITE_NODE_FIELD(whereClause);
2680 : 8803 : WRITE_NODE_FIELD(excludeOpNames);
2681 : 8803 : WRITE_STRING_FIELD(idxcomment);
2682 : 8803 : WRITE_OID_FIELD(indexOid);
2683 : 8803 : WRITE_OID_FIELD(oldNumber);
2684 : 8803 : WRITE_UINT_FIELD(oldCreateSubid);
2685 : 8803 : WRITE_UINT_FIELD(oldFirstRelfilelocatorSubid);
2686 [ + + ]: 8803 : WRITE_BOOL_FIELD(unique);
2687 [ + + ]: 8803 : WRITE_BOOL_FIELD(nulls_not_distinct);
2688 [ - + ]: 8803 : WRITE_BOOL_FIELD(primary);
2689 [ - + ]: 8803 : WRITE_BOOL_FIELD(isconstraint);
2690 [ - + ]: 8803 : WRITE_BOOL_FIELD(iswithoutoverlaps);
2691 [ - + ]: 8803 : WRITE_BOOL_FIELD(deferrable);
2692 [ - + ]: 8803 : WRITE_BOOL_FIELD(initdeferred);
2693 [ - + ]: 8803 : WRITE_BOOL_FIELD(transformed);
2694 [ + + ]: 8803 : WRITE_BOOL_FIELD(concurrent);
2695 [ + + ]: 8803 : WRITE_BOOL_FIELD(if_not_exists);
2696 [ - + ]: 8803 : WRITE_BOOL_FIELD(reset_default_tblspc);
2697 : 8803 : }
2698 : :
2699 : : static void
2700 : 1236 : _outCreateStatsStmt(StringInfo str, const CreateStatsStmt *node)
2701 : : {
2702 : 1236 : WRITE_NODE_TYPE("CREATESTATSSTMT");
2703 : :
2704 : 1236 : WRITE_NODE_FIELD(defnames);
2705 : 1236 : WRITE_NODE_FIELD(stat_types);
2706 : 1236 : WRITE_NODE_FIELD(exprs);
2707 : 1236 : WRITE_NODE_FIELD(relations);
2708 : 1236 : WRITE_STRING_FIELD(stxcomment);
2709 [ - + ]: 1236 : WRITE_BOOL_FIELD(transformed);
2710 [ + + ]: 1236 : WRITE_BOOL_FIELD(if_not_exists);
2711 : 1236 : WRITE_OID_FIELD(owner);
2712 : 1236 : }
2713 : :
2714 : : static void
2715 : 2904 : _outStatsElem(StringInfo str, const StatsElem *node)
2716 : : {
2717 : 2904 : WRITE_NODE_TYPE("STATSELEM");
2718 : :
2719 : 2904 : WRITE_STRING_FIELD(name);
2720 : 2904 : WRITE_NODE_FIELD(expr);
2721 : 2904 : }
2722 : :
2723 : : static void
2724 : 34 : _outAlterStatsStmt(StringInfo str, const AlterStatsStmt *node)
2725 : : {
2726 : 34 : WRITE_NODE_TYPE("ALTERSTATSSTMT");
2727 : :
2728 : 34 : WRITE_NODE_FIELD(defnames);
2729 : 34 : WRITE_NODE_FIELD(stxstattarget);
2730 [ + + ]: 34 : WRITE_BOOL_FIELD(missing_ok);
2731 : 34 : }
2732 : :
2733 : : static void
2734 : 26369 : _outCreateFunctionStmt(StringInfo str, const CreateFunctionStmt *node)
2735 : : {
2736 : 26369 : WRITE_NODE_TYPE("CREATEFUNCTIONSTMT");
2737 : :
2738 [ + + ]: 26369 : WRITE_BOOL_FIELD(is_procedure);
2739 [ + + ]: 26369 : WRITE_BOOL_FIELD(replace);
2740 : 26369 : WRITE_NODE_FIELD(funcname);
2741 : 26369 : WRITE_NODE_FIELD(parameters);
2742 : 26369 : WRITE_NODE_FIELD(returnType);
2743 : 26369 : WRITE_NODE_FIELD(options);
2744 : 26369 : WRITE_NODE_FIELD(sql_body);
2745 : 26369 : }
2746 : :
2747 : : static void
2748 : 67996 : _outFunctionParameter(StringInfo str, const FunctionParameter *node)
2749 : : {
2750 : 67996 : WRITE_NODE_TYPE("FUNCTIONPARAMETER");
2751 : :
2752 : 67996 : WRITE_STRING_FIELD(name);
2753 : 67996 : WRITE_NODE_FIELD(argType);
2754 : 67996 : WRITE_ENUM_FIELD(mode, FunctionParameterMode);
2755 : 67996 : WRITE_NODE_FIELD(defexpr);
2756 [ + - ]: 67996 : WRITE_LOCATION_FIELD(location);
2757 : 67996 : }
2758 : :
2759 : : static void
2760 : 418 : _outAlterFunctionStmt(StringInfo str, const AlterFunctionStmt *node)
2761 : : {
2762 : 418 : WRITE_NODE_TYPE("ALTERFUNCTIONSTMT");
2763 : :
2764 : 418 : WRITE_ENUM_FIELD(objtype, ObjectType);
2765 : 418 : WRITE_NODE_FIELD(func);
2766 : 418 : WRITE_NODE_FIELD(actions);
2767 : 418 : }
2768 : :
2769 : : static void
2770 : 1310 : _outDoStmt(StringInfo str, const DoStmt *node)
2771 : : {
2772 : 1310 : WRITE_NODE_TYPE("DOSTMT");
2773 : :
2774 : 1310 : WRITE_NODE_FIELD(args);
2775 : 1310 : }
2776 : :
2777 : : static void
2778 : 552 : _outCallStmt(StringInfo str, const CallStmt *node)
2779 : : {
2780 : 552 : WRITE_NODE_TYPE("CALLSTMT");
2781 : :
2782 : 552 : WRITE_NODE_FIELD(funccall);
2783 : 552 : WRITE_NODE_FIELD(funcexpr);
2784 : 552 : WRITE_NODE_FIELD(outargs);
2785 : 552 : }
2786 : :
2787 : : static void
2788 : 1952 : _outRenameStmt(StringInfo str, const RenameStmt *node)
2789 : : {
2790 : 1952 : WRITE_NODE_TYPE("RENAMESTMT");
2791 : :
2792 : 1952 : WRITE_ENUM_FIELD(renameType, ObjectType);
2793 : 1952 : WRITE_ENUM_FIELD(relationType, ObjectType);
2794 : 1952 : WRITE_NODE_FIELD(relation);
2795 : 1952 : WRITE_NODE_FIELD(object);
2796 : 1952 : WRITE_STRING_FIELD(subname);
2797 : 1952 : WRITE_STRING_FIELD(newname);
2798 : 1952 : WRITE_ENUM_FIELD(behavior, DropBehavior);
2799 [ + + ]: 1952 : WRITE_BOOL_FIELD(missing_ok);
2800 : 1952 : }
2801 : :
2802 : : static void
2803 : 70 : _outAlterObjectDependsStmt(StringInfo str, const AlterObjectDependsStmt *node)
2804 : : {
2805 : 70 : WRITE_NODE_TYPE("ALTEROBJECTDEPENDSSTMT");
2806 : :
2807 : 70 : WRITE_ENUM_FIELD(objectType, ObjectType);
2808 : 70 : WRITE_NODE_FIELD(relation);
2809 : 70 : WRITE_NODE_FIELD(object);
2810 : 70 : WRITE_NODE_FIELD(extname);
2811 [ + + ]: 70 : WRITE_BOOL_FIELD(remove);
2812 : 70 : }
2813 : :
2814 : : static void
2815 : 582 : _outAlterObjectSchemaStmt(StringInfo str, const AlterObjectSchemaStmt *node)
2816 : : {
2817 : 582 : WRITE_NODE_TYPE("ALTEROBJECTSCHEMASTMT");
2818 : :
2819 : 582 : WRITE_ENUM_FIELD(objectType, ObjectType);
2820 : 582 : WRITE_NODE_FIELD(relation);
2821 : 582 : WRITE_NODE_FIELD(object);
2822 : 582 : WRITE_STRING_FIELD(newschema);
2823 [ + + ]: 582 : WRITE_BOOL_FIELD(missing_ok);
2824 : 582 : }
2825 : :
2826 : : static void
2827 : 2038 : _outAlterOwnerStmt(StringInfo str, const AlterOwnerStmt *node)
2828 : : {
2829 : 2038 : WRITE_NODE_TYPE("ALTEROWNERSTMT");
2830 : :
2831 : 2038 : WRITE_ENUM_FIELD(objectType, ObjectType);
2832 : 2038 : WRITE_NODE_FIELD(relation);
2833 : 2038 : WRITE_NODE_FIELD(object);
2834 : 2038 : WRITE_NODE_FIELD(newowner);
2835 : 2038 : }
2836 : :
2837 : : static void
2838 : 664 : _outAlterOperatorStmt(StringInfo str, const AlterOperatorStmt *node)
2839 : : {
2840 : 664 : WRITE_NODE_TYPE("ALTEROPERATORSTMT");
2841 : :
2842 : 664 : WRITE_NODE_FIELD(opername);
2843 : 664 : WRITE_NODE_FIELD(options);
2844 : 664 : }
2845 : :
2846 : : static void
2847 : 72 : _outAlterTypeStmt(StringInfo str, const AlterTypeStmt *node)
2848 : : {
2849 : 72 : WRITE_NODE_TYPE("ALTERTYPESTMT");
2850 : :
2851 : 72 : WRITE_NODE_FIELD(typeName);
2852 : 72 : WRITE_NODE_FIELD(options);
2853 : 72 : }
2854 : :
2855 : : static void
2856 : 1524 : _outRuleStmt(StringInfo str, const RuleStmt *node)
2857 : : {
2858 : 1524 : WRITE_NODE_TYPE("RULESTMT");
2859 : :
2860 : 1524 : WRITE_NODE_FIELD(relation);
2861 : 1524 : WRITE_STRING_FIELD(rulename);
2862 : 1524 : WRITE_NODE_FIELD(whereClause);
2863 : 1524 : WRITE_ENUM_FIELD(event, CmdType);
2864 [ + + ]: 1524 : WRITE_BOOL_FIELD(instead);
2865 : 1524 : WRITE_NODE_FIELD(actions);
2866 [ + + ]: 1524 : WRITE_BOOL_FIELD(replace);
2867 : 1524 : }
2868 : :
2869 : : static void
2870 : 206 : _outNotifyStmt(StringInfo str, const NotifyStmt *node)
2871 : : {
2872 : 206 : WRITE_NODE_TYPE("NOTIFYSTMT");
2873 : :
2874 : 206 : WRITE_STRING_FIELD(conditionname);
2875 : 206 : WRITE_STRING_FIELD(payload);
2876 : 206 : }
2877 : :
2878 : : static void
2879 : 104 : _outListenStmt(StringInfo str, const ListenStmt *node)
2880 : : {
2881 : 104 : WRITE_NODE_TYPE("LISTENSTMT");
2882 : :
2883 : 104 : WRITE_STRING_FIELD(conditionname);
2884 : 104 : }
2885 : :
2886 : : static void
2887 : 124 : _outUnlistenStmt(StringInfo str, const UnlistenStmt *node)
2888 : : {
2889 : 124 : WRITE_NODE_TYPE("UNLISTENSTMT");
2890 : :
2891 : 124 : WRITE_STRING_FIELD(conditionname);
2892 : 124 : }
2893 : :
2894 : : static void
2895 : 54572 : _outTransactionStmt(StringInfo str, const TransactionStmt *node)
2896 : : {
2897 : 54572 : WRITE_NODE_TYPE("TRANSACTIONSTMT");
2898 : :
2899 : 54572 : WRITE_ENUM_FIELD(kind, TransactionStmtKind);
2900 : 54572 : WRITE_NODE_FIELD(options);
2901 : 54572 : WRITE_STRING_FIELD(savepoint_name);
2902 : 54572 : WRITE_STRING_FIELD(gid);
2903 [ + + ]: 54572 : WRITE_BOOL_FIELD(chain);
2904 [ + - ]: 54572 : WRITE_LOCATION_FIELD(location);
2905 : 54572 : }
2906 : :
2907 : : static void
2908 : 2878 : _outCompositeTypeStmt(StringInfo str, const CompositeTypeStmt *node)
2909 : : {
2910 : 2878 : WRITE_NODE_TYPE("COMPOSITETYPESTMT");
2911 : :
2912 : 2878 : WRITE_NODE_FIELD(typevar);
2913 : 2878 : WRITE_NODE_FIELD(coldeflist);
2914 : 2878 : }
2915 : :
2916 : : static void
2917 : 332 : _outCreateEnumStmt(StringInfo str, const CreateEnumStmt *node)
2918 : : {
2919 : 332 : WRITE_NODE_TYPE("CREATEENUMSTMT");
2920 : :
2921 : 332 : WRITE_NODE_FIELD(typeName);
2922 : 332 : WRITE_NODE_FIELD(vals);
2923 : 332 : }
2924 : :
2925 : : static void
2926 : 316 : _outCreateRangeStmt(StringInfo str, const CreateRangeStmt *node)
2927 : : {
2928 : 316 : WRITE_NODE_TYPE("CREATERANGESTMT");
2929 : :
2930 : 316 : WRITE_NODE_FIELD(typeName);
2931 : 316 : WRITE_NODE_FIELD(params);
2932 : 316 : }
2933 : :
2934 : : static void
2935 : 492 : _outAlterEnumStmt(StringInfo str, const AlterEnumStmt *node)
2936 : : {
2937 : 492 : WRITE_NODE_TYPE("ALTERENUMSTMT");
2938 : :
2939 : 492 : WRITE_NODE_FIELD(typeName);
2940 : 492 : WRITE_STRING_FIELD(oldVal);
2941 : 492 : WRITE_STRING_FIELD(newVal);
2942 : 492 : WRITE_STRING_FIELD(newValNeighbor);
2943 [ + + ]: 492 : WRITE_BOOL_FIELD(newValIsAfter);
2944 [ + + ]: 492 : WRITE_BOOL_FIELD(skipIfNewValExists);
2945 : 492 : }
2946 : :
2947 : : static void
2948 : 22081 : _outViewStmt(StringInfo str, const ViewStmt *node)
2949 : : {
2950 : 22081 : WRITE_NODE_TYPE("VIEWSTMT");
2951 : :
2952 : 22081 : WRITE_NODE_FIELD(view);
2953 : 22081 : WRITE_NODE_FIELD(aliases);
2954 : 22081 : WRITE_NODE_FIELD(query);
2955 [ + + ]: 22081 : WRITE_BOOL_FIELD(replace);
2956 : 22081 : WRITE_NODE_FIELD(options);
2957 : 22081 : WRITE_ENUM_FIELD(withCheckOption, ViewCheckOption);
2958 : 22081 : }
2959 : :
2960 : : static void
2961 : 98 : _outLoadStmt(StringInfo str, const LoadStmt *node)
2962 : : {
2963 : 98 : WRITE_NODE_TYPE("LOADSTMT");
2964 : :
2965 : 98 : WRITE_STRING_FIELD(filename);
2966 : 98 : }
2967 : :
2968 : : static void
2969 : 898 : _outCreatedbStmt(StringInfo str, const CreatedbStmt *node)
2970 : : {
2971 : 898 : WRITE_NODE_TYPE("CREATEDBSTMT");
2972 : :
2973 : 898 : WRITE_STRING_FIELD(dbname);
2974 : 898 : WRITE_NODE_FIELD(options);
2975 : 898 : }
2976 : :
2977 : : static void
2978 : 106 : _outAlterDatabaseStmt(StringInfo str, const AlterDatabaseStmt *node)
2979 : : {
2980 : 106 : WRITE_NODE_TYPE("ALTERDATABASESTMT");
2981 : :
2982 : 106 : WRITE_STRING_FIELD(dbname);
2983 : 106 : WRITE_NODE_FIELD(options);
2984 : 106 : }
2985 : :
2986 : : static void
2987 : 8 : _outAlterDatabaseRefreshCollStmt(StringInfo str, const AlterDatabaseRefreshCollStmt *node)
2988 : : {
2989 : 8 : WRITE_NODE_TYPE("ALTERDATABASEREFRESHCOLLSTMT");
2990 : :
2991 : 8 : WRITE_STRING_FIELD(dbname);
2992 : 8 : }
2993 : :
2994 : : static void
2995 : 1346 : _outAlterDatabaseSetStmt(StringInfo str, const AlterDatabaseSetStmt *node)
2996 : : {
2997 : 1346 : WRITE_NODE_TYPE("ALTERDATABASESETSTMT");
2998 : :
2999 : 1346 : WRITE_STRING_FIELD(dbname);
3000 : 1346 : WRITE_NODE_FIELD(setstmt);
3001 : 1346 : }
3002 : :
3003 : : static void
3004 : 156 : _outDropdbStmt(StringInfo str, const DropdbStmt *node)
3005 : : {
3006 : 156 : WRITE_NODE_TYPE("DROPDBSTMT");
3007 : :
3008 : 156 : WRITE_STRING_FIELD(dbname);
3009 [ + + ]: 156 : WRITE_BOOL_FIELD(missing_ok);
3010 : 156 : WRITE_NODE_FIELD(options);
3011 : 156 : }
3012 : :
3013 : : static void
3014 : 240 : _outAlterSystemStmt(StringInfo str, const AlterSystemStmt *node)
3015 : : {
3016 : 240 : WRITE_NODE_TYPE("ALTERSYSTEMSTMT");
3017 : :
3018 : 240 : WRITE_NODE_FIELD(setstmt);
3019 : 240 : }
3020 : :
3021 : : static void
3022 : 17914 : _outVacuumStmt(StringInfo str, const VacuumStmt *node)
3023 : : {
3024 : 17914 : WRITE_NODE_TYPE("VACUUMSTMT");
3025 : :
3026 : 17914 : WRITE_NODE_FIELD(options);
3027 : 17914 : WRITE_NODE_FIELD(rels);
3028 [ + + ]: 17914 : WRITE_BOOL_FIELD(is_vacuumcmd);
3029 : 17914 : }
3030 : :
3031 : : static void
3032 : 18170 : _outVacuumRelation(StringInfo str, const VacuumRelation *node)
3033 : : {
3034 : 18170 : WRITE_NODE_TYPE("VACUUMRELATION");
3035 : :
3036 : 18170 : WRITE_NODE_FIELD(relation);
3037 : 18170 : WRITE_OID_FIELD(oid);
3038 : 18170 : WRITE_NODE_FIELD(va_cols);
3039 : 18170 : }
3040 : :
3041 : : static void
3042 : 464 : _outRepackStmt(StringInfo str, const RepackStmt *node)
3043 : : {
3044 : 464 : WRITE_NODE_TYPE("REPACKSTMT");
3045 : :
3046 : 464 : WRITE_ENUM_FIELD(command, RepackCommand);
3047 : 464 : WRITE_NODE_FIELD(relation);
3048 : 464 : WRITE_STRING_FIELD(indexname);
3049 [ + + ]: 464 : WRITE_BOOL_FIELD(usingindex);
3050 : 464 : WRITE_NODE_FIELD(params);
3051 : 464 : }
3052 : :
3053 : : static void
3054 : 27976 : _outExplainStmt(StringInfo str, const ExplainStmt *node)
3055 : : {
3056 : 27976 : WRITE_NODE_TYPE("EXPLAINSTMT");
3057 : :
3058 : 27976 : WRITE_NODE_FIELD(query);
3059 : 27976 : WRITE_NODE_FIELD(options);
3060 : 27976 : }
3061 : :
3062 : : static void
3063 : 2522 : _outCreateTableAsStmt(StringInfo str, const CreateTableAsStmt *node)
3064 : : {
3065 : 2522 : WRITE_NODE_TYPE("CREATETABLEASSTMT");
3066 : :
3067 : 2522 : WRITE_NODE_FIELD(query);
3068 : 2522 : WRITE_NODE_FIELD(into);
3069 : 2522 : WRITE_ENUM_FIELD(objtype, ObjectType);
3070 [ + + ]: 2522 : WRITE_BOOL_FIELD(is_select_into);
3071 [ + + ]: 2522 : WRITE_BOOL_FIELD(if_not_exists);
3072 : 2522 : }
3073 : :
3074 : : static void
3075 : 348 : _outRefreshMatViewStmt(StringInfo str, const RefreshMatViewStmt *node)
3076 : : {
3077 : 348 : WRITE_NODE_TYPE("REFRESHMATVIEWSTMT");
3078 : :
3079 [ + + ]: 348 : WRITE_BOOL_FIELD(concurrent);
3080 [ + + ]: 348 : WRITE_BOOL_FIELD(skipData);
3081 : 348 : WRITE_NODE_FIELD(relation);
3082 : 348 : }
3083 : :
3084 : : static void
3085 : 291 : _outCheckPointStmt(StringInfo str, const CheckPointStmt *node)
3086 : : {
3087 : 291 : WRITE_NODE_TYPE("CHECKPOINTSTMT");
3088 : :
3089 : 291 : WRITE_NODE_FIELD(options);
3090 : 291 : }
3091 : :
3092 : : static void
3093 : 48 : _outDiscardStmt(StringInfo str, const DiscardStmt *node)
3094 : : {
3095 : 48 : WRITE_NODE_TYPE("DISCARDSTMT");
3096 : :
3097 : 48 : WRITE_ENUM_FIELD(target, DiscardMode);
3098 : 48 : }
3099 : :
3100 : : static void
3101 : 1194 : _outLockStmt(StringInfo str, const LockStmt *node)
3102 : : {
3103 : 1194 : WRITE_NODE_TYPE("LOCKSTMT");
3104 : :
3105 : 1194 : WRITE_NODE_FIELD(relations);
3106 : 1194 : WRITE_INT_FIELD(mode);
3107 [ + + ]: 1194 : WRITE_BOOL_FIELD(nowait);
3108 : 1194 : }
3109 : :
3110 : : static void
3111 : 141 : _outConstraintsSetStmt(StringInfo str, const ConstraintsSetStmt *node)
3112 : : {
3113 : 141 : WRITE_NODE_TYPE("CONSTRAINTSSETSTMT");
3114 : :
3115 : 141 : WRITE_NODE_FIELD(constraints);
3116 [ + + ]: 141 : WRITE_BOOL_FIELD(deferred);
3117 : 141 : }
3118 : :
3119 : : static void
3120 : 1418 : _outReindexStmt(StringInfo str, const ReindexStmt *node)
3121 : : {
3122 : 1418 : WRITE_NODE_TYPE("REINDEXSTMT");
3123 : :
3124 : 1418 : WRITE_ENUM_FIELD(kind, ReindexObjectType);
3125 : 1418 : WRITE_NODE_FIELD(relation);
3126 : 1418 : WRITE_STRING_FIELD(name);
3127 : 1418 : WRITE_NODE_FIELD(params);
3128 : 1418 : }
3129 : :
3130 : : static void
3131 : 84 : _outCreateConversionStmt(StringInfo str, const CreateConversionStmt *node)
3132 : : {
3133 : 84 : WRITE_NODE_TYPE("CREATECONVERSIONSTMT");
3134 : :
3135 : 84 : WRITE_NODE_FIELD(conversion_name);
3136 : 84 : WRITE_STRING_FIELD(for_encoding_name);
3137 : 84 : WRITE_STRING_FIELD(to_encoding_name);
3138 : 84 : WRITE_NODE_FIELD(func_name);
3139 [ + + ]: 84 : WRITE_BOOL_FIELD(def);
3140 : 84 : }
3141 : :
3142 : : static void
3143 : 352 : _outCreateCastStmt(StringInfo str, const CreateCastStmt *node)
3144 : : {
3145 : 352 : WRITE_NODE_TYPE("CREATECASTSTMT");
3146 : :
3147 : 352 : WRITE_NODE_FIELD(sourcetype);
3148 : 352 : WRITE_NODE_FIELD(targettype);
3149 : 352 : WRITE_NODE_FIELD(func);
3150 : 352 : WRITE_ENUM_FIELD(context, CoercionContext);
3151 [ + + ]: 352 : WRITE_BOOL_FIELD(inout);
3152 : 352 : }
3153 : :
3154 : : static void
3155 : 436 : _outCreatePropGraphStmt(StringInfo str, const CreatePropGraphStmt *node)
3156 : : {
3157 : 436 : WRITE_NODE_TYPE("CREATEPROPGRAPHSTMT");
3158 : :
3159 : 436 : WRITE_NODE_FIELD(pgname);
3160 : 436 : WRITE_NODE_FIELD(vertex_tables);
3161 : 436 : WRITE_NODE_FIELD(edge_tables);
3162 : 436 : }
3163 : :
3164 : : static void
3165 : 838 : _outPropGraphVertex(StringInfo str, const PropGraphVertex *node)
3166 : : {
3167 : 838 : WRITE_NODE_TYPE("PROPGRAPHVERTEX");
3168 : :
3169 : 838 : WRITE_NODE_FIELD(vtable);
3170 : 838 : WRITE_NODE_FIELD(vkey);
3171 : 838 : WRITE_NODE_FIELD(labels);
3172 [ + - ]: 838 : WRITE_LOCATION_FIELD(location);
3173 : 838 : }
3174 : :
3175 : : static void
3176 : 434 : _outPropGraphEdge(StringInfo str, const PropGraphEdge *node)
3177 : : {
3178 : 434 : WRITE_NODE_TYPE("PROPGRAPHEDGE");
3179 : :
3180 : 434 : WRITE_NODE_FIELD(etable);
3181 : 434 : WRITE_NODE_FIELD(ekey);
3182 : 434 : WRITE_NODE_FIELD(esrckey);
3183 : 434 : WRITE_STRING_FIELD(esrcvertex);
3184 : 434 : WRITE_NODE_FIELD(esrcvertexcols);
3185 : 434 : WRITE_NODE_FIELD(edestkey);
3186 : 434 : WRITE_STRING_FIELD(edestvertex);
3187 : 434 : WRITE_NODE_FIELD(edestvertexcols);
3188 : 434 : WRITE_NODE_FIELD(labels);
3189 [ + - ]: 434 : WRITE_LOCATION_FIELD(location);
3190 : 434 : }
3191 : :
3192 : : static void
3193 : 1582 : _outPropGraphLabelAndProperties(StringInfo str, const PropGraphLabelAndProperties *node)
3194 : : {
3195 : 1582 : WRITE_NODE_TYPE("PROPGRAPHLABELANDPROPERTIES");
3196 : :
3197 : 1582 : WRITE_STRING_FIELD(label);
3198 : 1582 : WRITE_NODE_FIELD(properties);
3199 [ + - ]: 1582 : WRITE_LOCATION_FIELD(location);
3200 : 1582 : }
3201 : :
3202 : : static void
3203 : 1606 : _outPropGraphProperties(StringInfo str, const PropGraphProperties *node)
3204 : : {
3205 : 1606 : WRITE_NODE_TYPE("PROPGRAPHPROPERTIES");
3206 : :
3207 : 1606 : WRITE_NODE_FIELD(properties);
3208 [ + + ]: 1606 : WRITE_BOOL_FIELD(all);
3209 [ + - ]: 1606 : WRITE_LOCATION_FIELD(location);
3210 : 1606 : }
3211 : :
3212 : : static void
3213 : 336 : _outAlterPropGraphStmt(StringInfo str, const AlterPropGraphStmt *node)
3214 : : {
3215 : 336 : WRITE_NODE_TYPE("ALTERPROPGRAPHSTMT");
3216 : :
3217 : 336 : WRITE_NODE_FIELD(pgname);
3218 [ - + ]: 336 : WRITE_BOOL_FIELD(missing_ok);
3219 : 336 : WRITE_NODE_FIELD(add_vertex_tables);
3220 : 336 : WRITE_NODE_FIELD(add_edge_tables);
3221 : 336 : WRITE_NODE_FIELD(drop_vertex_tables);
3222 : 336 : WRITE_NODE_FIELD(drop_edge_tables);
3223 : 336 : WRITE_ENUM_FIELD(drop_behavior, DropBehavior);
3224 : 336 : WRITE_ENUM_FIELD(element_kind, AlterPropGraphElementKind);
3225 : 336 : WRITE_STRING_FIELD(element_alias);
3226 : 336 : WRITE_NODE_FIELD(add_labels);
3227 : 336 : WRITE_STRING_FIELD(drop_label);
3228 : 336 : WRITE_STRING_FIELD(alter_label);
3229 : 336 : WRITE_NODE_FIELD(add_properties);
3230 : 336 : WRITE_NODE_FIELD(drop_properties);
3231 : 336 : }
3232 : :
3233 : : static void
3234 : 52 : _outCreateTransformStmt(StringInfo str, const CreateTransformStmt *node)
3235 : : {
3236 : 52 : WRITE_NODE_TYPE("CREATETRANSFORMSTMT");
3237 : :
3238 [ + + ]: 52 : WRITE_BOOL_FIELD(replace);
3239 : 52 : WRITE_NODE_FIELD(type_name);
3240 : 52 : WRITE_STRING_FIELD(lang);
3241 : 52 : WRITE_NODE_FIELD(fromsql);
3242 : 52 : WRITE_NODE_FIELD(tosql);
3243 : 52 : }
3244 : :
3245 : : static void
3246 : 2280 : _outPrepareStmt(StringInfo str, const PrepareStmt *node)
3247 : : {
3248 : 2280 : WRITE_NODE_TYPE("PREPARESTMT");
3249 : :
3250 : 2280 : WRITE_STRING_FIELD(name);
3251 : 2280 : WRITE_NODE_FIELD(argtypes);
3252 : 2280 : WRITE_NODE_FIELD(query);
3253 : 2280 : }
3254 : :
3255 : : static void
3256 : 18054 : _outExecuteStmt(StringInfo str, const ExecuteStmt *node)
3257 : : {
3258 : 18054 : WRITE_NODE_TYPE("EXECUTESTMT");
3259 : :
3260 : 18054 : WRITE_STRING_FIELD(name);
3261 : 18054 : WRITE_NODE_FIELD(params);
3262 : 18054 : }
3263 : :
3264 : : static void
3265 : 4196 : _outDeallocateStmt(StringInfo str, const DeallocateStmt *node)
3266 : : {
3267 : 4196 : WRITE_NODE_TYPE("DEALLOCATESTMT");
3268 : :
3269 : 4196 : WRITE_STRING_FIELD(name);
3270 [ + + ]: 4196 : WRITE_BOOL_FIELD(isall);
3271 [ + - ]: 4196 : WRITE_LOCATION_FIELD(location);
3272 : 4196 : }
3273 : :
3274 : : static void
3275 : 192 : _outDropOwnedStmt(StringInfo str, const DropOwnedStmt *node)
3276 : : {
3277 : 192 : WRITE_NODE_TYPE("DROPOWNEDSTMT");
3278 : :
3279 : 192 : WRITE_NODE_FIELD(roles);
3280 : 192 : WRITE_ENUM_FIELD(behavior, DropBehavior);
3281 : 192 : }
3282 : :
3283 : : static void
3284 : 72 : _outReassignOwnedStmt(StringInfo str, const ReassignOwnedStmt *node)
3285 : : {
3286 : 72 : WRITE_NODE_TYPE("REASSIGNOWNEDSTMT");
3287 : :
3288 : 72 : WRITE_NODE_FIELD(roles);
3289 : 72 : WRITE_NODE_FIELD(newrole);
3290 : 72 : }
3291 : :
3292 : : static void
3293 : 46 : _outAlterTSDictionaryStmt(StringInfo str, const AlterTSDictionaryStmt *node)
3294 : : {
3295 : 46 : WRITE_NODE_TYPE("ALTERTSDICTIONARYSTMT");
3296 : :
3297 : 46 : WRITE_NODE_FIELD(dictname);
3298 : 46 : WRITE_NODE_FIELD(options);
3299 : 46 : }
3300 : :
3301 : : static void
3302 : 10500 : _outAlterTSConfigurationStmt(StringInfo str, const AlterTSConfigurationStmt *node)
3303 : : {
3304 : 10500 : WRITE_NODE_TYPE("ALTERTSCONFIGURATIONSTMT");
3305 : :
3306 : 10500 : WRITE_ENUM_FIELD(kind, AlterTSConfigType);
3307 : 10500 : WRITE_NODE_FIELD(cfgname);
3308 : 10500 : WRITE_NODE_FIELD(tokentype);
3309 : 10500 : WRITE_NODE_FIELD(dicts);
3310 [ + + ]: 10500 : WRITE_BOOL_FIELD(override);
3311 [ + + ]: 10500 : WRITE_BOOL_FIELD(replace);
3312 [ + + ]: 10500 : WRITE_BOOL_FIELD(missing_ok);
3313 : 10500 : }
3314 : :
3315 : : static void
3316 : 2050 : _outPublicationTable(StringInfo str, const PublicationTable *node)
3317 : : {
3318 : 2050 : WRITE_NODE_TYPE("PUBLICATIONTABLE");
3319 : :
3320 : 2050 : WRITE_NODE_FIELD(relation);
3321 : 2050 : WRITE_NODE_FIELD(whereClause);
3322 : 2050 : WRITE_NODE_FIELD(columns);
3323 [ + + ]: 2050 : WRITE_BOOL_FIELD(except);
3324 : 2050 : }
3325 : :
3326 : : static void
3327 : 2580 : _outPublicationObjSpec(StringInfo str, const PublicationObjSpec *node)
3328 : : {
3329 : 2580 : WRITE_NODE_TYPE("PUBLICATIONOBJSPEC");
3330 : :
3331 : 2580 : WRITE_ENUM_FIELD(pubobjtype, PublicationObjSpecType);
3332 : 2580 : WRITE_STRING_FIELD(name);
3333 : 2580 : WRITE_NODE_FIELD(pubtable);
3334 [ + - ]: 2580 : WRITE_LOCATION_FIELD(location);
3335 : 2580 : }
3336 : :
3337 : : static void
3338 : 0 : _outPublicationAllObjSpec(StringInfo str, const PublicationAllObjSpec *node)
3339 : : {
3340 : 0 : WRITE_NODE_TYPE("PUBLICATIONALLOBJSPEC");
3341 : :
3342 : 0 : WRITE_ENUM_FIELD(pubobjtype, PublicationAllObjType);
3343 : 0 : WRITE_NODE_FIELD(except_tables);
3344 [ # # ]: 0 : WRITE_LOCATION_FIELD(location);
3345 : 0 : }
3346 : :
3347 : : static void
3348 : 1272 : _outCreatePublicationStmt(StringInfo str, const CreatePublicationStmt *node)
3349 : : {
3350 : 1272 : WRITE_NODE_TYPE("CREATEPUBLICATIONSTMT");
3351 : :
3352 : 1272 : WRITE_STRING_FIELD(pubname);
3353 : 1272 : WRITE_NODE_FIELD(options);
3354 : 1272 : WRITE_NODE_FIELD(pubobjects);
3355 [ + + ]: 1272 : WRITE_BOOL_FIELD(for_all_tables);
3356 [ + + ]: 1272 : WRITE_BOOL_FIELD(for_all_sequences);
3357 : 1272 : }
3358 : :
3359 : : static void
3360 : 1562 : _outAlterPublicationStmt(StringInfo str, const AlterPublicationStmt *node)
3361 : : {
3362 : 1562 : WRITE_NODE_TYPE("ALTERPUBLICATIONSTMT");
3363 : :
3364 : 1562 : WRITE_STRING_FIELD(pubname);
3365 : 1562 : WRITE_NODE_FIELD(options);
3366 : 1562 : WRITE_NODE_FIELD(pubobjects);
3367 : 1562 : WRITE_ENUM_FIELD(action, AlterPublicationAction);
3368 [ + + ]: 1562 : WRITE_BOOL_FIELD(for_all_tables);
3369 [ + + ]: 1562 : WRITE_BOOL_FIELD(for_all_sequences);
3370 : 1562 : }
3371 : :
3372 : : static void
3373 : 670 : _outCreateSubscriptionStmt(StringInfo str, const CreateSubscriptionStmt *node)
3374 : : {
3375 : 670 : WRITE_NODE_TYPE("CREATESUBSCRIPTIONSTMT");
3376 : :
3377 : 670 : WRITE_STRING_FIELD(subname);
3378 : 670 : WRITE_STRING_FIELD(servername);
3379 : 670 : WRITE_STRING_FIELD(conninfo);
3380 : 670 : WRITE_NODE_FIELD(publication);
3381 : 670 : WRITE_NODE_FIELD(options);
3382 : 670 : }
3383 : :
3384 : : static void
3385 : 897 : _outAlterSubscriptionStmt(StringInfo str, const AlterSubscriptionStmt *node)
3386 : : {
3387 : 897 : WRITE_NODE_TYPE("ALTERSUBSCRIPTIONSTMT");
3388 : :
3389 : 897 : WRITE_ENUM_FIELD(kind, AlterSubscriptionType);
3390 : 897 : WRITE_STRING_FIELD(subname);
3391 : 897 : WRITE_STRING_FIELD(servername);
3392 : 897 : WRITE_STRING_FIELD(conninfo);
3393 : 897 : WRITE_NODE_FIELD(publication);
3394 : 897 : WRITE_NODE_FIELD(options);
3395 : 897 : }
3396 : :
3397 : : static void
3398 : 360 : _outDropSubscriptionStmt(StringInfo str, const DropSubscriptionStmt *node)
3399 : : {
3400 : 360 : WRITE_NODE_TYPE("DROPSUBSCRIPTIONSTMT");
3401 : :
3402 : 360 : WRITE_STRING_FIELD(subname);
3403 [ + + ]: 360 : WRITE_BOOL_FIELD(missing_ok);
3404 : 360 : WRITE_ENUM_FIELD(behavior, DropBehavior);
3405 : 360 : }
3406 : :
3407 : : static void
3408 : 527 : _outWaitStmt(StringInfo str, const WaitStmt *node)
3409 : : {
3410 : 527 : WRITE_NODE_TYPE("WAITSTMT");
3411 : :
3412 : 527 : WRITE_STRING_FIELD(lsn_literal);
3413 : 527 : WRITE_NODE_FIELD(options);
3414 : 527 : }
3415 : :
3416 : : static void
3417 : 0 : _outPlannerGlobal(StringInfo str, const PlannerGlobal *node)
3418 : : {
3419 : 0 : WRITE_NODE_TYPE("PLANNERGLOBAL");
3420 : :
3421 : 0 : WRITE_NODE_FIELD(subplans);
3422 : 0 : WRITE_NODE_FIELD(subpaths);
3423 : 0 : WRITE_BITMAPSET_FIELD(rewindPlanIDs);
3424 : 0 : WRITE_NODE_FIELD(finalrtable);
3425 : 0 : WRITE_BITMAPSET_FIELD(allRelids);
3426 : 0 : WRITE_BITMAPSET_FIELD(prunableRelids);
3427 : 0 : WRITE_NODE_FIELD(finalrteperminfos);
3428 : 0 : WRITE_NODE_FIELD(subrtinfos);
3429 : 0 : WRITE_NODE_FIELD(finalrowmarks);
3430 : 0 : WRITE_NODE_FIELD(resultRelations);
3431 : 0 : WRITE_NODE_FIELD(appendRelations);
3432 : 0 : WRITE_NODE_FIELD(partPruneInfos);
3433 : 0 : WRITE_NODE_FIELD(relationOids);
3434 : 0 : WRITE_NODE_FIELD(invalItems);
3435 : 0 : WRITE_NODE_FIELD(paramExecTypes);
3436 : 0 : WRITE_NODE_FIELD(elidedNodes);
3437 : 0 : WRITE_UINT_FIELD(lastPHId);
3438 : 0 : WRITE_UINT_FIELD(lastRowMarkId);
3439 : 0 : WRITE_INT_FIELD(lastPlanNodeId);
3440 [ # # ]: 0 : WRITE_BOOL_FIELD(transientPlan);
3441 [ # # ]: 0 : WRITE_BOOL_FIELD(dependsOnRole);
3442 [ # # ]: 0 : WRITE_BOOL_FIELD(parallelModeOK);
3443 [ # # ]: 0 : WRITE_BOOL_FIELD(parallelModeNeeded);
3444 : 0 : WRITE_CHAR_FIELD(maxParallelHazard);
3445 : 0 : WRITE_UINT64_FIELD(default_pgs_mask);
3446 : 0 : WRITE_INT_FIELD(extension_state_allocated);
3447 : 0 : }
3448 : :
3449 : : static void
3450 : 0 : _outPlannerInfo(StringInfo str, const PlannerInfo *node)
3451 : : {
3452 : 0 : WRITE_NODE_TYPE("PLANNERINFO");
3453 : :
3454 : 0 : WRITE_NODE_FIELD(parse);
3455 : 0 : WRITE_NODE_FIELD(glob);
3456 : 0 : WRITE_UINT_FIELD(query_level);
3457 : 0 : WRITE_STRING_FIELD(plan_name);
3458 : 0 : WRITE_STRING_FIELD(alternative_plan_name);
3459 : 0 : WRITE_NODE_FIELD(plan_params);
3460 : 0 : WRITE_BITMAPSET_FIELD(outer_params);
3461 : 0 : WRITE_NODE_ARRAY(simple_rel_array, node->simple_rel_array_size);
3462 : 0 : WRITE_INT_FIELD(simple_rel_array_size);
3463 : 0 : WRITE_BITMAPSET_FIELD(all_baserels);
3464 : 0 : WRITE_BITMAPSET_FIELD(outer_join_rels);
3465 : 0 : WRITE_BITMAPSET_FIELD(all_query_rels);
3466 : 0 : WRITE_NODE_FIELD(join_rel_list);
3467 : 0 : WRITE_INT_FIELD(join_cur_level);
3468 : 0 : WRITE_NODE_FIELD(init_plans);
3469 : 0 : WRITE_NODE_FIELD(cte_plan_ids);
3470 : 0 : WRITE_NODE_FIELD(multiexpr_params);
3471 : 0 : WRITE_NODE_FIELD(join_domains);
3472 : 0 : WRITE_NODE_FIELD(eq_classes);
3473 [ # # ]: 0 : WRITE_BOOL_FIELD(ec_merging_done);
3474 : 0 : WRITE_NODE_FIELD(canon_pathkeys);
3475 : 0 : WRITE_NODE_FIELD(left_join_clauses);
3476 : 0 : WRITE_NODE_FIELD(right_join_clauses);
3477 : 0 : WRITE_NODE_FIELD(full_join_clauses);
3478 : 0 : WRITE_NODE_FIELD(join_info_list);
3479 : 0 : WRITE_INT_FIELD(last_rinfo_serial);
3480 : 0 : WRITE_BITMAPSET_FIELD(all_result_relids);
3481 : 0 : WRITE_BITMAPSET_FIELD(leaf_result_relids);
3482 : 0 : WRITE_NODE_FIELD(append_rel_list);
3483 : 0 : WRITE_NODE_FIELD(row_identity_vars);
3484 : 0 : WRITE_NODE_FIELD(rowMarks);
3485 : 0 : WRITE_NODE_FIELD(placeholder_list);
3486 : 0 : WRITE_NODE_FIELD(agg_clause_list);
3487 : 0 : WRITE_NODE_FIELD(group_expr_list);
3488 : 0 : WRITE_NODE_FIELD(tlist_vars);
3489 : 0 : WRITE_NODE_FIELD(fkey_list);
3490 : 0 : WRITE_NODE_FIELD(query_pathkeys);
3491 : 0 : WRITE_NODE_FIELD(group_pathkeys);
3492 : 0 : WRITE_INT_FIELD(num_groupby_pathkeys);
3493 : 0 : WRITE_NODE_FIELD(window_pathkeys);
3494 : 0 : WRITE_NODE_FIELD(distinct_pathkeys);
3495 : 0 : WRITE_NODE_FIELD(sort_pathkeys);
3496 : 0 : WRITE_NODE_FIELD(setop_pathkeys);
3497 : 0 : WRITE_NODE_FIELD(processed_groupClause);
3498 : 0 : WRITE_NODE_FIELD(processed_distinctClause);
3499 : 0 : WRITE_NODE_FIELD(processed_tlist);
3500 : 0 : WRITE_NODE_FIELD(update_colnos);
3501 : 0 : WRITE_NODE_FIELD(minmax_aggs);
3502 : 0 : WRITE_FLOAT_FIELD(total_table_pages);
3503 : 0 : WRITE_FLOAT_FIELD(tuple_fraction);
3504 : 0 : WRITE_FLOAT_FIELD(limit_tuples);
3505 : 0 : WRITE_UINT_FIELD(qual_security_level);
3506 [ # # ]: 0 : WRITE_BOOL_FIELD(hasJoinRTEs);
3507 [ # # ]: 0 : WRITE_BOOL_FIELD(hasLateralRTEs);
3508 [ # # ]: 0 : WRITE_BOOL_FIELD(hasHavingQual);
3509 [ # # ]: 0 : WRITE_BOOL_FIELD(hasPseudoConstantQuals);
3510 [ # # ]: 0 : WRITE_BOOL_FIELD(hasAlternativeSubPlans);
3511 [ # # ]: 0 : WRITE_BOOL_FIELD(placeholdersFrozen);
3512 [ # # ]: 0 : WRITE_BOOL_FIELD(hasRecursion);
3513 [ # # ]: 0 : WRITE_BOOL_FIELD(assumeReplanning);
3514 : 0 : WRITE_INT_FIELD(group_rtindex);
3515 : 0 : WRITE_NODE_FIELD(agginfos);
3516 : 0 : WRITE_NODE_FIELD(aggtransinfos);
3517 : 0 : WRITE_INT_FIELD(numOrderedAggs);
3518 [ # # ]: 0 : WRITE_BOOL_FIELD(hasNonPartialAggs);
3519 [ # # ]: 0 : WRITE_BOOL_FIELD(hasNonSerialAggs);
3520 : 0 : WRITE_INT_FIELD(wt_param_id);
3521 : 0 : WRITE_NODE_FIELD(non_recursive_path);
3522 : 0 : WRITE_BITMAPSET_FIELD(curOuterRels);
3523 : 0 : WRITE_NODE_FIELD(curOuterParams);
3524 : 0 : WRITE_NODE_FIELD(partPruneInfos);
3525 : 0 : WRITE_INT_FIELD(extension_state_allocated);
3526 : 0 : }
3527 : :
3528 : : static void
3529 : 0 : _outRelOptInfo(StringInfo str, const RelOptInfo *node)
3530 : : {
3531 : 0 : WRITE_NODE_TYPE("RELOPTINFO");
3532 : :
3533 : 0 : WRITE_ENUM_FIELD(reloptkind, RelOptKind);
3534 : 0 : WRITE_BITMAPSET_FIELD(relids);
3535 : 0 : WRITE_FLOAT_FIELD(rows);
3536 [ # # ]: 0 : WRITE_BOOL_FIELD(consider_startup);
3537 [ # # ]: 0 : WRITE_BOOL_FIELD(consider_param_startup);
3538 [ # # ]: 0 : WRITE_BOOL_FIELD(consider_parallel);
3539 : 0 : WRITE_UINT64_FIELD(pgs_mask);
3540 : 0 : WRITE_NODE_FIELD(reltarget);
3541 : 0 : WRITE_NODE_FIELD(pathlist);
3542 : 0 : WRITE_NODE_FIELD(ppilist);
3543 : 0 : WRITE_NODE_FIELD(partial_pathlist);
3544 : 0 : WRITE_NODE_FIELD(cheapest_startup_path);
3545 : 0 : WRITE_NODE_FIELD(cheapest_total_path);
3546 : 0 : WRITE_NODE_FIELD(cheapest_parameterized_paths);
3547 : 0 : WRITE_BITMAPSET_FIELD(direct_lateral_relids);
3548 : 0 : WRITE_BITMAPSET_FIELD(lateral_relids);
3549 : 0 : WRITE_UINT_FIELD(relid);
3550 : 0 : WRITE_OID_FIELD(reltablespace);
3551 : 0 : WRITE_ENUM_FIELD(rtekind, RTEKind);
3552 : 0 : WRITE_INT_FIELD(min_attr);
3553 : 0 : WRITE_INT_FIELD(max_attr);
3554 : 0 : WRITE_BITMAPSET_FIELD(notnullattnums);
3555 : 0 : WRITE_BITMAPSET_FIELD(nulling_relids);
3556 : 0 : WRITE_NODE_FIELD(lateral_vars);
3557 : 0 : WRITE_BITMAPSET_FIELD(lateral_referencers);
3558 : 0 : WRITE_NODE_FIELD(indexlist);
3559 : 0 : WRITE_NODE_FIELD(statlist);
3560 : 0 : WRITE_UINT_FIELD(pages);
3561 : 0 : WRITE_FLOAT_FIELD(tuples);
3562 : 0 : WRITE_FLOAT_FIELD(allvisfrac);
3563 : 0 : WRITE_BITMAPSET_FIELD(eclass_indexes);
3564 : 0 : WRITE_NODE_FIELD(subroot);
3565 : 0 : WRITE_NODE_FIELD(subplan_params);
3566 : 0 : WRITE_INT_FIELD(rel_parallel_workers);
3567 : 0 : WRITE_UINT_FIELD(amflags);
3568 : 0 : WRITE_OID_FIELD(serverid);
3569 : 0 : WRITE_OID_FIELD(userid);
3570 [ # # ]: 0 : WRITE_BOOL_FIELD(useridiscurrent);
3571 : 0 : WRITE_NODE_FIELD(unique_for_rels);
3572 : 0 : WRITE_NODE_FIELD(non_unique_for_rels);
3573 : 0 : WRITE_NODE_FIELD(unique_rel);
3574 : 0 : WRITE_NODE_FIELD(unique_pathkeys);
3575 : 0 : WRITE_NODE_FIELD(unique_groupclause);
3576 : 0 : WRITE_NODE_FIELD(baserestrictinfo);
3577 : 0 : WRITE_FLOAT_FIELD(baserestrictcost.startup);
3578 : 0 : WRITE_FLOAT_FIELD(baserestrictcost.per_tuple);
3579 : 0 : WRITE_UINT_FIELD(baserestrict_min_security);
3580 : 0 : WRITE_NODE_FIELD(joininfo);
3581 [ # # ]: 0 : WRITE_BOOL_FIELD(has_eclass_joins);
3582 [ # # ]: 0 : WRITE_BOOL_FIELD(consider_partitionwise_join);
3583 : 0 : WRITE_NODE_FIELD(agg_info);
3584 : 0 : WRITE_NODE_FIELD(grouped_rel);
3585 : 0 : WRITE_BITMAPSET_FIELD(top_parent_relids);
3586 : 0 : WRITE_INT_FIELD(nparts);
3587 [ # # ]: 0 : WRITE_BOOL_FIELD(partbounds_merged);
3588 : 0 : WRITE_NODE_FIELD(partition_qual);
3589 : 0 : WRITE_BITMAPSET_FIELD(live_parts);
3590 : 0 : WRITE_BITMAPSET_FIELD(all_partrels);
3591 : 0 : WRITE_INT_FIELD(extension_state_allocated);
3592 : 0 : }
3593 : :
3594 : : static void
3595 : 0 : _outRelAggInfo(StringInfo str, const RelAggInfo *node)
3596 : : {
3597 : 0 : WRITE_NODE_TYPE("RELAGGINFO");
3598 : :
3599 : 0 : WRITE_NODE_FIELD(target);
3600 : 0 : WRITE_NODE_FIELD(agg_input);
3601 : 0 : WRITE_NODE_FIELD(group_clauses);
3602 : 0 : WRITE_NODE_FIELD(group_exprs);
3603 : 0 : WRITE_BITMAPSET_FIELD(apply_agg_at);
3604 : 0 : WRITE_FLOAT_FIELD(grouped_rows);
3605 [ # # ]: 0 : WRITE_BOOL_FIELD(agg_useful);
3606 : 0 : }
3607 : :
3608 : : static void
3609 : 0 : _outIndexOptInfo(StringInfo str, const IndexOptInfo *node)
3610 : : {
3611 : 0 : WRITE_NODE_TYPE("INDEXOPTINFO");
3612 : :
3613 : 0 : WRITE_OID_FIELD(indexoid);
3614 : 0 : WRITE_OID_FIELD(reltablespace);
3615 : 0 : WRITE_UINT_FIELD(pages);
3616 : 0 : WRITE_FLOAT_FIELD(tuples);
3617 : 0 : WRITE_INT_FIELD(tree_height);
3618 : 0 : WRITE_INT_FIELD(ncolumns);
3619 : 0 : WRITE_INT_FIELD(nkeycolumns);
3620 : 0 : WRITE_INT_ARRAY(indexkeys, node->ncolumns);
3621 : 0 : WRITE_OID_ARRAY(indexcollations, node->nkeycolumns);
3622 : 0 : WRITE_OID_ARRAY(opfamily, node->nkeycolumns);
3623 : 0 : WRITE_OID_ARRAY(opcintype, node->nkeycolumns);
3624 : 0 : WRITE_OID_ARRAY(sortopfamily, node->nkeycolumns);
3625 : 0 : WRITE_BOOL_ARRAY(reverse_sort, node->nkeycolumns);
3626 : 0 : WRITE_BOOL_ARRAY(nulls_first, node->nkeycolumns);
3627 : 0 : WRITE_BOOL_ARRAY(canreturn, node->ncolumns);
3628 : 0 : WRITE_OID_FIELD(relam);
3629 : 0 : WRITE_NODE_FIELD(indpred);
3630 : 0 : WRITE_NODE_FIELD(indextlist);
3631 : 0 : WRITE_NODE_FIELD(indrestrictinfo);
3632 [ # # ]: 0 : WRITE_BOOL_FIELD(predOK);
3633 [ # # ]: 0 : WRITE_BOOL_FIELD(unique);
3634 [ # # ]: 0 : WRITE_BOOL_FIELD(nullsnotdistinct);
3635 [ # # ]: 0 : WRITE_BOOL_FIELD(immediate);
3636 [ # # ]: 0 : WRITE_BOOL_FIELD(disabled);
3637 [ # # ]: 0 : WRITE_BOOL_FIELD(hypothetical);
3638 [ # # ]: 0 : WRITE_BOOL_FIELD(amcanorderbyop);
3639 [ # # ]: 0 : WRITE_BOOL_FIELD(amoptionalkey);
3640 [ # # ]: 0 : WRITE_BOOL_FIELD(amsearcharray);
3641 [ # # ]: 0 : WRITE_BOOL_FIELD(amsearchnulls);
3642 [ # # ]: 0 : WRITE_BOOL_FIELD(amhasgettuple);
3643 [ # # ]: 0 : WRITE_BOOL_FIELD(amhasgetbitmap);
3644 [ # # ]: 0 : WRITE_BOOL_FIELD(amcanparallel);
3645 [ # # ]: 0 : WRITE_BOOL_FIELD(amcanmarkpos);
3646 : 0 : }
3647 : :
3648 : : static void
3649 : 0 : _outStatisticExtInfo(StringInfo str, const StatisticExtInfo *node)
3650 : : {
3651 : 0 : WRITE_NODE_TYPE("STATISTICEXTINFO");
3652 : :
3653 : 0 : WRITE_OID_FIELD(statOid);
3654 [ # # ]: 0 : WRITE_BOOL_FIELD(inherit);
3655 : 0 : WRITE_CHAR_FIELD(kind);
3656 : 0 : WRITE_BITMAPSET_FIELD(keys);
3657 : 0 : WRITE_NODE_FIELD(exprs);
3658 : 0 : }
3659 : :
3660 : : static void
3661 : 0 : _outJoinDomain(StringInfo str, const JoinDomain *node)
3662 : : {
3663 : 0 : WRITE_NODE_TYPE("JOINDOMAIN");
3664 : :
3665 : 0 : WRITE_BITMAPSET_FIELD(jd_relids);
3666 : 0 : }
3667 : :
3668 : : static void
3669 : 0 : _outEquivalenceMember(StringInfo str, const EquivalenceMember *node)
3670 : : {
3671 : 0 : WRITE_NODE_TYPE("EQUIVALENCEMEMBER");
3672 : :
3673 : 0 : WRITE_NODE_FIELD(em_expr);
3674 : 0 : WRITE_BITMAPSET_FIELD(em_relids);
3675 [ # # ]: 0 : WRITE_BOOL_FIELD(em_is_const);
3676 [ # # ]: 0 : WRITE_BOOL_FIELD(em_is_child);
3677 : 0 : WRITE_OID_FIELD(em_datatype);
3678 : 0 : WRITE_NODE_FIELD(em_jdomain);
3679 : 0 : }
3680 : :
3681 : : static void
3682 : 0 : _outPathKey(StringInfo str, const PathKey *node)
3683 : : {
3684 : 0 : WRITE_NODE_TYPE("PATHKEY");
3685 : :
3686 : 0 : WRITE_NODE_FIELD(pk_eclass);
3687 : 0 : WRITE_OID_FIELD(pk_opfamily);
3688 : 0 : WRITE_ENUM_FIELD(pk_cmptype, CompareType);
3689 [ # # ]: 0 : WRITE_BOOL_FIELD(pk_nulls_first);
3690 : 0 : }
3691 : :
3692 : : static void
3693 : 0 : _outGroupByOrdering(StringInfo str, const GroupByOrdering *node)
3694 : : {
3695 : 0 : WRITE_NODE_TYPE("GROUPBYORDERING");
3696 : :
3697 : 0 : WRITE_NODE_FIELD(pathkeys);
3698 : 0 : WRITE_NODE_FIELD(clauses);
3699 : 0 : }
3700 : :
3701 : : static void
3702 : 0 : _outPathTarget(StringInfo str, const PathTarget *node)
3703 : : {
3704 : 0 : WRITE_NODE_TYPE("PATHTARGET");
3705 : :
3706 : 0 : WRITE_NODE_FIELD(exprs);
3707 : 0 : WRITE_INDEX_ARRAY(sortgrouprefs, list_length(node->exprs));
3708 : 0 : WRITE_FLOAT_FIELD(cost.startup);
3709 : 0 : WRITE_FLOAT_FIELD(cost.per_tuple);
3710 : 0 : WRITE_INT_FIELD(width);
3711 : 0 : WRITE_ENUM_FIELD(has_volatile_expr, VolatileFunctionStatus);
3712 : 0 : }
3713 : :
3714 : : static void
3715 : 0 : _outParamPathInfo(StringInfo str, const ParamPathInfo *node)
3716 : : {
3717 : 0 : WRITE_NODE_TYPE("PARAMPATHINFO");
3718 : :
3719 : 0 : WRITE_BITMAPSET_FIELD(ppi_req_outer);
3720 : 0 : WRITE_FLOAT_FIELD(ppi_rows);
3721 : 0 : WRITE_NODE_FIELD(ppi_clauses);
3722 : 0 : WRITE_BITMAPSET_FIELD(ppi_serials);
3723 : 0 : }
3724 : :
3725 : : static void
3726 : 0 : _outPath(StringInfo str, const Path *node)
3727 : : {
3728 : 0 : WRITE_NODE_TYPE("PATH");
3729 : :
3730 : 0 : WRITE_ENUM_FIELD(pathtype, NodeTag);
3731 : 0 : appendStringInfoString(str, " :parent_relids ");
3732 : 0 : outBitmapset(str, node->parent->relids);
3733 [ # # ]: 0 : if (node->pathtarget != node->parent->reltarget)
3734 : 0 : WRITE_NODE_FIELD(pathtarget);
3735 : 0 : appendStringInfoString(str, " :required_outer ");
3736 [ # # ]: 0 : if (node->param_info)
3737 : 0 : outBitmapset(str, node->param_info->ppi_req_outer);
3738 : : else
3739 : 0 : outBitmapset(str, NULL);
3740 [ # # ]: 0 : WRITE_BOOL_FIELD(parallel_aware);
3741 [ # # ]: 0 : WRITE_BOOL_FIELD(parallel_safe);
3742 : 0 : WRITE_INT_FIELD(parallel_workers);
3743 : 0 : WRITE_FLOAT_FIELD(rows);
3744 : 0 : WRITE_INT_FIELD(disabled_nodes);
3745 : 0 : WRITE_FLOAT_FIELD(startup_cost);
3746 : 0 : WRITE_FLOAT_FIELD(total_cost);
3747 : 0 : WRITE_NODE_FIELD(pathkeys);
3748 : 0 : }
3749 : :
3750 : : static void
3751 : 0 : _outIndexPath(StringInfo str, const IndexPath *node)
3752 : : {
3753 : 0 : WRITE_NODE_TYPE("INDEXPATH");
3754 : :
3755 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3756 : 0 : appendStringInfoString(str, " :parent_relids ");
3757 : 0 : outBitmapset(str, node->path.parent->relids);
3758 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3759 : 0 : WRITE_NODE_FIELD(path.pathtarget);
3760 : 0 : appendStringInfoString(str, " :required_outer ");
3761 [ # # ]: 0 : if (node->path.param_info)
3762 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3763 : : else
3764 : 0 : outBitmapset(str, NULL);
3765 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3766 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3767 : 0 : WRITE_INT_FIELD(path.parallel_workers);
3768 : 0 : WRITE_FLOAT_FIELD(path.rows);
3769 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
3770 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3771 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
3772 : 0 : WRITE_NODE_FIELD(path.pathkeys);
3773 : 0 : WRITE_NODE_FIELD(indexinfo);
3774 : 0 : WRITE_NODE_FIELD(indexclauses);
3775 : 0 : WRITE_NODE_FIELD(indexorderbys);
3776 : 0 : WRITE_NODE_FIELD(indexorderbycols);
3777 : 0 : WRITE_ENUM_FIELD(indexscandir, ScanDirection);
3778 : 0 : WRITE_FLOAT_FIELD(indextotalcost);
3779 : 0 : WRITE_FLOAT_FIELD(indexselectivity);
3780 : 0 : }
3781 : :
3782 : : static void
3783 : 0 : _outIndexClause(StringInfo str, const IndexClause *node)
3784 : : {
3785 : 0 : WRITE_NODE_TYPE("INDEXCLAUSE");
3786 : :
3787 : 0 : WRITE_NODE_FIELD(rinfo);
3788 : 0 : WRITE_NODE_FIELD(indexquals);
3789 [ # # ]: 0 : WRITE_BOOL_FIELD(lossy);
3790 : 0 : WRITE_INT_FIELD(indexcol);
3791 : 0 : WRITE_NODE_FIELD(indexcols);
3792 : 0 : }
3793 : :
3794 : : static void
3795 : 0 : _outBitmapHeapPath(StringInfo str, const BitmapHeapPath *node)
3796 : : {
3797 : 0 : WRITE_NODE_TYPE("BITMAPHEAPPATH");
3798 : :
3799 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3800 : 0 : appendStringInfoString(str, " :parent_relids ");
3801 : 0 : outBitmapset(str, node->path.parent->relids);
3802 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3803 : 0 : WRITE_NODE_FIELD(path.pathtarget);
3804 : 0 : appendStringInfoString(str, " :required_outer ");
3805 [ # # ]: 0 : if (node->path.param_info)
3806 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3807 : : else
3808 : 0 : outBitmapset(str, NULL);
3809 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3810 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3811 : 0 : WRITE_INT_FIELD(path.parallel_workers);
3812 : 0 : WRITE_FLOAT_FIELD(path.rows);
3813 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
3814 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3815 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
3816 : 0 : WRITE_NODE_FIELD(path.pathkeys);
3817 : 0 : WRITE_NODE_FIELD(bitmapqual);
3818 : 0 : }
3819 : :
3820 : : static void
3821 : 0 : _outBitmapAndPath(StringInfo str, const BitmapAndPath *node)
3822 : : {
3823 : 0 : WRITE_NODE_TYPE("BITMAPANDPATH");
3824 : :
3825 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3826 : 0 : appendStringInfoString(str, " :parent_relids ");
3827 : 0 : outBitmapset(str, node->path.parent->relids);
3828 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3829 : 0 : WRITE_NODE_FIELD(path.pathtarget);
3830 : 0 : appendStringInfoString(str, " :required_outer ");
3831 [ # # ]: 0 : if (node->path.param_info)
3832 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3833 : : else
3834 : 0 : outBitmapset(str, NULL);
3835 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3836 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3837 : 0 : WRITE_INT_FIELD(path.parallel_workers);
3838 : 0 : WRITE_FLOAT_FIELD(path.rows);
3839 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
3840 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3841 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
3842 : 0 : WRITE_NODE_FIELD(path.pathkeys);
3843 : 0 : WRITE_NODE_FIELD(bitmapquals);
3844 : 0 : WRITE_FLOAT_FIELD(bitmapselectivity);
3845 : 0 : }
3846 : :
3847 : : static void
3848 : 0 : _outBitmapOrPath(StringInfo str, const BitmapOrPath *node)
3849 : : {
3850 : 0 : WRITE_NODE_TYPE("BITMAPORPATH");
3851 : :
3852 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3853 : 0 : appendStringInfoString(str, " :parent_relids ");
3854 : 0 : outBitmapset(str, node->path.parent->relids);
3855 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3856 : 0 : WRITE_NODE_FIELD(path.pathtarget);
3857 : 0 : appendStringInfoString(str, " :required_outer ");
3858 [ # # ]: 0 : if (node->path.param_info)
3859 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3860 : : else
3861 : 0 : outBitmapset(str, NULL);
3862 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3863 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3864 : 0 : WRITE_INT_FIELD(path.parallel_workers);
3865 : 0 : WRITE_FLOAT_FIELD(path.rows);
3866 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
3867 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3868 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
3869 : 0 : WRITE_NODE_FIELD(path.pathkeys);
3870 : 0 : WRITE_NODE_FIELD(bitmapquals);
3871 : 0 : WRITE_FLOAT_FIELD(bitmapselectivity);
3872 : 0 : }
3873 : :
3874 : : static void
3875 : 0 : _outTidPath(StringInfo str, const TidPath *node)
3876 : : {
3877 : 0 : WRITE_NODE_TYPE("TIDPATH");
3878 : :
3879 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3880 : 0 : appendStringInfoString(str, " :parent_relids ");
3881 : 0 : outBitmapset(str, node->path.parent->relids);
3882 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3883 : 0 : WRITE_NODE_FIELD(path.pathtarget);
3884 : 0 : appendStringInfoString(str, " :required_outer ");
3885 [ # # ]: 0 : if (node->path.param_info)
3886 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3887 : : else
3888 : 0 : outBitmapset(str, NULL);
3889 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3890 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3891 : 0 : WRITE_INT_FIELD(path.parallel_workers);
3892 : 0 : WRITE_FLOAT_FIELD(path.rows);
3893 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
3894 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3895 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
3896 : 0 : WRITE_NODE_FIELD(path.pathkeys);
3897 : 0 : WRITE_NODE_FIELD(tidquals);
3898 : 0 : }
3899 : :
3900 : : static void
3901 : 0 : _outTidRangePath(StringInfo str, const TidRangePath *node)
3902 : : {
3903 : 0 : WRITE_NODE_TYPE("TIDRANGEPATH");
3904 : :
3905 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3906 : 0 : appendStringInfoString(str, " :parent_relids ");
3907 : 0 : outBitmapset(str, node->path.parent->relids);
3908 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3909 : 0 : WRITE_NODE_FIELD(path.pathtarget);
3910 : 0 : appendStringInfoString(str, " :required_outer ");
3911 [ # # ]: 0 : if (node->path.param_info)
3912 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3913 : : else
3914 : 0 : outBitmapset(str, NULL);
3915 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3916 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3917 : 0 : WRITE_INT_FIELD(path.parallel_workers);
3918 : 0 : WRITE_FLOAT_FIELD(path.rows);
3919 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
3920 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3921 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
3922 : 0 : WRITE_NODE_FIELD(path.pathkeys);
3923 : 0 : WRITE_NODE_FIELD(tidrangequals);
3924 : 0 : }
3925 : :
3926 : : static void
3927 : 0 : _outSubqueryScanPath(StringInfo str, const SubqueryScanPath *node)
3928 : : {
3929 : 0 : WRITE_NODE_TYPE("SUBQUERYSCANPATH");
3930 : :
3931 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3932 : 0 : appendStringInfoString(str, " :parent_relids ");
3933 : 0 : outBitmapset(str, node->path.parent->relids);
3934 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3935 : 0 : WRITE_NODE_FIELD(path.pathtarget);
3936 : 0 : appendStringInfoString(str, " :required_outer ");
3937 [ # # ]: 0 : if (node->path.param_info)
3938 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3939 : : else
3940 : 0 : outBitmapset(str, NULL);
3941 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3942 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3943 : 0 : WRITE_INT_FIELD(path.parallel_workers);
3944 : 0 : WRITE_FLOAT_FIELD(path.rows);
3945 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
3946 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3947 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
3948 : 0 : WRITE_NODE_FIELD(path.pathkeys);
3949 : 0 : WRITE_NODE_FIELD(subpath);
3950 : 0 : }
3951 : :
3952 : : static void
3953 : 0 : _outForeignPath(StringInfo str, const ForeignPath *node)
3954 : : {
3955 : 0 : WRITE_NODE_TYPE("FOREIGNPATH");
3956 : :
3957 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3958 : 0 : appendStringInfoString(str, " :parent_relids ");
3959 : 0 : outBitmapset(str, node->path.parent->relids);
3960 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3961 : 0 : WRITE_NODE_FIELD(path.pathtarget);
3962 : 0 : appendStringInfoString(str, " :required_outer ");
3963 [ # # ]: 0 : if (node->path.param_info)
3964 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3965 : : else
3966 : 0 : outBitmapset(str, NULL);
3967 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3968 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3969 : 0 : WRITE_INT_FIELD(path.parallel_workers);
3970 : 0 : WRITE_FLOAT_FIELD(path.rows);
3971 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
3972 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
3973 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
3974 : 0 : WRITE_NODE_FIELD(path.pathkeys);
3975 : 0 : WRITE_NODE_FIELD(fdw_outerpath);
3976 : 0 : WRITE_NODE_FIELD(fdw_restrictinfo);
3977 : 0 : WRITE_NODE_FIELD(fdw_private);
3978 : 0 : }
3979 : :
3980 : : static void
3981 : 0 : _outCustomPath(StringInfo str, const CustomPath *node)
3982 : : {
3983 : 0 : WRITE_NODE_TYPE("CUSTOMPATH");
3984 : :
3985 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
3986 : 0 : appendStringInfoString(str, " :parent_relids ");
3987 : 0 : outBitmapset(str, node->path.parent->relids);
3988 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
3989 : 0 : WRITE_NODE_FIELD(path.pathtarget);
3990 : 0 : appendStringInfoString(str, " :required_outer ");
3991 [ # # ]: 0 : if (node->path.param_info)
3992 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
3993 : : else
3994 : 0 : outBitmapset(str, NULL);
3995 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
3996 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
3997 : 0 : WRITE_INT_FIELD(path.parallel_workers);
3998 : 0 : WRITE_FLOAT_FIELD(path.rows);
3999 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4000 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4001 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4002 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4003 : 0 : WRITE_UINT_FIELD(flags);
4004 : 0 : WRITE_NODE_FIELD(custom_paths);
4005 : 0 : WRITE_NODE_FIELD(custom_restrictinfo);
4006 : 0 : WRITE_NODE_FIELD(custom_private);
4007 : :
4008 : : /* CustomName is a key to lookup CustomScanMethods */
4009 : 0 : appendStringInfoString(str, " :methods ");
4010 : 0 : outToken(str, node->methods->CustomName);
4011 : 0 : }
4012 : :
4013 : : static void
4014 : 0 : _outAppendPath(StringInfo str, const AppendPath *node)
4015 : : {
4016 : 0 : WRITE_NODE_TYPE("APPENDPATH");
4017 : :
4018 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4019 : 0 : appendStringInfoString(str, " :parent_relids ");
4020 : 0 : outBitmapset(str, node->path.parent->relids);
4021 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4022 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4023 : 0 : appendStringInfoString(str, " :required_outer ");
4024 [ # # ]: 0 : if (node->path.param_info)
4025 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4026 : : else
4027 : 0 : outBitmapset(str, NULL);
4028 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4029 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4030 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4031 : 0 : WRITE_FLOAT_FIELD(path.rows);
4032 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4033 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4034 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4035 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4036 : 0 : WRITE_NODE_FIELD(subpaths);
4037 : 0 : WRITE_INT_FIELD(first_partial_path);
4038 : 0 : WRITE_FLOAT_FIELD(limit_tuples);
4039 : 0 : WRITE_NODE_FIELD(child_append_relid_sets);
4040 : 0 : }
4041 : :
4042 : : static void
4043 : 0 : _outMergeAppendPath(StringInfo str, const MergeAppendPath *node)
4044 : : {
4045 : 0 : WRITE_NODE_TYPE("MERGEAPPENDPATH");
4046 : :
4047 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4048 : 0 : appendStringInfoString(str, " :parent_relids ");
4049 : 0 : outBitmapset(str, node->path.parent->relids);
4050 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4051 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4052 : 0 : appendStringInfoString(str, " :required_outer ");
4053 [ # # ]: 0 : if (node->path.param_info)
4054 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4055 : : else
4056 : 0 : outBitmapset(str, NULL);
4057 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4058 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4059 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4060 : 0 : WRITE_FLOAT_FIELD(path.rows);
4061 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4062 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4063 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4064 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4065 : 0 : WRITE_NODE_FIELD(subpaths);
4066 : 0 : WRITE_FLOAT_FIELD(limit_tuples);
4067 : 0 : WRITE_NODE_FIELD(child_append_relid_sets);
4068 : 0 : }
4069 : :
4070 : : static void
4071 : 0 : _outGroupResultPath(StringInfo str, const GroupResultPath *node)
4072 : : {
4073 : 0 : WRITE_NODE_TYPE("GROUPRESULTPATH");
4074 : :
4075 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4076 : 0 : appendStringInfoString(str, " :parent_relids ");
4077 : 0 : outBitmapset(str, node->path.parent->relids);
4078 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4079 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4080 : 0 : appendStringInfoString(str, " :required_outer ");
4081 [ # # ]: 0 : if (node->path.param_info)
4082 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4083 : : else
4084 : 0 : outBitmapset(str, NULL);
4085 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4086 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4087 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4088 : 0 : WRITE_FLOAT_FIELD(path.rows);
4089 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4090 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4091 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4092 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4093 : 0 : WRITE_NODE_FIELD(quals);
4094 : 0 : }
4095 : :
4096 : : static void
4097 : 0 : _outMaterialPath(StringInfo str, const MaterialPath *node)
4098 : : {
4099 : 0 : WRITE_NODE_TYPE("MATERIALPATH");
4100 : :
4101 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4102 : 0 : appendStringInfoString(str, " :parent_relids ");
4103 : 0 : outBitmapset(str, node->path.parent->relids);
4104 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4105 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4106 : 0 : appendStringInfoString(str, " :required_outer ");
4107 [ # # ]: 0 : if (node->path.param_info)
4108 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4109 : : else
4110 : 0 : outBitmapset(str, NULL);
4111 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4112 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4113 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4114 : 0 : WRITE_FLOAT_FIELD(path.rows);
4115 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4116 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4117 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4118 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4119 : 0 : WRITE_NODE_FIELD(subpath);
4120 : 0 : }
4121 : :
4122 : : static void
4123 : 0 : _outMemoizePath(StringInfo str, const MemoizePath *node)
4124 : : {
4125 : 0 : WRITE_NODE_TYPE("MEMOIZEPATH");
4126 : :
4127 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4128 : 0 : appendStringInfoString(str, " :parent_relids ");
4129 : 0 : outBitmapset(str, node->path.parent->relids);
4130 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4131 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4132 : 0 : appendStringInfoString(str, " :required_outer ");
4133 [ # # ]: 0 : if (node->path.param_info)
4134 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4135 : : else
4136 : 0 : outBitmapset(str, NULL);
4137 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4138 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4139 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4140 : 0 : WRITE_FLOAT_FIELD(path.rows);
4141 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4142 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4143 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4144 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4145 : 0 : WRITE_NODE_FIELD(subpath);
4146 : 0 : WRITE_NODE_FIELD(hash_operators);
4147 : 0 : WRITE_NODE_FIELD(param_exprs);
4148 [ # # ]: 0 : WRITE_BOOL_FIELD(singlerow);
4149 [ # # ]: 0 : WRITE_BOOL_FIELD(binary_mode);
4150 : 0 : WRITE_UINT_FIELD(est_entries);
4151 : 0 : WRITE_FLOAT_FIELD(est_calls);
4152 : 0 : WRITE_FLOAT_FIELD(est_unique_keys);
4153 : 0 : WRITE_FLOAT_FIELD(est_hit_ratio);
4154 : 0 : }
4155 : :
4156 : : static void
4157 : 0 : _outGatherPath(StringInfo str, const GatherPath *node)
4158 : : {
4159 : 0 : WRITE_NODE_TYPE("GATHERPATH");
4160 : :
4161 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4162 : 0 : appendStringInfoString(str, " :parent_relids ");
4163 : 0 : outBitmapset(str, node->path.parent->relids);
4164 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4165 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4166 : 0 : appendStringInfoString(str, " :required_outer ");
4167 [ # # ]: 0 : if (node->path.param_info)
4168 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4169 : : else
4170 : 0 : outBitmapset(str, NULL);
4171 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4172 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4173 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4174 : 0 : WRITE_FLOAT_FIELD(path.rows);
4175 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4176 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4177 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4178 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4179 : 0 : WRITE_NODE_FIELD(subpath);
4180 [ # # ]: 0 : WRITE_BOOL_FIELD(single_copy);
4181 : 0 : WRITE_INT_FIELD(num_workers);
4182 : 0 : }
4183 : :
4184 : : static void
4185 : 0 : _outGatherMergePath(StringInfo str, const GatherMergePath *node)
4186 : : {
4187 : 0 : WRITE_NODE_TYPE("GATHERMERGEPATH");
4188 : :
4189 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4190 : 0 : appendStringInfoString(str, " :parent_relids ");
4191 : 0 : outBitmapset(str, node->path.parent->relids);
4192 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4193 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4194 : 0 : appendStringInfoString(str, " :required_outer ");
4195 [ # # ]: 0 : if (node->path.param_info)
4196 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4197 : : else
4198 : 0 : outBitmapset(str, NULL);
4199 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4200 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4201 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4202 : 0 : WRITE_FLOAT_FIELD(path.rows);
4203 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4204 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4205 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4206 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4207 : 0 : WRITE_NODE_FIELD(subpath);
4208 : 0 : WRITE_INT_FIELD(num_workers);
4209 : 0 : }
4210 : :
4211 : : static void
4212 : 0 : _outNestPath(StringInfo str, const NestPath *node)
4213 : : {
4214 : 0 : WRITE_NODE_TYPE("NESTPATH");
4215 : :
4216 : 0 : WRITE_ENUM_FIELD(jpath.path.pathtype, NodeTag);
4217 : 0 : appendStringInfoString(str, " :parent_relids ");
4218 : 0 : outBitmapset(str, node->jpath.path.parent->relids);
4219 [ # # ]: 0 : if (node->jpath.path.pathtarget != node->jpath.path.parent->reltarget)
4220 : 0 : WRITE_NODE_FIELD(jpath.path.pathtarget);
4221 : 0 : appendStringInfoString(str, " :required_outer ");
4222 [ # # ]: 0 : if (node->jpath.path.param_info)
4223 : 0 : outBitmapset(str, node->jpath.path.param_info->ppi_req_outer);
4224 : : else
4225 : 0 : outBitmapset(str, NULL);
4226 [ # # ]: 0 : WRITE_BOOL_FIELD(jpath.path.parallel_aware);
4227 [ # # ]: 0 : WRITE_BOOL_FIELD(jpath.path.parallel_safe);
4228 : 0 : WRITE_INT_FIELD(jpath.path.parallel_workers);
4229 : 0 : WRITE_FLOAT_FIELD(jpath.path.rows);
4230 : 0 : WRITE_INT_FIELD(jpath.path.disabled_nodes);
4231 : 0 : WRITE_FLOAT_FIELD(jpath.path.startup_cost);
4232 : 0 : WRITE_FLOAT_FIELD(jpath.path.total_cost);
4233 : 0 : WRITE_NODE_FIELD(jpath.path.pathkeys);
4234 : 0 : WRITE_ENUM_FIELD(jpath.jointype, JoinType);
4235 [ # # ]: 0 : WRITE_BOOL_FIELD(jpath.inner_unique);
4236 : 0 : WRITE_NODE_FIELD(jpath.outerjoinpath);
4237 : 0 : WRITE_NODE_FIELD(jpath.innerjoinpath);
4238 : 0 : WRITE_NODE_FIELD(jpath.joinrestrictinfo);
4239 : 0 : }
4240 : :
4241 : : static void
4242 : 0 : _outMergePath(StringInfo str, const MergePath *node)
4243 : : {
4244 : 0 : WRITE_NODE_TYPE("MERGEPATH");
4245 : :
4246 : 0 : WRITE_ENUM_FIELD(jpath.path.pathtype, NodeTag);
4247 : 0 : appendStringInfoString(str, " :parent_relids ");
4248 : 0 : outBitmapset(str, node->jpath.path.parent->relids);
4249 [ # # ]: 0 : if (node->jpath.path.pathtarget != node->jpath.path.parent->reltarget)
4250 : 0 : WRITE_NODE_FIELD(jpath.path.pathtarget);
4251 : 0 : appendStringInfoString(str, " :required_outer ");
4252 [ # # ]: 0 : if (node->jpath.path.param_info)
4253 : 0 : outBitmapset(str, node->jpath.path.param_info->ppi_req_outer);
4254 : : else
4255 : 0 : outBitmapset(str, NULL);
4256 [ # # ]: 0 : WRITE_BOOL_FIELD(jpath.path.parallel_aware);
4257 [ # # ]: 0 : WRITE_BOOL_FIELD(jpath.path.parallel_safe);
4258 : 0 : WRITE_INT_FIELD(jpath.path.parallel_workers);
4259 : 0 : WRITE_FLOAT_FIELD(jpath.path.rows);
4260 : 0 : WRITE_INT_FIELD(jpath.path.disabled_nodes);
4261 : 0 : WRITE_FLOAT_FIELD(jpath.path.startup_cost);
4262 : 0 : WRITE_FLOAT_FIELD(jpath.path.total_cost);
4263 : 0 : WRITE_NODE_FIELD(jpath.path.pathkeys);
4264 : 0 : WRITE_ENUM_FIELD(jpath.jointype, JoinType);
4265 [ # # ]: 0 : WRITE_BOOL_FIELD(jpath.inner_unique);
4266 : 0 : WRITE_NODE_FIELD(jpath.outerjoinpath);
4267 : 0 : WRITE_NODE_FIELD(jpath.innerjoinpath);
4268 : 0 : WRITE_NODE_FIELD(jpath.joinrestrictinfo);
4269 : 0 : WRITE_NODE_FIELD(path_mergeclauses);
4270 : 0 : WRITE_NODE_FIELD(outersortkeys);
4271 : 0 : WRITE_NODE_FIELD(innersortkeys);
4272 : 0 : WRITE_INT_FIELD(outer_presorted_keys);
4273 [ # # ]: 0 : WRITE_BOOL_FIELD(skip_mark_restore);
4274 [ # # ]: 0 : WRITE_BOOL_FIELD(materialize_inner);
4275 : 0 : }
4276 : :
4277 : : static void
4278 : 0 : _outHashPath(StringInfo str, const HashPath *node)
4279 : : {
4280 : 0 : WRITE_NODE_TYPE("HASHPATH");
4281 : :
4282 : 0 : WRITE_ENUM_FIELD(jpath.path.pathtype, NodeTag);
4283 : 0 : appendStringInfoString(str, " :parent_relids ");
4284 : 0 : outBitmapset(str, node->jpath.path.parent->relids);
4285 [ # # ]: 0 : if (node->jpath.path.pathtarget != node->jpath.path.parent->reltarget)
4286 : 0 : WRITE_NODE_FIELD(jpath.path.pathtarget);
4287 : 0 : appendStringInfoString(str, " :required_outer ");
4288 [ # # ]: 0 : if (node->jpath.path.param_info)
4289 : 0 : outBitmapset(str, node->jpath.path.param_info->ppi_req_outer);
4290 : : else
4291 : 0 : outBitmapset(str, NULL);
4292 [ # # ]: 0 : WRITE_BOOL_FIELD(jpath.path.parallel_aware);
4293 [ # # ]: 0 : WRITE_BOOL_FIELD(jpath.path.parallel_safe);
4294 : 0 : WRITE_INT_FIELD(jpath.path.parallel_workers);
4295 : 0 : WRITE_FLOAT_FIELD(jpath.path.rows);
4296 : 0 : WRITE_INT_FIELD(jpath.path.disabled_nodes);
4297 : 0 : WRITE_FLOAT_FIELD(jpath.path.startup_cost);
4298 : 0 : WRITE_FLOAT_FIELD(jpath.path.total_cost);
4299 : 0 : WRITE_NODE_FIELD(jpath.path.pathkeys);
4300 : 0 : WRITE_ENUM_FIELD(jpath.jointype, JoinType);
4301 [ # # ]: 0 : WRITE_BOOL_FIELD(jpath.inner_unique);
4302 : 0 : WRITE_NODE_FIELD(jpath.outerjoinpath);
4303 : 0 : WRITE_NODE_FIELD(jpath.innerjoinpath);
4304 : 0 : WRITE_NODE_FIELD(jpath.joinrestrictinfo);
4305 : 0 : WRITE_NODE_FIELD(path_hashclauses);
4306 : 0 : WRITE_INT_FIELD(num_batches);
4307 : 0 : WRITE_FLOAT_FIELD(inner_rows_total);
4308 : 0 : }
4309 : :
4310 : : static void
4311 : 0 : _outProjectionPath(StringInfo str, const ProjectionPath *node)
4312 : : {
4313 : 0 : WRITE_NODE_TYPE("PROJECTIONPATH");
4314 : :
4315 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4316 : 0 : appendStringInfoString(str, " :parent_relids ");
4317 : 0 : outBitmapset(str, node->path.parent->relids);
4318 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4319 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4320 : 0 : appendStringInfoString(str, " :required_outer ");
4321 [ # # ]: 0 : if (node->path.param_info)
4322 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4323 : : else
4324 : 0 : outBitmapset(str, NULL);
4325 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4326 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4327 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4328 : 0 : WRITE_FLOAT_FIELD(path.rows);
4329 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4330 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4331 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4332 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4333 : 0 : WRITE_NODE_FIELD(subpath);
4334 [ # # ]: 0 : WRITE_BOOL_FIELD(dummypp);
4335 : 0 : }
4336 : :
4337 : : static void
4338 : 0 : _outProjectSetPath(StringInfo str, const ProjectSetPath *node)
4339 : : {
4340 : 0 : WRITE_NODE_TYPE("PROJECTSETPATH");
4341 : :
4342 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4343 : 0 : appendStringInfoString(str, " :parent_relids ");
4344 : 0 : outBitmapset(str, node->path.parent->relids);
4345 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4346 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4347 : 0 : appendStringInfoString(str, " :required_outer ");
4348 [ # # ]: 0 : if (node->path.param_info)
4349 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4350 : : else
4351 : 0 : outBitmapset(str, NULL);
4352 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4353 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4354 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4355 : 0 : WRITE_FLOAT_FIELD(path.rows);
4356 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4357 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4358 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4359 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4360 : 0 : WRITE_NODE_FIELD(subpath);
4361 : 0 : }
4362 : :
4363 : : static void
4364 : 0 : _outSortPath(StringInfo str, const SortPath *node)
4365 : : {
4366 : 0 : WRITE_NODE_TYPE("SORTPATH");
4367 : :
4368 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4369 : 0 : appendStringInfoString(str, " :parent_relids ");
4370 : 0 : outBitmapset(str, node->path.parent->relids);
4371 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4372 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4373 : 0 : appendStringInfoString(str, " :required_outer ");
4374 [ # # ]: 0 : if (node->path.param_info)
4375 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4376 : : else
4377 : 0 : outBitmapset(str, NULL);
4378 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4379 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4380 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4381 : 0 : WRITE_FLOAT_FIELD(path.rows);
4382 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4383 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4384 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4385 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4386 : 0 : WRITE_NODE_FIELD(subpath);
4387 : 0 : }
4388 : :
4389 : : static void
4390 : 0 : _outIncrementalSortPath(StringInfo str, const IncrementalSortPath *node)
4391 : : {
4392 : 0 : WRITE_NODE_TYPE("INCREMENTALSORTPATH");
4393 : :
4394 : 0 : WRITE_ENUM_FIELD(spath.path.pathtype, NodeTag);
4395 : 0 : appendStringInfoString(str, " :parent_relids ");
4396 : 0 : outBitmapset(str, node->spath.path.parent->relids);
4397 [ # # ]: 0 : if (node->spath.path.pathtarget != node->spath.path.parent->reltarget)
4398 : 0 : WRITE_NODE_FIELD(spath.path.pathtarget);
4399 : 0 : appendStringInfoString(str, " :required_outer ");
4400 [ # # ]: 0 : if (node->spath.path.param_info)
4401 : 0 : outBitmapset(str, node->spath.path.param_info->ppi_req_outer);
4402 : : else
4403 : 0 : outBitmapset(str, NULL);
4404 [ # # ]: 0 : WRITE_BOOL_FIELD(spath.path.parallel_aware);
4405 [ # # ]: 0 : WRITE_BOOL_FIELD(spath.path.parallel_safe);
4406 : 0 : WRITE_INT_FIELD(spath.path.parallel_workers);
4407 : 0 : WRITE_FLOAT_FIELD(spath.path.rows);
4408 : 0 : WRITE_INT_FIELD(spath.path.disabled_nodes);
4409 : 0 : WRITE_FLOAT_FIELD(spath.path.startup_cost);
4410 : 0 : WRITE_FLOAT_FIELD(spath.path.total_cost);
4411 : 0 : WRITE_NODE_FIELD(spath.path.pathkeys);
4412 : 0 : WRITE_NODE_FIELD(spath.subpath);
4413 : 0 : WRITE_INT_FIELD(nPresortedCols);
4414 : 0 : WRITE_FLOAT_FIELD(numGroups);
4415 : 0 : }
4416 : :
4417 : : static void
4418 : 0 : _outGroupPath(StringInfo str, const GroupPath *node)
4419 : : {
4420 : 0 : WRITE_NODE_TYPE("GROUPPATH");
4421 : :
4422 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4423 : 0 : appendStringInfoString(str, " :parent_relids ");
4424 : 0 : outBitmapset(str, node->path.parent->relids);
4425 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4426 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4427 : 0 : appendStringInfoString(str, " :required_outer ");
4428 [ # # ]: 0 : if (node->path.param_info)
4429 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4430 : : else
4431 : 0 : outBitmapset(str, NULL);
4432 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4433 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4434 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4435 : 0 : WRITE_FLOAT_FIELD(path.rows);
4436 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4437 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4438 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4439 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4440 : 0 : WRITE_NODE_FIELD(subpath);
4441 : 0 : WRITE_NODE_FIELD(groupClause);
4442 : 0 : WRITE_NODE_FIELD(qual);
4443 : 0 : }
4444 : :
4445 : : static void
4446 : 0 : _outUniquePath(StringInfo str, const UniquePath *node)
4447 : : {
4448 : 0 : WRITE_NODE_TYPE("UNIQUEPATH");
4449 : :
4450 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4451 : 0 : appendStringInfoString(str, " :parent_relids ");
4452 : 0 : outBitmapset(str, node->path.parent->relids);
4453 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4454 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4455 : 0 : appendStringInfoString(str, " :required_outer ");
4456 [ # # ]: 0 : if (node->path.param_info)
4457 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4458 : : else
4459 : 0 : outBitmapset(str, NULL);
4460 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4461 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4462 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4463 : 0 : WRITE_FLOAT_FIELD(path.rows);
4464 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4465 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4466 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4467 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4468 : 0 : WRITE_NODE_FIELD(subpath);
4469 : 0 : WRITE_INT_FIELD(numkeys);
4470 : 0 : }
4471 : :
4472 : : static void
4473 : 0 : _outAggPath(StringInfo str, const AggPath *node)
4474 : : {
4475 : 0 : WRITE_NODE_TYPE("AGGPATH");
4476 : :
4477 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4478 : 0 : appendStringInfoString(str, " :parent_relids ");
4479 : 0 : outBitmapset(str, node->path.parent->relids);
4480 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4481 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4482 : 0 : appendStringInfoString(str, " :required_outer ");
4483 [ # # ]: 0 : if (node->path.param_info)
4484 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4485 : : else
4486 : 0 : outBitmapset(str, NULL);
4487 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4488 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4489 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4490 : 0 : WRITE_FLOAT_FIELD(path.rows);
4491 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4492 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4493 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4494 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4495 : 0 : WRITE_NODE_FIELD(subpath);
4496 : 0 : WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
4497 : 0 : WRITE_ENUM_FIELD(aggsplit, AggSplit);
4498 : 0 : WRITE_FLOAT_FIELD(numGroups);
4499 : 0 : WRITE_UINT64_FIELD(transitionSpace);
4500 : 0 : WRITE_NODE_FIELD(groupClause);
4501 : 0 : WRITE_NODE_FIELD(qual);
4502 : 0 : }
4503 : :
4504 : : static void
4505 : 0 : _outGroupingSetData(StringInfo str, const GroupingSetData *node)
4506 : : {
4507 : 0 : WRITE_NODE_TYPE("GROUPINGSETDATA");
4508 : :
4509 : 0 : WRITE_NODE_FIELD(set);
4510 : 0 : WRITE_FLOAT_FIELD(numGroups);
4511 : 0 : }
4512 : :
4513 : : static void
4514 : 0 : _outRollupData(StringInfo str, const RollupData *node)
4515 : : {
4516 : 0 : WRITE_NODE_TYPE("ROLLUPDATA");
4517 : :
4518 : 0 : WRITE_NODE_FIELD(groupClause);
4519 : 0 : WRITE_NODE_FIELD(gsets);
4520 : 0 : WRITE_NODE_FIELD(gsets_data);
4521 : 0 : WRITE_FLOAT_FIELD(numGroups);
4522 [ # # ]: 0 : WRITE_BOOL_FIELD(hashable);
4523 [ # # ]: 0 : WRITE_BOOL_FIELD(is_hashed);
4524 : 0 : }
4525 : :
4526 : : static void
4527 : 0 : _outGroupingSetsPath(StringInfo str, const GroupingSetsPath *node)
4528 : : {
4529 : 0 : WRITE_NODE_TYPE("GROUPINGSETSPATH");
4530 : :
4531 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4532 : 0 : appendStringInfoString(str, " :parent_relids ");
4533 : 0 : outBitmapset(str, node->path.parent->relids);
4534 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4535 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4536 : 0 : appendStringInfoString(str, " :required_outer ");
4537 [ # # ]: 0 : if (node->path.param_info)
4538 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4539 : : else
4540 : 0 : outBitmapset(str, NULL);
4541 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4542 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4543 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4544 : 0 : WRITE_FLOAT_FIELD(path.rows);
4545 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4546 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4547 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4548 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4549 : 0 : WRITE_NODE_FIELD(subpath);
4550 : 0 : WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
4551 : 0 : WRITE_NODE_FIELD(rollups);
4552 : 0 : WRITE_NODE_FIELD(qual);
4553 : 0 : WRITE_UINT64_FIELD(transitionSpace);
4554 : 0 : }
4555 : :
4556 : : static void
4557 : 0 : _outMinMaxAggPath(StringInfo str, const MinMaxAggPath *node)
4558 : : {
4559 : 0 : WRITE_NODE_TYPE("MINMAXAGGPATH");
4560 : :
4561 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4562 : 0 : appendStringInfoString(str, " :parent_relids ");
4563 : 0 : outBitmapset(str, node->path.parent->relids);
4564 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4565 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4566 : 0 : appendStringInfoString(str, " :required_outer ");
4567 [ # # ]: 0 : if (node->path.param_info)
4568 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4569 : : else
4570 : 0 : outBitmapset(str, NULL);
4571 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4572 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4573 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4574 : 0 : WRITE_FLOAT_FIELD(path.rows);
4575 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4576 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4577 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4578 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4579 : 0 : WRITE_NODE_FIELD(mmaggregates);
4580 : 0 : WRITE_NODE_FIELD(quals);
4581 : 0 : }
4582 : :
4583 : : static void
4584 : 0 : _outWindowAggPath(StringInfo str, const WindowAggPath *node)
4585 : : {
4586 : 0 : WRITE_NODE_TYPE("WINDOWAGGPATH");
4587 : :
4588 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4589 : 0 : appendStringInfoString(str, " :parent_relids ");
4590 : 0 : outBitmapset(str, node->path.parent->relids);
4591 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4592 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4593 : 0 : appendStringInfoString(str, " :required_outer ");
4594 [ # # ]: 0 : if (node->path.param_info)
4595 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4596 : : else
4597 : 0 : outBitmapset(str, NULL);
4598 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4599 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4600 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4601 : 0 : WRITE_FLOAT_FIELD(path.rows);
4602 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4603 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4604 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4605 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4606 : 0 : WRITE_NODE_FIELD(subpath);
4607 : 0 : WRITE_NODE_FIELD(winclause);
4608 : 0 : WRITE_NODE_FIELD(qual);
4609 : 0 : WRITE_NODE_FIELD(runCondition);
4610 [ # # ]: 0 : WRITE_BOOL_FIELD(topwindow);
4611 : 0 : }
4612 : :
4613 : : static void
4614 : 0 : _outSetOpPath(StringInfo str, const SetOpPath *node)
4615 : : {
4616 : 0 : WRITE_NODE_TYPE("SETOPPATH");
4617 : :
4618 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4619 : 0 : appendStringInfoString(str, " :parent_relids ");
4620 : 0 : outBitmapset(str, node->path.parent->relids);
4621 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4622 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4623 : 0 : appendStringInfoString(str, " :required_outer ");
4624 [ # # ]: 0 : if (node->path.param_info)
4625 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4626 : : else
4627 : 0 : outBitmapset(str, NULL);
4628 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4629 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4630 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4631 : 0 : WRITE_FLOAT_FIELD(path.rows);
4632 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4633 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4634 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4635 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4636 : 0 : WRITE_NODE_FIELD(leftpath);
4637 : 0 : WRITE_NODE_FIELD(rightpath);
4638 : 0 : WRITE_ENUM_FIELD(cmd, SetOpCmd);
4639 : 0 : WRITE_ENUM_FIELD(strategy, SetOpStrategy);
4640 : 0 : WRITE_NODE_FIELD(groupList);
4641 : 0 : WRITE_FLOAT_FIELD(numGroups);
4642 : 0 : }
4643 : :
4644 : : static void
4645 : 0 : _outRecursiveUnionPath(StringInfo str, const RecursiveUnionPath *node)
4646 : : {
4647 : 0 : WRITE_NODE_TYPE("RECURSIVEUNIONPATH");
4648 : :
4649 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4650 : 0 : appendStringInfoString(str, " :parent_relids ");
4651 : 0 : outBitmapset(str, node->path.parent->relids);
4652 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4653 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4654 : 0 : appendStringInfoString(str, " :required_outer ");
4655 [ # # ]: 0 : if (node->path.param_info)
4656 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4657 : : else
4658 : 0 : outBitmapset(str, NULL);
4659 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4660 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4661 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4662 : 0 : WRITE_FLOAT_FIELD(path.rows);
4663 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4664 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4665 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4666 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4667 : 0 : WRITE_NODE_FIELD(leftpath);
4668 : 0 : WRITE_NODE_FIELD(rightpath);
4669 : 0 : WRITE_NODE_FIELD(distinctList);
4670 : 0 : WRITE_INT_FIELD(wtParam);
4671 : 0 : WRITE_FLOAT_FIELD(numGroups);
4672 : 0 : }
4673 : :
4674 : : static void
4675 : 0 : _outLockRowsPath(StringInfo str, const LockRowsPath *node)
4676 : : {
4677 : 0 : WRITE_NODE_TYPE("LOCKROWSPATH");
4678 : :
4679 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4680 : 0 : appendStringInfoString(str, " :parent_relids ");
4681 : 0 : outBitmapset(str, node->path.parent->relids);
4682 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4683 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4684 : 0 : appendStringInfoString(str, " :required_outer ");
4685 [ # # ]: 0 : if (node->path.param_info)
4686 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4687 : : else
4688 : 0 : outBitmapset(str, NULL);
4689 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4690 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4691 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4692 : 0 : WRITE_FLOAT_FIELD(path.rows);
4693 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4694 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4695 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4696 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4697 : 0 : WRITE_NODE_FIELD(subpath);
4698 : 0 : WRITE_NODE_FIELD(rowMarks);
4699 : 0 : WRITE_INT_FIELD(epqParam);
4700 : 0 : }
4701 : :
4702 : : static void
4703 : 0 : _outModifyTablePath(StringInfo str, const ModifyTablePath *node)
4704 : : {
4705 : 0 : WRITE_NODE_TYPE("MODIFYTABLEPATH");
4706 : :
4707 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4708 : 0 : appendStringInfoString(str, " :parent_relids ");
4709 : 0 : outBitmapset(str, node->path.parent->relids);
4710 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4711 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4712 : 0 : appendStringInfoString(str, " :required_outer ");
4713 [ # # ]: 0 : if (node->path.param_info)
4714 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4715 : : else
4716 : 0 : outBitmapset(str, NULL);
4717 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4718 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4719 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4720 : 0 : WRITE_FLOAT_FIELD(path.rows);
4721 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4722 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4723 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4724 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4725 : 0 : WRITE_NODE_FIELD(subpath);
4726 : 0 : WRITE_ENUM_FIELD(operation, CmdType);
4727 [ # # ]: 0 : WRITE_BOOL_FIELD(canSetTag);
4728 : 0 : WRITE_UINT_FIELD(nominalRelation);
4729 : 0 : WRITE_UINT_FIELD(rootRelation);
4730 : 0 : WRITE_NODE_FIELD(resultRelations);
4731 : 0 : WRITE_NODE_FIELD(updateColnosLists);
4732 : 0 : WRITE_NODE_FIELD(withCheckOptionLists);
4733 : 0 : WRITE_NODE_FIELD(returningLists);
4734 : 0 : WRITE_NODE_FIELD(rowMarks);
4735 : 0 : WRITE_NODE_FIELD(onconflict);
4736 : 0 : WRITE_NODE_FIELD(forPortionOf);
4737 : 0 : WRITE_INT_FIELD(epqParam);
4738 : 0 : WRITE_NODE_FIELD(mergeActionLists);
4739 : 0 : WRITE_NODE_FIELD(mergeJoinConditions);
4740 : 0 : }
4741 : :
4742 : : static void
4743 : 0 : _outLimitPath(StringInfo str, const LimitPath *node)
4744 : : {
4745 : 0 : WRITE_NODE_TYPE("LIMITPATH");
4746 : :
4747 : 0 : WRITE_ENUM_FIELD(path.pathtype, NodeTag);
4748 : 0 : appendStringInfoString(str, " :parent_relids ");
4749 : 0 : outBitmapset(str, node->path.parent->relids);
4750 [ # # ]: 0 : if (node->path.pathtarget != node->path.parent->reltarget)
4751 : 0 : WRITE_NODE_FIELD(path.pathtarget);
4752 : 0 : appendStringInfoString(str, " :required_outer ");
4753 [ # # ]: 0 : if (node->path.param_info)
4754 : 0 : outBitmapset(str, node->path.param_info->ppi_req_outer);
4755 : : else
4756 : 0 : outBitmapset(str, NULL);
4757 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_aware);
4758 [ # # ]: 0 : WRITE_BOOL_FIELD(path.parallel_safe);
4759 : 0 : WRITE_INT_FIELD(path.parallel_workers);
4760 : 0 : WRITE_FLOAT_FIELD(path.rows);
4761 : 0 : WRITE_INT_FIELD(path.disabled_nodes);
4762 : 0 : WRITE_FLOAT_FIELD(path.startup_cost);
4763 : 0 : WRITE_FLOAT_FIELD(path.total_cost);
4764 : 0 : WRITE_NODE_FIELD(path.pathkeys);
4765 : 0 : WRITE_NODE_FIELD(subpath);
4766 : 0 : WRITE_NODE_FIELD(limitOffset);
4767 : 0 : WRITE_NODE_FIELD(limitCount);
4768 : 0 : WRITE_ENUM_FIELD(limitOption, LimitOption);
4769 : 0 : }
4770 : :
4771 : : static void
4772 : 0 : _outRestrictInfo(StringInfo str, const RestrictInfo *node)
4773 : : {
4774 : 0 : WRITE_NODE_TYPE("RESTRICTINFO");
4775 : :
4776 : 0 : WRITE_NODE_FIELD(clause);
4777 [ # # ]: 0 : WRITE_BOOL_FIELD(is_pushed_down);
4778 [ # # ]: 0 : WRITE_BOOL_FIELD(can_join);
4779 [ # # ]: 0 : WRITE_BOOL_FIELD(pseudoconstant);
4780 [ # # ]: 0 : WRITE_BOOL_FIELD(has_clone);
4781 [ # # ]: 0 : WRITE_BOOL_FIELD(is_clone);
4782 [ # # ]: 0 : WRITE_BOOL_FIELD(leakproof);
4783 : 0 : WRITE_ENUM_FIELD(has_volatile, VolatileFunctionStatus);
4784 : 0 : WRITE_UINT_FIELD(security_level);
4785 : 0 : WRITE_INT_FIELD(num_base_rels);
4786 : 0 : WRITE_BITMAPSET_FIELD(clause_relids);
4787 : 0 : WRITE_BITMAPSET_FIELD(required_relids);
4788 : 0 : WRITE_BITMAPSET_FIELD(incompatible_relids);
4789 : 0 : WRITE_BITMAPSET_FIELD(outer_relids);
4790 : 0 : WRITE_BITMAPSET_FIELD(left_relids);
4791 : 0 : WRITE_BITMAPSET_FIELD(right_relids);
4792 : 0 : WRITE_NODE_FIELD(orclause);
4793 : 0 : WRITE_INT_FIELD(rinfo_serial);
4794 : 0 : WRITE_FLOAT_FIELD(eval_cost.startup);
4795 : 0 : WRITE_FLOAT_FIELD(eval_cost.per_tuple);
4796 : 0 : WRITE_FLOAT_FIELD(norm_selec);
4797 : 0 : WRITE_FLOAT_FIELD(outer_selec);
4798 : 0 : WRITE_NODE_FIELD(mergeopfamilies);
4799 : 0 : WRITE_NODE_FIELD(left_em);
4800 : 0 : WRITE_NODE_FIELD(right_em);
4801 [ # # ]: 0 : WRITE_BOOL_FIELD(outer_is_left);
4802 : 0 : WRITE_OID_FIELD(hashjoinoperator);
4803 : 0 : WRITE_FLOAT_FIELD(left_bucketsize);
4804 : 0 : WRITE_FLOAT_FIELD(right_bucketsize);
4805 : 0 : WRITE_FLOAT_FIELD(left_mcvfreq);
4806 : 0 : WRITE_FLOAT_FIELD(right_mcvfreq);
4807 : 0 : WRITE_OID_FIELD(left_hasheqoperator);
4808 : 0 : WRITE_OID_FIELD(right_hasheqoperator);
4809 : 0 : }
4810 : :
4811 : : static void
4812 : 0 : _outPlaceHolderVar(StringInfo str, const PlaceHolderVar *node)
4813 : : {
4814 : 0 : WRITE_NODE_TYPE("PLACEHOLDERVAR");
4815 : :
4816 : 0 : WRITE_NODE_FIELD(phexpr);
4817 : 0 : WRITE_BITMAPSET_FIELD(phrels);
4818 : 0 : WRITE_BITMAPSET_FIELD(phnullingrels);
4819 : 0 : WRITE_UINT_FIELD(phid);
4820 : 0 : WRITE_UINT_FIELD(phlevelsup);
4821 : 0 : }
4822 : :
4823 : : static void
4824 : 0 : _outSpecialJoinInfo(StringInfo str, const SpecialJoinInfo *node)
4825 : : {
4826 : 0 : WRITE_NODE_TYPE("SPECIALJOININFO");
4827 : :
4828 : 0 : WRITE_BITMAPSET_FIELD(min_lefthand);
4829 : 0 : WRITE_BITMAPSET_FIELD(min_righthand);
4830 : 0 : WRITE_BITMAPSET_FIELD(syn_lefthand);
4831 : 0 : WRITE_BITMAPSET_FIELD(syn_righthand);
4832 : 0 : WRITE_ENUM_FIELD(jointype, JoinType);
4833 : 0 : WRITE_UINT_FIELD(ojrelid);
4834 : 0 : WRITE_BITMAPSET_FIELD(commute_above_l);
4835 : 0 : WRITE_BITMAPSET_FIELD(commute_above_r);
4836 : 0 : WRITE_BITMAPSET_FIELD(commute_below_l);
4837 : 0 : WRITE_BITMAPSET_FIELD(commute_below_r);
4838 [ # # ]: 0 : WRITE_BOOL_FIELD(lhs_strict);
4839 [ # # ]: 0 : WRITE_BOOL_FIELD(semi_can_btree);
4840 [ # # ]: 0 : WRITE_BOOL_FIELD(semi_can_hash);
4841 : 0 : WRITE_NODE_FIELD(semi_operators);
4842 : 0 : WRITE_NODE_FIELD(semi_rhs_exprs);
4843 : 0 : }
4844 : :
4845 : : static void
4846 : 0 : _outOuterJoinClauseInfo(StringInfo str, const OuterJoinClauseInfo *node)
4847 : : {
4848 : 0 : WRITE_NODE_TYPE("OUTERJOINCLAUSEINFO");
4849 : :
4850 : 0 : WRITE_NODE_FIELD(rinfo);
4851 : 0 : WRITE_NODE_FIELD(sjinfo);
4852 : 0 : }
4853 : :
4854 : : static void
4855 : 39812 : _outAppendRelInfo(StringInfo str, const AppendRelInfo *node)
4856 : : {
4857 : 39812 : WRITE_NODE_TYPE("APPENDRELINFO");
4858 : :
4859 : 39812 : WRITE_UINT_FIELD(parent_relid);
4860 : 39812 : WRITE_UINT_FIELD(child_relid);
4861 : 39812 : WRITE_OID_FIELD(parent_reltype);
4862 : 39812 : WRITE_OID_FIELD(child_reltype);
4863 : 39812 : WRITE_NODE_FIELD(translated_vars);
4864 : 39812 : WRITE_INT_FIELD(num_child_cols);
4865 : 39812 : WRITE_ATTRNUMBER_ARRAY(parent_colnos, node->num_child_cols);
4866 : 39812 : WRITE_OID_FIELD(parent_reloid);
4867 : 39812 : }
4868 : :
4869 : : static void
4870 : 0 : _outRowIdentityVarInfo(StringInfo str, const RowIdentityVarInfo *node)
4871 : : {
4872 : 0 : WRITE_NODE_TYPE("ROWIDENTITYVARINFO");
4873 : :
4874 : 0 : WRITE_NODE_FIELD(rowidvar);
4875 : 0 : WRITE_INT_FIELD(rowidwidth);
4876 : 0 : WRITE_STRING_FIELD(rowidname);
4877 : 0 : WRITE_BITMAPSET_FIELD(rowidrels);
4878 : 0 : }
4879 : :
4880 : : static void
4881 : 0 : _outPlaceHolderInfo(StringInfo str, const PlaceHolderInfo *node)
4882 : : {
4883 : 0 : WRITE_NODE_TYPE("PLACEHOLDERINFO");
4884 : :
4885 : 0 : WRITE_UINT_FIELD(phid);
4886 : 0 : WRITE_NODE_FIELD(ph_var);
4887 : 0 : WRITE_BITMAPSET_FIELD(ph_eval_at);
4888 : 0 : WRITE_BITMAPSET_FIELD(ph_lateral);
4889 : 0 : WRITE_BITMAPSET_FIELD(ph_needed);
4890 : 0 : WRITE_INT_FIELD(ph_width);
4891 : 0 : }
4892 : :
4893 : : static void
4894 : 0 : _outMinMaxAggInfo(StringInfo str, const MinMaxAggInfo *node)
4895 : : {
4896 : 0 : WRITE_NODE_TYPE("MINMAXAGGINFO");
4897 : :
4898 : 0 : WRITE_OID_FIELD(aggfnoid);
4899 : 0 : WRITE_OID_FIELD(aggsortop);
4900 : 0 : WRITE_NODE_FIELD(target);
4901 : 0 : WRITE_NODE_FIELD(path);
4902 : 0 : WRITE_FLOAT_FIELD(pathcost);
4903 : 0 : WRITE_NODE_FIELD(param);
4904 : 0 : }
4905 : :
4906 : : static void
4907 : 0 : _outAggClauseInfo(StringInfo str, const AggClauseInfo *node)
4908 : : {
4909 : 0 : WRITE_NODE_TYPE("AGGCLAUSEINFO");
4910 : :
4911 : 0 : WRITE_NODE_FIELD(aggref);
4912 : 0 : WRITE_BITMAPSET_FIELD(agg_eval_at);
4913 : 0 : }
4914 : :
4915 : : static void
4916 : 0 : _outGroupingExprInfo(StringInfo str, const GroupingExprInfo *node)
4917 : : {
4918 : 0 : WRITE_NODE_TYPE("GROUPINGEXPRINFO");
4919 : :
4920 : 0 : WRITE_NODE_FIELD(expr);
4921 : 0 : WRITE_UINT_FIELD(sortgroupref);
4922 : 0 : WRITE_NODE_FIELD(ec);
4923 : 0 : }
4924 : :
4925 : : static void
4926 : 0 : _outPlannerParamItem(StringInfo str, const PlannerParamItem *node)
4927 : : {
4928 : 0 : WRITE_NODE_TYPE("PLANNERPARAMITEM");
4929 : :
4930 : 0 : WRITE_NODE_FIELD(item);
4931 : 0 : WRITE_INT_FIELD(paramId);
4932 : 0 : }
4933 : :
4934 : : static void
4935 : 0 : _outAggInfo(StringInfo str, const AggInfo *node)
4936 : : {
4937 : 0 : WRITE_NODE_TYPE("AGGINFO");
4938 : :
4939 : 0 : WRITE_NODE_FIELD(aggrefs);
4940 : 0 : WRITE_INT_FIELD(transno);
4941 [ # # ]: 0 : WRITE_BOOL_FIELD(shareable);
4942 : 0 : WRITE_OID_FIELD(finalfn_oid);
4943 : 0 : }
4944 : :
4945 : : static void
4946 : 0 : _outAggTransInfo(StringInfo str, const AggTransInfo *node)
4947 : : {
4948 : 0 : WRITE_NODE_TYPE("AGGTRANSINFO");
4949 : :
4950 : 0 : WRITE_NODE_FIELD(args);
4951 : 0 : WRITE_NODE_FIELD(aggfilter);
4952 : 0 : WRITE_OID_FIELD(transfn_oid);
4953 : 0 : WRITE_OID_FIELD(serialfn_oid);
4954 : 0 : WRITE_OID_FIELD(deserialfn_oid);
4955 : 0 : WRITE_OID_FIELD(combinefn_oid);
4956 : 0 : WRITE_OID_FIELD(aggtranstype);
4957 : 0 : WRITE_INT_FIELD(aggtranstypmod);
4958 : 0 : WRITE_INT_FIELD(transtypeLen);
4959 [ # # ]: 0 : WRITE_BOOL_FIELD(transtypeByVal);
4960 : 0 : WRITE_INT_FIELD(aggtransspace);
4961 [ # # ]: 0 : WRITE_BOOL_FIELD(initValueIsNull);
4962 : 0 : }
4963 : :
4964 : : static void
4965 : 0 : _outUniqueRelInfo(StringInfo str, const UniqueRelInfo *node)
4966 : : {
4967 : 0 : WRITE_NODE_TYPE("UNIQUERELINFO");
4968 : :
4969 : 0 : WRITE_BITMAPSET_FIELD(outerrelids);
4970 [ # # ]: 0 : WRITE_BOOL_FIELD(self_join);
4971 : 0 : WRITE_NODE_FIELD(extra_clauses);
4972 : 0 : }
4973 : :
4974 : : static void
4975 : 290040 : _outPlannedStmt(StringInfo str, const PlannedStmt *node)
4976 : : {
4977 : 290040 : WRITE_NODE_TYPE("PLANNEDSTMT");
4978 : :
4979 : 290040 : WRITE_ENUM_FIELD(commandType, CmdType);
4980 : 290040 : WRITE_INT64_FIELD(queryId);
4981 : 290040 : WRITE_INT64_FIELD(planId);
4982 : 290040 : WRITE_ENUM_FIELD(planOrigin, PlannedStmtOrigin);
4983 [ + + ]: 290040 : WRITE_BOOL_FIELD(hasReturning);
4984 [ + + ]: 290040 : WRITE_BOOL_FIELD(hasModifyingCTE);
4985 [ + + ]: 290040 : WRITE_BOOL_FIELD(canSetTag);
4986 [ + + ]: 290040 : WRITE_BOOL_FIELD(transientPlan);
4987 [ + + ]: 290040 : WRITE_BOOL_FIELD(dependsOnRole);
4988 [ + + ]: 290040 : WRITE_BOOL_FIELD(parallelModeNeeded);
4989 : 290040 : WRITE_INT_FIELD(jitFlags);
4990 : 290040 : WRITE_NODE_FIELD(planTree);
4991 : 290040 : WRITE_NODE_FIELD(partPruneInfos);
4992 : 290040 : WRITE_NODE_FIELD(rtable);
4993 : 290040 : WRITE_BITMAPSET_FIELD(unprunableRelids);
4994 : 290040 : WRITE_NODE_FIELD(permInfos);
4995 : 290040 : WRITE_BITMAPSET_FIELD(resultRelationRelids);
4996 : 290040 : WRITE_NODE_FIELD(appendRelations);
4997 : 290040 : WRITE_NODE_FIELD(subplans);
4998 : 290040 : WRITE_NODE_FIELD(subrtinfos);
4999 : 290040 : WRITE_BITMAPSET_FIELD(rewindPlanIDs);
5000 : 290040 : WRITE_NODE_FIELD(rowMarks);
5001 : 290040 : WRITE_BITMAPSET_FIELD(rowMarkRelids);
5002 : 290040 : WRITE_NODE_FIELD(relationOids);
5003 : 290040 : WRITE_NODE_FIELD(invalItems);
5004 : 290040 : WRITE_NODE_FIELD(paramExecTypes);
5005 : 290040 : WRITE_NODE_FIELD(utilityStmt);
5006 : 290040 : WRITE_NODE_FIELD(elidedNodes);
5007 : 290040 : WRITE_NODE_FIELD(extension_state);
5008 [ + + ]: 290040 : WRITE_LOCATION_FIELD(stmt_location);
5009 [ + + ]: 290040 : WRITE_LOCATION_FIELD(stmt_len);
5010 : 290040 : }
5011 : :
5012 : : static void
5013 : 135951 : _outResult(StringInfo str, const Result *node)
5014 : : {
5015 : 135951 : WRITE_NODE_TYPE("RESULT");
5016 : :
5017 : 135951 : WRITE_INT_FIELD(plan.disabled_nodes);
5018 : 135951 : WRITE_FLOAT_FIELD(plan.startup_cost);
5019 : 135951 : WRITE_FLOAT_FIELD(plan.total_cost);
5020 : 135951 : WRITE_FLOAT_FIELD(plan.plan_rows);
5021 : 135951 : WRITE_INT_FIELD(plan.plan_width);
5022 [ - + ]: 135951 : WRITE_BOOL_FIELD(plan.parallel_aware);
5023 [ + + ]: 135951 : WRITE_BOOL_FIELD(plan.parallel_safe);
5024 [ - + ]: 135951 : WRITE_BOOL_FIELD(plan.async_capable);
5025 : 135951 : WRITE_INT_FIELD(plan.plan_node_id);
5026 : 135951 : WRITE_NODE_FIELD(plan.targetlist);
5027 : 135951 : WRITE_NODE_FIELD(plan.qual);
5028 : 135951 : WRITE_NODE_FIELD(plan.lefttree);
5029 : 135951 : WRITE_NODE_FIELD(plan.righttree);
5030 : 135951 : WRITE_NODE_FIELD(plan.initPlan);
5031 : 135951 : WRITE_BITMAPSET_FIELD(plan.extParam);
5032 : 135951 : WRITE_BITMAPSET_FIELD(plan.allParam);
5033 : 135951 : WRITE_ENUM_FIELD(result_type, ResultType);
5034 : 135951 : WRITE_NODE_FIELD(resconstantqual);
5035 : 135951 : WRITE_BITMAPSET_FIELD(relids);
5036 : 135951 : }
5037 : :
5038 : : static void
5039 : 8491 : _outProjectSet(StringInfo str, const ProjectSet *node)
5040 : : {
5041 : 8491 : WRITE_NODE_TYPE("PROJECTSET");
5042 : :
5043 : 8491 : WRITE_INT_FIELD(plan.disabled_nodes);
5044 : 8491 : WRITE_FLOAT_FIELD(plan.startup_cost);
5045 : 8491 : WRITE_FLOAT_FIELD(plan.total_cost);
5046 : 8491 : WRITE_FLOAT_FIELD(plan.plan_rows);
5047 : 8491 : WRITE_INT_FIELD(plan.plan_width);
5048 [ - + ]: 8491 : WRITE_BOOL_FIELD(plan.parallel_aware);
5049 [ + + ]: 8491 : WRITE_BOOL_FIELD(plan.parallel_safe);
5050 [ - + ]: 8491 : WRITE_BOOL_FIELD(plan.async_capable);
5051 : 8491 : WRITE_INT_FIELD(plan.plan_node_id);
5052 : 8491 : WRITE_NODE_FIELD(plan.targetlist);
5053 : 8491 : WRITE_NODE_FIELD(plan.qual);
5054 : 8491 : WRITE_NODE_FIELD(plan.lefttree);
5055 : 8491 : WRITE_NODE_FIELD(plan.righttree);
5056 : 8491 : WRITE_NODE_FIELD(plan.initPlan);
5057 : 8491 : WRITE_BITMAPSET_FIELD(plan.extParam);
5058 : 8491 : WRITE_BITMAPSET_FIELD(plan.allParam);
5059 : 8491 : }
5060 : :
5061 : : static void
5062 : 57926 : _outModifyTable(StringInfo str, const ModifyTable *node)
5063 : : {
5064 : 57926 : WRITE_NODE_TYPE("MODIFYTABLE");
5065 : :
5066 : 57926 : WRITE_INT_FIELD(plan.disabled_nodes);
5067 : 57926 : WRITE_FLOAT_FIELD(plan.startup_cost);
5068 : 57926 : WRITE_FLOAT_FIELD(plan.total_cost);
5069 : 57926 : WRITE_FLOAT_FIELD(plan.plan_rows);
5070 : 57926 : WRITE_INT_FIELD(plan.plan_width);
5071 [ - + ]: 57926 : WRITE_BOOL_FIELD(plan.parallel_aware);
5072 [ - + ]: 57926 : WRITE_BOOL_FIELD(plan.parallel_safe);
5073 [ - + ]: 57926 : WRITE_BOOL_FIELD(plan.async_capable);
5074 : 57926 : WRITE_INT_FIELD(plan.plan_node_id);
5075 : 57926 : WRITE_NODE_FIELD(plan.targetlist);
5076 : 57926 : WRITE_NODE_FIELD(plan.qual);
5077 : 57926 : WRITE_NODE_FIELD(plan.lefttree);
5078 : 57926 : WRITE_NODE_FIELD(plan.righttree);
5079 : 57926 : WRITE_NODE_FIELD(plan.initPlan);
5080 : 57926 : WRITE_BITMAPSET_FIELD(plan.extParam);
5081 : 57926 : WRITE_BITMAPSET_FIELD(plan.allParam);
5082 : 57926 : WRITE_ENUM_FIELD(operation, CmdType);
5083 [ + + ]: 57926 : WRITE_BOOL_FIELD(canSetTag);
5084 : 57926 : WRITE_UINT_FIELD(nominalRelation);
5085 : 57926 : WRITE_UINT_FIELD(rootRelation);
5086 : 57926 : WRITE_NODE_FIELD(resultRelations);
5087 : 57926 : WRITE_NODE_FIELD(updateColnosLists);
5088 : 57926 : WRITE_NODE_FIELD(withCheckOptionLists);
5089 : 57926 : WRITE_STRING_FIELD(returningOldAlias);
5090 : 57926 : WRITE_STRING_FIELD(returningNewAlias);
5091 : 57926 : WRITE_NODE_FIELD(returningLists);
5092 : 57926 : WRITE_NODE_FIELD(fdwPrivLists);
5093 : 57926 : WRITE_BITMAPSET_FIELD(fdwDirectModifyPlans);
5094 : 57926 : WRITE_NODE_FIELD(rowMarks);
5095 : 57926 : WRITE_INT_FIELD(epqParam);
5096 : 57926 : WRITE_ENUM_FIELD(onConflictAction, OnConflictAction);
5097 : 57926 : WRITE_NODE_FIELD(arbiterIndexes);
5098 : 57926 : WRITE_ENUM_FIELD(onConflictLockStrength, LockClauseStrength);
5099 : 57926 : WRITE_NODE_FIELD(onConflictSet);
5100 : 57926 : WRITE_NODE_FIELD(onConflictCols);
5101 : 57926 : WRITE_NODE_FIELD(onConflictWhere);
5102 : 57926 : WRITE_NODE_FIELD(forPortionOf);
5103 : 57926 : WRITE_UINT_FIELD(exclRelRTI);
5104 : 57926 : WRITE_NODE_FIELD(exclRelTlist);
5105 : 57926 : WRITE_NODE_FIELD(mergeActionLists);
5106 : 57926 : WRITE_NODE_FIELD(mergeJoinConditions);
5107 : 57926 : }
5108 : :
5109 : : static void
5110 : 12515 : _outAppend(StringInfo str, const Append *node)
5111 : : {
5112 : 12515 : WRITE_NODE_TYPE("APPEND");
5113 : :
5114 : 12515 : WRITE_INT_FIELD(plan.disabled_nodes);
5115 : 12515 : WRITE_FLOAT_FIELD(plan.startup_cost);
5116 : 12515 : WRITE_FLOAT_FIELD(plan.total_cost);
5117 : 12515 : WRITE_FLOAT_FIELD(plan.plan_rows);
5118 : 12515 : WRITE_INT_FIELD(plan.plan_width);
5119 [ + + ]: 12515 : WRITE_BOOL_FIELD(plan.parallel_aware);
5120 [ + + ]: 12515 : WRITE_BOOL_FIELD(plan.parallel_safe);
5121 [ - + ]: 12515 : WRITE_BOOL_FIELD(plan.async_capable);
5122 : 12515 : WRITE_INT_FIELD(plan.plan_node_id);
5123 : 12515 : WRITE_NODE_FIELD(plan.targetlist);
5124 : 12515 : WRITE_NODE_FIELD(plan.qual);
5125 : 12515 : WRITE_NODE_FIELD(plan.lefttree);
5126 : 12515 : WRITE_NODE_FIELD(plan.righttree);
5127 : 12515 : WRITE_NODE_FIELD(plan.initPlan);
5128 : 12515 : WRITE_BITMAPSET_FIELD(plan.extParam);
5129 : 12515 : WRITE_BITMAPSET_FIELD(plan.allParam);
5130 : 12515 : WRITE_BITMAPSET_FIELD(apprelids);
5131 : 12515 : WRITE_NODE_FIELD(child_append_relid_sets);
5132 : 12515 : WRITE_NODE_FIELD(appendplans);
5133 : 12515 : WRITE_INT_FIELD(nasyncplans);
5134 : 12515 : WRITE_INT_FIELD(first_partial_plan);
5135 : 12515 : WRITE_INT_FIELD(part_prune_index);
5136 : 12515 : }
5137 : :
5138 : : static void
5139 : 370 : _outMergeAppend(StringInfo str, const MergeAppend *node)
5140 : : {
5141 : 370 : WRITE_NODE_TYPE("MERGEAPPEND");
5142 : :
5143 : 370 : WRITE_INT_FIELD(plan.disabled_nodes);
5144 : 370 : WRITE_FLOAT_FIELD(plan.startup_cost);
5145 : 370 : WRITE_FLOAT_FIELD(plan.total_cost);
5146 : 370 : WRITE_FLOAT_FIELD(plan.plan_rows);
5147 : 370 : WRITE_INT_FIELD(plan.plan_width);
5148 [ - + ]: 370 : WRITE_BOOL_FIELD(plan.parallel_aware);
5149 [ + + ]: 370 : WRITE_BOOL_FIELD(plan.parallel_safe);
5150 [ - + ]: 370 : WRITE_BOOL_FIELD(plan.async_capable);
5151 : 370 : WRITE_INT_FIELD(plan.plan_node_id);
5152 : 370 : WRITE_NODE_FIELD(plan.targetlist);
5153 : 370 : WRITE_NODE_FIELD(plan.qual);
5154 : 370 : WRITE_NODE_FIELD(plan.lefttree);
5155 : 370 : WRITE_NODE_FIELD(plan.righttree);
5156 : 370 : WRITE_NODE_FIELD(plan.initPlan);
5157 : 370 : WRITE_BITMAPSET_FIELD(plan.extParam);
5158 : 370 : WRITE_BITMAPSET_FIELD(plan.allParam);
5159 : 370 : WRITE_BITMAPSET_FIELD(apprelids);
5160 : 370 : WRITE_NODE_FIELD(child_append_relid_sets);
5161 : 370 : WRITE_NODE_FIELD(mergeplans);
5162 : 370 : WRITE_INT_FIELD(numCols);
5163 : 370 : WRITE_ATTRNUMBER_ARRAY(sortColIdx, node->numCols);
5164 : 370 : WRITE_OID_ARRAY(sortOperators, node->numCols);
5165 : 370 : WRITE_OID_ARRAY(collations, node->numCols);
5166 : 370 : WRITE_BOOL_ARRAY(nullsFirst, node->numCols);
5167 : 370 : WRITE_INT_FIELD(part_prune_index);
5168 : 370 : }
5169 : :
5170 : : static void
5171 : 562 : _outRecursiveUnion(StringInfo str, const RecursiveUnion *node)
5172 : : {
5173 : 562 : WRITE_NODE_TYPE("RECURSIVEUNION");
5174 : :
5175 : 562 : WRITE_INT_FIELD(plan.disabled_nodes);
5176 : 562 : WRITE_FLOAT_FIELD(plan.startup_cost);
5177 : 562 : WRITE_FLOAT_FIELD(plan.total_cost);
5178 : 562 : WRITE_FLOAT_FIELD(plan.plan_rows);
5179 : 562 : WRITE_INT_FIELD(plan.plan_width);
5180 [ - + ]: 562 : WRITE_BOOL_FIELD(plan.parallel_aware);
5181 [ - + ]: 562 : WRITE_BOOL_FIELD(plan.parallel_safe);
5182 [ - + ]: 562 : WRITE_BOOL_FIELD(plan.async_capable);
5183 : 562 : WRITE_INT_FIELD(plan.plan_node_id);
5184 : 562 : WRITE_NODE_FIELD(plan.targetlist);
5185 : 562 : WRITE_NODE_FIELD(plan.qual);
5186 : 562 : WRITE_NODE_FIELD(plan.lefttree);
5187 : 562 : WRITE_NODE_FIELD(plan.righttree);
5188 : 562 : WRITE_NODE_FIELD(plan.initPlan);
5189 : 562 : WRITE_BITMAPSET_FIELD(plan.extParam);
5190 : 562 : WRITE_BITMAPSET_FIELD(plan.allParam);
5191 : 562 : WRITE_INT_FIELD(wtParam);
5192 : 562 : WRITE_INT_FIELD(numCols);
5193 : 562 : WRITE_ATTRNUMBER_ARRAY(dupColIdx, node->numCols);
5194 : 562 : WRITE_OID_ARRAY(dupOperators, node->numCols);
5195 : 562 : WRITE_OID_ARRAY(dupCollations, node->numCols);
5196 : 562 : WRITE_FLOAT_FIELD(numGroups);
5197 : 562 : }
5198 : :
5199 : : static void
5200 : 150 : _outBitmapAnd(StringInfo str, const BitmapAnd *node)
5201 : : {
5202 : 150 : WRITE_NODE_TYPE("BITMAPAND");
5203 : :
5204 : 150 : WRITE_INT_FIELD(plan.disabled_nodes);
5205 : 150 : WRITE_FLOAT_FIELD(plan.startup_cost);
5206 : 150 : WRITE_FLOAT_FIELD(plan.total_cost);
5207 : 150 : WRITE_FLOAT_FIELD(plan.plan_rows);
5208 : 150 : WRITE_INT_FIELD(plan.plan_width);
5209 [ - + ]: 150 : WRITE_BOOL_FIELD(plan.parallel_aware);
5210 [ + + ]: 150 : WRITE_BOOL_FIELD(plan.parallel_safe);
5211 [ - + ]: 150 : WRITE_BOOL_FIELD(plan.async_capable);
5212 : 150 : WRITE_INT_FIELD(plan.plan_node_id);
5213 : 150 : WRITE_NODE_FIELD(plan.targetlist);
5214 : 150 : WRITE_NODE_FIELD(plan.qual);
5215 : 150 : WRITE_NODE_FIELD(plan.lefttree);
5216 : 150 : WRITE_NODE_FIELD(plan.righttree);
5217 : 150 : WRITE_NODE_FIELD(plan.initPlan);
5218 : 150 : WRITE_BITMAPSET_FIELD(plan.extParam);
5219 : 150 : WRITE_BITMAPSET_FIELD(plan.allParam);
5220 : 150 : WRITE_NODE_FIELD(bitmapplans);
5221 : 150 : }
5222 : :
5223 : : static void
5224 : 258 : _outBitmapOr(StringInfo str, const BitmapOr *node)
5225 : : {
5226 : 258 : WRITE_NODE_TYPE("BITMAPOR");
5227 : :
5228 : 258 : WRITE_INT_FIELD(plan.disabled_nodes);
5229 : 258 : WRITE_FLOAT_FIELD(plan.startup_cost);
5230 : 258 : WRITE_FLOAT_FIELD(plan.total_cost);
5231 : 258 : WRITE_FLOAT_FIELD(plan.plan_rows);
5232 : 258 : WRITE_INT_FIELD(plan.plan_width);
5233 [ - + ]: 258 : WRITE_BOOL_FIELD(plan.parallel_aware);
5234 [ + + ]: 258 : WRITE_BOOL_FIELD(plan.parallel_safe);
5235 [ - + ]: 258 : WRITE_BOOL_FIELD(plan.async_capable);
5236 : 258 : WRITE_INT_FIELD(plan.plan_node_id);
5237 : 258 : WRITE_NODE_FIELD(plan.targetlist);
5238 : 258 : WRITE_NODE_FIELD(plan.qual);
5239 : 258 : WRITE_NODE_FIELD(plan.lefttree);
5240 : 258 : WRITE_NODE_FIELD(plan.righttree);
5241 : 258 : WRITE_NODE_FIELD(plan.initPlan);
5242 : 258 : WRITE_BITMAPSET_FIELD(plan.extParam);
5243 : 258 : WRITE_BITMAPSET_FIELD(plan.allParam);
5244 [ - + ]: 258 : WRITE_BOOL_FIELD(isshared);
5245 : 258 : WRITE_NODE_FIELD(bitmapplans);
5246 : 258 : }
5247 : :
5248 : : static void
5249 : 151542 : _outSeqScan(StringInfo str, const SeqScan *node)
5250 : : {
5251 : 151542 : WRITE_NODE_TYPE("SEQSCAN");
5252 : :
5253 : 151542 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5254 : 151542 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5255 : 151542 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5256 : 151542 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5257 : 151542 : WRITE_INT_FIELD(scan.plan.plan_width);
5258 [ + + ]: 151542 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5259 [ + + ]: 151542 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5260 [ - + ]: 151542 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5261 : 151542 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5262 : 151542 : WRITE_NODE_FIELD(scan.plan.targetlist);
5263 : 151542 : WRITE_NODE_FIELD(scan.plan.qual);
5264 : 151542 : WRITE_NODE_FIELD(scan.plan.lefttree);
5265 : 151542 : WRITE_NODE_FIELD(scan.plan.righttree);
5266 : 151542 : WRITE_NODE_FIELD(scan.plan.initPlan);
5267 : 151542 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5268 : 151542 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5269 : 151542 : WRITE_UINT_FIELD(scan.scanrelid);
5270 : 151542 : }
5271 : :
5272 : : static void
5273 : 200 : _outSampleScan(StringInfo str, const SampleScan *node)
5274 : : {
5275 : 200 : WRITE_NODE_TYPE("SAMPLESCAN");
5276 : :
5277 : 200 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5278 : 200 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5279 : 200 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5280 : 200 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5281 : 200 : WRITE_INT_FIELD(scan.plan.plan_width);
5282 [ - + ]: 200 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5283 [ + + ]: 200 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5284 [ - + ]: 200 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5285 : 200 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5286 : 200 : WRITE_NODE_FIELD(scan.plan.targetlist);
5287 : 200 : WRITE_NODE_FIELD(scan.plan.qual);
5288 : 200 : WRITE_NODE_FIELD(scan.plan.lefttree);
5289 : 200 : WRITE_NODE_FIELD(scan.plan.righttree);
5290 : 200 : WRITE_NODE_FIELD(scan.plan.initPlan);
5291 : 200 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5292 : 200 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5293 : 200 : WRITE_UINT_FIELD(scan.scanrelid);
5294 : 200 : WRITE_NODE_FIELD(tablesample);
5295 : 200 : }
5296 : :
5297 : : static void
5298 : 92463 : _outIndexScan(StringInfo str, const IndexScan *node)
5299 : : {
5300 : 92463 : WRITE_NODE_TYPE("INDEXSCAN");
5301 : :
5302 : 92463 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5303 : 92463 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5304 : 92463 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5305 : 92463 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5306 : 92463 : WRITE_INT_FIELD(scan.plan.plan_width);
5307 [ + + ]: 92463 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5308 [ + + ]: 92463 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5309 [ - + ]: 92463 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5310 : 92463 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5311 : 92463 : WRITE_NODE_FIELD(scan.plan.targetlist);
5312 : 92463 : WRITE_NODE_FIELD(scan.plan.qual);
5313 : 92463 : WRITE_NODE_FIELD(scan.plan.lefttree);
5314 : 92463 : WRITE_NODE_FIELD(scan.plan.righttree);
5315 : 92463 : WRITE_NODE_FIELD(scan.plan.initPlan);
5316 : 92463 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5317 : 92463 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5318 : 92463 : WRITE_UINT_FIELD(scan.scanrelid);
5319 : 92463 : WRITE_OID_FIELD(indexid);
5320 : 92463 : WRITE_NODE_FIELD(indexqual);
5321 : 92463 : WRITE_NODE_FIELD(indexqualorig);
5322 : 92463 : WRITE_NODE_FIELD(indexorderby);
5323 : 92463 : WRITE_NODE_FIELD(indexorderbyorig);
5324 : 92463 : WRITE_NODE_FIELD(indexorderbyops);
5325 : 92463 : WRITE_ENUM_FIELD(indexorderdir, ScanDirection);
5326 : 92463 : }
5327 : :
5328 : : static void
5329 : 10937 : _outIndexOnlyScan(StringInfo str, const IndexOnlyScan *node)
5330 : : {
5331 : 10937 : WRITE_NODE_TYPE("INDEXONLYSCAN");
5332 : :
5333 : 10937 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5334 : 10937 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5335 : 10937 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5336 : 10937 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5337 : 10937 : WRITE_INT_FIELD(scan.plan.plan_width);
5338 [ + + ]: 10937 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5339 [ + + ]: 10937 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5340 [ - + ]: 10937 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5341 : 10937 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5342 : 10937 : WRITE_NODE_FIELD(scan.plan.targetlist);
5343 : 10937 : WRITE_NODE_FIELD(scan.plan.qual);
5344 : 10937 : WRITE_NODE_FIELD(scan.plan.lefttree);
5345 : 10937 : WRITE_NODE_FIELD(scan.plan.righttree);
5346 : 10937 : WRITE_NODE_FIELD(scan.plan.initPlan);
5347 : 10937 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5348 : 10937 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5349 : 10937 : WRITE_UINT_FIELD(scan.scanrelid);
5350 : 10937 : WRITE_OID_FIELD(indexid);
5351 : 10937 : WRITE_NODE_FIELD(indexqual);
5352 : 10937 : WRITE_NODE_FIELD(recheckqual);
5353 : 10937 : WRITE_NODE_FIELD(indexorderby);
5354 : 10937 : WRITE_NODE_FIELD(indextlist);
5355 : 10937 : WRITE_ENUM_FIELD(indexorderdir, ScanDirection);
5356 : 10937 : }
5357 : :
5358 : : static void
5359 : 16599 : _outBitmapIndexScan(StringInfo str, const BitmapIndexScan *node)
5360 : : {
5361 : 16599 : WRITE_NODE_TYPE("BITMAPINDEXSCAN");
5362 : :
5363 : 16599 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5364 : 16599 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5365 : 16599 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5366 : 16599 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5367 : 16599 : WRITE_INT_FIELD(scan.plan.plan_width);
5368 [ - + ]: 16599 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5369 [ + + ]: 16599 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5370 [ - + ]: 16599 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5371 : 16599 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5372 : 16599 : WRITE_NODE_FIELD(scan.plan.targetlist);
5373 : 16599 : WRITE_NODE_FIELD(scan.plan.qual);
5374 : 16599 : WRITE_NODE_FIELD(scan.plan.lefttree);
5375 : 16599 : WRITE_NODE_FIELD(scan.plan.righttree);
5376 : 16599 : WRITE_NODE_FIELD(scan.plan.initPlan);
5377 : 16599 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5378 : 16599 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5379 : 16599 : WRITE_UINT_FIELD(scan.scanrelid);
5380 : 16599 : WRITE_OID_FIELD(indexid);
5381 [ + + ]: 16599 : WRITE_BOOL_FIELD(isshared);
5382 : 16599 : WRITE_NODE_FIELD(indexqual);
5383 : 16599 : WRITE_NODE_FIELD(indexqualorig);
5384 : 16599 : }
5385 : :
5386 : : static void
5387 : 16187 : _outBitmapHeapScan(StringInfo str, const BitmapHeapScan *node)
5388 : : {
5389 : 16187 : WRITE_NODE_TYPE("BITMAPHEAPSCAN");
5390 : :
5391 : 16187 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5392 : 16187 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5393 : 16187 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5394 : 16187 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5395 : 16187 : WRITE_INT_FIELD(scan.plan.plan_width);
5396 [ + + ]: 16187 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5397 [ + + ]: 16187 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5398 [ - + ]: 16187 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5399 : 16187 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5400 : 16187 : WRITE_NODE_FIELD(scan.plan.targetlist);
5401 : 16187 : WRITE_NODE_FIELD(scan.plan.qual);
5402 : 16187 : WRITE_NODE_FIELD(scan.plan.lefttree);
5403 : 16187 : WRITE_NODE_FIELD(scan.plan.righttree);
5404 : 16187 : WRITE_NODE_FIELD(scan.plan.initPlan);
5405 : 16187 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5406 : 16187 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5407 : 16187 : WRITE_UINT_FIELD(scan.scanrelid);
5408 : 16187 : WRITE_NODE_FIELD(bitmapqualorig);
5409 : 16187 : }
5410 : :
5411 : : static void
5412 : 472 : _outTidScan(StringInfo str, const TidScan *node)
5413 : : {
5414 : 472 : WRITE_NODE_TYPE("TIDSCAN");
5415 : :
5416 : 472 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5417 : 472 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5418 : 472 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5419 : 472 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5420 : 472 : WRITE_INT_FIELD(scan.plan.plan_width);
5421 [ - + ]: 472 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5422 [ + + ]: 472 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5423 [ - + ]: 472 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5424 : 472 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5425 : 472 : WRITE_NODE_FIELD(scan.plan.targetlist);
5426 : 472 : WRITE_NODE_FIELD(scan.plan.qual);
5427 : 472 : WRITE_NODE_FIELD(scan.plan.lefttree);
5428 : 472 : WRITE_NODE_FIELD(scan.plan.righttree);
5429 : 472 : WRITE_NODE_FIELD(scan.plan.initPlan);
5430 : 472 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5431 : 472 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5432 : 472 : WRITE_UINT_FIELD(scan.scanrelid);
5433 : 472 : WRITE_NODE_FIELD(tidquals);
5434 : 472 : }
5435 : :
5436 : : static void
5437 : 1348 : _outTidRangeScan(StringInfo str, const TidRangeScan *node)
5438 : : {
5439 : 1348 : WRITE_NODE_TYPE("TIDRANGESCAN");
5440 : :
5441 : 1348 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5442 : 1348 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5443 : 1348 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5444 : 1348 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5445 : 1348 : WRITE_INT_FIELD(scan.plan.plan_width);
5446 [ + + ]: 1348 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5447 [ + + ]: 1348 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5448 [ - + ]: 1348 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5449 : 1348 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5450 : 1348 : WRITE_NODE_FIELD(scan.plan.targetlist);
5451 : 1348 : WRITE_NODE_FIELD(scan.plan.qual);
5452 : 1348 : WRITE_NODE_FIELD(scan.plan.lefttree);
5453 : 1348 : WRITE_NODE_FIELD(scan.plan.righttree);
5454 : 1348 : WRITE_NODE_FIELD(scan.plan.initPlan);
5455 : 1348 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5456 : 1348 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5457 : 1348 : WRITE_UINT_FIELD(scan.scanrelid);
5458 : 1348 : WRITE_NODE_FIELD(tidrangequals);
5459 : 1348 : }
5460 : :
5461 : : static void
5462 : 13720 : _outSubqueryScan(StringInfo str, const SubqueryScan *node)
5463 : : {
5464 : 13720 : WRITE_NODE_TYPE("SUBQUERYSCAN");
5465 : :
5466 : 13720 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5467 : 13720 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5468 : 13720 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5469 : 13720 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5470 : 13720 : WRITE_INT_FIELD(scan.plan.plan_width);
5471 [ - + ]: 13720 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5472 [ + + ]: 13720 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5473 [ - + ]: 13720 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5474 : 13720 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5475 : 13720 : WRITE_NODE_FIELD(scan.plan.targetlist);
5476 : 13720 : WRITE_NODE_FIELD(scan.plan.qual);
5477 : 13720 : WRITE_NODE_FIELD(scan.plan.lefttree);
5478 : 13720 : WRITE_NODE_FIELD(scan.plan.righttree);
5479 : 13720 : WRITE_NODE_FIELD(scan.plan.initPlan);
5480 : 13720 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5481 : 13720 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5482 : 13720 : WRITE_UINT_FIELD(scan.scanrelid);
5483 : 13720 : WRITE_NODE_FIELD(subplan);
5484 : 13720 : WRITE_ENUM_FIELD(scanstatus, SubqueryScanStatus);
5485 : 13720 : }
5486 : :
5487 : : static void
5488 : 31343 : _outFunctionScan(StringInfo str, const FunctionScan *node)
5489 : : {
5490 : 31343 : WRITE_NODE_TYPE("FUNCTIONSCAN");
5491 : :
5492 : 31343 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5493 : 31343 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5494 : 31343 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5495 : 31343 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5496 : 31343 : WRITE_INT_FIELD(scan.plan.plan_width);
5497 [ - + ]: 31343 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5498 [ + + ]: 31343 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5499 [ - + ]: 31343 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5500 : 31343 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5501 : 31343 : WRITE_NODE_FIELD(scan.plan.targetlist);
5502 : 31343 : WRITE_NODE_FIELD(scan.plan.qual);
5503 : 31343 : WRITE_NODE_FIELD(scan.plan.lefttree);
5504 : 31343 : WRITE_NODE_FIELD(scan.plan.righttree);
5505 : 31343 : WRITE_NODE_FIELD(scan.plan.initPlan);
5506 : 31343 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5507 : 31343 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5508 : 31343 : WRITE_UINT_FIELD(scan.scanrelid);
5509 : 31343 : WRITE_NODE_FIELD(functions);
5510 [ + + ]: 31343 : WRITE_BOOL_FIELD(funcordinality);
5511 : 31343 : }
5512 : :
5513 : : static void
5514 : 5833 : _outValuesScan(StringInfo str, const ValuesScan *node)
5515 : : {
5516 : 5833 : WRITE_NODE_TYPE("VALUESSCAN");
5517 : :
5518 : 5833 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5519 : 5833 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5520 : 5833 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5521 : 5833 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5522 : 5833 : WRITE_INT_FIELD(scan.plan.plan_width);
5523 [ - + ]: 5833 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5524 [ + + ]: 5833 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5525 [ - + ]: 5833 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5526 : 5833 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5527 : 5833 : WRITE_NODE_FIELD(scan.plan.targetlist);
5528 : 5833 : WRITE_NODE_FIELD(scan.plan.qual);
5529 : 5833 : WRITE_NODE_FIELD(scan.plan.lefttree);
5530 : 5833 : WRITE_NODE_FIELD(scan.plan.righttree);
5531 : 5833 : WRITE_NODE_FIELD(scan.plan.initPlan);
5532 : 5833 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5533 : 5833 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5534 : 5833 : WRITE_UINT_FIELD(scan.scanrelid);
5535 : 5833 : WRITE_NODE_FIELD(values_lists);
5536 : 5833 : }
5537 : :
5538 : : static void
5539 : 484 : _outTableFuncScan(StringInfo str, const TableFuncScan *node)
5540 : : {
5541 : 484 : WRITE_NODE_TYPE("TABLEFUNCSCAN");
5542 : :
5543 : 484 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5544 : 484 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5545 : 484 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5546 : 484 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5547 : 484 : WRITE_INT_FIELD(scan.plan.plan_width);
5548 [ - + ]: 484 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5549 [ - + ]: 484 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5550 [ - + ]: 484 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5551 : 484 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5552 : 484 : WRITE_NODE_FIELD(scan.plan.targetlist);
5553 : 484 : WRITE_NODE_FIELD(scan.plan.qual);
5554 : 484 : WRITE_NODE_FIELD(scan.plan.lefttree);
5555 : 484 : WRITE_NODE_FIELD(scan.plan.righttree);
5556 : 484 : WRITE_NODE_FIELD(scan.plan.initPlan);
5557 : 484 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5558 : 484 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5559 : 484 : WRITE_UINT_FIELD(scan.scanrelid);
5560 : 484 : WRITE_NODE_FIELD(tablefunc);
5561 : 484 : }
5562 : :
5563 : : static void
5564 : 2682 : _outCteScan(StringInfo str, const CteScan *node)
5565 : : {
5566 : 2682 : WRITE_NODE_TYPE("CTESCAN");
5567 : :
5568 : 2682 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5569 : 2682 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5570 : 2682 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5571 : 2682 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5572 : 2682 : WRITE_INT_FIELD(scan.plan.plan_width);
5573 [ - + ]: 2682 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5574 [ - + ]: 2682 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5575 [ - + ]: 2682 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5576 : 2682 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5577 : 2682 : WRITE_NODE_FIELD(scan.plan.targetlist);
5578 : 2682 : WRITE_NODE_FIELD(scan.plan.qual);
5579 : 2682 : WRITE_NODE_FIELD(scan.plan.lefttree);
5580 : 2682 : WRITE_NODE_FIELD(scan.plan.righttree);
5581 : 2682 : WRITE_NODE_FIELD(scan.plan.initPlan);
5582 : 2682 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5583 : 2682 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5584 : 2682 : WRITE_UINT_FIELD(scan.scanrelid);
5585 : 2682 : WRITE_INT_FIELD(ctePlanId);
5586 : 2682 : WRITE_INT_FIELD(cteParam);
5587 : 2682 : }
5588 : :
5589 : : static void
5590 : 354 : _outNamedTuplestoreScan(StringInfo str, const NamedTuplestoreScan *node)
5591 : : {
5592 : 354 : WRITE_NODE_TYPE("NAMEDTUPLESTORESCAN");
5593 : :
5594 : 354 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5595 : 354 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5596 : 354 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5597 : 354 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5598 : 354 : WRITE_INT_FIELD(scan.plan.plan_width);
5599 [ - + ]: 354 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5600 [ - + ]: 354 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5601 [ - + ]: 354 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5602 : 354 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5603 : 354 : WRITE_NODE_FIELD(scan.plan.targetlist);
5604 : 354 : WRITE_NODE_FIELD(scan.plan.qual);
5605 : 354 : WRITE_NODE_FIELD(scan.plan.lefttree);
5606 : 354 : WRITE_NODE_FIELD(scan.plan.righttree);
5607 : 354 : WRITE_NODE_FIELD(scan.plan.initPlan);
5608 : 354 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5609 : 354 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5610 : 354 : WRITE_UINT_FIELD(scan.scanrelid);
5611 : 354 : WRITE_STRING_FIELD(enrname);
5612 : 354 : }
5613 : :
5614 : : static void
5615 : 562 : _outWorkTableScan(StringInfo str, const WorkTableScan *node)
5616 : : {
5617 : 562 : WRITE_NODE_TYPE("WORKTABLESCAN");
5618 : :
5619 : 562 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5620 : 562 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5621 : 562 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5622 : 562 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5623 : 562 : WRITE_INT_FIELD(scan.plan.plan_width);
5624 [ - + ]: 562 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5625 [ - + ]: 562 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5626 [ - + ]: 562 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5627 : 562 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5628 : 562 : WRITE_NODE_FIELD(scan.plan.targetlist);
5629 : 562 : WRITE_NODE_FIELD(scan.plan.qual);
5630 : 562 : WRITE_NODE_FIELD(scan.plan.lefttree);
5631 : 562 : WRITE_NODE_FIELD(scan.plan.righttree);
5632 : 562 : WRITE_NODE_FIELD(scan.plan.initPlan);
5633 : 562 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5634 : 562 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5635 : 562 : WRITE_UINT_FIELD(scan.scanrelid);
5636 : 562 : WRITE_INT_FIELD(wtParam);
5637 : 562 : }
5638 : :
5639 : : static void
5640 : 1077 : _outForeignScan(StringInfo str, const ForeignScan *node)
5641 : : {
5642 : 1077 : WRITE_NODE_TYPE("FOREIGNSCAN");
5643 : :
5644 : 1077 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5645 : 1077 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5646 : 1077 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5647 : 1077 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5648 : 1077 : WRITE_INT_FIELD(scan.plan.plan_width);
5649 [ - + ]: 1077 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5650 [ + + ]: 1077 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5651 [ + + ]: 1077 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5652 : 1077 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5653 : 1077 : WRITE_NODE_FIELD(scan.plan.targetlist);
5654 : 1077 : WRITE_NODE_FIELD(scan.plan.qual);
5655 : 1077 : WRITE_NODE_FIELD(scan.plan.lefttree);
5656 : 1077 : WRITE_NODE_FIELD(scan.plan.righttree);
5657 : 1077 : WRITE_NODE_FIELD(scan.plan.initPlan);
5658 : 1077 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5659 : 1077 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5660 : 1077 : WRITE_UINT_FIELD(scan.scanrelid);
5661 : 1077 : WRITE_ENUM_FIELD(operation, CmdType);
5662 : 1077 : WRITE_UINT_FIELD(resultRelation);
5663 : 1077 : WRITE_OID_FIELD(checkAsUser);
5664 : 1077 : WRITE_OID_FIELD(fs_server);
5665 : 1077 : WRITE_NODE_FIELD(fdw_exprs);
5666 : 1077 : WRITE_NODE_FIELD(fdw_private);
5667 : 1077 : WRITE_NODE_FIELD(fdw_scan_tlist);
5668 : 1077 : WRITE_NODE_FIELD(fdw_recheck_quals);
5669 : 1077 : WRITE_BITMAPSET_FIELD(fs_relids);
5670 : 1077 : WRITE_BITMAPSET_FIELD(fs_base_relids);
5671 [ + + ]: 1077 : WRITE_BOOL_FIELD(fsSystemCol);
5672 : 1077 : }
5673 : :
5674 : : static void
5675 : 0 : _outCustomScan(StringInfo str, const CustomScan *node)
5676 : : {
5677 : 0 : WRITE_NODE_TYPE("CUSTOMSCAN");
5678 : :
5679 : 0 : WRITE_INT_FIELD(scan.plan.disabled_nodes);
5680 : 0 : WRITE_FLOAT_FIELD(scan.plan.startup_cost);
5681 : 0 : WRITE_FLOAT_FIELD(scan.plan.total_cost);
5682 : 0 : WRITE_FLOAT_FIELD(scan.plan.plan_rows);
5683 : 0 : WRITE_INT_FIELD(scan.plan.plan_width);
5684 [ # # ]: 0 : WRITE_BOOL_FIELD(scan.plan.parallel_aware);
5685 [ # # ]: 0 : WRITE_BOOL_FIELD(scan.plan.parallel_safe);
5686 [ # # ]: 0 : WRITE_BOOL_FIELD(scan.plan.async_capable);
5687 : 0 : WRITE_INT_FIELD(scan.plan.plan_node_id);
5688 : 0 : WRITE_NODE_FIELD(scan.plan.targetlist);
5689 : 0 : WRITE_NODE_FIELD(scan.plan.qual);
5690 : 0 : WRITE_NODE_FIELD(scan.plan.lefttree);
5691 : 0 : WRITE_NODE_FIELD(scan.plan.righttree);
5692 : 0 : WRITE_NODE_FIELD(scan.plan.initPlan);
5693 : 0 : WRITE_BITMAPSET_FIELD(scan.plan.extParam);
5694 : 0 : WRITE_BITMAPSET_FIELD(scan.plan.allParam);
5695 : 0 : WRITE_UINT_FIELD(scan.scanrelid);
5696 : 0 : WRITE_UINT_FIELD(flags);
5697 : 0 : WRITE_NODE_FIELD(custom_plans);
5698 : 0 : WRITE_NODE_FIELD(custom_exprs);
5699 : 0 : WRITE_NODE_FIELD(custom_private);
5700 : 0 : WRITE_NODE_FIELD(custom_scan_tlist);
5701 : 0 : WRITE_BITMAPSET_FIELD(custom_relids);
5702 : :
5703 : : /* CustomName is a key to lookup CustomScanMethods */
5704 : 0 : appendStringInfoString(str, " :methods ");
5705 : 0 : outToken(str, node->methods->CustomName);
5706 : 0 : }
5707 : :
5708 : : static void
5709 : 64632 : _outNestLoop(StringInfo str, const NestLoop *node)
5710 : : {
5711 : 64632 : WRITE_NODE_TYPE("NESTLOOP");
5712 : :
5713 : 64632 : WRITE_INT_FIELD(join.plan.disabled_nodes);
5714 : 64632 : WRITE_FLOAT_FIELD(join.plan.startup_cost);
5715 : 64632 : WRITE_FLOAT_FIELD(join.plan.total_cost);
5716 : 64632 : WRITE_FLOAT_FIELD(join.plan.plan_rows);
5717 : 64632 : WRITE_INT_FIELD(join.plan.plan_width);
5718 [ - + ]: 64632 : WRITE_BOOL_FIELD(join.plan.parallel_aware);
5719 [ + + ]: 64632 : WRITE_BOOL_FIELD(join.plan.parallel_safe);
5720 [ - + ]: 64632 : WRITE_BOOL_FIELD(join.plan.async_capable);
5721 : 64632 : WRITE_INT_FIELD(join.plan.plan_node_id);
5722 : 64632 : WRITE_NODE_FIELD(join.plan.targetlist);
5723 : 64632 : WRITE_NODE_FIELD(join.plan.qual);
5724 : 64632 : WRITE_NODE_FIELD(join.plan.lefttree);
5725 : 64632 : WRITE_NODE_FIELD(join.plan.righttree);
5726 : 64632 : WRITE_NODE_FIELD(join.plan.initPlan);
5727 : 64632 : WRITE_BITMAPSET_FIELD(join.plan.extParam);
5728 : 64632 : WRITE_BITMAPSET_FIELD(join.plan.allParam);
5729 : 64632 : WRITE_ENUM_FIELD(join.jointype, JoinType);
5730 [ + + ]: 64632 : WRITE_BOOL_FIELD(join.inner_unique);
5731 : 64632 : WRITE_NODE_FIELD(join.joinqual);
5732 : 64632 : WRITE_BITMAPSET_FIELD(join.ojrelids);
5733 : 64632 : WRITE_NODE_FIELD(nestParams);
5734 : 64632 : }
5735 : :
5736 : : static void
5737 : 37848 : _outNestLoopParam(StringInfo str, const NestLoopParam *node)
5738 : : {
5739 : 37848 : WRITE_NODE_TYPE("NESTLOOPPARAM");
5740 : :
5741 : 37848 : WRITE_INT_FIELD(paramno);
5742 : 37848 : WRITE_NODE_FIELD(paramval);
5743 : 37848 : }
5744 : :
5745 : : static void
5746 : 4875 : _outMergeJoin(StringInfo str, const MergeJoin *node)
5747 : : {
5748 : 4875 : WRITE_NODE_TYPE("MERGEJOIN");
5749 : :
5750 : 4875 : WRITE_INT_FIELD(join.plan.disabled_nodes);
5751 : 4875 : WRITE_FLOAT_FIELD(join.plan.startup_cost);
5752 : 4875 : WRITE_FLOAT_FIELD(join.plan.total_cost);
5753 : 4875 : WRITE_FLOAT_FIELD(join.plan.plan_rows);
5754 : 4875 : WRITE_INT_FIELD(join.plan.plan_width);
5755 [ - + ]: 4875 : WRITE_BOOL_FIELD(join.plan.parallel_aware);
5756 [ + + ]: 4875 : WRITE_BOOL_FIELD(join.plan.parallel_safe);
5757 [ - + ]: 4875 : WRITE_BOOL_FIELD(join.plan.async_capable);
5758 : 4875 : WRITE_INT_FIELD(join.plan.plan_node_id);
5759 : 4875 : WRITE_NODE_FIELD(join.plan.targetlist);
5760 : 4875 : WRITE_NODE_FIELD(join.plan.qual);
5761 : 4875 : WRITE_NODE_FIELD(join.plan.lefttree);
5762 : 4875 : WRITE_NODE_FIELD(join.plan.righttree);
5763 : 4875 : WRITE_NODE_FIELD(join.plan.initPlan);
5764 : 4875 : WRITE_BITMAPSET_FIELD(join.plan.extParam);
5765 : 4875 : WRITE_BITMAPSET_FIELD(join.plan.allParam);
5766 : 4875 : WRITE_ENUM_FIELD(join.jointype, JoinType);
5767 [ + + ]: 4875 : WRITE_BOOL_FIELD(join.inner_unique);
5768 : 4875 : WRITE_NODE_FIELD(join.joinqual);
5769 : 4875 : WRITE_BITMAPSET_FIELD(join.ojrelids);
5770 [ + + ]: 4875 : WRITE_BOOL_FIELD(skip_mark_restore);
5771 : 4875 : WRITE_NODE_FIELD(mergeclauses);
5772 : 4875 : WRITE_OID_ARRAY(mergeFamilies, list_length(node->mergeclauses));
5773 : 4875 : WRITE_OID_ARRAY(mergeCollations, list_length(node->mergeclauses));
5774 : 4875 : WRITE_BOOL_ARRAY(mergeReversals, list_length(node->mergeclauses));
5775 : 4875 : WRITE_BOOL_ARRAY(mergeNullsFirst, list_length(node->mergeclauses));
5776 : 4875 : }
5777 : :
5778 : : static void
5779 : 28916 : _outHashJoin(StringInfo str, const HashJoin *node)
5780 : : {
5781 : 28916 : WRITE_NODE_TYPE("HASHJOIN");
5782 : :
5783 : 28916 : WRITE_INT_FIELD(join.plan.disabled_nodes);
5784 : 28916 : WRITE_FLOAT_FIELD(join.plan.startup_cost);
5785 : 28916 : WRITE_FLOAT_FIELD(join.plan.total_cost);
5786 : 28916 : WRITE_FLOAT_FIELD(join.plan.plan_rows);
5787 : 28916 : WRITE_INT_FIELD(join.plan.plan_width);
5788 [ + + ]: 28916 : WRITE_BOOL_FIELD(join.plan.parallel_aware);
5789 [ + + ]: 28916 : WRITE_BOOL_FIELD(join.plan.parallel_safe);
5790 [ - + ]: 28916 : WRITE_BOOL_FIELD(join.plan.async_capable);
5791 : 28916 : WRITE_INT_FIELD(join.plan.plan_node_id);
5792 : 28916 : WRITE_NODE_FIELD(join.plan.targetlist);
5793 : 28916 : WRITE_NODE_FIELD(join.plan.qual);
5794 : 28916 : WRITE_NODE_FIELD(join.plan.lefttree);
5795 : 28916 : WRITE_NODE_FIELD(join.plan.righttree);
5796 : 28916 : WRITE_NODE_FIELD(join.plan.initPlan);
5797 : 28916 : WRITE_BITMAPSET_FIELD(join.plan.extParam);
5798 : 28916 : WRITE_BITMAPSET_FIELD(join.plan.allParam);
5799 : 28916 : WRITE_ENUM_FIELD(join.jointype, JoinType);
5800 [ + + ]: 28916 : WRITE_BOOL_FIELD(join.inner_unique);
5801 : 28916 : WRITE_NODE_FIELD(join.joinqual);
5802 : 28916 : WRITE_BITMAPSET_FIELD(join.ojrelids);
5803 : 28916 : WRITE_NODE_FIELD(hashclauses);
5804 : 28916 : WRITE_NODE_FIELD(hashoperators);
5805 : 28916 : WRITE_NODE_FIELD(hashcollations);
5806 : 28916 : WRITE_NODE_FIELD(hashkeys);
5807 : 28916 : }
5808 : :
5809 : : static void
5810 : 2770 : _outMaterial(StringInfo str, const Material *node)
5811 : : {
5812 : 2770 : WRITE_NODE_TYPE("MATERIAL");
5813 : :
5814 : 2770 : WRITE_INT_FIELD(plan.disabled_nodes);
5815 : 2770 : WRITE_FLOAT_FIELD(plan.startup_cost);
5816 : 2770 : WRITE_FLOAT_FIELD(plan.total_cost);
5817 : 2770 : WRITE_FLOAT_FIELD(plan.plan_rows);
5818 : 2770 : WRITE_INT_FIELD(plan.plan_width);
5819 [ - + ]: 2770 : WRITE_BOOL_FIELD(plan.parallel_aware);
5820 [ + + ]: 2770 : WRITE_BOOL_FIELD(plan.parallel_safe);
5821 [ - + ]: 2770 : WRITE_BOOL_FIELD(plan.async_capable);
5822 : 2770 : WRITE_INT_FIELD(plan.plan_node_id);
5823 : 2770 : WRITE_NODE_FIELD(plan.targetlist);
5824 : 2770 : WRITE_NODE_FIELD(plan.qual);
5825 : 2770 : WRITE_NODE_FIELD(plan.lefttree);
5826 : 2770 : WRITE_NODE_FIELD(plan.righttree);
5827 : 2770 : WRITE_NODE_FIELD(plan.initPlan);
5828 : 2770 : WRITE_BITMAPSET_FIELD(plan.extParam);
5829 : 2770 : WRITE_BITMAPSET_FIELD(plan.allParam);
5830 : 2770 : }
5831 : :
5832 : : static void
5833 : 1371 : _outMemoize(StringInfo str, const Memoize *node)
5834 : : {
5835 : 1371 : WRITE_NODE_TYPE("MEMOIZE");
5836 : :
5837 : 1371 : WRITE_INT_FIELD(plan.disabled_nodes);
5838 : 1371 : WRITE_FLOAT_FIELD(plan.startup_cost);
5839 : 1371 : WRITE_FLOAT_FIELD(plan.total_cost);
5840 : 1371 : WRITE_FLOAT_FIELD(plan.plan_rows);
5841 : 1371 : WRITE_INT_FIELD(plan.plan_width);
5842 [ - + ]: 1371 : WRITE_BOOL_FIELD(plan.parallel_aware);
5843 [ + + ]: 1371 : WRITE_BOOL_FIELD(plan.parallel_safe);
5844 [ - + ]: 1371 : WRITE_BOOL_FIELD(plan.async_capable);
5845 : 1371 : WRITE_INT_FIELD(plan.plan_node_id);
5846 : 1371 : WRITE_NODE_FIELD(plan.targetlist);
5847 : 1371 : WRITE_NODE_FIELD(plan.qual);
5848 : 1371 : WRITE_NODE_FIELD(plan.lefttree);
5849 : 1371 : WRITE_NODE_FIELD(plan.righttree);
5850 : 1371 : WRITE_NODE_FIELD(plan.initPlan);
5851 : 1371 : WRITE_BITMAPSET_FIELD(plan.extParam);
5852 : 1371 : WRITE_BITMAPSET_FIELD(plan.allParam);
5853 : 1371 : WRITE_INT_FIELD(numKeys);
5854 : 1371 : WRITE_OID_ARRAY(hashOperators, node->numKeys);
5855 : 1371 : WRITE_OID_ARRAY(collations, node->numKeys);
5856 : 1371 : WRITE_NODE_FIELD(param_exprs);
5857 [ + + ]: 1371 : WRITE_BOOL_FIELD(singlerow);
5858 [ + + ]: 1371 : WRITE_BOOL_FIELD(binary_mode);
5859 : 1371 : WRITE_UINT_FIELD(est_entries);
5860 : 1371 : WRITE_BITMAPSET_FIELD(keyparamids);
5861 : 1371 : WRITE_FLOAT_FIELD(est_calls);
5862 : 1371 : WRITE_FLOAT_FIELD(est_unique_keys);
5863 : 1371 : WRITE_FLOAT_FIELD(est_hit_ratio);
5864 : 1371 : }
5865 : :
5866 : : static void
5867 : 55210 : _outSort(StringInfo str, const Sort *node)
5868 : : {
5869 : 55210 : WRITE_NODE_TYPE("SORT");
5870 : :
5871 : 55210 : WRITE_INT_FIELD(plan.disabled_nodes);
5872 : 55210 : WRITE_FLOAT_FIELD(plan.startup_cost);
5873 : 55210 : WRITE_FLOAT_FIELD(plan.total_cost);
5874 : 55210 : WRITE_FLOAT_FIELD(plan.plan_rows);
5875 : 55210 : WRITE_INT_FIELD(plan.plan_width);
5876 [ - + ]: 55210 : WRITE_BOOL_FIELD(plan.parallel_aware);
5877 [ + + ]: 55210 : WRITE_BOOL_FIELD(plan.parallel_safe);
5878 [ - + ]: 55210 : WRITE_BOOL_FIELD(plan.async_capable);
5879 : 55210 : WRITE_INT_FIELD(plan.plan_node_id);
5880 : 55210 : WRITE_NODE_FIELD(plan.targetlist);
5881 : 55210 : WRITE_NODE_FIELD(plan.qual);
5882 : 55210 : WRITE_NODE_FIELD(plan.lefttree);
5883 : 55210 : WRITE_NODE_FIELD(plan.righttree);
5884 : 55210 : WRITE_NODE_FIELD(plan.initPlan);
5885 : 55210 : WRITE_BITMAPSET_FIELD(plan.extParam);
5886 : 55210 : WRITE_BITMAPSET_FIELD(plan.allParam);
5887 : 55210 : WRITE_INT_FIELD(numCols);
5888 : 55210 : WRITE_ATTRNUMBER_ARRAY(sortColIdx, node->numCols);
5889 : 55210 : WRITE_OID_ARRAY(sortOperators, node->numCols);
5890 : 55210 : WRITE_OID_ARRAY(collations, node->numCols);
5891 : 55210 : WRITE_BOOL_ARRAY(nullsFirst, node->numCols);
5892 : 55210 : }
5893 : :
5894 : : static void
5895 : 748 : _outIncrementalSort(StringInfo str, const IncrementalSort *node)
5896 : : {
5897 : 748 : WRITE_NODE_TYPE("INCREMENTALSORT");
5898 : :
5899 : 748 : WRITE_INT_FIELD(sort.plan.disabled_nodes);
5900 : 748 : WRITE_FLOAT_FIELD(sort.plan.startup_cost);
5901 : 748 : WRITE_FLOAT_FIELD(sort.plan.total_cost);
5902 : 748 : WRITE_FLOAT_FIELD(sort.plan.plan_rows);
5903 : 748 : WRITE_INT_FIELD(sort.plan.plan_width);
5904 [ - + ]: 748 : WRITE_BOOL_FIELD(sort.plan.parallel_aware);
5905 [ + + ]: 748 : WRITE_BOOL_FIELD(sort.plan.parallel_safe);
5906 [ - + ]: 748 : WRITE_BOOL_FIELD(sort.plan.async_capable);
5907 : 748 : WRITE_INT_FIELD(sort.plan.plan_node_id);
5908 : 748 : WRITE_NODE_FIELD(sort.plan.targetlist);
5909 : 748 : WRITE_NODE_FIELD(sort.plan.qual);
5910 : 748 : WRITE_NODE_FIELD(sort.plan.lefttree);
5911 : 748 : WRITE_NODE_FIELD(sort.plan.righttree);
5912 : 748 : WRITE_NODE_FIELD(sort.plan.initPlan);
5913 : 748 : WRITE_BITMAPSET_FIELD(sort.plan.extParam);
5914 : 748 : WRITE_BITMAPSET_FIELD(sort.plan.allParam);
5915 : 748 : WRITE_INT_FIELD(sort.numCols);
5916 : 748 : WRITE_ATTRNUMBER_ARRAY(sort.sortColIdx, node->sort.numCols);
5917 : 748 : WRITE_OID_ARRAY(sort.sortOperators, node->sort.numCols);
5918 : 748 : WRITE_OID_ARRAY(sort.collations, node->sort.numCols);
5919 : 748 : WRITE_BOOL_ARRAY(sort.nullsFirst, node->sort.numCols);
5920 : 748 : WRITE_INT_FIELD(nPresortedCols);
5921 : 748 : WRITE_FLOAT_FIELD(numGroups);
5922 : 748 : }
5923 : :
5924 : : static void
5925 : 182 : _outGroup(StringInfo str, const Group *node)
5926 : : {
5927 : 182 : WRITE_NODE_TYPE("GROUP");
5928 : :
5929 : 182 : WRITE_INT_FIELD(plan.disabled_nodes);
5930 : 182 : WRITE_FLOAT_FIELD(plan.startup_cost);
5931 : 182 : WRITE_FLOAT_FIELD(plan.total_cost);
5932 : 182 : WRITE_FLOAT_FIELD(plan.plan_rows);
5933 : 182 : WRITE_INT_FIELD(plan.plan_width);
5934 [ - + ]: 182 : WRITE_BOOL_FIELD(plan.parallel_aware);
5935 [ + + ]: 182 : WRITE_BOOL_FIELD(plan.parallel_safe);
5936 [ - + ]: 182 : WRITE_BOOL_FIELD(plan.async_capable);
5937 : 182 : WRITE_INT_FIELD(plan.plan_node_id);
5938 : 182 : WRITE_NODE_FIELD(plan.targetlist);
5939 : 182 : WRITE_NODE_FIELD(plan.qual);
5940 : 182 : WRITE_NODE_FIELD(plan.lefttree);
5941 : 182 : WRITE_NODE_FIELD(plan.righttree);
5942 : 182 : WRITE_NODE_FIELD(plan.initPlan);
5943 : 182 : WRITE_BITMAPSET_FIELD(plan.extParam);
5944 : 182 : WRITE_BITMAPSET_FIELD(plan.allParam);
5945 : 182 : WRITE_INT_FIELD(numCols);
5946 : 182 : WRITE_ATTRNUMBER_ARRAY(grpColIdx, node->numCols);
5947 : 182 : WRITE_OID_ARRAY(grpOperators, node->numCols);
5948 : 182 : WRITE_OID_ARRAY(grpCollations, node->numCols);
5949 : 182 : }
5950 : :
5951 : : static void
5952 : 32794 : _outAgg(StringInfo str, const Agg *node)
5953 : : {
5954 : 32794 : WRITE_NODE_TYPE("AGG");
5955 : :
5956 : 32794 : WRITE_INT_FIELD(plan.disabled_nodes);
5957 : 32794 : WRITE_FLOAT_FIELD(plan.startup_cost);
5958 : 32794 : WRITE_FLOAT_FIELD(plan.total_cost);
5959 : 32794 : WRITE_FLOAT_FIELD(plan.plan_rows);
5960 : 32794 : WRITE_INT_FIELD(plan.plan_width);
5961 [ - + ]: 32794 : WRITE_BOOL_FIELD(plan.parallel_aware);
5962 [ + + ]: 32794 : WRITE_BOOL_FIELD(plan.parallel_safe);
5963 [ - + ]: 32794 : WRITE_BOOL_FIELD(plan.async_capable);
5964 : 32794 : WRITE_INT_FIELD(plan.plan_node_id);
5965 : 32794 : WRITE_NODE_FIELD(plan.targetlist);
5966 : 32794 : WRITE_NODE_FIELD(plan.qual);
5967 : 32794 : WRITE_NODE_FIELD(plan.lefttree);
5968 : 32794 : WRITE_NODE_FIELD(plan.righttree);
5969 : 32794 : WRITE_NODE_FIELD(plan.initPlan);
5970 : 32794 : WRITE_BITMAPSET_FIELD(plan.extParam);
5971 : 32794 : WRITE_BITMAPSET_FIELD(plan.allParam);
5972 : 32794 : WRITE_ENUM_FIELD(aggstrategy, AggStrategy);
5973 : 32794 : WRITE_ENUM_FIELD(aggsplit, AggSplit);
5974 : 32794 : WRITE_INT_FIELD(numCols);
5975 : 32794 : WRITE_ATTRNUMBER_ARRAY(grpColIdx, node->numCols);
5976 : 32794 : WRITE_OID_ARRAY(grpOperators, node->numCols);
5977 : 32794 : WRITE_OID_ARRAY(grpCollations, node->numCols);
5978 : 32794 : WRITE_FLOAT_FIELD(numGroups);
5979 : 32794 : WRITE_UINT64_FIELD(transitionSpace);
5980 : 32794 : WRITE_BITMAPSET_FIELD(aggParams);
5981 : 32794 : WRITE_NODE_FIELD(groupingSets);
5982 : 32794 : WRITE_NODE_FIELD(chain);
5983 : 32794 : }
5984 : :
5985 : : static void
5986 : 2007 : _outWindowAgg(StringInfo str, const WindowAgg *node)
5987 : : {
5988 : 2007 : WRITE_NODE_TYPE("WINDOWAGG");
5989 : :
5990 : 2007 : WRITE_INT_FIELD(plan.disabled_nodes);
5991 : 2007 : WRITE_FLOAT_FIELD(plan.startup_cost);
5992 : 2007 : WRITE_FLOAT_FIELD(plan.total_cost);
5993 : 2007 : WRITE_FLOAT_FIELD(plan.plan_rows);
5994 : 2007 : WRITE_INT_FIELD(plan.plan_width);
5995 [ - + ]: 2007 : WRITE_BOOL_FIELD(plan.parallel_aware);
5996 [ - + ]: 2007 : WRITE_BOOL_FIELD(plan.parallel_safe);
5997 [ - + ]: 2007 : WRITE_BOOL_FIELD(plan.async_capable);
5998 : 2007 : WRITE_INT_FIELD(plan.plan_node_id);
5999 : 2007 : WRITE_NODE_FIELD(plan.targetlist);
6000 : 2007 : WRITE_NODE_FIELD(plan.qual);
6001 : 2007 : WRITE_NODE_FIELD(plan.lefttree);
6002 : 2007 : WRITE_NODE_FIELD(plan.righttree);
6003 : 2007 : WRITE_NODE_FIELD(plan.initPlan);
6004 : 2007 : WRITE_BITMAPSET_FIELD(plan.extParam);
6005 : 2007 : WRITE_BITMAPSET_FIELD(plan.allParam);
6006 : 2007 : WRITE_STRING_FIELD(winname);
6007 : 2007 : WRITE_UINT_FIELD(winref);
6008 : 2007 : WRITE_INT_FIELD(partNumCols);
6009 : 2007 : WRITE_ATTRNUMBER_ARRAY(partColIdx, node->partNumCols);
6010 : 2007 : WRITE_OID_ARRAY(partOperators, node->partNumCols);
6011 : 2007 : WRITE_OID_ARRAY(partCollations, node->partNumCols);
6012 : 2007 : WRITE_INT_FIELD(ordNumCols);
6013 : 2007 : WRITE_ATTRNUMBER_ARRAY(ordColIdx, node->ordNumCols);
6014 : 2007 : WRITE_OID_ARRAY(ordOperators, node->ordNumCols);
6015 : 2007 : WRITE_OID_ARRAY(ordCollations, node->ordNumCols);
6016 : 2007 : WRITE_INT_FIELD(frameOptions);
6017 : 2007 : WRITE_NODE_FIELD(startOffset);
6018 : 2007 : WRITE_NODE_FIELD(endOffset);
6019 : 2007 : WRITE_NODE_FIELD(runCondition);
6020 : 2007 : WRITE_NODE_FIELD(runConditionOrig);
6021 : 2007 : WRITE_OID_FIELD(startInRangeFunc);
6022 : 2007 : WRITE_OID_FIELD(endInRangeFunc);
6023 : 2007 : WRITE_OID_FIELD(inRangeColl);
6024 [ + + ]: 2007 : WRITE_BOOL_FIELD(inRangeAsc);
6025 [ + + ]: 2007 : WRITE_BOOL_FIELD(inRangeNullsFirst);
6026 [ + + ]: 2007 : WRITE_BOOL_FIELD(topWindow);
6027 : 2007 : }
6028 : :
6029 : : static void
6030 : 3547 : _outUnique(StringInfo str, const Unique *node)
6031 : : {
6032 : 3547 : WRITE_NODE_TYPE("UNIQUE");
6033 : :
6034 : 3547 : WRITE_INT_FIELD(plan.disabled_nodes);
6035 : 3547 : WRITE_FLOAT_FIELD(plan.startup_cost);
6036 : 3547 : WRITE_FLOAT_FIELD(plan.total_cost);
6037 : 3547 : WRITE_FLOAT_FIELD(plan.plan_rows);
6038 : 3547 : WRITE_INT_FIELD(plan.plan_width);
6039 [ - + ]: 3547 : WRITE_BOOL_FIELD(plan.parallel_aware);
6040 [ + + ]: 3547 : WRITE_BOOL_FIELD(plan.parallel_safe);
6041 [ - + ]: 3547 : WRITE_BOOL_FIELD(plan.async_capable);
6042 : 3547 : WRITE_INT_FIELD(plan.plan_node_id);
6043 : 3547 : WRITE_NODE_FIELD(plan.targetlist);
6044 : 3547 : WRITE_NODE_FIELD(plan.qual);
6045 : 3547 : WRITE_NODE_FIELD(plan.lefttree);
6046 : 3547 : WRITE_NODE_FIELD(plan.righttree);
6047 : 3547 : WRITE_NODE_FIELD(plan.initPlan);
6048 : 3547 : WRITE_BITMAPSET_FIELD(plan.extParam);
6049 : 3547 : WRITE_BITMAPSET_FIELD(plan.allParam);
6050 : 3547 : WRITE_INT_FIELD(numCols);
6051 : 3547 : WRITE_ATTRNUMBER_ARRAY(uniqColIdx, node->numCols);
6052 : 3547 : WRITE_OID_ARRAY(uniqOperators, node->numCols);
6053 : 3547 : WRITE_OID_ARRAY(uniqCollations, node->numCols);
6054 : 3547 : }
6055 : :
6056 : : static void
6057 : 770 : _outGather(StringInfo str, const Gather *node)
6058 : : {
6059 : 770 : WRITE_NODE_TYPE("GATHER");
6060 : :
6061 : 770 : WRITE_INT_FIELD(plan.disabled_nodes);
6062 : 770 : WRITE_FLOAT_FIELD(plan.startup_cost);
6063 : 770 : WRITE_FLOAT_FIELD(plan.total_cost);
6064 : 770 : WRITE_FLOAT_FIELD(plan.plan_rows);
6065 : 770 : WRITE_INT_FIELD(plan.plan_width);
6066 [ - + ]: 770 : WRITE_BOOL_FIELD(plan.parallel_aware);
6067 [ - + ]: 770 : WRITE_BOOL_FIELD(plan.parallel_safe);
6068 [ - + ]: 770 : WRITE_BOOL_FIELD(plan.async_capable);
6069 : 770 : WRITE_INT_FIELD(plan.plan_node_id);
6070 : 770 : WRITE_NODE_FIELD(plan.targetlist);
6071 : 770 : WRITE_NODE_FIELD(plan.qual);
6072 : 770 : WRITE_NODE_FIELD(plan.lefttree);
6073 : 770 : WRITE_NODE_FIELD(plan.righttree);
6074 : 770 : WRITE_NODE_FIELD(plan.initPlan);
6075 : 770 : WRITE_BITMAPSET_FIELD(plan.extParam);
6076 : 770 : WRITE_BITMAPSET_FIELD(plan.allParam);
6077 : 770 : WRITE_INT_FIELD(num_workers);
6078 : 770 : WRITE_INT_FIELD(rescan_param);
6079 [ + + ]: 770 : WRITE_BOOL_FIELD(single_copy);
6080 [ - + ]: 770 : WRITE_BOOL_FIELD(invisible);
6081 : 770 : WRITE_BITMAPSET_FIELD(initParam);
6082 : 770 : }
6083 : :
6084 : : static void
6085 : 260 : _outGatherMerge(StringInfo str, const GatherMerge *node)
6086 : : {
6087 : 260 : WRITE_NODE_TYPE("GATHERMERGE");
6088 : :
6089 : 260 : WRITE_INT_FIELD(plan.disabled_nodes);
6090 : 260 : WRITE_FLOAT_FIELD(plan.startup_cost);
6091 : 260 : WRITE_FLOAT_FIELD(plan.total_cost);
6092 : 260 : WRITE_FLOAT_FIELD(plan.plan_rows);
6093 : 260 : WRITE_INT_FIELD(plan.plan_width);
6094 [ - + ]: 260 : WRITE_BOOL_FIELD(plan.parallel_aware);
6095 [ - + ]: 260 : WRITE_BOOL_FIELD(plan.parallel_safe);
6096 [ - + ]: 260 : WRITE_BOOL_FIELD(plan.async_capable);
6097 : 260 : WRITE_INT_FIELD(plan.plan_node_id);
6098 : 260 : WRITE_NODE_FIELD(plan.targetlist);
6099 : 260 : WRITE_NODE_FIELD(plan.qual);
6100 : 260 : WRITE_NODE_FIELD(plan.lefttree);
6101 : 260 : WRITE_NODE_FIELD(plan.righttree);
6102 : 260 : WRITE_NODE_FIELD(plan.initPlan);
6103 : 260 : WRITE_BITMAPSET_FIELD(plan.extParam);
6104 : 260 : WRITE_BITMAPSET_FIELD(plan.allParam);
6105 : 260 : WRITE_INT_FIELD(num_workers);
6106 : 260 : WRITE_INT_FIELD(rescan_param);
6107 : 260 : WRITE_INT_FIELD(numCols);
6108 : 260 : WRITE_ATTRNUMBER_ARRAY(sortColIdx, node->numCols);
6109 : 260 : WRITE_OID_ARRAY(sortOperators, node->numCols);
6110 : 260 : WRITE_OID_ARRAY(collations, node->numCols);
6111 : 260 : WRITE_BOOL_ARRAY(nullsFirst, node->numCols);
6112 : 260 : WRITE_BITMAPSET_FIELD(initParam);
6113 : 260 : }
6114 : :
6115 : : static void
6116 : 28916 : _outHash(StringInfo str, const Hash *node)
6117 : : {
6118 : 28916 : WRITE_NODE_TYPE("HASH");
6119 : :
6120 : 28916 : WRITE_INT_FIELD(plan.disabled_nodes);
6121 : 28916 : WRITE_FLOAT_FIELD(plan.startup_cost);
6122 : 28916 : WRITE_FLOAT_FIELD(plan.total_cost);
6123 : 28916 : WRITE_FLOAT_FIELD(plan.plan_rows);
6124 : 28916 : WRITE_INT_FIELD(plan.plan_width);
6125 [ + + ]: 28916 : WRITE_BOOL_FIELD(plan.parallel_aware);
6126 [ + + ]: 28916 : WRITE_BOOL_FIELD(plan.parallel_safe);
6127 [ - + ]: 28916 : WRITE_BOOL_FIELD(plan.async_capable);
6128 : 28916 : WRITE_INT_FIELD(plan.plan_node_id);
6129 : 28916 : WRITE_NODE_FIELD(plan.targetlist);
6130 : 28916 : WRITE_NODE_FIELD(plan.qual);
6131 : 28916 : WRITE_NODE_FIELD(plan.lefttree);
6132 : 28916 : WRITE_NODE_FIELD(plan.righttree);
6133 : 28916 : WRITE_NODE_FIELD(plan.initPlan);
6134 : 28916 : WRITE_BITMAPSET_FIELD(plan.extParam);
6135 : 28916 : WRITE_BITMAPSET_FIELD(plan.allParam);
6136 : 28916 : WRITE_NODE_FIELD(hashkeys);
6137 : 28916 : WRITE_OID_FIELD(skewTable);
6138 : 28916 : WRITE_INT_FIELD(skewColumn);
6139 [ + + ]: 28916 : WRITE_BOOL_FIELD(skewInherit);
6140 : 28916 : WRITE_FLOAT_FIELD(rows_total);
6141 : 28916 : }
6142 : :
6143 : : static void
6144 : 515 : _outSetOp(StringInfo str, const SetOp *node)
6145 : : {
6146 : 515 : WRITE_NODE_TYPE("SETOP");
6147 : :
6148 : 515 : WRITE_INT_FIELD(plan.disabled_nodes);
6149 : 515 : WRITE_FLOAT_FIELD(plan.startup_cost);
6150 : 515 : WRITE_FLOAT_FIELD(plan.total_cost);
6151 : 515 : WRITE_FLOAT_FIELD(plan.plan_rows);
6152 : 515 : WRITE_INT_FIELD(plan.plan_width);
6153 [ - + ]: 515 : WRITE_BOOL_FIELD(plan.parallel_aware);
6154 [ - + ]: 515 : WRITE_BOOL_FIELD(plan.parallel_safe);
6155 [ - + ]: 515 : WRITE_BOOL_FIELD(plan.async_capable);
6156 : 515 : WRITE_INT_FIELD(plan.plan_node_id);
6157 : 515 : WRITE_NODE_FIELD(plan.targetlist);
6158 : 515 : WRITE_NODE_FIELD(plan.qual);
6159 : 515 : WRITE_NODE_FIELD(plan.lefttree);
6160 : 515 : WRITE_NODE_FIELD(plan.righttree);
6161 : 515 : WRITE_NODE_FIELD(plan.initPlan);
6162 : 515 : WRITE_BITMAPSET_FIELD(plan.extParam);
6163 : 515 : WRITE_BITMAPSET_FIELD(plan.allParam);
6164 : 515 : WRITE_ENUM_FIELD(cmd, SetOpCmd);
6165 : 515 : WRITE_ENUM_FIELD(strategy, SetOpStrategy);
6166 : 515 : WRITE_INT_FIELD(numCols);
6167 : 515 : WRITE_ATTRNUMBER_ARRAY(cmpColIdx, node->numCols);
6168 : 515 : WRITE_OID_ARRAY(cmpOperators, node->numCols);
6169 : 515 : WRITE_OID_ARRAY(cmpCollations, node->numCols);
6170 : 515 : WRITE_BOOL_ARRAY(cmpNullsFirst, node->numCols);
6171 : 515 : WRITE_FLOAT_FIELD(numGroups);
6172 : 515 : }
6173 : :
6174 : : static void
6175 : 6081 : _outLockRows(StringInfo str, const LockRows *node)
6176 : : {
6177 : 6081 : WRITE_NODE_TYPE("LOCKROWS");
6178 : :
6179 : 6081 : WRITE_INT_FIELD(plan.disabled_nodes);
6180 : 6081 : WRITE_FLOAT_FIELD(plan.startup_cost);
6181 : 6081 : WRITE_FLOAT_FIELD(plan.total_cost);
6182 : 6081 : WRITE_FLOAT_FIELD(plan.plan_rows);
6183 : 6081 : WRITE_INT_FIELD(plan.plan_width);
6184 [ - + ]: 6081 : WRITE_BOOL_FIELD(plan.parallel_aware);
6185 [ - + ]: 6081 : WRITE_BOOL_FIELD(plan.parallel_safe);
6186 [ - + ]: 6081 : WRITE_BOOL_FIELD(plan.async_capable);
6187 : 6081 : WRITE_INT_FIELD(plan.plan_node_id);
6188 : 6081 : WRITE_NODE_FIELD(plan.targetlist);
6189 : 6081 : WRITE_NODE_FIELD(plan.qual);
6190 : 6081 : WRITE_NODE_FIELD(plan.lefttree);
6191 : 6081 : WRITE_NODE_FIELD(plan.righttree);
6192 : 6081 : WRITE_NODE_FIELD(plan.initPlan);
6193 : 6081 : WRITE_BITMAPSET_FIELD(plan.extParam);
6194 : 6081 : WRITE_BITMAPSET_FIELD(plan.allParam);
6195 : 6081 : WRITE_NODE_FIELD(rowMarks);
6196 : 6081 : WRITE_INT_FIELD(epqParam);
6197 : 6081 : }
6198 : :
6199 : : static void
6200 : 3145 : _outLimit(StringInfo str, const Limit *node)
6201 : : {
6202 : 3145 : WRITE_NODE_TYPE("LIMIT");
6203 : :
6204 : 3145 : WRITE_INT_FIELD(plan.disabled_nodes);
6205 : 3145 : WRITE_FLOAT_FIELD(plan.startup_cost);
6206 : 3145 : WRITE_FLOAT_FIELD(plan.total_cost);
6207 : 3145 : WRITE_FLOAT_FIELD(plan.plan_rows);
6208 : 3145 : WRITE_INT_FIELD(plan.plan_width);
6209 [ - + ]: 3145 : WRITE_BOOL_FIELD(plan.parallel_aware);
6210 [ + + ]: 3145 : WRITE_BOOL_FIELD(plan.parallel_safe);
6211 [ - + ]: 3145 : WRITE_BOOL_FIELD(plan.async_capable);
6212 : 3145 : WRITE_INT_FIELD(plan.plan_node_id);
6213 : 3145 : WRITE_NODE_FIELD(plan.targetlist);
6214 : 3145 : WRITE_NODE_FIELD(plan.qual);
6215 : 3145 : WRITE_NODE_FIELD(plan.lefttree);
6216 : 3145 : WRITE_NODE_FIELD(plan.righttree);
6217 : 3145 : WRITE_NODE_FIELD(plan.initPlan);
6218 : 3145 : WRITE_BITMAPSET_FIELD(plan.extParam);
6219 : 3145 : WRITE_BITMAPSET_FIELD(plan.allParam);
6220 : 3145 : WRITE_NODE_FIELD(limitOffset);
6221 : 3145 : WRITE_NODE_FIELD(limitCount);
6222 : 3145 : WRITE_ENUM_FIELD(limitOption, LimitOption);
6223 : 3145 : WRITE_INT_FIELD(uniqNumCols);
6224 : 3145 : WRITE_ATTRNUMBER_ARRAY(uniqColIdx, node->uniqNumCols);
6225 : 3145 : WRITE_OID_ARRAY(uniqOperators, node->uniqNumCols);
6226 : 3145 : WRITE_OID_ARRAY(uniqCollations, node->uniqNumCols);
6227 : 3145 : }
6228 : :
6229 : : static void
6230 : 19148 : _outPlanRowMark(StringInfo str, const PlanRowMark *node)
6231 : : {
6232 : 19148 : WRITE_NODE_TYPE("PLANROWMARK");
6233 : :
6234 : 19148 : WRITE_UINT_FIELD(rti);
6235 : 19148 : WRITE_UINT_FIELD(prti);
6236 : 19148 : WRITE_UINT_FIELD(rowmarkId);
6237 : 19148 : WRITE_ENUM_FIELD(markType, RowMarkType);
6238 : 19148 : WRITE_INT_FIELD(allMarkTypes);
6239 : 19148 : WRITE_ENUM_FIELD(strength, LockClauseStrength);
6240 : 19148 : WRITE_ENUM_FIELD(waitPolicy, LockWaitPolicy);
6241 [ + + ]: 19148 : WRITE_BOOL_FIELD(isParent);
6242 : 19148 : }
6243 : :
6244 : : static void
6245 : 430 : _outPartitionPruneInfo(StringInfo str, const PartitionPruneInfo *node)
6246 : : {
6247 : 430 : WRITE_NODE_TYPE("PARTITIONPRUNEINFO");
6248 : :
6249 : 430 : WRITE_BITMAPSET_FIELD(relids);
6250 : 430 : WRITE_NODE_FIELD(prune_infos);
6251 : 430 : WRITE_BITMAPSET_FIELD(other_subplans);
6252 : 430 : }
6253 : :
6254 : : static void
6255 : 831 : _outPartitionedRelPruneInfo(StringInfo str, const PartitionedRelPruneInfo *node)
6256 : : {
6257 : 831 : WRITE_NODE_TYPE("PARTITIONEDRELPRUNEINFO");
6258 : :
6259 : 831 : WRITE_UINT_FIELD(rtindex);
6260 : 831 : WRITE_BITMAPSET_FIELD(present_parts);
6261 : 831 : WRITE_INT_FIELD(nparts);
6262 : 831 : WRITE_INT_ARRAY(subplan_map, node->nparts);
6263 : 831 : WRITE_INT_ARRAY(subpart_map, node->nparts);
6264 : 831 : WRITE_INT_ARRAY(leafpart_rti_map, node->nparts);
6265 : 831 : WRITE_OID_ARRAY(relid_map, node->nparts);
6266 : 831 : WRITE_NODE_FIELD(initial_pruning_steps);
6267 : 831 : WRITE_NODE_FIELD(exec_pruning_steps);
6268 : 831 : WRITE_BITMAPSET_FIELD(execparamids);
6269 : 831 : }
6270 : :
6271 : : static void
6272 : 713 : _outPartitionPruneStepOp(StringInfo str, const PartitionPruneStepOp *node)
6273 : : {
6274 : 713 : WRITE_NODE_TYPE("PARTITIONPRUNESTEPOP");
6275 : :
6276 : 713 : WRITE_INT_FIELD(step.step_id);
6277 : 713 : WRITE_INT_FIELD(opstrategy);
6278 : 713 : WRITE_NODE_FIELD(exprs);
6279 : 713 : WRITE_NODE_FIELD(cmpfns);
6280 : 713 : WRITE_BITMAPSET_FIELD(nullkeys);
6281 : 713 : }
6282 : :
6283 : : static void
6284 : 128 : _outPartitionPruneStepCombine(StringInfo str, const PartitionPruneStepCombine *node)
6285 : : {
6286 : 128 : WRITE_NODE_TYPE("PARTITIONPRUNESTEPCOMBINE");
6287 : :
6288 : 128 : WRITE_INT_FIELD(step.step_id);
6289 : 128 : WRITE_ENUM_FIELD(combineOp, PartitionPruneCombineOp);
6290 : 128 : WRITE_NODE_FIELD(source_stepids);
6291 : 128 : }
6292 : :
6293 : : static void
6294 : 36891 : _outPlanInvalItem(StringInfo str, const PlanInvalItem *node)
6295 : : {
6296 : 36891 : WRITE_NODE_TYPE("PLANINVALITEM");
6297 : :
6298 : 36891 : WRITE_INT_FIELD(cacheId);
6299 : 36891 : WRITE_UINT_FIELD(hashValue);
6300 : 36891 : }
6301 : :
6302 : : static void
6303 : 54297 : _outSubPlanRTInfo(StringInfo str, const SubPlanRTInfo *node)
6304 : : {
6305 : 54297 : WRITE_NODE_TYPE("SUBPLANRTINFO");
6306 : :
6307 : 54297 : WRITE_STRING_FIELD(plan_name);
6308 : 54297 : WRITE_UINT_FIELD(rtoffset);
6309 [ + + ]: 54297 : WRITE_BOOL_FIELD(dummy);
6310 : 54297 : }
6311 : :
6312 : : static void
6313 : 16497 : _outElidedNode(StringInfo str, const ElidedNode *node)
6314 : : {
6315 : 16497 : WRITE_NODE_TYPE("ELIDEDNODE");
6316 : :
6317 : 16497 : WRITE_INT_FIELD(plan_node_id);
6318 : 16497 : WRITE_ENUM_FIELD(elided_type, NodeTag);
6319 : 16497 : WRITE_BITMAPSET_FIELD(relids);
6320 : 16497 : }
6321 : :
6322 : : static void
6323 : 0 : _outForeignKeyCacheInfo(StringInfo str, const ForeignKeyCacheInfo *node)
6324 : : {
6325 : 0 : WRITE_NODE_TYPE("FOREIGNKEYCACHEINFO");
6326 : :
6327 : 0 : WRITE_OID_FIELD(conoid);
6328 : 0 : WRITE_OID_FIELD(conrelid);
6329 : 0 : WRITE_OID_FIELD(confrelid);
6330 : 0 : WRITE_INT_FIELD(nkeys);
6331 [ # # ]: 0 : WRITE_BOOL_FIELD(conenforced);
6332 : 0 : WRITE_ATTRNUMBER_ARRAY(conkey, node->nkeys);
6333 : 0 : WRITE_ATTRNUMBER_ARRAY(confkey, node->nkeys);
6334 : 0 : WRITE_OID_ARRAY(conpfeqop, node->nkeys);
6335 : 0 : }
|