Line data Source code
1 : /*-------------------------------------------------------------------------
2 : *
3 : * equalfuncs.funcs.c
4 : * Generated node infrastructure code
5 : *
6 : * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
7 : * Portions Copyright (c) 1994, Regents of the University of California
8 : *
9 : * NOTES
10 : * ******************************
11 : * *** DO NOT EDIT THIS FILE! ***
12 : * ******************************
13 : *
14 : * It has been GENERATED by src/backend/nodes/gen_node_support.pl
15 : *
16 : *-------------------------------------------------------------------------
17 : */
18 : #include "access/amapi.h"
19 : #include "access/cmptype.h"
20 : #include "access/sdir.h"
21 : #include "access/tableam.h"
22 : #include "access/tsmapi.h"
23 : #include "commands/event_trigger.h"
24 : #include "commands/trigger.h"
25 : #include "executor/tuptable.h"
26 : #include "foreign/fdwapi.h"
27 : #include "nodes/bitmapset.h"
28 : #include "nodes/execnodes.h"
29 : #include "nodes/extensible.h"
30 : #include "nodes/lockoptions.h"
31 : #include "nodes/miscnodes.h"
32 : #include "nodes/nodes.h"
33 : #include "nodes/parsenodes.h"
34 : #include "nodes/pathnodes.h"
35 : #include "nodes/plannodes.h"
36 : #include "nodes/primnodes.h"
37 : #include "nodes/replnodes.h"
38 : #include "nodes/supportnodes.h"
39 : #include "nodes/value.h"
40 : #include "utils/rel.h"
41 :
42 : static bool
43 3130476 : _equalAlias(const Alias *a, const Alias *b)
44 : {
45 3130476 : COMPARE_STRING_FIELD(aliasname);
46 3130476 : COMPARE_NODE_FIELD(colnames);
47 :
48 3130476 : return true;
49 : }
50 :
51 : static bool
52 1735474 : _equalRangeVar(const RangeVar *a, const RangeVar *b)
53 : {
54 1735474 : COMPARE_STRING_FIELD(catalogname);
55 1735474 : COMPARE_STRING_FIELD(schemaname);
56 1735438 : COMPARE_STRING_FIELD(relname);
57 1734570 : COMPARE_SCALAR_FIELD(inh);
58 1734570 : COMPARE_SCALAR_FIELD(relpersistence);
59 1734570 : COMPARE_NODE_FIELD(alias);
60 : COMPARE_LOCATION_FIELD(location);
61 :
62 1734570 : return true;
63 : }
64 :
65 : static bool
66 1168 : _equalTableFunc(const TableFunc *a, const TableFunc *b)
67 : {
68 1168 : COMPARE_SCALAR_FIELD(functype);
69 1168 : COMPARE_NODE_FIELD(ns_uris);
70 1168 : COMPARE_NODE_FIELD(ns_names);
71 1168 : COMPARE_NODE_FIELD(docexpr);
72 1168 : COMPARE_NODE_FIELD(rowexpr);
73 1168 : COMPARE_NODE_FIELD(colnames);
74 1168 : COMPARE_NODE_FIELD(coltypes);
75 1168 : COMPARE_NODE_FIELD(coltypmods);
76 1168 : COMPARE_NODE_FIELD(colcollations);
77 1168 : COMPARE_NODE_FIELD(colexprs);
78 1168 : COMPARE_NODE_FIELD(coldefexprs);
79 1168 : COMPARE_NODE_FIELD(colvalexprs);
80 1168 : COMPARE_NODE_FIELD(passingvalexprs);
81 1168 : COMPARE_BITMAPSET_FIELD(notnulls);
82 1168 : COMPARE_NODE_FIELD(plan);
83 1168 : COMPARE_SCALAR_FIELD(ordinalitycol);
84 : COMPARE_LOCATION_FIELD(location);
85 :
86 1168 : return true;
87 : }
88 :
89 : static bool
90 7616 : _equalIntoClause(const IntoClause *a, const IntoClause *b)
91 : {
92 7616 : COMPARE_NODE_FIELD(rel);
93 7616 : COMPARE_NODE_FIELD(colNames);
94 7616 : COMPARE_STRING_FIELD(accessMethod);
95 7616 : COMPARE_NODE_FIELD(options);
96 7616 : COMPARE_SCALAR_FIELD(onCommit);
97 7616 : COMPARE_STRING_FIELD(tableSpaceName);
98 7616 : COMPARE_NODE_FIELD(viewQuery);
99 7616 : COMPARE_SCALAR_FIELD(skipData);
100 :
101 7616 : return true;
102 : }
103 :
104 : static bool
105 30406238 : _equalVar(const Var *a, const Var *b)
106 : {
107 30406238 : COMPARE_SCALAR_FIELD(varno);
108 26138124 : COMPARE_SCALAR_FIELD(varattno);
109 24235690 : COMPARE_SCALAR_FIELD(vartype);
110 24235690 : COMPARE_SCALAR_FIELD(vartypmod);
111 24235690 : COMPARE_SCALAR_FIELD(varcollid);
112 24235690 : COMPARE_BITMAPSET_FIELD(varnullingrels);
113 24219280 : COMPARE_SCALAR_FIELD(varlevelsup);
114 24219274 : COMPARE_SCALAR_FIELD(varreturningtype);
115 : COMPARE_LOCATION_FIELD(location);
116 :
117 24219274 : return true;
118 : }
119 :
120 : static bool
121 307806 : _equalParam(const Param *a, const Param *b)
122 : {
123 307806 : COMPARE_SCALAR_FIELD(paramkind);
124 305098 : COMPARE_SCALAR_FIELD(paramid);
125 293110 : COMPARE_SCALAR_FIELD(paramtype);
126 293110 : COMPARE_SCALAR_FIELD(paramtypmod);
127 293110 : COMPARE_SCALAR_FIELD(paramcollid);
128 : COMPARE_LOCATION_FIELD(location);
129 :
130 293110 : return true;
131 : }
132 :
133 : static bool
134 107734 : _equalAggref(const Aggref *a, const Aggref *b)
135 : {
136 107734 : COMPARE_SCALAR_FIELD(aggfnoid);
137 99176 : COMPARE_SCALAR_FIELD(aggtype);
138 98658 : COMPARE_SCALAR_FIELD(aggcollid);
139 98658 : COMPARE_SCALAR_FIELD(inputcollid);
140 98658 : COMPARE_NODE_FIELD(aggargtypes);
141 98658 : COMPARE_NODE_FIELD(aggdirectargs);
142 98658 : COMPARE_NODE_FIELD(args);
143 97052 : COMPARE_NODE_FIELD(aggorder);
144 97052 : COMPARE_NODE_FIELD(aggdistinct);
145 97052 : COMPARE_NODE_FIELD(aggfilter);
146 97034 : COMPARE_SCALAR_FIELD(aggstar);
147 97034 : COMPARE_SCALAR_FIELD(aggvariadic);
148 97034 : COMPARE_SCALAR_FIELD(aggkind);
149 97034 : COMPARE_SCALAR_FIELD(agglevelsup);
150 97034 : COMPARE_SCALAR_FIELD(aggsplit);
151 96998 : COMPARE_SCALAR_FIELD(aggno);
152 96998 : COMPARE_SCALAR_FIELD(aggtransno);
153 : COMPARE_LOCATION_FIELD(location);
154 :
155 96998 : return true;
156 : }
157 :
158 : static bool
159 1556 : _equalGroupingFunc(const GroupingFunc *a, const GroupingFunc *b)
160 : {
161 1556 : COMPARE_NODE_FIELD(args);
162 1556 : COMPARE_SCALAR_FIELD(agglevelsup);
163 : COMPARE_LOCATION_FIELD(location);
164 :
165 1556 : return true;
166 : }
167 :
168 : static bool
169 8820 : _equalWindowFunc(const WindowFunc *a, const WindowFunc *b)
170 : {
171 8820 : COMPARE_SCALAR_FIELD(winfnoid);
172 6930 : COMPARE_SCALAR_FIELD(wintype);
173 6930 : COMPARE_SCALAR_FIELD(wincollid);
174 6930 : COMPARE_SCALAR_FIELD(inputcollid);
175 6930 : COMPARE_NODE_FIELD(args);
176 6864 : COMPARE_NODE_FIELD(aggfilter);
177 6846 : COMPARE_NODE_FIELD(runCondition);
178 6846 : COMPARE_SCALAR_FIELD(winref);
179 6798 : COMPARE_SCALAR_FIELD(winstar);
180 6798 : COMPARE_SCALAR_FIELD(winagg);
181 : COMPARE_LOCATION_FIELD(location);
182 :
183 6798 : return true;
184 : }
185 :
186 : static bool
187 204 : _equalWindowFuncRunCondition(const WindowFuncRunCondition *a, const WindowFuncRunCondition *b)
188 : {
189 204 : COMPARE_SCALAR_FIELD(opno);
190 204 : COMPARE_SCALAR_FIELD(inputcollid);
191 204 : COMPARE_SCALAR_FIELD(wfunc_left);
192 204 : COMPARE_NODE_FIELD(arg);
193 :
194 204 : return true;
195 : }
196 :
197 : static bool
198 720 : _equalMergeSupportFunc(const MergeSupportFunc *a, const MergeSupportFunc *b)
199 : {
200 720 : COMPARE_SCALAR_FIELD(msftype);
201 720 : COMPARE_SCALAR_FIELD(msfcollid);
202 : COMPARE_LOCATION_FIELD(location);
203 :
204 720 : return true;
205 : }
206 :
207 : static bool
208 262522 : _equalSubscriptingRef(const SubscriptingRef *a, const SubscriptingRef *b)
209 : {
210 262522 : COMPARE_SCALAR_FIELD(refcontainertype);
211 262522 : COMPARE_SCALAR_FIELD(refelemtype);
212 262522 : COMPARE_SCALAR_FIELD(refrestype);
213 262522 : COMPARE_SCALAR_FIELD(reftypmod);
214 262522 : COMPARE_SCALAR_FIELD(refcollid);
215 262522 : COMPARE_NODE_FIELD(refupperindexpr);
216 262414 : COMPARE_NODE_FIELD(reflowerindexpr);
217 262414 : COMPARE_NODE_FIELD(refexpr);
218 262168 : COMPARE_NODE_FIELD(refassgnexpr);
219 :
220 262168 : return true;
221 : }
222 :
223 : static bool
224 867824 : _equalFuncExpr(const FuncExpr *a, const FuncExpr *b)
225 : {
226 867824 : COMPARE_SCALAR_FIELD(funcid);
227 865782 : COMPARE_SCALAR_FIELD(funcresulttype);
228 865638 : COMPARE_SCALAR_FIELD(funcretset);
229 865638 : COMPARE_SCALAR_FIELD(funcvariadic);
230 865638 : COMPARE_SCALAR_FIELD(funccollid);
231 865638 : COMPARE_SCALAR_FIELD(inputcollid);
232 865638 : COMPARE_NODE_FIELD(args);
233 : COMPARE_LOCATION_FIELD(location);
234 :
235 863264 : return true;
236 : }
237 :
238 : static bool
239 193168 : _equalNamedArgExpr(const NamedArgExpr *a, const NamedArgExpr *b)
240 : {
241 193168 : COMPARE_NODE_FIELD(arg);
242 193168 : COMPARE_STRING_FIELD(name);
243 193168 : COMPARE_SCALAR_FIELD(argnumber);
244 : COMPARE_LOCATION_FIELD(location);
245 :
246 193168 : return true;
247 : }
248 :
249 : static bool
250 2984434 : _equalOpExpr(const OpExpr *a, const OpExpr *b)
251 : {
252 2984434 : COMPARE_SCALAR_FIELD(opno);
253 2779402 : if (a->opfuncid != b->opfuncid && a->opfuncid != 0 && b->opfuncid != 0)
254 0 : return false;
255 2779402 : COMPARE_SCALAR_FIELD(opresulttype);
256 2779402 : COMPARE_SCALAR_FIELD(opretset);
257 2779402 : COMPARE_SCALAR_FIELD(opcollid);
258 2779402 : COMPARE_SCALAR_FIELD(inputcollid);
259 2779400 : COMPARE_NODE_FIELD(args);
260 : COMPARE_LOCATION_FIELD(location);
261 :
262 2656418 : return true;
263 : }
264 :
265 : static bool
266 1804 : _equalDistinctExpr(const DistinctExpr *a, const DistinctExpr *b)
267 : {
268 1804 : COMPARE_SCALAR_FIELD(opno);
269 1804 : if (a->opfuncid != b->opfuncid && a->opfuncid != 0 && b->opfuncid != 0)
270 0 : return false;
271 1804 : COMPARE_SCALAR_FIELD(opresulttype);
272 1804 : COMPARE_SCALAR_FIELD(opretset);
273 1804 : COMPARE_SCALAR_FIELD(opcollid);
274 1804 : COMPARE_SCALAR_FIELD(inputcollid);
275 1804 : COMPARE_NODE_FIELD(args);
276 : COMPARE_LOCATION_FIELD(location);
277 :
278 1804 : return true;
279 : }
280 :
281 : static bool
282 330 : _equalNullIfExpr(const NullIfExpr *a, const NullIfExpr *b)
283 : {
284 330 : COMPARE_SCALAR_FIELD(opno);
285 330 : if (a->opfuncid != b->opfuncid && a->opfuncid != 0 && b->opfuncid != 0)
286 0 : return false;
287 330 : COMPARE_SCALAR_FIELD(opresulttype);
288 330 : COMPARE_SCALAR_FIELD(opretset);
289 330 : COMPARE_SCALAR_FIELD(opcollid);
290 330 : COMPARE_SCALAR_FIELD(inputcollid);
291 330 : COMPARE_NODE_FIELD(args);
292 : COMPARE_LOCATION_FIELD(location);
293 :
294 330 : return true;
295 : }
296 :
297 : static bool
298 65094 : _equalScalarArrayOpExpr(const ScalarArrayOpExpr *a, const ScalarArrayOpExpr *b)
299 : {
300 65094 : COMPARE_SCALAR_FIELD(opno);
301 64608 : if (a->opfuncid != b->opfuncid && a->opfuncid != 0 && b->opfuncid != 0)
302 0 : return false;
303 64608 : if (a->hashfuncid != b->hashfuncid && a->hashfuncid != 0 && b->hashfuncid != 0)
304 0 : return false;
305 64608 : if (a->negfuncid != b->negfuncid && a->negfuncid != 0 && b->negfuncid != 0)
306 0 : return false;
307 64608 : COMPARE_SCALAR_FIELD(useOr);
308 64608 : COMPARE_SCALAR_FIELD(inputcollid);
309 64608 : COMPARE_NODE_FIELD(args);
310 : COMPARE_LOCATION_FIELD(location);
311 :
312 64536 : return true;
313 : }
314 :
315 : static bool
316 868640 : _equalBoolExpr(const BoolExpr *a, const BoolExpr *b)
317 : {
318 868640 : COMPARE_SCALAR_FIELD(boolop);
319 868640 : COMPARE_NODE_FIELD(args);
320 : COMPARE_LOCATION_FIELD(location);
321 :
322 855860 : return true;
323 : }
324 :
325 : static bool
326 169020 : _equalSubLink(const SubLink *a, const SubLink *b)
327 : {
328 169020 : COMPARE_SCALAR_FIELD(subLinkType);
329 169020 : COMPARE_SCALAR_FIELD(subLinkId);
330 169020 : COMPARE_NODE_FIELD(testexpr);
331 169008 : COMPARE_NODE_FIELD(operName);
332 169008 : COMPARE_NODE_FIELD(subselect);
333 : COMPARE_LOCATION_FIELD(location);
334 :
335 169002 : return true;
336 : }
337 :
338 : static bool
339 6320 : _equalSubPlan(const SubPlan *a, const SubPlan *b)
340 : {
341 6320 : COMPARE_SCALAR_FIELD(subLinkType);
342 6320 : COMPARE_NODE_FIELD(testexpr);
343 6320 : COMPARE_NODE_FIELD(paramIds);
344 6320 : COMPARE_SCALAR_FIELD(plan_id);
345 6152 : COMPARE_STRING_FIELD(plan_name);
346 6152 : COMPARE_SCALAR_FIELD(firstColType);
347 6152 : COMPARE_SCALAR_FIELD(firstColTypmod);
348 6152 : COMPARE_SCALAR_FIELD(firstColCollation);
349 6152 : COMPARE_SCALAR_FIELD(useHashTable);
350 6152 : COMPARE_SCALAR_FIELD(unknownEqFalse);
351 6152 : COMPARE_SCALAR_FIELD(parallel_safe);
352 6152 : COMPARE_NODE_FIELD(setParam);
353 6152 : COMPARE_NODE_FIELD(parParam);
354 6152 : COMPARE_NODE_FIELD(args);
355 6152 : COMPARE_SCALAR_FIELD(startup_cost);
356 6152 : COMPARE_SCALAR_FIELD(per_call_cost);
357 :
358 6152 : return true;
359 : }
360 :
361 : static bool
362 0 : _equalAlternativeSubPlan(const AlternativeSubPlan *a, const AlternativeSubPlan *b)
363 : {
364 0 : COMPARE_NODE_FIELD(subplans);
365 :
366 0 : return true;
367 : }
368 :
369 : static bool
370 10750 : _equalFieldSelect(const FieldSelect *a, const FieldSelect *b)
371 : {
372 10750 : COMPARE_NODE_FIELD(arg);
373 10744 : COMPARE_SCALAR_FIELD(fieldnum);
374 10744 : COMPARE_SCALAR_FIELD(resulttype);
375 10744 : COMPARE_SCALAR_FIELD(resulttypmod);
376 10744 : COMPARE_SCALAR_FIELD(resultcollid);
377 :
378 10744 : return true;
379 : }
380 :
381 : static bool
382 776 : _equalFieldStore(const FieldStore *a, const FieldStore *b)
383 : {
384 776 : COMPARE_NODE_FIELD(arg);
385 776 : COMPARE_NODE_FIELD(newvals);
386 776 : COMPARE_NODE_FIELD(fieldnums);
387 776 : COMPARE_SCALAR_FIELD(resulttype);
388 :
389 776 : return true;
390 : }
391 :
392 : static bool
393 335022 : _equalRelabelType(const RelabelType *a, const RelabelType *b)
394 : {
395 335022 : COMPARE_NODE_FIELD(arg);
396 330884 : COMPARE_SCALAR_FIELD(resulttype);
397 330884 : COMPARE_SCALAR_FIELD(resulttypmod);
398 330884 : COMPARE_SCALAR_FIELD(resultcollid);
399 : COMPARE_LOCATION_FIELD(location);
400 :
401 330884 : return true;
402 : }
403 :
404 : static bool
405 53632 : _equalCoerceViaIO(const CoerceViaIO *a, const CoerceViaIO *b)
406 : {
407 53632 : COMPARE_NODE_FIELD(arg);
408 52538 : COMPARE_SCALAR_FIELD(resulttype);
409 52538 : COMPARE_SCALAR_FIELD(resultcollid);
410 : COMPARE_LOCATION_FIELD(location);
411 :
412 52538 : return true;
413 : }
414 :
415 : static bool
416 10032 : _equalArrayCoerceExpr(const ArrayCoerceExpr *a, const ArrayCoerceExpr *b)
417 : {
418 10032 : COMPARE_NODE_FIELD(arg);
419 10032 : COMPARE_NODE_FIELD(elemexpr);
420 10032 : COMPARE_SCALAR_FIELD(resulttype);
421 10032 : COMPARE_SCALAR_FIELD(resulttypmod);
422 10032 : COMPARE_SCALAR_FIELD(resultcollid);
423 : COMPARE_LOCATION_FIELD(location);
424 :
425 10032 : return true;
426 : }
427 :
428 : static bool
429 132 : _equalConvertRowtypeExpr(const ConvertRowtypeExpr *a, const ConvertRowtypeExpr *b)
430 : {
431 132 : COMPARE_NODE_FIELD(arg);
432 132 : COMPARE_SCALAR_FIELD(resulttype);
433 : COMPARE_LOCATION_FIELD(location);
434 :
435 132 : return true;
436 : }
437 :
438 : static bool
439 17170 : _equalCollateExpr(const CollateExpr *a, const CollateExpr *b)
440 : {
441 17170 : COMPARE_NODE_FIELD(arg);
442 17158 : COMPARE_SCALAR_FIELD(collOid);
443 : COMPARE_LOCATION_FIELD(location);
444 :
445 17158 : return true;
446 : }
447 :
448 : static bool
449 470144 : _equalCaseExpr(const CaseExpr *a, const CaseExpr *b)
450 : {
451 470144 : COMPARE_SCALAR_FIELD(casetype);
452 470144 : COMPARE_SCALAR_FIELD(casecollid);
453 470132 : COMPARE_NODE_FIELD(arg);
454 470096 : COMPARE_NODE_FIELD(args);
455 470020 : COMPARE_NODE_FIELD(defresult);
456 : COMPARE_LOCATION_FIELD(location);
457 :
458 470020 : return true;
459 : }
460 :
461 : static bool
462 1606418 : _equalCaseWhen(const CaseWhen *a, const CaseWhen *b)
463 : {
464 1606418 : COMPARE_NODE_FIELD(expr);
465 1606342 : COMPARE_NODE_FIELD(result);
466 : COMPARE_LOCATION_FIELD(location);
467 :
468 1606342 : return true;
469 : }
470 :
471 : static bool
472 48022 : _equalCaseTestExpr(const CaseTestExpr *a, const CaseTestExpr *b)
473 : {
474 48022 : COMPARE_SCALAR_FIELD(typeId);
475 48022 : COMPARE_SCALAR_FIELD(typeMod);
476 48022 : COMPARE_SCALAR_FIELD(collation);
477 :
478 48022 : return true;
479 : }
480 :
481 : static bool
482 51396 : _equalArrayExpr(const ArrayExpr *a, const ArrayExpr *b)
483 : {
484 51396 : COMPARE_SCALAR_FIELD(array_typeid);
485 51396 : COMPARE_SCALAR_FIELD(array_collid);
486 51396 : COMPARE_SCALAR_FIELD(element_typeid);
487 51396 : COMPARE_NODE_FIELD(elements);
488 51396 : COMPARE_SCALAR_FIELD(multidims);
489 : COMPARE_LOCATION_FIELD(location);
490 :
491 51396 : return true;
492 : }
493 :
494 : static bool
495 22108 : _equalRowExpr(const RowExpr *a, const RowExpr *b)
496 : {
497 22108 : COMPARE_NODE_FIELD(args);
498 22108 : COMPARE_SCALAR_FIELD(row_typeid);
499 22108 : COMPARE_NODE_FIELD(colnames);
500 : COMPARE_LOCATION_FIELD(location);
501 :
502 22108 : return true;
503 : }
504 :
505 : static bool
506 492 : _equalRowCompareExpr(const RowCompareExpr *a, const RowCompareExpr *b)
507 : {
508 492 : COMPARE_SCALAR_FIELD(cmptype);
509 432 : COMPARE_NODE_FIELD(opnos);
510 432 : COMPARE_NODE_FIELD(opfamilies);
511 432 : COMPARE_NODE_FIELD(inputcollids);
512 432 : COMPARE_NODE_FIELD(largs);
513 432 : COMPARE_NODE_FIELD(rargs);
514 :
515 432 : return true;
516 : }
517 :
518 : static bool
519 16118 : _equalCoalesceExpr(const CoalesceExpr *a, const CoalesceExpr *b)
520 : {
521 16118 : COMPARE_SCALAR_FIELD(coalescetype);
522 16086 : COMPARE_SCALAR_FIELD(coalescecollid);
523 16086 : COMPARE_NODE_FIELD(args);
524 : COMPARE_LOCATION_FIELD(location);
525 :
526 15238 : return true;
527 : }
528 :
529 : static bool
530 1094 : _equalMinMaxExpr(const MinMaxExpr *a, const MinMaxExpr *b)
531 : {
532 1094 : COMPARE_SCALAR_FIELD(minmaxtype);
533 1094 : COMPARE_SCALAR_FIELD(minmaxcollid);
534 1094 : COMPARE_SCALAR_FIELD(inputcollid);
535 1094 : COMPARE_SCALAR_FIELD(op);
536 1094 : COMPARE_NODE_FIELD(args);
537 : COMPARE_LOCATION_FIELD(location);
538 :
539 1094 : return true;
540 : }
541 :
542 : static bool
543 14774 : _equalSQLValueFunction(const SQLValueFunction *a, const SQLValueFunction *b)
544 : {
545 14774 : COMPARE_SCALAR_FIELD(op);
546 14714 : COMPARE_SCALAR_FIELD(type);
547 14714 : COMPARE_SCALAR_FIELD(typmod);
548 : COMPARE_LOCATION_FIELD(location);
549 :
550 14714 : return true;
551 : }
552 :
553 : static bool
554 2708 : _equalXmlExpr(const XmlExpr *a, const XmlExpr *b)
555 : {
556 2708 : COMPARE_SCALAR_FIELD(op);
557 2708 : COMPARE_STRING_FIELD(name);
558 2708 : COMPARE_NODE_FIELD(named_args);
559 2708 : COMPARE_NODE_FIELD(arg_names);
560 2708 : COMPARE_NODE_FIELD(args);
561 2708 : COMPARE_SCALAR_FIELD(xmloption);
562 2708 : COMPARE_SCALAR_FIELD(indent);
563 2708 : COMPARE_SCALAR_FIELD(type);
564 2708 : COMPARE_SCALAR_FIELD(typmod);
565 : COMPARE_LOCATION_FIELD(location);
566 :
567 2708 : return true;
568 : }
569 :
570 : static bool
571 28940 : _equalJsonFormat(const JsonFormat *a, const JsonFormat *b)
572 : {
573 28940 : COMPARE_SCALAR_FIELD(format_type);
574 28940 : COMPARE_SCALAR_FIELD(encoding);
575 : COMPARE_LOCATION_FIELD(location);
576 :
577 28940 : return true;
578 : }
579 :
580 : static bool
581 10440 : _equalJsonReturning(const JsonReturning *a, const JsonReturning *b)
582 : {
583 10440 : COMPARE_NODE_FIELD(format);
584 10440 : COMPARE_SCALAR_FIELD(typid);
585 10440 : COMPARE_SCALAR_FIELD(typmod);
586 :
587 10440 : return true;
588 : }
589 :
590 : static bool
591 10444 : _equalJsonValueExpr(const JsonValueExpr *a, const JsonValueExpr *b)
592 : {
593 10444 : COMPARE_NODE_FIELD(raw_expr);
594 10444 : COMPARE_NODE_FIELD(formatted_expr);
595 10444 : COMPARE_NODE_FIELD(format);
596 :
597 10444 : return true;
598 : }
599 :
600 : static bool
601 2684 : _equalJsonConstructorExpr(const JsonConstructorExpr *a, const JsonConstructorExpr *b)
602 : {
603 2684 : COMPARE_SCALAR_FIELD(type);
604 2684 : COMPARE_NODE_FIELD(args);
605 2684 : COMPARE_NODE_FIELD(func);
606 2684 : COMPARE_NODE_FIELD(coercion);
607 2684 : COMPARE_NODE_FIELD(returning);
608 2684 : COMPARE_SCALAR_FIELD(absent_on_null);
609 2684 : COMPARE_SCALAR_FIELD(unique);
610 : COMPARE_LOCATION_FIELD(location);
611 :
612 2684 : return true;
613 : }
614 :
615 : static bool
616 1388 : _equalJsonIsPredicate(const JsonIsPredicate *a, const JsonIsPredicate *b)
617 : {
618 1388 : COMPARE_NODE_FIELD(expr);
619 1388 : COMPARE_NODE_FIELD(format);
620 1388 : COMPARE_SCALAR_FIELD(item_type);
621 1388 : COMPARE_SCALAR_FIELD(unique_keys);
622 : COMPARE_LOCATION_FIELD(location);
623 :
624 1388 : return true;
625 : }
626 :
627 : static bool
628 10572 : _equalJsonBehavior(const JsonBehavior *a, const JsonBehavior *b)
629 : {
630 10572 : COMPARE_SCALAR_FIELD(btype);
631 10572 : COMPARE_NODE_FIELD(expr);
632 10572 : COMPARE_SCALAR_FIELD(coerce);
633 : COMPARE_LOCATION_FIELD(location);
634 :
635 10572 : return true;
636 : }
637 :
638 : static bool
639 4784 : _equalJsonExpr(const JsonExpr *a, const JsonExpr *b)
640 : {
641 4784 : COMPARE_SCALAR_FIELD(op);
642 4784 : COMPARE_STRING_FIELD(column_name);
643 4784 : COMPARE_NODE_FIELD(formatted_expr);
644 4784 : COMPARE_NODE_FIELD(format);
645 4784 : COMPARE_NODE_FIELD(path_spec);
646 4784 : COMPARE_NODE_FIELD(returning);
647 4784 : COMPARE_NODE_FIELD(passing_names);
648 4784 : COMPARE_NODE_FIELD(passing_values);
649 4784 : COMPARE_NODE_FIELD(on_empty);
650 4784 : COMPARE_NODE_FIELD(on_error);
651 4784 : COMPARE_SCALAR_FIELD(use_io_coercion);
652 4784 : COMPARE_SCALAR_FIELD(use_json_coercion);
653 4784 : COMPARE_SCALAR_FIELD(wrapper);
654 4784 : COMPARE_SCALAR_FIELD(omit_quotes);
655 4784 : COMPARE_SCALAR_FIELD(collation);
656 : COMPARE_LOCATION_FIELD(location);
657 :
658 4784 : return true;
659 : }
660 :
661 : static bool
662 1124 : _equalJsonTablePath(const JsonTablePath *a, const JsonTablePath *b)
663 : {
664 1124 : COMPARE_NODE_FIELD(value);
665 1124 : COMPARE_STRING_FIELD(name);
666 :
667 1124 : return true;
668 : }
669 :
670 : static bool
671 1124 : _equalJsonTablePathScan(const JsonTablePathScan *a, const JsonTablePathScan *b)
672 : {
673 1124 : COMPARE_NODE_FIELD(path);
674 1124 : COMPARE_SCALAR_FIELD(errorOnError);
675 1124 : COMPARE_NODE_FIELD(child);
676 1124 : COMPARE_SCALAR_FIELD(colMin);
677 1124 : COMPARE_SCALAR_FIELD(colMax);
678 :
679 1124 : return true;
680 : }
681 :
682 : static bool
683 120 : _equalJsonTableSiblingJoin(const JsonTableSiblingJoin *a, const JsonTableSiblingJoin *b)
684 : {
685 120 : COMPARE_NODE_FIELD(lplan);
686 120 : COMPARE_NODE_FIELD(rplan);
687 :
688 120 : return true;
689 : }
690 :
691 : static bool
692 69670 : _equalNullTest(const NullTest *a, const NullTest *b)
693 : {
694 69670 : COMPARE_NODE_FIELD(arg);
695 68362 : COMPARE_SCALAR_FIELD(nulltesttype);
696 68262 : COMPARE_SCALAR_FIELD(argisrow);
697 : COMPARE_LOCATION_FIELD(location);
698 :
699 68262 : return true;
700 : }
701 :
702 : static bool
703 4012 : _equalBooleanTest(const BooleanTest *a, const BooleanTest *b)
704 : {
705 4012 : COMPARE_NODE_FIELD(arg);
706 4012 : COMPARE_SCALAR_FIELD(booltesttype);
707 : COMPARE_LOCATION_FIELD(location);
708 :
709 3988 : return true;
710 : }
711 :
712 : static bool
713 5652 : _equalMergeAction(const MergeAction *a, const MergeAction *b)
714 : {
715 5652 : COMPARE_SCALAR_FIELD(matchKind);
716 5652 : COMPARE_SCALAR_FIELD(commandType);
717 5652 : COMPARE_SCALAR_FIELD(override);
718 5652 : COMPARE_NODE_FIELD(qual);
719 5652 : COMPARE_NODE_FIELD(targetList);
720 5652 : COMPARE_NODE_FIELD(updateColnos);
721 :
722 5652 : return true;
723 : }
724 :
725 : static bool
726 68916 : _equalCoerceToDomain(const CoerceToDomain *a, const CoerceToDomain *b)
727 : {
728 68916 : COMPARE_NODE_FIELD(arg);
729 68230 : COMPARE_SCALAR_FIELD(resulttype);
730 68230 : COMPARE_SCALAR_FIELD(resulttypmod);
731 68230 : COMPARE_SCALAR_FIELD(resultcollid);
732 : COMPARE_LOCATION_FIELD(location);
733 :
734 68230 : return true;
735 : }
736 :
737 : static bool
738 0 : _equalCoerceToDomainValue(const CoerceToDomainValue *a, const CoerceToDomainValue *b)
739 : {
740 0 : COMPARE_SCALAR_FIELD(typeId);
741 0 : COMPARE_SCALAR_FIELD(typeMod);
742 0 : COMPARE_SCALAR_FIELD(collation);
743 : COMPARE_LOCATION_FIELD(location);
744 :
745 0 : return true;
746 : }
747 :
748 : static bool
749 2876 : _equalSetToDefault(const SetToDefault *a, const SetToDefault *b)
750 : {
751 2876 : COMPARE_SCALAR_FIELD(typeId);
752 2876 : COMPARE_SCALAR_FIELD(typeMod);
753 2876 : COMPARE_SCALAR_FIELD(collation);
754 : COMPARE_LOCATION_FIELD(location);
755 :
756 2876 : return true;
757 : }
758 :
759 : static bool
760 992 : _equalCurrentOfExpr(const CurrentOfExpr *a, const CurrentOfExpr *b)
761 : {
762 992 : COMPARE_SCALAR_FIELD(cvarno);
763 992 : COMPARE_STRING_FIELD(cursor_name);
764 992 : COMPARE_SCALAR_FIELD(cursor_param);
765 :
766 992 : return true;
767 : }
768 :
769 : static bool
770 820 : _equalNextValueExpr(const NextValueExpr *a, const NextValueExpr *b)
771 : {
772 820 : COMPARE_SCALAR_FIELD(seqid);
773 820 : COMPARE_SCALAR_FIELD(typeId);
774 :
775 820 : return true;
776 : }
777 :
778 : static bool
779 3696 : _equalInferenceElem(const InferenceElem *a, const InferenceElem *b)
780 : {
781 3696 : COMPARE_NODE_FIELD(expr);
782 3696 : COMPARE_SCALAR_FIELD(infercollid);
783 3696 : COMPARE_SCALAR_FIELD(inferopclass);
784 :
785 3696 : return true;
786 : }
787 :
788 : static bool
789 804 : _equalReturningExpr(const ReturningExpr *a, const ReturningExpr *b)
790 : {
791 804 : COMPARE_SCALAR_FIELD(retlevelsup);
792 804 : COMPARE_SCALAR_FIELD(retold);
793 804 : COMPARE_NODE_FIELD(retexpr);
794 :
795 804 : return true;
796 : }
797 :
798 : static bool
799 3866812 : _equalTargetEntry(const TargetEntry *a, const TargetEntry *b)
800 : {
801 3866812 : COMPARE_NODE_FIELD(expr);
802 3862874 : COMPARE_SCALAR_FIELD(resno);
803 3862874 : COMPARE_STRING_FIELD(resname);
804 3862874 : COMPARE_SCALAR_FIELD(ressortgroupref);
805 3862830 : COMPARE_SCALAR_FIELD(resorigtbl);
806 3862830 : COMPARE_SCALAR_FIELD(resorigcol);
807 3862830 : COMPARE_SCALAR_FIELD(resjunk);
808 :
809 3862830 : return true;
810 : }
811 :
812 : static bool
813 1152854 : _equalRangeTblRef(const RangeTblRef *a, const RangeTblRef *b)
814 : {
815 1152854 : COMPARE_SCALAR_FIELD(rtindex);
816 :
817 1152854 : return true;
818 : }
819 :
820 : static bool
821 548332 : _equalJoinExpr(const JoinExpr *a, const JoinExpr *b)
822 : {
823 548332 : COMPARE_SCALAR_FIELD(jointype);
824 548332 : COMPARE_SCALAR_FIELD(isNatural);
825 548332 : COMPARE_NODE_FIELD(larg);
826 548332 : COMPARE_NODE_FIELD(rarg);
827 548332 : COMPARE_NODE_FIELD(usingClause);
828 548332 : COMPARE_NODE_FIELD(join_using_alias);
829 548332 : COMPARE_NODE_FIELD(quals);
830 548332 : COMPARE_NODE_FIELD(alias);
831 548332 : COMPARE_SCALAR_FIELD(rtindex);
832 :
833 548332 : return true;
834 : }
835 :
836 : static bool
837 1181516 : _equalFromExpr(const FromExpr *a, const FromExpr *b)
838 : {
839 1181516 : COMPARE_NODE_FIELD(fromlist);
840 1181516 : COMPARE_NODE_FIELD(quals);
841 :
842 1181444 : return true;
843 : }
844 :
845 : static bool
846 3604 : _equalOnConflictExpr(const OnConflictExpr *a, const OnConflictExpr *b)
847 : {
848 3604 : COMPARE_SCALAR_FIELD(action);
849 3604 : COMPARE_NODE_FIELD(arbiterElems);
850 3604 : COMPARE_NODE_FIELD(arbiterWhere);
851 3604 : COMPARE_SCALAR_FIELD(constraint);
852 3604 : COMPARE_NODE_FIELD(onConflictSet);
853 3604 : COMPARE_NODE_FIELD(onConflictWhere);
854 3604 : COMPARE_SCALAR_FIELD(exclRelIndex);
855 3604 : COMPARE_NODE_FIELD(exclRelTlist);
856 :
857 3604 : return true;
858 : }
859 :
860 : static bool
861 1892080 : _equalQuery(const Query *a, const Query *b)
862 : {
863 1892080 : COMPARE_SCALAR_FIELD(commandType);
864 1892080 : COMPARE_SCALAR_FIELD(querySource);
865 1892080 : COMPARE_SCALAR_FIELD(canSetTag);
866 1892080 : COMPARE_NODE_FIELD(utilityStmt);
867 1892080 : COMPARE_SCALAR_FIELD(resultRelation);
868 1892080 : COMPARE_SCALAR_FIELD(hasAggs);
869 1892080 : COMPARE_SCALAR_FIELD(hasWindowFuncs);
870 1892080 : COMPARE_SCALAR_FIELD(hasTargetSRFs);
871 1892080 : COMPARE_SCALAR_FIELD(hasSubLinks);
872 1892074 : COMPARE_SCALAR_FIELD(hasDistinctOn);
873 1892074 : COMPARE_SCALAR_FIELD(hasRecursive);
874 1892074 : COMPARE_SCALAR_FIELD(hasModifyingCTE);
875 1892074 : COMPARE_SCALAR_FIELD(hasForUpdate);
876 1892074 : COMPARE_SCALAR_FIELD(hasRowSecurity);
877 1892074 : COMPARE_SCALAR_FIELD(hasGroupRTE);
878 1892070 : COMPARE_SCALAR_FIELD(isReturn);
879 1892070 : COMPARE_NODE_FIELD(cteList);
880 1892064 : COMPARE_NODE_FIELD(rtable);
881 1892022 : COMPARE_NODE_FIELD(rteperminfos);
882 1891970 : COMPARE_NODE_FIELD(jointree);
883 1891898 : COMPARE_NODE_FIELD(mergeActionList);
884 1891898 : COMPARE_SCALAR_FIELD(mergeTargetRelation);
885 1891898 : COMPARE_NODE_FIELD(mergeJoinCondition);
886 1891898 : COMPARE_NODE_FIELD(targetList);
887 1891852 : COMPARE_SCALAR_FIELD(override);
888 1891852 : COMPARE_NODE_FIELD(onConflict);
889 1891852 : COMPARE_STRING_FIELD(returningOldAlias);
890 1891852 : COMPARE_STRING_FIELD(returningNewAlias);
891 1891852 : COMPARE_NODE_FIELD(returningList);
892 1891852 : COMPARE_NODE_FIELD(groupClause);
893 1891852 : COMPARE_SCALAR_FIELD(groupDistinct);
894 1891852 : COMPARE_NODE_FIELD(groupingSets);
895 1891852 : COMPARE_NODE_FIELD(havingQual);
896 1891852 : COMPARE_NODE_FIELD(windowClause);
897 1891822 : COMPARE_NODE_FIELD(distinctClause);
898 1891822 : COMPARE_NODE_FIELD(sortClause);
899 1891822 : COMPARE_NODE_FIELD(limitOffset);
900 1891822 : COMPARE_NODE_FIELD(limitCount);
901 1891822 : COMPARE_SCALAR_FIELD(limitOption);
902 1891822 : COMPARE_NODE_FIELD(rowMarks);
903 1891822 : COMPARE_NODE_FIELD(setOperations);
904 1891822 : COMPARE_NODE_FIELD(constraintDeps);
905 1891822 : COMPARE_NODE_FIELD(withCheckOptions);
906 : COMPARE_LOCATION_FIELD(stmt_location);
907 : COMPARE_LOCATION_FIELD(stmt_len);
908 :
909 1891822 : return true;
910 : }
911 :
912 : static bool
913 1574094 : _equalTypeName(const TypeName *a, const TypeName *b)
914 : {
915 1574094 : COMPARE_NODE_FIELD(names);
916 1574094 : COMPARE_SCALAR_FIELD(typeOid);
917 1574094 : COMPARE_SCALAR_FIELD(setof);
918 1574094 : COMPARE_SCALAR_FIELD(pct_type);
919 1574094 : COMPARE_NODE_FIELD(typmods);
920 1574094 : COMPARE_SCALAR_FIELD(typemod);
921 1574094 : COMPARE_NODE_FIELD(arrayBounds);
922 : COMPARE_LOCATION_FIELD(location);
923 :
924 1574094 : return true;
925 : }
926 :
927 : static bool
928 4585156 : _equalColumnRef(const ColumnRef *a, const ColumnRef *b)
929 : {
930 4585156 : COMPARE_NODE_FIELD(fields);
931 : COMPARE_LOCATION_FIELD(location);
932 :
933 4585114 : return true;
934 : }
935 :
936 : static bool
937 303476 : _equalParamRef(const ParamRef *a, const ParamRef *b)
938 : {
939 303476 : COMPARE_SCALAR_FIELD(number);
940 : COMPARE_LOCATION_FIELD(location);
941 :
942 303476 : return true;
943 : }
944 :
945 : static bool
946 1490716 : _equalA_Expr(const A_Expr *a, const A_Expr *b)
947 : {
948 1490716 : COMPARE_SCALAR_FIELD(kind);
949 1490716 : COMPARE_NODE_FIELD(name);
950 1490716 : COMPARE_NODE_FIELD(lexpr);
951 1490704 : COMPARE_NODE_FIELD(rexpr);
952 : COMPARE_LOCATION_FIELD(location);
953 :
954 1490704 : return true;
955 : }
956 :
957 : static bool
958 736902 : _equalTypeCast(const TypeCast *a, const TypeCast *b)
959 : {
960 736902 : COMPARE_NODE_FIELD(arg);
961 736902 : COMPARE_NODE_FIELD(typeName);
962 : COMPARE_LOCATION_FIELD(location);
963 :
964 736902 : return true;
965 : }
966 :
967 : static bool
968 20888 : _equalCollateClause(const CollateClause *a, const CollateClause *b)
969 : {
970 20888 : COMPARE_NODE_FIELD(arg);
971 20888 : COMPARE_NODE_FIELD(collname);
972 : COMPARE_LOCATION_FIELD(location);
973 :
974 20888 : return true;
975 : }
976 :
977 : static bool
978 108056 : _equalRoleSpec(const RoleSpec *a, const RoleSpec *b)
979 : {
980 108056 : COMPARE_SCALAR_FIELD(roletype);
981 108056 : COMPARE_STRING_FIELD(rolename);
982 : COMPARE_LOCATION_FIELD(location);
983 :
984 108056 : return true;
985 : }
986 :
987 : static bool
988 856548 : _equalFuncCall(const FuncCall *a, const FuncCall *b)
989 : {
990 856548 : COMPARE_NODE_FIELD(funcname);
991 856548 : COMPARE_NODE_FIELD(args);
992 856548 : COMPARE_NODE_FIELD(agg_order);
993 856548 : COMPARE_NODE_FIELD(agg_filter);
994 856548 : COMPARE_NODE_FIELD(over);
995 856548 : COMPARE_SCALAR_FIELD(agg_within_group);
996 856548 : COMPARE_SCALAR_FIELD(agg_star);
997 856548 : COMPARE_SCALAR_FIELD(agg_distinct);
998 856548 : COMPARE_SCALAR_FIELD(func_variadic);
999 : COMPARE_LOCATION_FIELD(location);
1000 :
1001 856548 : return true;
1002 : }
1003 :
1004 : static bool
1005 125016 : _equalA_Star(const A_Star *a, const A_Star *b)
1006 : {
1007 :
1008 125016 : return true;
1009 : }
1010 :
1011 : static bool
1012 28732 : _equalA_Indices(const A_Indices *a, const A_Indices *b)
1013 : {
1014 28732 : COMPARE_SCALAR_FIELD(is_slice);
1015 28732 : COMPARE_NODE_FIELD(lidx);
1016 28732 : COMPARE_NODE_FIELD(uidx);
1017 :
1018 28732 : return true;
1019 : }
1020 :
1021 : static bool
1022 65520 : _equalA_Indirection(const A_Indirection *a, const A_Indirection *b)
1023 : {
1024 65520 : COMPARE_NODE_FIELD(arg);
1025 65520 : COMPARE_NODE_FIELD(indirection);
1026 :
1027 65520 : return true;
1028 : }
1029 :
1030 : static bool
1031 13520 : _equalA_ArrayExpr(const A_ArrayExpr *a, const A_ArrayExpr *b)
1032 : {
1033 13520 : COMPARE_NODE_FIELD(elements);
1034 : COMPARE_LOCATION_FIELD(location);
1035 :
1036 13520 : return true;
1037 : }
1038 :
1039 : static bool
1040 2994152 : _equalResTarget(const ResTarget *a, const ResTarget *b)
1041 : {
1042 2994152 : COMPARE_STRING_FIELD(name);
1043 2994152 : COMPARE_NODE_FIELD(indirection);
1044 2994152 : COMPARE_NODE_FIELD(val);
1045 : COMPARE_LOCATION_FIELD(location);
1046 :
1047 2994152 : return true;
1048 : }
1049 :
1050 : static bool
1051 804 : _equalMultiAssignRef(const MultiAssignRef *a, const MultiAssignRef *b)
1052 : {
1053 804 : COMPARE_NODE_FIELD(source);
1054 804 : COMPARE_SCALAR_FIELD(colno);
1055 804 : COMPARE_SCALAR_FIELD(ncolumns);
1056 :
1057 804 : return true;
1058 : }
1059 :
1060 : static bool
1061 244778 : _equalSortBy(const SortBy *a, const SortBy *b)
1062 : {
1063 244778 : COMPARE_NODE_FIELD(node);
1064 244754 : COMPARE_SCALAR_FIELD(sortby_dir);
1065 244730 : COMPARE_SCALAR_FIELD(sortby_nulls);
1066 244730 : COMPARE_NODE_FIELD(useOp);
1067 : COMPARE_LOCATION_FIELD(location);
1068 :
1069 244730 : return true;
1070 : }
1071 :
1072 : static bool
1073 8196 : _equalWindowDef(const WindowDef *a, const WindowDef *b)
1074 : {
1075 8196 : COMPARE_STRING_FIELD(name);
1076 8196 : COMPARE_STRING_FIELD(refname);
1077 8196 : COMPARE_NODE_FIELD(partitionClause);
1078 8196 : COMPARE_NODE_FIELD(orderClause);
1079 8196 : COMPARE_SCALAR_FIELD(frameOptions);
1080 8196 : COMPARE_NODE_FIELD(startOffset);
1081 8196 : COMPARE_NODE_FIELD(endOffset);
1082 : COMPARE_LOCATION_FIELD(location);
1083 :
1084 8196 : return true;
1085 : }
1086 :
1087 : static bool
1088 35092 : _equalRangeSubselect(const RangeSubselect *a, const RangeSubselect *b)
1089 : {
1090 35092 : COMPARE_SCALAR_FIELD(lateral);
1091 35092 : COMPARE_NODE_FIELD(subquery);
1092 35092 : COMPARE_NODE_FIELD(alias);
1093 :
1094 35092 : return true;
1095 : }
1096 :
1097 : static bool
1098 102052 : _equalRangeFunction(const RangeFunction *a, const RangeFunction *b)
1099 : {
1100 102052 : COMPARE_SCALAR_FIELD(lateral);
1101 102052 : COMPARE_SCALAR_FIELD(ordinality);
1102 102052 : COMPARE_SCALAR_FIELD(is_rowsfrom);
1103 102052 : COMPARE_NODE_FIELD(functions);
1104 102052 : COMPARE_NODE_FIELD(alias);
1105 102052 : COMPARE_NODE_FIELD(coldeflist);
1106 :
1107 102052 : return true;
1108 : }
1109 :
1110 : static bool
1111 484 : _equalRangeTableFunc(const RangeTableFunc *a, const RangeTableFunc *b)
1112 : {
1113 484 : COMPARE_SCALAR_FIELD(lateral);
1114 484 : COMPARE_NODE_FIELD(docexpr);
1115 484 : COMPARE_NODE_FIELD(rowexpr);
1116 484 : COMPARE_NODE_FIELD(namespaces);
1117 484 : COMPARE_NODE_FIELD(columns);
1118 484 : COMPARE_NODE_FIELD(alias);
1119 : COMPARE_LOCATION_FIELD(location);
1120 :
1121 484 : return true;
1122 : }
1123 :
1124 : static bool
1125 1740 : _equalRangeTableFuncCol(const RangeTableFuncCol *a, const RangeTableFuncCol *b)
1126 : {
1127 1740 : COMPARE_STRING_FIELD(colname);
1128 1740 : COMPARE_NODE_FIELD(typeName);
1129 1740 : COMPARE_SCALAR_FIELD(for_ordinality);
1130 1740 : COMPARE_SCALAR_FIELD(is_not_null);
1131 1740 : COMPARE_NODE_FIELD(colexpr);
1132 1740 : COMPARE_NODE_FIELD(coldefexpr);
1133 : COMPARE_LOCATION_FIELD(location);
1134 :
1135 1740 : return true;
1136 : }
1137 :
1138 : static bool
1139 560 : _equalRangeTableSample(const RangeTableSample *a, const RangeTableSample *b)
1140 : {
1141 560 : COMPARE_NODE_FIELD(relation);
1142 560 : COMPARE_NODE_FIELD(method);
1143 560 : COMPARE_NODE_FIELD(args);
1144 560 : COMPARE_NODE_FIELD(repeatable);
1145 : COMPARE_LOCATION_FIELD(location);
1146 :
1147 560 : return true;
1148 : }
1149 :
1150 : static bool
1151 277860 : _equalColumnDef(const ColumnDef *a, const ColumnDef *b)
1152 : {
1153 277860 : COMPARE_STRING_FIELD(colname);
1154 277860 : COMPARE_NODE_FIELD(typeName);
1155 277860 : COMPARE_STRING_FIELD(compression);
1156 277860 : COMPARE_SCALAR_FIELD(inhcount);
1157 277860 : COMPARE_SCALAR_FIELD(is_local);
1158 277860 : COMPARE_SCALAR_FIELD(is_not_null);
1159 277860 : COMPARE_SCALAR_FIELD(is_from_type);
1160 277860 : COMPARE_SCALAR_FIELD(storage);
1161 277860 : COMPARE_STRING_FIELD(storage_name);
1162 277860 : COMPARE_NODE_FIELD(raw_default);
1163 277860 : COMPARE_NODE_FIELD(cooked_default);
1164 277860 : COMPARE_SCALAR_FIELD(identity);
1165 277860 : COMPARE_NODE_FIELD(identitySequence);
1166 277860 : COMPARE_SCALAR_FIELD(generated);
1167 277860 : COMPARE_NODE_FIELD(collClause);
1168 277860 : COMPARE_SCALAR_FIELD(collOid);
1169 277860 : COMPARE_NODE_FIELD(constraints);
1170 277860 : COMPARE_NODE_FIELD(fdwoptions);
1171 : COMPARE_LOCATION_FIELD(location);
1172 :
1173 277860 : return true;
1174 : }
1175 :
1176 : static bool
1177 3072 : _equalTableLikeClause(const TableLikeClause *a, const TableLikeClause *b)
1178 : {
1179 3072 : COMPARE_NODE_FIELD(relation);
1180 3072 : COMPARE_SCALAR_FIELD(options);
1181 3072 : COMPARE_SCALAR_FIELD(relationOid);
1182 :
1183 3072 : return true;
1184 : }
1185 :
1186 : static bool
1187 38478 : _equalIndexElem(const IndexElem *a, const IndexElem *b)
1188 : {
1189 38478 : COMPARE_STRING_FIELD(name);
1190 38352 : COMPARE_NODE_FIELD(expr);
1191 38352 : COMPARE_STRING_FIELD(indexcolname);
1192 38352 : COMPARE_NODE_FIELD(collation);
1193 38352 : COMPARE_NODE_FIELD(opclass);
1194 38352 : COMPARE_NODE_FIELD(opclassopts);
1195 38352 : COMPARE_SCALAR_FIELD(ordering);
1196 38352 : COMPARE_SCALAR_FIELD(nulls_ordering);
1197 :
1198 38352 : return true;
1199 : }
1200 :
1201 : static bool
1202 633744 : _equalDefElem(const DefElem *a, const DefElem *b)
1203 : {
1204 633744 : COMPARE_STRING_FIELD(defnamespace);
1205 633744 : COMPARE_STRING_FIELD(defname);
1206 633744 : COMPARE_NODE_FIELD(arg);
1207 633744 : COMPARE_SCALAR_FIELD(defaction);
1208 : COMPARE_LOCATION_FIELD(location);
1209 :
1210 633744 : return true;
1211 : }
1212 :
1213 : static bool
1214 4352 : _equalLockingClause(const LockingClause *a, const LockingClause *b)
1215 : {
1216 4352 : COMPARE_NODE_FIELD(lockedRels);
1217 4352 : COMPARE_SCALAR_FIELD(strength);
1218 4352 : COMPARE_SCALAR_FIELD(waitPolicy);
1219 :
1220 4352 : return true;
1221 : }
1222 :
1223 : static bool
1224 500 : _equalXmlSerialize(const XmlSerialize *a, const XmlSerialize *b)
1225 : {
1226 500 : COMPARE_SCALAR_FIELD(xmloption);
1227 500 : COMPARE_NODE_FIELD(expr);
1228 500 : COMPARE_NODE_FIELD(typeName);
1229 500 : COMPARE_SCALAR_FIELD(indent);
1230 : COMPARE_LOCATION_FIELD(location);
1231 :
1232 500 : return true;
1233 : }
1234 :
1235 : static bool
1236 21536 : _equalPartitionElem(const PartitionElem *a, const PartitionElem *b)
1237 : {
1238 21536 : COMPARE_STRING_FIELD(name);
1239 21536 : COMPARE_NODE_FIELD(expr);
1240 21536 : COMPARE_NODE_FIELD(collation);
1241 21536 : COMPARE_NODE_FIELD(opclass);
1242 : COMPARE_LOCATION_FIELD(location);
1243 :
1244 21536 : return true;
1245 : }
1246 :
1247 : static bool
1248 19712 : _equalPartitionSpec(const PartitionSpec *a, const PartitionSpec *b)
1249 : {
1250 19712 : COMPARE_SCALAR_FIELD(strategy);
1251 19712 : COMPARE_NODE_FIELD(partParams);
1252 : COMPARE_LOCATION_FIELD(location);
1253 :
1254 19712 : return true;
1255 : }
1256 :
1257 : static bool
1258 41080 : _equalPartitionBoundSpec(const PartitionBoundSpec *a, const PartitionBoundSpec *b)
1259 : {
1260 41080 : COMPARE_SCALAR_FIELD(strategy);
1261 41080 : COMPARE_SCALAR_FIELD(is_default);
1262 41080 : COMPARE_SCALAR_FIELD(modulus);
1263 41080 : COMPARE_SCALAR_FIELD(remainder);
1264 41080 : COMPARE_NODE_FIELD(listdatums);
1265 41080 : COMPARE_NODE_FIELD(lowerdatums);
1266 41080 : COMPARE_NODE_FIELD(upperdatums);
1267 : COMPARE_LOCATION_FIELD(location);
1268 :
1269 41080 : return true;
1270 : }
1271 :
1272 : static bool
1273 0 : _equalPartitionRangeDatum(const PartitionRangeDatum *a, const PartitionRangeDatum *b)
1274 : {
1275 0 : COMPARE_SCALAR_FIELD(kind);
1276 0 : COMPARE_NODE_FIELD(value);
1277 : COMPARE_LOCATION_FIELD(location);
1278 :
1279 0 : return true;
1280 : }
1281 :
1282 : static bool
1283 13340 : _equalPartitionCmd(const PartitionCmd *a, const PartitionCmd *b)
1284 : {
1285 13340 : COMPARE_NODE_FIELD(name);
1286 13340 : COMPARE_NODE_FIELD(bound);
1287 13340 : COMPARE_SCALAR_FIELD(concurrent);
1288 :
1289 13340 : return true;
1290 : }
1291 :
1292 : static bool
1293 1623120 : _equalRangeTblEntry(const RangeTblEntry *a, const RangeTblEntry *b)
1294 : {
1295 1623120 : COMPARE_NODE_FIELD(alias);
1296 1623120 : COMPARE_NODE_FIELD(eref);
1297 1623120 : COMPARE_SCALAR_FIELD(rtekind);
1298 1623120 : COMPARE_SCALAR_FIELD(relid);
1299 1623120 : COMPARE_SCALAR_FIELD(inh);
1300 1623120 : COMPARE_SCALAR_FIELD(relkind);
1301 1623120 : COMPARE_SCALAR_FIELD(rellockmode);
1302 1623120 : COMPARE_SCALAR_FIELD(perminfoindex);
1303 1623120 : COMPARE_NODE_FIELD(tablesample);
1304 1623120 : COMPARE_NODE_FIELD(subquery);
1305 1623114 : COMPARE_SCALAR_FIELD(security_barrier);
1306 1623114 : COMPARE_SCALAR_FIELD(jointype);
1307 1623114 : COMPARE_SCALAR_FIELD(joinmergedcols);
1308 1623114 : COMPARE_NODE_FIELD(joinaliasvars);
1309 1623114 : COMPARE_NODE_FIELD(joinleftcols);
1310 1623114 : COMPARE_NODE_FIELD(joinrightcols);
1311 1623114 : COMPARE_NODE_FIELD(join_using_alias);
1312 1623114 : COMPARE_NODE_FIELD(functions);
1313 1623114 : COMPARE_SCALAR_FIELD(funcordinality);
1314 1623114 : COMPARE_NODE_FIELD(tablefunc);
1315 1623114 : COMPARE_NODE_FIELD(values_lists);
1316 1623114 : COMPARE_STRING_FIELD(ctename);
1317 1623114 : COMPARE_SCALAR_FIELD(ctelevelsup);
1318 1623114 : COMPARE_SCALAR_FIELD(self_reference);
1319 1623114 : COMPARE_NODE_FIELD(coltypes);
1320 1623114 : COMPARE_NODE_FIELD(coltypmods);
1321 1623114 : COMPARE_NODE_FIELD(colcollations);
1322 1623114 : COMPARE_STRING_FIELD(enrname);
1323 1623114 : COMPARE_SCALAR_FIELD(enrtuples);
1324 1623114 : COMPARE_NODE_FIELD(groupexprs);
1325 1623114 : COMPARE_SCALAR_FIELD(lateral);
1326 1623114 : COMPARE_SCALAR_FIELD(inFromCl);
1327 1623114 : COMPARE_NODE_FIELD(securityQuals);
1328 :
1329 1623114 : return true;
1330 : }
1331 :
1332 : static bool
1333 1108712 : _equalRTEPermissionInfo(const RTEPermissionInfo *a, const RTEPermissionInfo *b)
1334 : {
1335 1108712 : COMPARE_SCALAR_FIELD(relid);
1336 1108712 : COMPARE_SCALAR_FIELD(inh);
1337 1108712 : COMPARE_SCALAR_FIELD(requiredPerms);
1338 1108712 : COMPARE_SCALAR_FIELD(checkAsUser);
1339 1108660 : COMPARE_BITMAPSET_FIELD(selectedCols);
1340 1108660 : COMPARE_BITMAPSET_FIELD(insertedCols);
1341 1108660 : COMPARE_BITMAPSET_FIELD(updatedCols);
1342 :
1343 1108660 : return true;
1344 : }
1345 :
1346 : static bool
1347 97358 : _equalRangeTblFunction(const RangeTblFunction *a, const RangeTblFunction *b)
1348 : {
1349 97358 : COMPARE_NODE_FIELD(funcexpr);
1350 97358 : COMPARE_SCALAR_FIELD(funccolcount);
1351 97358 : COMPARE_NODE_FIELD(funccolnames);
1352 97358 : COMPARE_NODE_FIELD(funccoltypes);
1353 97358 : COMPARE_NODE_FIELD(funccoltypmods);
1354 97358 : COMPARE_NODE_FIELD(funccolcollations);
1355 97358 : COMPARE_BITMAPSET_FIELD(funcparams);
1356 :
1357 97358 : return true;
1358 : }
1359 :
1360 : static bool
1361 440 : _equalTableSampleClause(const TableSampleClause *a, const TableSampleClause *b)
1362 : {
1363 440 : COMPARE_SCALAR_FIELD(tsmhandler);
1364 440 : COMPARE_NODE_FIELD(args);
1365 440 : COMPARE_NODE_FIELD(repeatable);
1366 :
1367 440 : return true;
1368 : }
1369 :
1370 : static bool
1371 7472 : _equalWithCheckOption(const WithCheckOption *a, const WithCheckOption *b)
1372 : {
1373 7472 : COMPARE_SCALAR_FIELD(kind);
1374 5402 : COMPARE_STRING_FIELD(relname);
1375 5402 : COMPARE_STRING_FIELD(polname);
1376 5178 : COMPARE_NODE_FIELD(qual);
1377 4758 : COMPARE_SCALAR_FIELD(cascaded);
1378 :
1379 4758 : return true;
1380 : }
1381 :
1382 : static bool
1383 319702 : _equalSortGroupClause(const SortGroupClause *a, const SortGroupClause *b)
1384 : {
1385 319702 : COMPARE_SCALAR_FIELD(tleSortGroupRef);
1386 317980 : COMPARE_SCALAR_FIELD(eqop);
1387 317980 : COMPARE_SCALAR_FIELD(sortop);
1388 317944 : COMPARE_SCALAR_FIELD(reverse_sort);
1389 317944 : COMPARE_SCALAR_FIELD(nulls_first);
1390 317938 : COMPARE_SCALAR_FIELD(hashable);
1391 :
1392 317938 : return true;
1393 : }
1394 :
1395 : static bool
1396 8216 : _equalGroupingSet(const GroupingSet *a, const GroupingSet *b)
1397 : {
1398 8216 : COMPARE_SCALAR_FIELD(kind);
1399 8216 : COMPARE_NODE_FIELD(content);
1400 : COMPARE_LOCATION_FIELD(location);
1401 :
1402 8216 : return true;
1403 : }
1404 :
1405 : static bool
1406 5236 : _equalWindowClause(const WindowClause *a, const WindowClause *b)
1407 : {
1408 5236 : COMPARE_STRING_FIELD(name);
1409 5236 : COMPARE_STRING_FIELD(refname);
1410 5236 : COMPARE_NODE_FIELD(partitionClause);
1411 5236 : COMPARE_NODE_FIELD(orderClause);
1412 5236 : COMPARE_SCALAR_FIELD(frameOptions);
1413 5206 : COMPARE_NODE_FIELD(startOffset);
1414 5206 : COMPARE_NODE_FIELD(endOffset);
1415 5206 : COMPARE_SCALAR_FIELD(startInRangeFunc);
1416 5206 : COMPARE_SCALAR_FIELD(endInRangeFunc);
1417 5206 : COMPARE_SCALAR_FIELD(inRangeColl);
1418 5206 : COMPARE_SCALAR_FIELD(inRangeAsc);
1419 5206 : COMPARE_SCALAR_FIELD(inRangeNullsFirst);
1420 5206 : COMPARE_SCALAR_FIELD(winref);
1421 5206 : COMPARE_SCALAR_FIELD(copiedOrder);
1422 :
1423 5206 : return true;
1424 : }
1425 :
1426 : static bool
1427 10892 : _equalRowMarkClause(const RowMarkClause *a, const RowMarkClause *b)
1428 : {
1429 10892 : COMPARE_SCALAR_FIELD(rti);
1430 10892 : COMPARE_SCALAR_FIELD(strength);
1431 10892 : COMPARE_SCALAR_FIELD(waitPolicy);
1432 10892 : COMPARE_SCALAR_FIELD(pushedDown);
1433 :
1434 10892 : return true;
1435 : }
1436 :
1437 : static bool
1438 5936 : _equalWithClause(const WithClause *a, const WithClause *b)
1439 : {
1440 5936 : COMPARE_NODE_FIELD(ctes);
1441 5936 : COMPARE_SCALAR_FIELD(recursive);
1442 : COMPARE_LOCATION_FIELD(location);
1443 :
1444 5936 : return true;
1445 : }
1446 :
1447 : static bool
1448 3268 : _equalInferClause(const InferClause *a, const InferClause *b)
1449 : {
1450 3268 : COMPARE_NODE_FIELD(indexElems);
1451 3268 : COMPARE_NODE_FIELD(whereClause);
1452 3268 : COMPARE_STRING_FIELD(conname);
1453 : COMPARE_LOCATION_FIELD(location);
1454 :
1455 3268 : return true;
1456 : }
1457 :
1458 : static bool
1459 3748 : _equalOnConflictClause(const OnConflictClause *a, const OnConflictClause *b)
1460 : {
1461 3748 : COMPARE_SCALAR_FIELD(action);
1462 3748 : COMPARE_NODE_FIELD(infer);
1463 3748 : COMPARE_NODE_FIELD(targetList);
1464 3748 : COMPARE_NODE_FIELD(whereClause);
1465 : COMPARE_LOCATION_FIELD(location);
1466 :
1467 3748 : return true;
1468 : }
1469 :
1470 : static bool
1471 420 : _equalCTESearchClause(const CTESearchClause *a, const CTESearchClause *b)
1472 : {
1473 420 : COMPARE_NODE_FIELD(search_col_list);
1474 420 : COMPARE_SCALAR_FIELD(search_breadth_first);
1475 420 : COMPARE_STRING_FIELD(search_seq_column);
1476 : COMPARE_LOCATION_FIELD(location);
1477 :
1478 420 : return true;
1479 : }
1480 :
1481 : static bool
1482 420 : _equalCTECycleClause(const CTECycleClause *a, const CTECycleClause *b)
1483 : {
1484 420 : COMPARE_NODE_FIELD(cycle_col_list);
1485 420 : COMPARE_STRING_FIELD(cycle_mark_column);
1486 420 : COMPARE_NODE_FIELD(cycle_mark_value);
1487 420 : COMPARE_NODE_FIELD(cycle_mark_default);
1488 420 : COMPARE_STRING_FIELD(cycle_path_column);
1489 : COMPARE_LOCATION_FIELD(location);
1490 420 : COMPARE_SCALAR_FIELD(cycle_mark_type);
1491 420 : COMPARE_SCALAR_FIELD(cycle_mark_typmod);
1492 420 : COMPARE_SCALAR_FIELD(cycle_mark_collation);
1493 420 : COMPARE_SCALAR_FIELD(cycle_mark_neop);
1494 :
1495 420 : return true;
1496 : }
1497 :
1498 : static bool
1499 14936 : _equalCommonTableExpr(const CommonTableExpr *a, const CommonTableExpr *b)
1500 : {
1501 14936 : COMPARE_STRING_FIELD(ctename);
1502 14936 : COMPARE_NODE_FIELD(aliascolnames);
1503 14936 : COMPARE_SCALAR_FIELD(ctematerialized);
1504 14936 : COMPARE_NODE_FIELD(ctequery);
1505 14930 : COMPARE_NODE_FIELD(search_clause);
1506 14930 : COMPARE_NODE_FIELD(cycle_clause);
1507 : COMPARE_LOCATION_FIELD(location);
1508 14930 : COMPARE_SCALAR_FIELD(cterecursive);
1509 14930 : COMPARE_SCALAR_FIELD(cterefcount);
1510 14930 : COMPARE_NODE_FIELD(ctecolnames);
1511 14930 : COMPARE_NODE_FIELD(ctecoltypes);
1512 14930 : COMPARE_NODE_FIELD(ctecoltypmods);
1513 14930 : COMPARE_NODE_FIELD(ctecolcollations);
1514 :
1515 14930 : return true;
1516 : }
1517 :
1518 : static bool
1519 5896 : _equalMergeWhenClause(const MergeWhenClause *a, const MergeWhenClause *b)
1520 : {
1521 5896 : COMPARE_SCALAR_FIELD(matchKind);
1522 5896 : COMPARE_SCALAR_FIELD(commandType);
1523 5896 : COMPARE_SCALAR_FIELD(override);
1524 5896 : COMPARE_NODE_FIELD(condition);
1525 5896 : COMPARE_NODE_FIELD(targetList);
1526 5896 : COMPARE_NODE_FIELD(values);
1527 :
1528 5896 : return true;
1529 : }
1530 :
1531 : static bool
1532 300 : _equalReturningOption(const ReturningOption *a, const ReturningOption *b)
1533 : {
1534 300 : COMPARE_SCALAR_FIELD(option);
1535 300 : COMPARE_STRING_FIELD(value);
1536 : COMPARE_LOCATION_FIELD(location);
1537 :
1538 300 : return true;
1539 : }
1540 :
1541 : static bool
1542 6436 : _equalReturningClause(const ReturningClause *a, const ReturningClause *b)
1543 : {
1544 6436 : COMPARE_NODE_FIELD(options);
1545 6436 : COMPARE_NODE_FIELD(exprs);
1546 :
1547 6436 : return true;
1548 : }
1549 :
1550 : static bool
1551 2368 : _equalTriggerTransition(const TriggerTransition *a, const TriggerTransition *b)
1552 : {
1553 2368 : COMPARE_STRING_FIELD(name);
1554 2368 : COMPARE_SCALAR_FIELD(isNew);
1555 2368 : COMPARE_SCALAR_FIELD(isTable);
1556 :
1557 2368 : return true;
1558 : }
1559 :
1560 : static bool
1561 2972 : _equalJsonOutput(const JsonOutput *a, const JsonOutput *b)
1562 : {
1563 2972 : COMPARE_NODE_FIELD(typeName);
1564 2972 : COMPARE_NODE_FIELD(returning);
1565 :
1566 2972 : return true;
1567 : }
1568 :
1569 : static bool
1570 1260 : _equalJsonArgument(const JsonArgument *a, const JsonArgument *b)
1571 : {
1572 1260 : COMPARE_NODE_FIELD(val);
1573 1260 : COMPARE_STRING_FIELD(name);
1574 :
1575 1260 : return true;
1576 : }
1577 :
1578 : static bool
1579 3984 : _equalJsonFuncExpr(const JsonFuncExpr *a, const JsonFuncExpr *b)
1580 : {
1581 3984 : COMPARE_SCALAR_FIELD(op);
1582 3984 : COMPARE_STRING_FIELD(column_name);
1583 3984 : COMPARE_NODE_FIELD(context_item);
1584 3984 : COMPARE_NODE_FIELD(pathspec);
1585 3984 : COMPARE_NODE_FIELD(passing);
1586 3984 : COMPARE_NODE_FIELD(output);
1587 3984 : COMPARE_NODE_FIELD(on_empty);
1588 3984 : COMPARE_NODE_FIELD(on_error);
1589 3984 : COMPARE_SCALAR_FIELD(wrapper);
1590 3984 : COMPARE_SCALAR_FIELD(quotes);
1591 : COMPARE_LOCATION_FIELD(location);
1592 :
1593 3984 : return true;
1594 : }
1595 :
1596 : static bool
1597 3944 : _equalJsonTablePathSpec(const JsonTablePathSpec *a, const JsonTablePathSpec *b)
1598 : {
1599 3944 : COMPARE_NODE_FIELD(string);
1600 3944 : COMPARE_STRING_FIELD(name);
1601 : COMPARE_LOCATION_FIELD(name_location);
1602 : COMPARE_LOCATION_FIELD(location);
1603 :
1604 3944 : return true;
1605 : }
1606 :
1607 : static bool
1608 1180 : _equalJsonTable(const JsonTable *a, const JsonTable *b)
1609 : {
1610 1180 : COMPARE_NODE_FIELD(context_item);
1611 1180 : COMPARE_NODE_FIELD(pathspec);
1612 1180 : COMPARE_NODE_FIELD(passing);
1613 1180 : COMPARE_NODE_FIELD(columns);
1614 1180 : COMPARE_NODE_FIELD(on_error);
1615 1180 : COMPARE_NODE_FIELD(alias);
1616 1180 : COMPARE_SCALAR_FIELD(lateral);
1617 : COMPARE_LOCATION_FIELD(location);
1618 :
1619 1180 : return true;
1620 : }
1621 :
1622 : static bool
1623 3296 : _equalJsonTableColumn(const JsonTableColumn *a, const JsonTableColumn *b)
1624 : {
1625 3296 : COMPARE_SCALAR_FIELD(coltype);
1626 3296 : COMPARE_STRING_FIELD(name);
1627 3296 : COMPARE_NODE_FIELD(typeName);
1628 3296 : COMPARE_NODE_FIELD(pathspec);
1629 3296 : COMPARE_NODE_FIELD(format);
1630 3296 : COMPARE_SCALAR_FIELD(wrapper);
1631 3296 : COMPARE_SCALAR_FIELD(quotes);
1632 3296 : COMPARE_NODE_FIELD(columns);
1633 3296 : COMPARE_NODE_FIELD(on_empty);
1634 3296 : COMPARE_NODE_FIELD(on_error);
1635 : COMPARE_LOCATION_FIELD(location);
1636 :
1637 3296 : return true;
1638 : }
1639 :
1640 : static bool
1641 1640 : _equalJsonKeyValue(const JsonKeyValue *a, const JsonKeyValue *b)
1642 : {
1643 1640 : COMPARE_NODE_FIELD(key);
1644 1640 : COMPARE_NODE_FIELD(value);
1645 :
1646 1640 : return true;
1647 : }
1648 :
1649 : static bool
1650 328 : _equalJsonParseExpr(const JsonParseExpr *a, const JsonParseExpr *b)
1651 : {
1652 328 : COMPARE_NODE_FIELD(expr);
1653 328 : COMPARE_NODE_FIELD(output);
1654 328 : COMPARE_SCALAR_FIELD(unique_keys);
1655 : COMPARE_LOCATION_FIELD(location);
1656 :
1657 328 : return true;
1658 : }
1659 :
1660 : static bool
1661 224 : _equalJsonScalarExpr(const JsonScalarExpr *a, const JsonScalarExpr *b)
1662 : {
1663 224 : COMPARE_NODE_FIELD(expr);
1664 224 : COMPARE_NODE_FIELD(output);
1665 : COMPARE_LOCATION_FIELD(location);
1666 :
1667 224 : return true;
1668 : }
1669 :
1670 : static bool
1671 216 : _equalJsonSerializeExpr(const JsonSerializeExpr *a, const JsonSerializeExpr *b)
1672 : {
1673 216 : COMPARE_NODE_FIELD(expr);
1674 216 : COMPARE_NODE_FIELD(output);
1675 : COMPARE_LOCATION_FIELD(location);
1676 :
1677 216 : return true;
1678 : }
1679 :
1680 : static bool
1681 880 : _equalJsonObjectConstructor(const JsonObjectConstructor *a, const JsonObjectConstructor *b)
1682 : {
1683 880 : COMPARE_NODE_FIELD(exprs);
1684 880 : COMPARE_NODE_FIELD(output);
1685 880 : COMPARE_SCALAR_FIELD(absent_on_null);
1686 880 : COMPARE_SCALAR_FIELD(unique);
1687 : COMPARE_LOCATION_FIELD(location);
1688 :
1689 880 : return true;
1690 : }
1691 :
1692 : static bool
1693 400 : _equalJsonArrayConstructor(const JsonArrayConstructor *a, const JsonArrayConstructor *b)
1694 : {
1695 400 : COMPARE_NODE_FIELD(exprs);
1696 400 : COMPARE_NODE_FIELD(output);
1697 400 : COMPARE_SCALAR_FIELD(absent_on_null);
1698 : COMPARE_LOCATION_FIELD(location);
1699 :
1700 400 : return true;
1701 : }
1702 :
1703 : static bool
1704 120 : _equalJsonArrayQueryConstructor(const JsonArrayQueryConstructor *a, const JsonArrayQueryConstructor *b)
1705 : {
1706 120 : COMPARE_NODE_FIELD(query);
1707 120 : COMPARE_NODE_FIELD(output);
1708 120 : COMPARE_NODE_FIELD(format);
1709 120 : COMPARE_SCALAR_FIELD(absent_on_null);
1710 : COMPARE_LOCATION_FIELD(location);
1711 :
1712 120 : return true;
1713 : }
1714 :
1715 : static bool
1716 744 : _equalJsonAggConstructor(const JsonAggConstructor *a, const JsonAggConstructor *b)
1717 : {
1718 744 : COMPARE_NODE_FIELD(output);
1719 744 : COMPARE_NODE_FIELD(agg_filter);
1720 744 : COMPARE_NODE_FIELD(agg_order);
1721 744 : COMPARE_NODE_FIELD(over);
1722 : COMPARE_LOCATION_FIELD(location);
1723 :
1724 744 : return true;
1725 : }
1726 :
1727 : static bool
1728 420 : _equalJsonObjectAgg(const JsonObjectAgg *a, const JsonObjectAgg *b)
1729 : {
1730 420 : COMPARE_NODE_FIELD(constructor);
1731 420 : COMPARE_NODE_FIELD(arg);
1732 420 : COMPARE_SCALAR_FIELD(absent_on_null);
1733 420 : COMPARE_SCALAR_FIELD(unique);
1734 :
1735 420 : return true;
1736 : }
1737 :
1738 : static bool
1739 324 : _equalJsonArrayAgg(const JsonArrayAgg *a, const JsonArrayAgg *b)
1740 : {
1741 324 : COMPARE_NODE_FIELD(constructor);
1742 324 : COMPARE_NODE_FIELD(arg);
1743 324 : COMPARE_SCALAR_FIELD(absent_on_null);
1744 :
1745 324 : return true;
1746 : }
1747 :
1748 : static bool
1749 1516848 : _equalRawStmt(const RawStmt *a, const RawStmt *b)
1750 : {
1751 1516848 : COMPARE_NODE_FIELD(stmt);
1752 : COMPARE_LOCATION_FIELD(stmt_location);
1753 : COMPARE_LOCATION_FIELD(stmt_len);
1754 :
1755 1516848 : return true;
1756 : }
1757 :
1758 : static bool
1759 146020 : _equalInsertStmt(const InsertStmt *a, const InsertStmt *b)
1760 : {
1761 146020 : COMPARE_NODE_FIELD(relation);
1762 146020 : COMPARE_NODE_FIELD(cols);
1763 146020 : COMPARE_NODE_FIELD(selectStmt);
1764 146020 : COMPARE_NODE_FIELD(onConflictClause);
1765 146020 : COMPARE_NODE_FIELD(returningClause);
1766 146020 : COMPARE_NODE_FIELD(withClause);
1767 146020 : COMPARE_SCALAR_FIELD(override);
1768 : COMPARE_LOCATION_FIELD(stmt_location);
1769 : COMPARE_LOCATION_FIELD(stmt_len);
1770 :
1771 146020 : return true;
1772 : }
1773 :
1774 : static bool
1775 9020 : _equalDeleteStmt(const DeleteStmt *a, const DeleteStmt *b)
1776 : {
1777 9020 : COMPARE_NODE_FIELD(relation);
1778 9020 : COMPARE_NODE_FIELD(usingClause);
1779 9020 : COMPARE_NODE_FIELD(whereClause);
1780 9020 : COMPARE_NODE_FIELD(returningClause);
1781 9020 : COMPARE_NODE_FIELD(withClause);
1782 : COMPARE_LOCATION_FIELD(stmt_location);
1783 : COMPARE_LOCATION_FIELD(stmt_len);
1784 :
1785 9020 : return true;
1786 : }
1787 :
1788 : static bool
1789 26652 : _equalUpdateStmt(const UpdateStmt *a, const UpdateStmt *b)
1790 : {
1791 26652 : COMPARE_NODE_FIELD(relation);
1792 26652 : COMPARE_NODE_FIELD(targetList);
1793 26652 : COMPARE_NODE_FIELD(whereClause);
1794 26652 : COMPARE_NODE_FIELD(fromClause);
1795 26652 : COMPARE_NODE_FIELD(returningClause);
1796 26652 : COMPARE_NODE_FIELD(withClause);
1797 : COMPARE_LOCATION_FIELD(stmt_location);
1798 : COMPARE_LOCATION_FIELD(stmt_len);
1799 :
1800 26652 : return true;
1801 : }
1802 :
1803 : static bool
1804 3800 : _equalMergeStmt(const MergeStmt *a, const MergeStmt *b)
1805 : {
1806 3800 : COMPARE_NODE_FIELD(relation);
1807 3800 : COMPARE_NODE_FIELD(sourceRelation);
1808 3800 : COMPARE_NODE_FIELD(joinCondition);
1809 3800 : COMPARE_NODE_FIELD(mergeWhenClauses);
1810 3800 : COMPARE_NODE_FIELD(returningClause);
1811 3800 : COMPARE_NODE_FIELD(withClause);
1812 : COMPARE_LOCATION_FIELD(stmt_location);
1813 : COMPARE_LOCATION_FIELD(stmt_len);
1814 :
1815 3800 : return true;
1816 : }
1817 :
1818 : static bool
1819 1093640 : _equalSelectStmt(const SelectStmt *a, const SelectStmt *b)
1820 : {
1821 1093640 : COMPARE_NODE_FIELD(distinctClause);
1822 1093640 : COMPARE_NODE_FIELD(intoClause);
1823 1093640 : COMPARE_NODE_FIELD(targetList);
1824 1093640 : COMPARE_NODE_FIELD(fromClause);
1825 1093640 : COMPARE_NODE_FIELD(whereClause);
1826 1093640 : COMPARE_NODE_FIELD(groupClause);
1827 1093640 : COMPARE_SCALAR_FIELD(groupDistinct);
1828 1093640 : COMPARE_NODE_FIELD(havingClause);
1829 1093640 : COMPARE_NODE_FIELD(windowClause);
1830 1093640 : COMPARE_NODE_FIELD(valuesLists);
1831 1093640 : COMPARE_NODE_FIELD(sortClause);
1832 1093640 : COMPARE_NODE_FIELD(limitOffset);
1833 1093640 : COMPARE_NODE_FIELD(limitCount);
1834 1093640 : COMPARE_SCALAR_FIELD(limitOption);
1835 1093640 : COMPARE_NODE_FIELD(lockingClause);
1836 1093640 : COMPARE_NODE_FIELD(withClause);
1837 1093640 : COMPARE_SCALAR_FIELD(op);
1838 1093640 : COMPARE_SCALAR_FIELD(all);
1839 1093640 : COMPARE_NODE_FIELD(larg);
1840 1093640 : COMPARE_NODE_FIELD(rarg);
1841 : COMPARE_LOCATION_FIELD(stmt_location);
1842 : COMPARE_LOCATION_FIELD(stmt_len);
1843 :
1844 1093640 : return true;
1845 : }
1846 :
1847 : static bool
1848 23862 : _equalSetOperationStmt(const SetOperationStmt *a, const SetOperationStmt *b)
1849 : {
1850 23862 : COMPARE_SCALAR_FIELD(op);
1851 23862 : COMPARE_SCALAR_FIELD(all);
1852 23862 : COMPARE_NODE_FIELD(larg);
1853 23862 : COMPARE_NODE_FIELD(rarg);
1854 23862 : COMPARE_NODE_FIELD(colTypes);
1855 23862 : COMPARE_NODE_FIELD(colTypmods);
1856 23862 : COMPARE_NODE_FIELD(colCollations);
1857 23862 : COMPARE_NODE_FIELD(groupClauses);
1858 :
1859 23862 : return true;
1860 : }
1861 :
1862 : static bool
1863 17552 : _equalReturnStmt(const ReturnStmt *a, const ReturnStmt *b)
1864 : {
1865 17552 : COMPARE_NODE_FIELD(returnval);
1866 :
1867 17552 : return true;
1868 : }
1869 :
1870 : static bool
1871 0 : _equalPLAssignStmt(const PLAssignStmt *a, const PLAssignStmt *b)
1872 : {
1873 0 : COMPARE_STRING_FIELD(name);
1874 0 : COMPARE_NODE_FIELD(indirection);
1875 0 : COMPARE_SCALAR_FIELD(nnames);
1876 0 : COMPARE_NODE_FIELD(val);
1877 : COMPARE_LOCATION_FIELD(location);
1878 :
1879 0 : return true;
1880 : }
1881 :
1882 : static bool
1883 4112 : _equalCreateSchemaStmt(const CreateSchemaStmt *a, const CreateSchemaStmt *b)
1884 : {
1885 4112 : COMPARE_STRING_FIELD(schemaname);
1886 4112 : COMPARE_NODE_FIELD(authrole);
1887 4112 : COMPARE_NODE_FIELD(schemaElts);
1888 4112 : COMPARE_SCALAR_FIELD(if_not_exists);
1889 :
1890 4112 : return true;
1891 : }
1892 :
1893 : static bool
1894 113452 : _equalAlterTableStmt(const AlterTableStmt *a, const AlterTableStmt *b)
1895 : {
1896 113452 : COMPARE_NODE_FIELD(relation);
1897 113452 : COMPARE_NODE_FIELD(cmds);
1898 113452 : COMPARE_SCALAR_FIELD(objtype);
1899 113452 : COMPARE_SCALAR_FIELD(missing_ok);
1900 :
1901 113452 : return true;
1902 : }
1903 :
1904 : static bool
1905 117364 : _equalAlterTableCmd(const AlterTableCmd *a, const AlterTableCmd *b)
1906 : {
1907 117364 : COMPARE_SCALAR_FIELD(subtype);
1908 117364 : COMPARE_STRING_FIELD(name);
1909 117364 : COMPARE_SCALAR_FIELD(num);
1910 117364 : COMPARE_NODE_FIELD(newowner);
1911 117364 : COMPARE_NODE_FIELD(def);
1912 117364 : COMPARE_SCALAR_FIELD(behavior);
1913 117364 : COMPARE_SCALAR_FIELD(missing_ok);
1914 117364 : COMPARE_SCALAR_FIELD(recurse);
1915 :
1916 117364 : return true;
1917 : }
1918 :
1919 : static bool
1920 528 : _equalATAlterConstraint(const ATAlterConstraint *a, const ATAlterConstraint *b)
1921 : {
1922 528 : COMPARE_STRING_FIELD(conname);
1923 528 : COMPARE_SCALAR_FIELD(alterDeferrability);
1924 528 : COMPARE_SCALAR_FIELD(deferrable);
1925 528 : COMPARE_SCALAR_FIELD(initdeferred);
1926 :
1927 528 : return true;
1928 : }
1929 :
1930 : static bool
1931 1960 : _equalReplicaIdentityStmt(const ReplicaIdentityStmt *a, const ReplicaIdentityStmt *b)
1932 : {
1933 1960 : COMPARE_SCALAR_FIELD(identity_type);
1934 1960 : COMPARE_STRING_FIELD(name);
1935 :
1936 1960 : return true;
1937 : }
1938 :
1939 : static bool
1940 24 : _equalAlterCollationStmt(const AlterCollationStmt *a, const AlterCollationStmt *b)
1941 : {
1942 24 : COMPARE_NODE_FIELD(collname);
1943 :
1944 24 : return true;
1945 : }
1946 :
1947 : static bool
1948 1128 : _equalAlterDomainStmt(const AlterDomainStmt *a, const AlterDomainStmt *b)
1949 : {
1950 1128 : COMPARE_SCALAR_FIELD(subtype);
1951 1128 : COMPARE_NODE_FIELD(typeName);
1952 1128 : COMPARE_STRING_FIELD(name);
1953 1128 : COMPARE_NODE_FIELD(def);
1954 1128 : COMPARE_SCALAR_FIELD(behavior);
1955 1128 : COMPARE_SCALAR_FIELD(missing_ok);
1956 :
1957 1128 : return true;
1958 : }
1959 :
1960 : static bool
1961 72084 : _equalGrantStmt(const GrantStmt *a, const GrantStmt *b)
1962 : {
1963 72084 : COMPARE_SCALAR_FIELD(is_grant);
1964 72084 : COMPARE_SCALAR_FIELD(targtype);
1965 72084 : COMPARE_SCALAR_FIELD(objtype);
1966 72084 : COMPARE_NODE_FIELD(objects);
1967 72084 : COMPARE_NODE_FIELD(privileges);
1968 72084 : COMPARE_NODE_FIELD(grantees);
1969 72084 : COMPARE_SCALAR_FIELD(grant_option);
1970 72084 : COMPARE_NODE_FIELD(grantor);
1971 72084 : COMPARE_SCALAR_FIELD(behavior);
1972 :
1973 72084 : return true;
1974 : }
1975 :
1976 : static bool
1977 72548 : _equalObjectWithArgs(const ObjectWithArgs *a, const ObjectWithArgs *b)
1978 : {
1979 72548 : COMPARE_NODE_FIELD(objname);
1980 72548 : COMPARE_NODE_FIELD(objargs);
1981 72548 : COMPARE_NODE_FIELD(objfuncargs);
1982 72548 : COMPARE_SCALAR_FIELD(args_unspecified);
1983 :
1984 72548 : return true;
1985 : }
1986 :
1987 : static bool
1988 68548 : _equalAccessPriv(const AccessPriv *a, const AccessPriv *b)
1989 : {
1990 68548 : COMPARE_STRING_FIELD(priv_name);
1991 68548 : COMPARE_NODE_FIELD(cols);
1992 :
1993 68548 : return true;
1994 : }
1995 :
1996 : static bool
1997 3664 : _equalGrantRoleStmt(const GrantRoleStmt *a, const GrantRoleStmt *b)
1998 : {
1999 3664 : COMPARE_NODE_FIELD(granted_roles);
2000 3664 : COMPARE_NODE_FIELD(grantee_roles);
2001 3664 : COMPARE_SCALAR_FIELD(is_grant);
2002 3664 : COMPARE_NODE_FIELD(opt);
2003 3664 : COMPARE_NODE_FIELD(grantor);
2004 3664 : COMPARE_SCALAR_FIELD(behavior);
2005 :
2006 3664 : return true;
2007 : }
2008 :
2009 : static bool
2010 640 : _equalAlterDefaultPrivilegesStmt(const AlterDefaultPrivilegesStmt *a, const AlterDefaultPrivilegesStmt *b)
2011 : {
2012 640 : COMPARE_NODE_FIELD(options);
2013 640 : COMPARE_NODE_FIELD(action);
2014 :
2015 640 : return true;
2016 : }
2017 :
2018 : static bool
2019 42104 : _equalCopyStmt(const CopyStmt *a, const CopyStmt *b)
2020 : {
2021 42104 : COMPARE_NODE_FIELD(relation);
2022 42104 : COMPARE_NODE_FIELD(query);
2023 42104 : COMPARE_NODE_FIELD(attlist);
2024 42104 : COMPARE_SCALAR_FIELD(is_from);
2025 42104 : COMPARE_SCALAR_FIELD(is_program);
2026 42104 : COMPARE_STRING_FIELD(filename);
2027 42104 : COMPARE_NODE_FIELD(options);
2028 42104 : COMPARE_NODE_FIELD(whereClause);
2029 :
2030 42104 : return true;
2031 : }
2032 :
2033 : static bool
2034 104868 : _equalVariableSetStmt(const VariableSetStmt *a, const VariableSetStmt *b)
2035 : {
2036 104868 : COMPARE_SCALAR_FIELD(kind);
2037 104868 : COMPARE_STRING_FIELD(name);
2038 104868 : COMPARE_NODE_FIELD(args);
2039 104868 : COMPARE_SCALAR_FIELD(jumble_args);
2040 104868 : COMPARE_SCALAR_FIELD(is_local);
2041 : COMPARE_LOCATION_FIELD(location);
2042 :
2043 104868 : return true;
2044 : }
2045 :
2046 : static bool
2047 3376 : _equalVariableShowStmt(const VariableShowStmt *a, const VariableShowStmt *b)
2048 : {
2049 3376 : COMPARE_STRING_FIELD(name);
2050 :
2051 3376 : return true;
2052 : }
2053 :
2054 : static bool
2055 146068 : _equalCreateStmt(const CreateStmt *a, const CreateStmt *b)
2056 : {
2057 146068 : COMPARE_NODE_FIELD(relation);
2058 146068 : COMPARE_NODE_FIELD(tableElts);
2059 146068 : COMPARE_NODE_FIELD(inhRelations);
2060 146068 : COMPARE_NODE_FIELD(partbound);
2061 146068 : COMPARE_NODE_FIELD(partspec);
2062 146068 : COMPARE_NODE_FIELD(ofTypename);
2063 146068 : COMPARE_NODE_FIELD(constraints);
2064 146068 : COMPARE_NODE_FIELD(nnconstraints);
2065 146068 : COMPARE_NODE_FIELD(options);
2066 146068 : COMPARE_SCALAR_FIELD(oncommit);
2067 146068 : COMPARE_STRING_FIELD(tablespacename);
2068 146068 : COMPARE_STRING_FIELD(accessMethod);
2069 146068 : COMPARE_SCALAR_FIELD(if_not_exists);
2070 :
2071 146068 : return true;
2072 : }
2073 :
2074 : static bool
2075 135268 : _equalConstraint(const Constraint *a, const Constraint *b)
2076 : {
2077 135268 : COMPARE_SCALAR_FIELD(contype);
2078 135268 : COMPARE_STRING_FIELD(conname);
2079 135268 : COMPARE_SCALAR_FIELD(deferrable);
2080 135268 : COMPARE_SCALAR_FIELD(initdeferred);
2081 135268 : COMPARE_SCALAR_FIELD(is_enforced);
2082 135268 : COMPARE_SCALAR_FIELD(skip_validation);
2083 135268 : COMPARE_SCALAR_FIELD(initially_valid);
2084 135268 : COMPARE_SCALAR_FIELD(is_no_inherit);
2085 135268 : COMPARE_NODE_FIELD(raw_expr);
2086 135268 : COMPARE_STRING_FIELD(cooked_expr);
2087 135268 : COMPARE_SCALAR_FIELD(generated_when);
2088 135268 : COMPARE_SCALAR_FIELD(generated_kind);
2089 135268 : COMPARE_SCALAR_FIELD(nulls_not_distinct);
2090 135268 : COMPARE_NODE_FIELD(keys);
2091 135268 : COMPARE_SCALAR_FIELD(without_overlaps);
2092 135268 : COMPARE_NODE_FIELD(including);
2093 135268 : COMPARE_NODE_FIELD(exclusions);
2094 135268 : COMPARE_NODE_FIELD(options);
2095 135268 : COMPARE_STRING_FIELD(indexname);
2096 135268 : COMPARE_STRING_FIELD(indexspace);
2097 135268 : COMPARE_SCALAR_FIELD(reset_default_tblspc);
2098 135268 : COMPARE_STRING_FIELD(access_method);
2099 135268 : COMPARE_NODE_FIELD(where_clause);
2100 135268 : COMPARE_NODE_FIELD(pktable);
2101 135268 : COMPARE_NODE_FIELD(fk_attrs);
2102 135268 : COMPARE_NODE_FIELD(pk_attrs);
2103 135268 : COMPARE_SCALAR_FIELD(fk_with_period);
2104 135268 : COMPARE_SCALAR_FIELD(pk_with_period);
2105 135268 : COMPARE_SCALAR_FIELD(fk_matchtype);
2106 135268 : COMPARE_SCALAR_FIELD(fk_upd_action);
2107 135268 : COMPARE_SCALAR_FIELD(fk_del_action);
2108 135268 : COMPARE_NODE_FIELD(fk_del_set_cols);
2109 135268 : COMPARE_NODE_FIELD(old_conpfeqop);
2110 135268 : COMPARE_SCALAR_FIELD(old_pktable_oid);
2111 : COMPARE_LOCATION_FIELD(location);
2112 :
2113 135268 : return true;
2114 : }
2115 :
2116 : static bool
2117 448 : _equalCreateTableSpaceStmt(const CreateTableSpaceStmt *a, const CreateTableSpaceStmt *b)
2118 : {
2119 448 : COMPARE_STRING_FIELD(tablespacename);
2120 448 : COMPARE_NODE_FIELD(owner);
2121 448 : COMPARE_STRING_FIELD(location);
2122 448 : COMPARE_NODE_FIELD(options);
2123 :
2124 448 : return true;
2125 : }
2126 :
2127 : static bool
2128 256 : _equalDropTableSpaceStmt(const DropTableSpaceStmt *a, const DropTableSpaceStmt *b)
2129 : {
2130 256 : COMPARE_STRING_FIELD(tablespacename);
2131 256 : COMPARE_SCALAR_FIELD(missing_ok);
2132 :
2133 256 : return true;
2134 : }
2135 :
2136 : static bool
2137 96 : _equalAlterTableSpaceOptionsStmt(const AlterTableSpaceOptionsStmt *a, const AlterTableSpaceOptionsStmt *b)
2138 : {
2139 96 : COMPARE_STRING_FIELD(tablespacename);
2140 96 : COMPARE_NODE_FIELD(options);
2141 96 : COMPARE_SCALAR_FIELD(isReset);
2142 :
2143 96 : return true;
2144 : }
2145 :
2146 : static bool
2147 120 : _equalAlterTableMoveAllStmt(const AlterTableMoveAllStmt *a, const AlterTableMoveAllStmt *b)
2148 : {
2149 120 : COMPARE_STRING_FIELD(orig_tablespacename);
2150 120 : COMPARE_SCALAR_FIELD(objtype);
2151 120 : COMPARE_NODE_FIELD(roles);
2152 120 : COMPARE_STRING_FIELD(new_tablespacename);
2153 120 : COMPARE_SCALAR_FIELD(nowait);
2154 :
2155 120 : return true;
2156 : }
2157 :
2158 : static bool
2159 1936 : _equalCreateExtensionStmt(const CreateExtensionStmt *a, const CreateExtensionStmt *b)
2160 : {
2161 1936 : COMPARE_STRING_FIELD(extname);
2162 1936 : COMPARE_SCALAR_FIELD(if_not_exists);
2163 1936 : COMPARE_NODE_FIELD(options);
2164 :
2165 1936 : return true;
2166 : }
2167 :
2168 : static bool
2169 140 : _equalAlterExtensionStmt(const AlterExtensionStmt *a, const AlterExtensionStmt *b)
2170 : {
2171 140 : COMPARE_STRING_FIELD(extname);
2172 140 : COMPARE_NODE_FIELD(options);
2173 :
2174 140 : return true;
2175 : }
2176 :
2177 : static bool
2178 896 : _equalAlterExtensionContentsStmt(const AlterExtensionContentsStmt *a, const AlterExtensionContentsStmt *b)
2179 : {
2180 896 : COMPARE_STRING_FIELD(extname);
2181 896 : COMPARE_SCALAR_FIELD(action);
2182 896 : COMPARE_SCALAR_FIELD(objtype);
2183 896 : COMPARE_NODE_FIELD(object);
2184 :
2185 896 : return true;
2186 : }
2187 :
2188 : static bool
2189 808 : _equalCreateFdwStmt(const CreateFdwStmt *a, const CreateFdwStmt *b)
2190 : {
2191 808 : COMPARE_STRING_FIELD(fdwname);
2192 808 : COMPARE_NODE_FIELD(func_options);
2193 808 : COMPARE_NODE_FIELD(options);
2194 :
2195 808 : return true;
2196 : }
2197 :
2198 : static bool
2199 488 : _equalAlterFdwStmt(const AlterFdwStmt *a, const AlterFdwStmt *b)
2200 : {
2201 488 : COMPARE_STRING_FIELD(fdwname);
2202 488 : COMPARE_NODE_FIELD(func_options);
2203 488 : COMPARE_NODE_FIELD(options);
2204 :
2205 488 : return true;
2206 : }
2207 :
2208 : static bool
2209 1124 : _equalCreateForeignServerStmt(const CreateForeignServerStmt *a, const CreateForeignServerStmt *b)
2210 : {
2211 1124 : COMPARE_STRING_FIELD(servername);
2212 1124 : COMPARE_STRING_FIELD(servertype);
2213 1124 : COMPARE_STRING_FIELD(version);
2214 1124 : COMPARE_STRING_FIELD(fdwname);
2215 1124 : COMPARE_SCALAR_FIELD(if_not_exists);
2216 1124 : COMPARE_NODE_FIELD(options);
2217 :
2218 1124 : return true;
2219 : }
2220 :
2221 : static bool
2222 876 : _equalAlterForeignServerStmt(const AlterForeignServerStmt *a, const AlterForeignServerStmt *b)
2223 : {
2224 876 : COMPARE_STRING_FIELD(servername);
2225 876 : COMPARE_STRING_FIELD(version);
2226 876 : COMPARE_NODE_FIELD(options);
2227 876 : COMPARE_SCALAR_FIELD(has_version);
2228 :
2229 876 : return true;
2230 : }
2231 :
2232 : static bool
2233 1792 : _equalCreateForeignTableStmt(const CreateForeignTableStmt *a, const CreateForeignTableStmt *b)
2234 : {
2235 1792 : COMPARE_NODE_FIELD(base.relation);
2236 1792 : COMPARE_NODE_FIELD(base.tableElts);
2237 1792 : COMPARE_NODE_FIELD(base.inhRelations);
2238 1792 : COMPARE_NODE_FIELD(base.partbound);
2239 1792 : COMPARE_NODE_FIELD(base.partspec);
2240 1792 : COMPARE_NODE_FIELD(base.ofTypename);
2241 1792 : COMPARE_NODE_FIELD(base.constraints);
2242 1792 : COMPARE_NODE_FIELD(base.nnconstraints);
2243 1792 : COMPARE_NODE_FIELD(base.options);
2244 1792 : COMPARE_SCALAR_FIELD(base.oncommit);
2245 1792 : COMPARE_STRING_FIELD(base.tablespacename);
2246 1792 : COMPARE_STRING_FIELD(base.accessMethod);
2247 1792 : COMPARE_SCALAR_FIELD(base.if_not_exists);
2248 1792 : COMPARE_STRING_FIELD(servername);
2249 1792 : COMPARE_NODE_FIELD(options);
2250 :
2251 1792 : return true;
2252 : }
2253 :
2254 : static bool
2255 968 : _equalCreateUserMappingStmt(const CreateUserMappingStmt *a, const CreateUserMappingStmt *b)
2256 : {
2257 968 : COMPARE_NODE_FIELD(user);
2258 968 : COMPARE_STRING_FIELD(servername);
2259 968 : COMPARE_SCALAR_FIELD(if_not_exists);
2260 968 : COMPARE_NODE_FIELD(options);
2261 :
2262 968 : return true;
2263 : }
2264 :
2265 : static bool
2266 440 : _equalAlterUserMappingStmt(const AlterUserMappingStmt *a, const AlterUserMappingStmt *b)
2267 : {
2268 440 : COMPARE_NODE_FIELD(user);
2269 440 : COMPARE_STRING_FIELD(servername);
2270 440 : COMPARE_NODE_FIELD(options);
2271 :
2272 440 : return true;
2273 : }
2274 :
2275 : static bool
2276 504 : _equalDropUserMappingStmt(const DropUserMappingStmt *a, const DropUserMappingStmt *b)
2277 : {
2278 504 : COMPARE_NODE_FIELD(user);
2279 504 : COMPARE_STRING_FIELD(servername);
2280 504 : COMPARE_SCALAR_FIELD(missing_ok);
2281 :
2282 504 : return true;
2283 : }
2284 :
2285 : static bool
2286 192 : _equalImportForeignSchemaStmt(const ImportForeignSchemaStmt *a, const ImportForeignSchemaStmt *b)
2287 : {
2288 192 : COMPARE_STRING_FIELD(server_name);
2289 192 : COMPARE_STRING_FIELD(remote_schema);
2290 192 : COMPARE_STRING_FIELD(local_schema);
2291 192 : COMPARE_SCALAR_FIELD(list_type);
2292 192 : COMPARE_NODE_FIELD(table_list);
2293 192 : COMPARE_NODE_FIELD(options);
2294 :
2295 192 : return true;
2296 : }
2297 :
2298 : static bool
2299 2704 : _equalCreatePolicyStmt(const CreatePolicyStmt *a, const CreatePolicyStmt *b)
2300 : {
2301 2704 : COMPARE_STRING_FIELD(policy_name);
2302 2704 : COMPARE_NODE_FIELD(table);
2303 2704 : COMPARE_STRING_FIELD(cmd_name);
2304 2704 : COMPARE_SCALAR_FIELD(permissive);
2305 2704 : COMPARE_NODE_FIELD(roles);
2306 2704 : COMPARE_NODE_FIELD(qual);
2307 2704 : COMPARE_NODE_FIELD(with_check);
2308 :
2309 2704 : return true;
2310 : }
2311 :
2312 : static bool
2313 336 : _equalAlterPolicyStmt(const AlterPolicyStmt *a, const AlterPolicyStmt *b)
2314 : {
2315 336 : COMPARE_STRING_FIELD(policy_name);
2316 336 : COMPARE_NODE_FIELD(table);
2317 336 : COMPARE_NODE_FIELD(roles);
2318 336 : COMPARE_NODE_FIELD(qual);
2319 336 : COMPARE_NODE_FIELD(with_check);
2320 :
2321 336 : return true;
2322 : }
2323 :
2324 : static bool
2325 248 : _equalCreateAmStmt(const CreateAmStmt *a, const CreateAmStmt *b)
2326 : {
2327 248 : COMPARE_STRING_FIELD(amname);
2328 248 : COMPARE_NODE_FIELD(handler_name);
2329 248 : COMPARE_SCALAR_FIELD(amtype);
2330 :
2331 248 : return true;
2332 : }
2333 :
2334 : static bool
2335 12896 : _equalCreateTrigStmt(const CreateTrigStmt *a, const CreateTrigStmt *b)
2336 : {
2337 12896 : COMPARE_SCALAR_FIELD(replace);
2338 12896 : COMPARE_SCALAR_FIELD(isconstraint);
2339 12896 : COMPARE_STRING_FIELD(trigname);
2340 12896 : COMPARE_NODE_FIELD(relation);
2341 12896 : COMPARE_NODE_FIELD(funcname);
2342 12896 : COMPARE_NODE_FIELD(args);
2343 12896 : COMPARE_SCALAR_FIELD(row);
2344 12896 : COMPARE_SCALAR_FIELD(timing);
2345 12896 : COMPARE_SCALAR_FIELD(events);
2346 12896 : COMPARE_NODE_FIELD(columns);
2347 12896 : COMPARE_NODE_FIELD(whenClause);
2348 12896 : COMPARE_NODE_FIELD(transitionRels);
2349 12896 : COMPARE_SCALAR_FIELD(deferrable);
2350 12896 : COMPARE_SCALAR_FIELD(initdeferred);
2351 12896 : COMPARE_NODE_FIELD(constrrel);
2352 :
2353 12896 : return true;
2354 : }
2355 :
2356 : static bool
2357 784 : _equalCreateEventTrigStmt(const CreateEventTrigStmt *a, const CreateEventTrigStmt *b)
2358 : {
2359 784 : COMPARE_STRING_FIELD(trigname);
2360 784 : COMPARE_STRING_FIELD(eventname);
2361 784 : COMPARE_NODE_FIELD(whenclause);
2362 784 : COMPARE_NODE_FIELD(funcname);
2363 :
2364 784 : return true;
2365 : }
2366 :
2367 : static bool
2368 192 : _equalAlterEventTrigStmt(const AlterEventTrigStmt *a, const AlterEventTrigStmt *b)
2369 : {
2370 192 : COMPARE_STRING_FIELD(trigname);
2371 192 : COMPARE_SCALAR_FIELD(tgenabled);
2372 :
2373 192 : return true;
2374 : }
2375 :
2376 : static bool
2377 528 : _equalCreatePLangStmt(const CreatePLangStmt *a, const CreatePLangStmt *b)
2378 : {
2379 528 : COMPARE_SCALAR_FIELD(replace);
2380 528 : COMPARE_STRING_FIELD(plname);
2381 528 : COMPARE_NODE_FIELD(plhandler);
2382 528 : COMPARE_NODE_FIELD(plinline);
2383 528 : COMPARE_NODE_FIELD(plvalidator);
2384 528 : COMPARE_SCALAR_FIELD(pltrusted);
2385 :
2386 528 : return true;
2387 : }
2388 :
2389 : static bool
2390 7160 : _equalCreateRoleStmt(const CreateRoleStmt *a, const CreateRoleStmt *b)
2391 : {
2392 7160 : COMPARE_SCALAR_FIELD(stmt_type);
2393 7160 : COMPARE_STRING_FIELD(role);
2394 7160 : COMPARE_NODE_FIELD(options);
2395 :
2396 7160 : return true;
2397 : }
2398 :
2399 : static bool
2400 1792 : _equalAlterRoleStmt(const AlterRoleStmt *a, const AlterRoleStmt *b)
2401 : {
2402 1792 : COMPARE_NODE_FIELD(role);
2403 1792 : COMPARE_NODE_FIELD(options);
2404 1792 : COMPARE_SCALAR_FIELD(action);
2405 :
2406 1792 : return true;
2407 : }
2408 :
2409 : static bool
2410 328 : _equalAlterRoleSetStmt(const AlterRoleSetStmt *a, const AlterRoleSetStmt *b)
2411 : {
2412 328 : COMPARE_NODE_FIELD(role);
2413 328 : COMPARE_STRING_FIELD(database);
2414 328 : COMPARE_NODE_FIELD(setstmt);
2415 :
2416 328 : return true;
2417 : }
2418 :
2419 : static bool
2420 6800 : _equalDropRoleStmt(const DropRoleStmt *a, const DropRoleStmt *b)
2421 : {
2422 6800 : COMPARE_NODE_FIELD(roles);
2423 6800 : COMPARE_SCALAR_FIELD(missing_ok);
2424 :
2425 6800 : return true;
2426 : }
2427 :
2428 : static bool
2429 2624 : _equalCreateSeqStmt(const CreateSeqStmt *a, const CreateSeqStmt *b)
2430 : {
2431 2624 : COMPARE_NODE_FIELD(sequence);
2432 2624 : COMPARE_NODE_FIELD(options);
2433 2624 : COMPARE_SCALAR_FIELD(ownerId);
2434 2624 : COMPARE_SCALAR_FIELD(for_identity);
2435 2624 : COMPARE_SCALAR_FIELD(if_not_exists);
2436 :
2437 2624 : return true;
2438 : }
2439 :
2440 : static bool
2441 784 : _equalAlterSeqStmt(const AlterSeqStmt *a, const AlterSeqStmt *b)
2442 : {
2443 784 : COMPARE_NODE_FIELD(sequence);
2444 784 : COMPARE_NODE_FIELD(options);
2445 784 : COMPARE_SCALAR_FIELD(for_identity);
2446 784 : COMPARE_SCALAR_FIELD(missing_ok);
2447 :
2448 784 : return true;
2449 : }
2450 :
2451 : static bool
2452 34416 : _equalDefineStmt(const DefineStmt *a, const DefineStmt *b)
2453 : {
2454 34416 : COMPARE_SCALAR_FIELD(kind);
2455 34416 : COMPARE_SCALAR_FIELD(oldstyle);
2456 34416 : COMPARE_NODE_FIELD(defnames);
2457 34416 : COMPARE_NODE_FIELD(args);
2458 34416 : COMPARE_NODE_FIELD(definition);
2459 34416 : COMPARE_SCALAR_FIELD(if_not_exists);
2460 34416 : COMPARE_SCALAR_FIELD(replace);
2461 :
2462 34416 : return true;
2463 : }
2464 :
2465 : static bool
2466 5392 : _equalCreateDomainStmt(const CreateDomainStmt *a, const CreateDomainStmt *b)
2467 : {
2468 5392 : COMPARE_NODE_FIELD(domainname);
2469 5392 : COMPARE_NODE_FIELD(typeName);
2470 5392 : COMPARE_NODE_FIELD(collClause);
2471 5392 : COMPARE_NODE_FIELD(constraints);
2472 :
2473 5392 : return true;
2474 : }
2475 :
2476 : static bool
2477 1552 : _equalCreateOpClassStmt(const CreateOpClassStmt *a, const CreateOpClassStmt *b)
2478 : {
2479 1552 : COMPARE_NODE_FIELD(opclassname);
2480 1552 : COMPARE_NODE_FIELD(opfamilyname);
2481 1552 : COMPARE_STRING_FIELD(amname);
2482 1552 : COMPARE_NODE_FIELD(datatype);
2483 1552 : COMPARE_NODE_FIELD(items);
2484 1552 : COMPARE_SCALAR_FIELD(isDefault);
2485 :
2486 1552 : return true;
2487 : }
2488 :
2489 : static bool
2490 16080 : _equalCreateOpClassItem(const CreateOpClassItem *a, const CreateOpClassItem *b)
2491 : {
2492 16080 : COMPARE_SCALAR_FIELD(itemtype);
2493 16080 : COMPARE_NODE_FIELD(name);
2494 16080 : COMPARE_SCALAR_FIELD(number);
2495 16080 : COMPARE_NODE_FIELD(order_family);
2496 16080 : COMPARE_NODE_FIELD(class_args);
2497 16080 : COMPARE_NODE_FIELD(storedtype);
2498 :
2499 16080 : return true;
2500 : }
2501 :
2502 : static bool
2503 592 : _equalCreateOpFamilyStmt(const CreateOpFamilyStmt *a, const CreateOpFamilyStmt *b)
2504 : {
2505 592 : COMPARE_NODE_FIELD(opfamilyname);
2506 592 : COMPARE_STRING_FIELD(amname);
2507 :
2508 592 : return true;
2509 : }
2510 :
2511 : static bool
2512 2056 : _equalAlterOpFamilyStmt(const AlterOpFamilyStmt *a, const AlterOpFamilyStmt *b)
2513 : {
2514 2056 : COMPARE_NODE_FIELD(opfamilyname);
2515 2056 : COMPARE_STRING_FIELD(amname);
2516 2056 : COMPARE_SCALAR_FIELD(isDrop);
2517 2056 : COMPARE_NODE_FIELD(items);
2518 :
2519 2056 : return true;
2520 : }
2521 :
2522 : static bool
2523 99884 : _equalDropStmt(const DropStmt *a, const DropStmt *b)
2524 : {
2525 99884 : COMPARE_NODE_FIELD(objects);
2526 99884 : COMPARE_SCALAR_FIELD(removeType);
2527 99884 : COMPARE_SCALAR_FIELD(behavior);
2528 99884 : COMPARE_SCALAR_FIELD(missing_ok);
2529 99884 : COMPARE_SCALAR_FIELD(concurrent);
2530 :
2531 99884 : return true;
2532 : }
2533 :
2534 : static bool
2535 6580 : _equalTruncateStmt(const TruncateStmt *a, const TruncateStmt *b)
2536 : {
2537 6580 : COMPARE_NODE_FIELD(relations);
2538 6580 : COMPARE_SCALAR_FIELD(restart_seqs);
2539 6580 : COMPARE_SCALAR_FIELD(behavior);
2540 :
2541 6580 : return true;
2542 : }
2543 :
2544 : static bool
2545 25280 : _equalCommentStmt(const CommentStmt *a, const CommentStmt *b)
2546 : {
2547 25280 : COMPARE_SCALAR_FIELD(objtype);
2548 25280 : COMPARE_NODE_FIELD(object);
2549 25280 : COMPARE_STRING_FIELD(comment);
2550 :
2551 25280 : return true;
2552 : }
2553 :
2554 : static bool
2555 400 : _equalSecLabelStmt(const SecLabelStmt *a, const SecLabelStmt *b)
2556 : {
2557 400 : COMPARE_SCALAR_FIELD(objtype);
2558 400 : COMPARE_NODE_FIELD(object);
2559 400 : COMPARE_STRING_FIELD(provider);
2560 400 : COMPARE_STRING_FIELD(label);
2561 :
2562 400 : return true;
2563 : }
2564 :
2565 : static bool
2566 11164 : _equalDeclareCursorStmt(const DeclareCursorStmt *a, const DeclareCursorStmt *b)
2567 : {
2568 11164 : COMPARE_STRING_FIELD(portalname);
2569 11164 : COMPARE_SCALAR_FIELD(options);
2570 11164 : COMPARE_NODE_FIELD(query);
2571 :
2572 11164 : return true;
2573 : }
2574 :
2575 : static bool
2576 8792 : _equalClosePortalStmt(const ClosePortalStmt *a, const ClosePortalStmt *b)
2577 : {
2578 8792 : COMPARE_STRING_FIELD(portalname);
2579 :
2580 8792 : return true;
2581 : }
2582 :
2583 : static bool
2584 23024 : _equalFetchStmt(const FetchStmt *a, const FetchStmt *b)
2585 : {
2586 23024 : COMPARE_SCALAR_FIELD(direction);
2587 23024 : COMPARE_SCALAR_FIELD(howMany);
2588 23024 : COMPARE_STRING_FIELD(portalname);
2589 23024 : COMPARE_SCALAR_FIELD(ismove);
2590 :
2591 23024 : return true;
2592 : }
2593 :
2594 : static bool
2595 25200 : _equalIndexStmt(const IndexStmt *a, const IndexStmt *b)
2596 : {
2597 25200 : COMPARE_STRING_FIELD(idxname);
2598 25200 : COMPARE_NODE_FIELD(relation);
2599 25200 : COMPARE_STRING_FIELD(accessMethod);
2600 25200 : COMPARE_STRING_FIELD(tableSpace);
2601 25200 : COMPARE_NODE_FIELD(indexParams);
2602 25200 : COMPARE_NODE_FIELD(indexIncludingParams);
2603 25200 : COMPARE_NODE_FIELD(options);
2604 25200 : COMPARE_NODE_FIELD(whereClause);
2605 25200 : COMPARE_NODE_FIELD(excludeOpNames);
2606 25200 : COMPARE_STRING_FIELD(idxcomment);
2607 25200 : COMPARE_SCALAR_FIELD(indexOid);
2608 25200 : COMPARE_SCALAR_FIELD(oldNumber);
2609 25200 : COMPARE_SCALAR_FIELD(oldCreateSubid);
2610 25200 : COMPARE_SCALAR_FIELD(oldFirstRelfilelocatorSubid);
2611 25200 : COMPARE_SCALAR_FIELD(unique);
2612 25200 : COMPARE_SCALAR_FIELD(nulls_not_distinct);
2613 25200 : COMPARE_SCALAR_FIELD(primary);
2614 25200 : COMPARE_SCALAR_FIELD(isconstraint);
2615 25200 : COMPARE_SCALAR_FIELD(iswithoutoverlaps);
2616 25200 : COMPARE_SCALAR_FIELD(deferrable);
2617 25200 : COMPARE_SCALAR_FIELD(initdeferred);
2618 25200 : COMPARE_SCALAR_FIELD(transformed);
2619 25200 : COMPARE_SCALAR_FIELD(concurrent);
2620 25200 : COMPARE_SCALAR_FIELD(if_not_exists);
2621 25200 : COMPARE_SCALAR_FIELD(reset_default_tblspc);
2622 :
2623 25200 : return true;
2624 : }
2625 :
2626 : static bool
2627 2556 : _equalCreateStatsStmt(const CreateStatsStmt *a, const CreateStatsStmt *b)
2628 : {
2629 2556 : COMPARE_NODE_FIELD(defnames);
2630 2556 : COMPARE_NODE_FIELD(stat_types);
2631 2556 : COMPARE_NODE_FIELD(exprs);
2632 2556 : COMPARE_NODE_FIELD(relations);
2633 2556 : COMPARE_STRING_FIELD(stxcomment);
2634 2556 : COMPARE_SCALAR_FIELD(transformed);
2635 2556 : COMPARE_SCALAR_FIELD(if_not_exists);
2636 :
2637 2556 : return true;
2638 : }
2639 :
2640 : static bool
2641 6224 : _equalStatsElem(const StatsElem *a, const StatsElem *b)
2642 : {
2643 6224 : COMPARE_STRING_FIELD(name);
2644 6224 : COMPARE_NODE_FIELD(expr);
2645 :
2646 6224 : return true;
2647 : }
2648 :
2649 : static bool
2650 104 : _equalAlterStatsStmt(const AlterStatsStmt *a, const AlterStatsStmt *b)
2651 : {
2652 104 : COMPARE_NODE_FIELD(defnames);
2653 104 : COMPARE_NODE_FIELD(stxstattarget);
2654 104 : COMPARE_SCALAR_FIELD(missing_ok);
2655 :
2656 104 : return true;
2657 : }
2658 :
2659 : static bool
2660 90888 : _equalCreateFunctionStmt(const CreateFunctionStmt *a, const CreateFunctionStmt *b)
2661 : {
2662 90888 : COMPARE_SCALAR_FIELD(is_procedure);
2663 90888 : COMPARE_SCALAR_FIELD(replace);
2664 90888 : COMPARE_NODE_FIELD(funcname);
2665 90888 : COMPARE_NODE_FIELD(parameters);
2666 90888 : COMPARE_NODE_FIELD(returnType);
2667 90888 : COMPARE_NODE_FIELD(options);
2668 90888 : COMPARE_NODE_FIELD(sql_body);
2669 :
2670 90888 : return true;
2671 : }
2672 :
2673 : static bool
2674 275324 : _equalFunctionParameter(const FunctionParameter *a, const FunctionParameter *b)
2675 : {
2676 275324 : COMPARE_STRING_FIELD(name);
2677 275324 : COMPARE_NODE_FIELD(argType);
2678 275324 : COMPARE_SCALAR_FIELD(mode);
2679 275324 : COMPARE_NODE_FIELD(defexpr);
2680 : COMPARE_LOCATION_FIELD(location);
2681 :
2682 275324 : return true;
2683 : }
2684 :
2685 : static bool
2686 2672 : _equalAlterFunctionStmt(const AlterFunctionStmt *a, const AlterFunctionStmt *b)
2687 : {
2688 2672 : COMPARE_SCALAR_FIELD(objtype);
2689 2672 : COMPARE_NODE_FIELD(func);
2690 2672 : COMPARE_NODE_FIELD(actions);
2691 :
2692 2672 : return true;
2693 : }
2694 :
2695 : static bool
2696 4368 : _equalDoStmt(const DoStmt *a, const DoStmt *b)
2697 : {
2698 4368 : COMPARE_NODE_FIELD(args);
2699 :
2700 4368 : return true;
2701 : }
2702 :
2703 : static bool
2704 1772 : _equalCallStmt(const CallStmt *a, const CallStmt *b)
2705 : {
2706 1772 : COMPARE_NODE_FIELD(funccall);
2707 1772 : COMPARE_NODE_FIELD(funcexpr);
2708 1772 : COMPARE_NODE_FIELD(outargs);
2709 :
2710 1772 : return true;
2711 : }
2712 :
2713 : static bool
2714 5568 : _equalRenameStmt(const RenameStmt *a, const RenameStmt *b)
2715 : {
2716 5568 : COMPARE_SCALAR_FIELD(renameType);
2717 5568 : COMPARE_SCALAR_FIELD(relationType);
2718 5568 : COMPARE_NODE_FIELD(relation);
2719 5568 : COMPARE_NODE_FIELD(object);
2720 5568 : COMPARE_STRING_FIELD(subname);
2721 5568 : COMPARE_STRING_FIELD(newname);
2722 5568 : COMPARE_SCALAR_FIELD(behavior);
2723 5568 : COMPARE_SCALAR_FIELD(missing_ok);
2724 :
2725 5568 : return true;
2726 : }
2727 :
2728 : static bool
2729 184 : _equalAlterObjectDependsStmt(const AlterObjectDependsStmt *a, const AlterObjectDependsStmt *b)
2730 : {
2731 184 : COMPARE_SCALAR_FIELD(objectType);
2732 184 : COMPARE_NODE_FIELD(relation);
2733 184 : COMPARE_NODE_FIELD(object);
2734 184 : COMPARE_NODE_FIELD(extname);
2735 184 : COMPARE_SCALAR_FIELD(remove);
2736 :
2737 184 : return true;
2738 : }
2739 :
2740 : static bool
2741 1592 : _equalAlterObjectSchemaStmt(const AlterObjectSchemaStmt *a, const AlterObjectSchemaStmt *b)
2742 : {
2743 1592 : COMPARE_SCALAR_FIELD(objectType);
2744 1592 : COMPARE_NODE_FIELD(relation);
2745 1592 : COMPARE_NODE_FIELD(object);
2746 1592 : COMPARE_STRING_FIELD(newschema);
2747 1592 : COMPARE_SCALAR_FIELD(missing_ok);
2748 :
2749 1592 : return true;
2750 : }
2751 :
2752 : static bool
2753 6372 : _equalAlterOwnerStmt(const AlterOwnerStmt *a, const AlterOwnerStmt *b)
2754 : {
2755 6372 : COMPARE_SCALAR_FIELD(objectType);
2756 6372 : COMPARE_NODE_FIELD(relation);
2757 6372 : COMPARE_NODE_FIELD(object);
2758 6372 : COMPARE_NODE_FIELD(newowner);
2759 :
2760 6372 : return true;
2761 : }
2762 :
2763 : static bool
2764 2432 : _equalAlterOperatorStmt(const AlterOperatorStmt *a, const AlterOperatorStmt *b)
2765 : {
2766 2432 : COMPARE_NODE_FIELD(opername);
2767 2432 : COMPARE_NODE_FIELD(options);
2768 :
2769 2432 : return true;
2770 : }
2771 :
2772 : static bool
2773 240 : _equalAlterTypeStmt(const AlterTypeStmt *a, const AlterTypeStmt *b)
2774 : {
2775 240 : COMPARE_NODE_FIELD(typeName);
2776 240 : COMPARE_NODE_FIELD(options);
2777 :
2778 240 : return true;
2779 : }
2780 :
2781 : static bool
2782 4352 : _equalRuleStmt(const RuleStmt *a, const RuleStmt *b)
2783 : {
2784 4352 : COMPARE_NODE_FIELD(relation);
2785 4352 : COMPARE_STRING_FIELD(rulename);
2786 4352 : COMPARE_NODE_FIELD(whereClause);
2787 4352 : COMPARE_SCALAR_FIELD(event);
2788 4352 : COMPARE_SCALAR_FIELD(instead);
2789 4352 : COMPARE_NODE_FIELD(actions);
2790 4352 : COMPARE_SCALAR_FIELD(replace);
2791 :
2792 4352 : return true;
2793 : }
2794 :
2795 : static bool
2796 538 : _equalNotifyStmt(const NotifyStmt *a, const NotifyStmt *b)
2797 : {
2798 538 : COMPARE_STRING_FIELD(conditionname);
2799 538 : COMPARE_STRING_FIELD(payload);
2800 :
2801 538 : return true;
2802 : }
2803 :
2804 : static bool
2805 296 : _equalListenStmt(const ListenStmt *a, const ListenStmt *b)
2806 : {
2807 296 : COMPARE_STRING_FIELD(conditionname);
2808 :
2809 296 : return true;
2810 : }
2811 :
2812 : static bool
2813 152 : _equalUnlistenStmt(const UnlistenStmt *a, const UnlistenStmt *b)
2814 : {
2815 152 : COMPARE_STRING_FIELD(conditionname);
2816 :
2817 152 : return true;
2818 : }
2819 :
2820 : static bool
2821 140620 : _equalTransactionStmt(const TransactionStmt *a, const TransactionStmt *b)
2822 : {
2823 140620 : COMPARE_SCALAR_FIELD(kind);
2824 140620 : COMPARE_NODE_FIELD(options);
2825 140620 : COMPARE_STRING_FIELD(savepoint_name);
2826 140620 : COMPARE_STRING_FIELD(gid);
2827 140620 : COMPARE_SCALAR_FIELD(chain);
2828 : COMPARE_LOCATION_FIELD(location);
2829 :
2830 140620 : return true;
2831 : }
2832 :
2833 : static bool
2834 10408 : _equalCompositeTypeStmt(const CompositeTypeStmt *a, const CompositeTypeStmt *b)
2835 : {
2836 10408 : COMPARE_NODE_FIELD(typevar);
2837 10408 : COMPARE_NODE_FIELD(coldeflist);
2838 :
2839 10408 : return true;
2840 : }
2841 :
2842 : static bool
2843 768 : _equalCreateEnumStmt(const CreateEnumStmt *a, const CreateEnumStmt *b)
2844 : {
2845 768 : COMPARE_NODE_FIELD(typeName);
2846 768 : COMPARE_NODE_FIELD(vals);
2847 :
2848 768 : return true;
2849 : }
2850 :
2851 : static bool
2852 736 : _equalCreateRangeStmt(const CreateRangeStmt *a, const CreateRangeStmt *b)
2853 : {
2854 736 : COMPARE_NODE_FIELD(typeName);
2855 736 : COMPARE_NODE_FIELD(params);
2856 :
2857 736 : return true;
2858 : }
2859 :
2860 : static bool
2861 1576 : _equalAlterEnumStmt(const AlterEnumStmt *a, const AlterEnumStmt *b)
2862 : {
2863 1576 : COMPARE_NODE_FIELD(typeName);
2864 1576 : COMPARE_STRING_FIELD(oldVal);
2865 1576 : COMPARE_STRING_FIELD(newVal);
2866 1576 : COMPARE_STRING_FIELD(newValNeighbor);
2867 1576 : COMPARE_SCALAR_FIELD(newValIsAfter);
2868 1576 : COMPARE_SCALAR_FIELD(skipIfNewValExists);
2869 :
2870 1576 : return true;
2871 : }
2872 :
2873 : static bool
2874 60760 : _equalViewStmt(const ViewStmt *a, const ViewStmt *b)
2875 : {
2876 60760 : COMPARE_NODE_FIELD(view);
2877 60760 : COMPARE_NODE_FIELD(aliases);
2878 60760 : COMPARE_NODE_FIELD(query);
2879 60760 : COMPARE_SCALAR_FIELD(replace);
2880 60760 : COMPARE_NODE_FIELD(options);
2881 60760 : COMPARE_SCALAR_FIELD(withCheckOption);
2882 :
2883 60760 : return true;
2884 : }
2885 :
2886 : static bool
2887 264 : _equalLoadStmt(const LoadStmt *a, const LoadStmt *b)
2888 : {
2889 264 : COMPARE_STRING_FIELD(filename);
2890 :
2891 264 : return true;
2892 : }
2893 :
2894 : static bool
2895 2744 : _equalCreatedbStmt(const CreatedbStmt *a, const CreatedbStmt *b)
2896 : {
2897 2744 : COMPARE_STRING_FIELD(dbname);
2898 2744 : COMPARE_NODE_FIELD(options);
2899 :
2900 2744 : return true;
2901 : }
2902 :
2903 : static bool
2904 184 : _equalAlterDatabaseStmt(const AlterDatabaseStmt *a, const AlterDatabaseStmt *b)
2905 : {
2906 184 : COMPARE_STRING_FIELD(dbname);
2907 184 : COMPARE_NODE_FIELD(options);
2908 :
2909 184 : return true;
2910 : }
2911 :
2912 : static bool
2913 24 : _equalAlterDatabaseRefreshCollStmt(const AlterDatabaseRefreshCollStmt *a, const AlterDatabaseRefreshCollStmt *b)
2914 : {
2915 24 : COMPARE_STRING_FIELD(dbname);
2916 :
2917 24 : return true;
2918 : }
2919 :
2920 : static bool
2921 4536 : _equalAlterDatabaseSetStmt(const AlterDatabaseSetStmt *a, const AlterDatabaseSetStmt *b)
2922 : {
2923 4536 : COMPARE_STRING_FIELD(dbname);
2924 4536 : COMPARE_NODE_FIELD(setstmt);
2925 :
2926 4536 : return true;
2927 : }
2928 :
2929 : static bool
2930 408 : _equalDropdbStmt(const DropdbStmt *a, const DropdbStmt *b)
2931 : {
2932 408 : COMPARE_STRING_FIELD(dbname);
2933 408 : COMPARE_SCALAR_FIELD(missing_ok);
2934 408 : COMPARE_NODE_FIELD(options);
2935 :
2936 408 : return true;
2937 : }
2938 :
2939 : static bool
2940 664 : _equalAlterSystemStmt(const AlterSystemStmt *a, const AlterSystemStmt *b)
2941 : {
2942 664 : COMPARE_NODE_FIELD(setstmt);
2943 :
2944 664 : return true;
2945 : }
2946 :
2947 : static bool
2948 952 : _equalClusterStmt(const ClusterStmt *a, const ClusterStmt *b)
2949 : {
2950 952 : COMPARE_NODE_FIELD(relation);
2951 952 : COMPARE_STRING_FIELD(indexname);
2952 952 : COMPARE_NODE_FIELD(params);
2953 :
2954 952 : return true;
2955 : }
2956 :
2957 : static bool
2958 42728 : _equalVacuumStmt(const VacuumStmt *a, const VacuumStmt *b)
2959 : {
2960 42728 : COMPARE_NODE_FIELD(options);
2961 42728 : COMPARE_NODE_FIELD(rels);
2962 42728 : COMPARE_SCALAR_FIELD(is_vacuumcmd);
2963 :
2964 42728 : return true;
2965 : }
2966 :
2967 : static bool
2968 42032 : _equalVacuumRelation(const VacuumRelation *a, const VacuumRelation *b)
2969 : {
2970 42032 : COMPARE_NODE_FIELD(relation);
2971 42032 : COMPARE_SCALAR_FIELD(oid);
2972 42032 : COMPARE_NODE_FIELD(va_cols);
2973 :
2974 42032 : return true;
2975 : }
2976 :
2977 : static bool
2978 76788 : _equalExplainStmt(const ExplainStmt *a, const ExplainStmt *b)
2979 : {
2980 76788 : COMPARE_NODE_FIELD(query);
2981 76788 : COMPARE_NODE_FIELD(options);
2982 :
2983 76788 : return true;
2984 : }
2985 :
2986 : static bool
2987 7376 : _equalCreateTableAsStmt(const CreateTableAsStmt *a, const CreateTableAsStmt *b)
2988 : {
2989 7376 : COMPARE_NODE_FIELD(query);
2990 7376 : COMPARE_NODE_FIELD(into);
2991 7376 : COMPARE_SCALAR_FIELD(objtype);
2992 7376 : COMPARE_SCALAR_FIELD(is_select_into);
2993 7376 : COMPARE_SCALAR_FIELD(if_not_exists);
2994 :
2995 7376 : return true;
2996 : }
2997 :
2998 : static bool
2999 1048 : _equalRefreshMatViewStmt(const RefreshMatViewStmt *a, const RefreshMatViewStmt *b)
3000 : {
3001 1048 : COMPARE_SCALAR_FIELD(concurrent);
3002 1048 : COMPARE_SCALAR_FIELD(skipData);
3003 1048 : COMPARE_NODE_FIELD(relation);
3004 :
3005 1048 : return true;
3006 : }
3007 :
3008 : static bool
3009 824 : _equalCheckPointStmt(const CheckPointStmt *a, const CheckPointStmt *b)
3010 : {
3011 :
3012 824 : return true;
3013 : }
3014 :
3015 : static bool
3016 120 : _equalDiscardStmt(const DiscardStmt *a, const DiscardStmt *b)
3017 : {
3018 120 : COMPARE_SCALAR_FIELD(target);
3019 :
3020 120 : return true;
3021 : }
3022 :
3023 : static bool
3024 4408 : _equalLockStmt(const LockStmt *a, const LockStmt *b)
3025 : {
3026 4408 : COMPARE_NODE_FIELD(relations);
3027 4408 : COMPARE_SCALAR_FIELD(mode);
3028 4408 : COMPARE_SCALAR_FIELD(nowait);
3029 :
3030 4408 : return true;
3031 : }
3032 :
3033 : static bool
3034 404 : _equalConstraintsSetStmt(const ConstraintsSetStmt *a, const ConstraintsSetStmt *b)
3035 : {
3036 404 : COMPARE_NODE_FIELD(constraints);
3037 404 : COMPARE_SCALAR_FIELD(deferred);
3038 :
3039 404 : return true;
3040 : }
3041 :
3042 : static bool
3043 4328 : _equalReindexStmt(const ReindexStmt *a, const ReindexStmt *b)
3044 : {
3045 4328 : COMPARE_SCALAR_FIELD(kind);
3046 4328 : COMPARE_NODE_FIELD(relation);
3047 4328 : COMPARE_STRING_FIELD(name);
3048 4328 : COMPARE_NODE_FIELD(params);
3049 :
3050 4328 : return true;
3051 : }
3052 :
3053 : static bool
3054 256 : _equalCreateConversionStmt(const CreateConversionStmt *a, const CreateConversionStmt *b)
3055 : {
3056 256 : COMPARE_NODE_FIELD(conversion_name);
3057 256 : COMPARE_STRING_FIELD(for_encoding_name);
3058 256 : COMPARE_STRING_FIELD(to_encoding_name);
3059 256 : COMPARE_NODE_FIELD(func_name);
3060 256 : COMPARE_SCALAR_FIELD(def);
3061 :
3062 256 : return true;
3063 : }
3064 :
3065 : static bool
3066 1080 : _equalCreateCastStmt(const CreateCastStmt *a, const CreateCastStmt *b)
3067 : {
3068 1080 : COMPARE_NODE_FIELD(sourcetype);
3069 1080 : COMPARE_NODE_FIELD(targettype);
3070 1080 : COMPARE_NODE_FIELD(func);
3071 1080 : COMPARE_SCALAR_FIELD(context);
3072 1080 : COMPARE_SCALAR_FIELD(inout);
3073 :
3074 1080 : return true;
3075 : }
3076 :
3077 : static bool
3078 200 : _equalCreateTransformStmt(const CreateTransformStmt *a, const CreateTransformStmt *b)
3079 : {
3080 200 : COMPARE_SCALAR_FIELD(replace);
3081 200 : COMPARE_NODE_FIELD(type_name);
3082 200 : COMPARE_STRING_FIELD(lang);
3083 200 : COMPARE_NODE_FIELD(fromsql);
3084 200 : COMPARE_NODE_FIELD(tosql);
3085 :
3086 200 : return true;
3087 : }
3088 :
3089 : static bool
3090 7048 : _equalPrepareStmt(const PrepareStmt *a, const PrepareStmt *b)
3091 : {
3092 7048 : COMPARE_STRING_FIELD(name);
3093 7048 : COMPARE_NODE_FIELD(argtypes);
3094 7048 : COMPARE_NODE_FIELD(query);
3095 :
3096 7048 : return true;
3097 : }
3098 :
3099 : static bool
3100 62636 : _equalExecuteStmt(const ExecuteStmt *a, const ExecuteStmt *b)
3101 : {
3102 62636 : COMPARE_STRING_FIELD(name);
3103 62636 : COMPARE_NODE_FIELD(params);
3104 :
3105 62636 : return true;
3106 : }
3107 :
3108 : static bool
3109 16216 : _equalDeallocateStmt(const DeallocateStmt *a, const DeallocateStmt *b)
3110 : {
3111 16216 : COMPARE_STRING_FIELD(name);
3112 16216 : COMPARE_SCALAR_FIELD(isall);
3113 : COMPARE_LOCATION_FIELD(location);
3114 :
3115 16216 : return true;
3116 : }
3117 :
3118 : static bool
3119 592 : _equalDropOwnedStmt(const DropOwnedStmt *a, const DropOwnedStmt *b)
3120 : {
3121 592 : COMPARE_NODE_FIELD(roles);
3122 592 : COMPARE_SCALAR_FIELD(behavior);
3123 :
3124 592 : return true;
3125 : }
3126 :
3127 : static bool
3128 184 : _equalReassignOwnedStmt(const ReassignOwnedStmt *a, const ReassignOwnedStmt *b)
3129 : {
3130 184 : COMPARE_NODE_FIELD(roles);
3131 184 : COMPARE_NODE_FIELD(newrole);
3132 :
3133 184 : return true;
3134 : }
3135 :
3136 : static bool
3137 160 : _equalAlterTSDictionaryStmt(const AlterTSDictionaryStmt *a, const AlterTSDictionaryStmt *b)
3138 : {
3139 160 : COMPARE_NODE_FIELD(dictname);
3140 160 : COMPARE_NODE_FIELD(options);
3141 :
3142 160 : return true;
3143 : }
3144 :
3145 : static bool
3146 30888 : _equalAlterTSConfigurationStmt(const AlterTSConfigurationStmt *a, const AlterTSConfigurationStmt *b)
3147 : {
3148 30888 : COMPARE_SCALAR_FIELD(kind);
3149 30888 : COMPARE_NODE_FIELD(cfgname);
3150 30888 : COMPARE_NODE_FIELD(tokentype);
3151 30888 : COMPARE_NODE_FIELD(dicts);
3152 30888 : COMPARE_SCALAR_FIELD(override);
3153 30888 : COMPARE_SCALAR_FIELD(replace);
3154 30888 : COMPARE_SCALAR_FIELD(missing_ok);
3155 :
3156 30888 : return true;
3157 : }
3158 :
3159 : static bool
3160 5488 : _equalPublicationTable(const PublicationTable *a, const PublicationTable *b)
3161 : {
3162 5488 : COMPARE_NODE_FIELD(relation);
3163 5488 : COMPARE_NODE_FIELD(whereClause);
3164 5488 : COMPARE_NODE_FIELD(columns);
3165 :
3166 5488 : return true;
3167 : }
3168 :
3169 : static bool
3170 6912 : _equalPublicationObjSpec(const PublicationObjSpec *a, const PublicationObjSpec *b)
3171 : {
3172 6912 : COMPARE_SCALAR_FIELD(pubobjtype);
3173 6912 : COMPARE_STRING_FIELD(name);
3174 6912 : COMPARE_NODE_FIELD(pubtable);
3175 : COMPARE_LOCATION_FIELD(location);
3176 :
3177 6912 : return true;
3178 : }
3179 :
3180 : static bool
3181 3160 : _equalCreatePublicationStmt(const CreatePublicationStmt *a, const CreatePublicationStmt *b)
3182 : {
3183 3160 : COMPARE_STRING_FIELD(pubname);
3184 3160 : COMPARE_NODE_FIELD(options);
3185 3160 : COMPARE_NODE_FIELD(pubobjects);
3186 3160 : COMPARE_SCALAR_FIELD(for_all_tables);
3187 :
3188 3160 : return true;
3189 : }
3190 :
3191 : static bool
3192 4264 : _equalAlterPublicationStmt(const AlterPublicationStmt *a, const AlterPublicationStmt *b)
3193 : {
3194 4264 : COMPARE_STRING_FIELD(pubname);
3195 4264 : COMPARE_NODE_FIELD(options);
3196 4264 : COMPARE_NODE_FIELD(pubobjects);
3197 4264 : COMPARE_SCALAR_FIELD(for_all_tables);
3198 4264 : COMPARE_SCALAR_FIELD(action);
3199 :
3200 4264 : return true;
3201 : }
3202 :
3203 : static bool
3204 1768 : _equalCreateSubscriptionStmt(const CreateSubscriptionStmt *a, const CreateSubscriptionStmt *b)
3205 : {
3206 1768 : COMPARE_STRING_FIELD(subname);
3207 1768 : COMPARE_STRING_FIELD(conninfo);
3208 1768 : COMPARE_NODE_FIELD(publication);
3209 1768 : COMPARE_NODE_FIELD(options);
3210 :
3211 1768 : return true;
3212 : }
3213 :
3214 : static bool
3215 1836 : _equalAlterSubscriptionStmt(const AlterSubscriptionStmt *a, const AlterSubscriptionStmt *b)
3216 : {
3217 1836 : COMPARE_SCALAR_FIELD(kind);
3218 1836 : COMPARE_STRING_FIELD(subname);
3219 1836 : COMPARE_STRING_FIELD(conninfo);
3220 1836 : COMPARE_NODE_FIELD(publication);
3221 1836 : COMPARE_NODE_FIELD(options);
3222 :
3223 1836 : return true;
3224 : }
3225 :
3226 : static bool
3227 896 : _equalDropSubscriptionStmt(const DropSubscriptionStmt *a, const DropSubscriptionStmt *b)
3228 : {
3229 896 : COMPARE_STRING_FIELD(subname);
3230 896 : COMPARE_SCALAR_FIELD(missing_ok);
3231 896 : COMPARE_SCALAR_FIELD(behavior);
3232 :
3233 896 : return true;
3234 : }
3235 :
3236 : static bool
3237 0 : _equalPathKey(const PathKey *a, const PathKey *b)
3238 : {
3239 0 : COMPARE_SCALAR_FIELD(pk_eclass);
3240 0 : COMPARE_SCALAR_FIELD(pk_opfamily);
3241 0 : COMPARE_SCALAR_FIELD(pk_strategy);
3242 0 : COMPARE_SCALAR_FIELD(pk_nulls_first);
3243 :
3244 0 : return true;
3245 : }
3246 :
3247 : static bool
3248 0 : _equalGroupByOrdering(const GroupByOrdering *a, const GroupByOrdering *b)
3249 : {
3250 0 : COMPARE_NODE_FIELD(pathkeys);
3251 0 : COMPARE_NODE_FIELD(clauses);
3252 :
3253 0 : return true;
3254 : }
3255 :
3256 : static bool
3257 706 : _equalRestrictInfo(const RestrictInfo *a, const RestrictInfo *b)
3258 : {
3259 706 : COMPARE_NODE_FIELD(clause);
3260 160 : COMPARE_SCALAR_FIELD(is_pushed_down);
3261 160 : COMPARE_SCALAR_FIELD(has_clone);
3262 160 : COMPARE_SCALAR_FIELD(is_clone);
3263 160 : COMPARE_SCALAR_FIELD(security_level);
3264 160 : COMPARE_BITMAPSET_FIELD(required_relids);
3265 148 : COMPARE_BITMAPSET_FIELD(incompatible_relids);
3266 148 : COMPARE_BITMAPSET_FIELD(outer_relids);
3267 148 : COMPARE_SCALAR_FIELD(rinfo_serial);
3268 :
3269 148 : return true;
3270 : }
3271 :
3272 : static bool
3273 1462 : _equalPlaceHolderVar(const PlaceHolderVar *a, const PlaceHolderVar *b)
3274 : {
3275 1462 : COMPARE_BITMAPSET_FIELD(phnullingrels);
3276 1408 : COMPARE_SCALAR_FIELD(phid);
3277 1138 : COMPARE_SCALAR_FIELD(phlevelsup);
3278 :
3279 1138 : return true;
3280 : }
3281 :
3282 : static bool
3283 0 : _equalSpecialJoinInfo(const SpecialJoinInfo *a, const SpecialJoinInfo *b)
3284 : {
3285 0 : COMPARE_BITMAPSET_FIELD(min_lefthand);
3286 0 : COMPARE_BITMAPSET_FIELD(min_righthand);
3287 0 : COMPARE_BITMAPSET_FIELD(syn_lefthand);
3288 0 : COMPARE_BITMAPSET_FIELD(syn_righthand);
3289 0 : COMPARE_SCALAR_FIELD(jointype);
3290 0 : COMPARE_SCALAR_FIELD(ojrelid);
3291 0 : COMPARE_BITMAPSET_FIELD(commute_above_l);
3292 0 : COMPARE_BITMAPSET_FIELD(commute_above_r);
3293 0 : COMPARE_BITMAPSET_FIELD(commute_below_l);
3294 0 : COMPARE_BITMAPSET_FIELD(commute_below_r);
3295 0 : COMPARE_SCALAR_FIELD(lhs_strict);
3296 0 : COMPARE_SCALAR_FIELD(semi_can_btree);
3297 0 : COMPARE_SCALAR_FIELD(semi_can_hash);
3298 0 : COMPARE_NODE_FIELD(semi_operators);
3299 0 : COMPARE_NODE_FIELD(semi_rhs_exprs);
3300 :
3301 0 : return true;
3302 : }
3303 :
3304 : static bool
3305 0 : _equalAppendRelInfo(const AppendRelInfo *a, const AppendRelInfo *b)
3306 : {
3307 0 : COMPARE_SCALAR_FIELD(parent_relid);
3308 0 : COMPARE_SCALAR_FIELD(child_relid);
3309 0 : COMPARE_SCALAR_FIELD(parent_reltype);
3310 0 : COMPARE_SCALAR_FIELD(child_reltype);
3311 0 : COMPARE_NODE_FIELD(translated_vars);
3312 0 : COMPARE_SCALAR_FIELD(num_child_cols);
3313 0 : COMPARE_POINTER_FIELD(parent_colnos, a->num_child_cols * sizeof(AttrNumber));
3314 0 : COMPARE_SCALAR_FIELD(parent_reloid);
3315 :
3316 0 : return true;
3317 : }
3318 :
3319 : static bool
3320 0 : _equalPlaceHolderInfo(const PlaceHolderInfo *a, const PlaceHolderInfo *b)
3321 : {
3322 0 : COMPARE_SCALAR_FIELD(phid);
3323 0 : COMPARE_NODE_FIELD(ph_var);
3324 0 : COMPARE_BITMAPSET_FIELD(ph_eval_at);
3325 0 : COMPARE_BITMAPSET_FIELD(ph_lateral);
3326 0 : COMPARE_BITMAPSET_FIELD(ph_needed);
3327 0 : COMPARE_SCALAR_FIELD(ph_width);
3328 :
3329 0 : return true;
3330 : }
3331 :
3332 : static bool
3333 1023172 : _equalInteger(const Integer *a, const Integer *b)
3334 : {
3335 1023172 : COMPARE_SCALAR_FIELD(ival);
3336 :
3337 1023172 : return true;
3338 : }
3339 :
3340 : static bool
3341 24756 : _equalFloat(const Float *a, const Float *b)
3342 : {
3343 24756 : COMPARE_STRING_FIELD(fval);
3344 :
3345 24756 : return true;
3346 : }
3347 :
3348 : static bool
3349 178220 : _equalBoolean(const Boolean *a, const Boolean *b)
3350 : {
3351 178220 : COMPARE_SCALAR_FIELD(boolval);
3352 :
3353 178220 : return true;
3354 : }
3355 :
3356 : static bool
3357 44565546 : _equalString(const String *a, const String *b)
3358 : {
3359 44565546 : COMPARE_STRING_FIELD(sval);
3360 :
3361 44564404 : return true;
3362 : }
3363 :
3364 : static bool
3365 8136 : _equalBitString(const BitString *a, const BitString *b)
3366 : {
3367 8136 : COMPARE_STRING_FIELD(bsval);
3368 :
3369 8136 : return true;
3370 : }
|