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