forked from pganalyze/libpg_query
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpg_query_readfuncs_defs.c
More file actions
3023 lines (2791 loc) · 120 KB
/
Copy pathpg_query_readfuncs_defs.c
File metadata and controls
3023 lines (2791 loc) · 120 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// This file is autogenerated by ./scripts/generate_protobuf_and_funcs.rb
static Alias * _readAlias(OUT_TYPE(Alias, Alias) msg);
static RangeVar * _readRangeVar(OUT_TYPE(RangeVar, RangeVar) msg);
static TableFunc * _readTableFunc(OUT_TYPE(TableFunc, TableFunc) msg);
static Var * _readVar(OUT_TYPE(Var, Var) msg);
static Param * _readParam(OUT_TYPE(Param, Param) msg);
static Aggref * _readAggref(OUT_TYPE(Aggref, Aggref) msg);
static GroupingFunc * _readGroupingFunc(OUT_TYPE(GroupingFunc, GroupingFunc) msg);
static WindowFunc * _readWindowFunc(OUT_TYPE(WindowFunc, WindowFunc) msg);
static SubscriptingRef * _readSubscriptingRef(OUT_TYPE(SubscriptingRef, SubscriptingRef) msg);
static FuncExpr * _readFuncExpr(OUT_TYPE(FuncExpr, FuncExpr) msg);
static NamedArgExpr * _readNamedArgExpr(OUT_TYPE(NamedArgExpr, NamedArgExpr) msg);
static OpExpr * _readOpExpr(OUT_TYPE(OpExpr, OpExpr) msg);
static DistinctExpr * _readDistinctExpr(OUT_TYPE(DistinctExpr, DistinctExpr) msg);
static NullIfExpr * _readNullIfExpr(OUT_TYPE(NullIfExpr, NullIfExpr) msg);
static ScalarArrayOpExpr * _readScalarArrayOpExpr(OUT_TYPE(ScalarArrayOpExpr, ScalarArrayOpExpr) msg);
static BoolExpr * _readBoolExpr(OUT_TYPE(BoolExpr, BoolExpr) msg);
static SubLink * _readSubLink(OUT_TYPE(SubLink, SubLink) msg);
static SubPlan * _readSubPlan(OUT_TYPE(SubPlan, SubPlan) msg);
static AlternativeSubPlan * _readAlternativeSubPlan(OUT_TYPE(AlternativeSubPlan, AlternativeSubPlan) msg);
static FieldSelect * _readFieldSelect(OUT_TYPE(FieldSelect, FieldSelect) msg);
static FieldStore * _readFieldStore(OUT_TYPE(FieldStore, FieldStore) msg);
static RelabelType * _readRelabelType(OUT_TYPE(RelabelType, RelabelType) msg);
static CoerceViaIO * _readCoerceViaIO(OUT_TYPE(CoerceViaIO, CoerceViaIO) msg);
static ArrayCoerceExpr * _readArrayCoerceExpr(OUT_TYPE(ArrayCoerceExpr, ArrayCoerceExpr) msg);
static ConvertRowtypeExpr * _readConvertRowtypeExpr(OUT_TYPE(ConvertRowtypeExpr, ConvertRowtypeExpr) msg);
static CollateExpr * _readCollateExpr(OUT_TYPE(CollateExpr, CollateExpr) msg);
static CaseExpr * _readCaseExpr(OUT_TYPE(CaseExpr, CaseExpr) msg);
static CaseWhen * _readCaseWhen(OUT_TYPE(CaseWhen, CaseWhen) msg);
static CaseTestExpr * _readCaseTestExpr(OUT_TYPE(CaseTestExpr, CaseTestExpr) msg);
static ArrayExpr * _readArrayExpr(OUT_TYPE(ArrayExpr, ArrayExpr) msg);
static RowExpr * _readRowExpr(OUT_TYPE(RowExpr, RowExpr) msg);
static RowCompareExpr * _readRowCompareExpr(OUT_TYPE(RowCompareExpr, RowCompareExpr) msg);
static CoalesceExpr * _readCoalesceExpr(OUT_TYPE(CoalesceExpr, CoalesceExpr) msg);
static MinMaxExpr * _readMinMaxExpr(OUT_TYPE(MinMaxExpr, MinMaxExpr) msg);
static SQLValueFunction * _readSQLValueFunction(OUT_TYPE(SQLValueFunction, SQLValueFunction) msg);
static XmlExpr * _readXmlExpr(OUT_TYPE(XmlExpr, XmlExpr) msg);
static NullTest * _readNullTest(OUT_TYPE(NullTest, NullTest) msg);
static BooleanTest * _readBooleanTest(OUT_TYPE(BooleanTest, BooleanTest) msg);
static CoerceToDomain * _readCoerceToDomain(OUT_TYPE(CoerceToDomain, CoerceToDomain) msg);
static CoerceToDomainValue * _readCoerceToDomainValue(OUT_TYPE(CoerceToDomainValue, CoerceToDomainValue) msg);
static SetToDefault * _readSetToDefault(OUT_TYPE(SetToDefault, SetToDefault) msg);
static CurrentOfExpr * _readCurrentOfExpr(OUT_TYPE(CurrentOfExpr, CurrentOfExpr) msg);
static NextValueExpr * _readNextValueExpr(OUT_TYPE(NextValueExpr, NextValueExpr) msg);
static InferenceElem * _readInferenceElem(OUT_TYPE(InferenceElem, InferenceElem) msg);
static TargetEntry * _readTargetEntry(OUT_TYPE(TargetEntry, TargetEntry) msg);
static RangeTblRef * _readRangeTblRef(OUT_TYPE(RangeTblRef, RangeTblRef) msg);
static JoinExpr * _readJoinExpr(OUT_TYPE(JoinExpr, JoinExpr) msg);
static FromExpr * _readFromExpr(OUT_TYPE(FromExpr, FromExpr) msg);
static OnConflictExpr * _readOnConflictExpr(OUT_TYPE(OnConflictExpr, OnConflictExpr) msg);
static IntoClause * _readIntoClause(OUT_TYPE(IntoClause, IntoClause) msg);
static MergeAction * _readMergeAction(OUT_TYPE(MergeAction, MergeAction) msg);
static RawStmt * _readRawStmt(OUT_TYPE(RawStmt, RawStmt) msg);
static Query * _readQuery(OUT_TYPE(Query, Query) msg);
static InsertStmt * _readInsertStmt(OUT_TYPE(InsertStmt, InsertStmt) msg);
static DeleteStmt * _readDeleteStmt(OUT_TYPE(DeleteStmt, DeleteStmt) msg);
static UpdateStmt * _readUpdateStmt(OUT_TYPE(UpdateStmt, UpdateStmt) msg);
static MergeStmt * _readMergeStmt(OUT_TYPE(MergeStmt, MergeStmt) msg);
static SelectStmt * _readSelectStmt(OUT_TYPE(SelectStmt, SelectStmt) msg);
static ReturnStmt * _readReturnStmt(OUT_TYPE(ReturnStmt, ReturnStmt) msg);
static PLAssignStmt * _readPLAssignStmt(OUT_TYPE(PLAssignStmt, PLAssignStmt) msg);
static AlterTableStmt * _readAlterTableStmt(OUT_TYPE(AlterTableStmt, AlterTableStmt) msg);
static AlterTableCmd * _readAlterTableCmd(OUT_TYPE(AlterTableCmd, AlterTableCmd) msg);
static AlterDomainStmt * _readAlterDomainStmt(OUT_TYPE(AlterDomainStmt, AlterDomainStmt) msg);
static SetOperationStmt * _readSetOperationStmt(OUT_TYPE(SetOperationStmt, SetOperationStmt) msg);
static GrantStmt * _readGrantStmt(OUT_TYPE(GrantStmt, GrantStmt) msg);
static GrantRoleStmt * _readGrantRoleStmt(OUT_TYPE(GrantRoleStmt, GrantRoleStmt) msg);
static AlterDefaultPrivilegesStmt * _readAlterDefaultPrivilegesStmt(OUT_TYPE(AlterDefaultPrivilegesStmt, AlterDefaultPrivilegesStmt) msg);
static ClosePortalStmt * _readClosePortalStmt(OUT_TYPE(ClosePortalStmt, ClosePortalStmt) msg);
static ClusterStmt * _readClusterStmt(OUT_TYPE(ClusterStmt, ClusterStmt) msg);
static CopyStmt * _readCopyStmt(OUT_TYPE(CopyStmt, CopyStmt) msg);
static CreateStmt * _readCreateStmt(OUT_TYPE(CreateStmt, CreateStmt) msg);
static DefineStmt * _readDefineStmt(OUT_TYPE(DefineStmt, DefineStmt) msg);
static DropStmt * _readDropStmt(OUT_TYPE(DropStmt, DropStmt) msg);
static TruncateStmt * _readTruncateStmt(OUT_TYPE(TruncateStmt, TruncateStmt) msg);
static CommentStmt * _readCommentStmt(OUT_TYPE(CommentStmt, CommentStmt) msg);
static FetchStmt * _readFetchStmt(OUT_TYPE(FetchStmt, FetchStmt) msg);
static IndexStmt * _readIndexStmt(OUT_TYPE(IndexStmt, IndexStmt) msg);
static CreateFunctionStmt * _readCreateFunctionStmt(OUT_TYPE(CreateFunctionStmt, CreateFunctionStmt) msg);
static AlterFunctionStmt * _readAlterFunctionStmt(OUT_TYPE(AlterFunctionStmt, AlterFunctionStmt) msg);
static DoStmt * _readDoStmt(OUT_TYPE(DoStmt, DoStmt) msg);
static RenameStmt * _readRenameStmt(OUT_TYPE(RenameStmt, RenameStmt) msg);
static RuleStmt * _readRuleStmt(OUT_TYPE(RuleStmt, RuleStmt) msg);
static NotifyStmt * _readNotifyStmt(OUT_TYPE(NotifyStmt, NotifyStmt) msg);
static ListenStmt * _readListenStmt(OUT_TYPE(ListenStmt, ListenStmt) msg);
static UnlistenStmt * _readUnlistenStmt(OUT_TYPE(UnlistenStmt, UnlistenStmt) msg);
static TransactionStmt * _readTransactionStmt(OUT_TYPE(TransactionStmt, TransactionStmt) msg);
static ViewStmt * _readViewStmt(OUT_TYPE(ViewStmt, ViewStmt) msg);
static LoadStmt * _readLoadStmt(OUT_TYPE(LoadStmt, LoadStmt) msg);
static CreateDomainStmt * _readCreateDomainStmt(OUT_TYPE(CreateDomainStmt, CreateDomainStmt) msg);
static CreatedbStmt * _readCreatedbStmt(OUT_TYPE(CreatedbStmt, CreatedbStmt) msg);
static DropdbStmt * _readDropdbStmt(OUT_TYPE(DropdbStmt, DropdbStmt) msg);
static VacuumStmt * _readVacuumStmt(OUT_TYPE(VacuumStmt, VacuumStmt) msg);
static ExplainStmt * _readExplainStmt(OUT_TYPE(ExplainStmt, ExplainStmt) msg);
static CreateTableAsStmt * _readCreateTableAsStmt(OUT_TYPE(CreateTableAsStmt, CreateTableAsStmt) msg);
static CreateSeqStmt * _readCreateSeqStmt(OUT_TYPE(CreateSeqStmt, CreateSeqStmt) msg);
static AlterSeqStmt * _readAlterSeqStmt(OUT_TYPE(AlterSeqStmt, AlterSeqStmt) msg);
static VariableSetStmt * _readVariableSetStmt(OUT_TYPE(VariableSetStmt, VariableSetStmt) msg);
static VariableShowStmt * _readVariableShowStmt(OUT_TYPE(VariableShowStmt, VariableShowStmt) msg);
static DiscardStmt * _readDiscardStmt(OUT_TYPE(DiscardStmt, DiscardStmt) msg);
static CreateTrigStmt * _readCreateTrigStmt(OUT_TYPE(CreateTrigStmt, CreateTrigStmt) msg);
static CreatePLangStmt * _readCreatePLangStmt(OUT_TYPE(CreatePLangStmt, CreatePLangStmt) msg);
static CreateRoleStmt * _readCreateRoleStmt(OUT_TYPE(CreateRoleStmt, CreateRoleStmt) msg);
static AlterRoleStmt * _readAlterRoleStmt(OUT_TYPE(AlterRoleStmt, AlterRoleStmt) msg);
static DropRoleStmt * _readDropRoleStmt(OUT_TYPE(DropRoleStmt, DropRoleStmt) msg);
static LockStmt * _readLockStmt(OUT_TYPE(LockStmt, LockStmt) msg);
static ConstraintsSetStmt * _readConstraintsSetStmt(OUT_TYPE(ConstraintsSetStmt, ConstraintsSetStmt) msg);
static ReindexStmt * _readReindexStmt(OUT_TYPE(ReindexStmt, ReindexStmt) msg);
static CheckPointStmt * _readCheckPointStmt(OUT_TYPE(CheckPointStmt, CheckPointStmt) msg);
static CreateSchemaStmt * _readCreateSchemaStmt(OUT_TYPE(CreateSchemaStmt, CreateSchemaStmt) msg);
static AlterDatabaseStmt * _readAlterDatabaseStmt(OUT_TYPE(AlterDatabaseStmt, AlterDatabaseStmt) msg);
static AlterDatabaseRefreshCollStmt * _readAlterDatabaseRefreshCollStmt(OUT_TYPE(AlterDatabaseRefreshCollStmt, AlterDatabaseRefreshCollStmt) msg);
static AlterDatabaseSetStmt * _readAlterDatabaseSetStmt(OUT_TYPE(AlterDatabaseSetStmt, AlterDatabaseSetStmt) msg);
static AlterRoleSetStmt * _readAlterRoleSetStmt(OUT_TYPE(AlterRoleSetStmt, AlterRoleSetStmt) msg);
static CreateConversionStmt * _readCreateConversionStmt(OUT_TYPE(CreateConversionStmt, CreateConversionStmt) msg);
static CreateCastStmt * _readCreateCastStmt(OUT_TYPE(CreateCastStmt, CreateCastStmt) msg);
static CreateOpClassStmt * _readCreateOpClassStmt(OUT_TYPE(CreateOpClassStmt, CreateOpClassStmt) msg);
static CreateOpFamilyStmt * _readCreateOpFamilyStmt(OUT_TYPE(CreateOpFamilyStmt, CreateOpFamilyStmt) msg);
static AlterOpFamilyStmt * _readAlterOpFamilyStmt(OUT_TYPE(AlterOpFamilyStmt, AlterOpFamilyStmt) msg);
static PrepareStmt * _readPrepareStmt(OUT_TYPE(PrepareStmt, PrepareStmt) msg);
static ExecuteStmt * _readExecuteStmt(OUT_TYPE(ExecuteStmt, ExecuteStmt) msg);
static DeallocateStmt * _readDeallocateStmt(OUT_TYPE(DeallocateStmt, DeallocateStmt) msg);
static DeclareCursorStmt * _readDeclareCursorStmt(OUT_TYPE(DeclareCursorStmt, DeclareCursorStmt) msg);
static CreateTableSpaceStmt * _readCreateTableSpaceStmt(OUT_TYPE(CreateTableSpaceStmt, CreateTableSpaceStmt) msg);
static DropTableSpaceStmt * _readDropTableSpaceStmt(OUT_TYPE(DropTableSpaceStmt, DropTableSpaceStmt) msg);
static AlterObjectDependsStmt * _readAlterObjectDependsStmt(OUT_TYPE(AlterObjectDependsStmt, AlterObjectDependsStmt) msg);
static AlterObjectSchemaStmt * _readAlterObjectSchemaStmt(OUT_TYPE(AlterObjectSchemaStmt, AlterObjectSchemaStmt) msg);
static AlterOwnerStmt * _readAlterOwnerStmt(OUT_TYPE(AlterOwnerStmt, AlterOwnerStmt) msg);
static AlterOperatorStmt * _readAlterOperatorStmt(OUT_TYPE(AlterOperatorStmt, AlterOperatorStmt) msg);
static AlterTypeStmt * _readAlterTypeStmt(OUT_TYPE(AlterTypeStmt, AlterTypeStmt) msg);
static DropOwnedStmt * _readDropOwnedStmt(OUT_TYPE(DropOwnedStmt, DropOwnedStmt) msg);
static ReassignOwnedStmt * _readReassignOwnedStmt(OUT_TYPE(ReassignOwnedStmt, ReassignOwnedStmt) msg);
static CompositeTypeStmt * _readCompositeTypeStmt(OUT_TYPE(CompositeTypeStmt, CompositeTypeStmt) msg);
static CreateEnumStmt * _readCreateEnumStmt(OUT_TYPE(CreateEnumStmt, CreateEnumStmt) msg);
static CreateRangeStmt * _readCreateRangeStmt(OUT_TYPE(CreateRangeStmt, CreateRangeStmt) msg);
static AlterEnumStmt * _readAlterEnumStmt(OUT_TYPE(AlterEnumStmt, AlterEnumStmt) msg);
static AlterTSDictionaryStmt * _readAlterTSDictionaryStmt(OUT_TYPE(AlterTSDictionaryStmt, AlterTSDictionaryStmt) msg);
static AlterTSConfigurationStmt * _readAlterTSConfigurationStmt(OUT_TYPE(AlterTSConfigurationStmt, AlterTSConfigurationStmt) msg);
static CreateFdwStmt * _readCreateFdwStmt(OUT_TYPE(CreateFdwStmt, CreateFdwStmt) msg);
static AlterFdwStmt * _readAlterFdwStmt(OUT_TYPE(AlterFdwStmt, AlterFdwStmt) msg);
static CreateForeignServerStmt * _readCreateForeignServerStmt(OUT_TYPE(CreateForeignServerStmt, CreateForeignServerStmt) msg);
static AlterForeignServerStmt * _readAlterForeignServerStmt(OUT_TYPE(AlterForeignServerStmt, AlterForeignServerStmt) msg);
static CreateUserMappingStmt * _readCreateUserMappingStmt(OUT_TYPE(CreateUserMappingStmt, CreateUserMappingStmt) msg);
static AlterUserMappingStmt * _readAlterUserMappingStmt(OUT_TYPE(AlterUserMappingStmt, AlterUserMappingStmt) msg);
static DropUserMappingStmt * _readDropUserMappingStmt(OUT_TYPE(DropUserMappingStmt, DropUserMappingStmt) msg);
static AlterTableSpaceOptionsStmt * _readAlterTableSpaceOptionsStmt(OUT_TYPE(AlterTableSpaceOptionsStmt, AlterTableSpaceOptionsStmt) msg);
static AlterTableMoveAllStmt * _readAlterTableMoveAllStmt(OUT_TYPE(AlterTableMoveAllStmt, AlterTableMoveAllStmt) msg);
static SecLabelStmt * _readSecLabelStmt(OUT_TYPE(SecLabelStmt, SecLabelStmt) msg);
static CreateForeignTableStmt * _readCreateForeignTableStmt(OUT_TYPE(CreateForeignTableStmt, CreateForeignTableStmt) msg);
static ImportForeignSchemaStmt * _readImportForeignSchemaStmt(OUT_TYPE(ImportForeignSchemaStmt, ImportForeignSchemaStmt) msg);
static CreateExtensionStmt * _readCreateExtensionStmt(OUT_TYPE(CreateExtensionStmt, CreateExtensionStmt) msg);
static AlterExtensionStmt * _readAlterExtensionStmt(OUT_TYPE(AlterExtensionStmt, AlterExtensionStmt) msg);
static AlterExtensionContentsStmt * _readAlterExtensionContentsStmt(OUT_TYPE(AlterExtensionContentsStmt, AlterExtensionContentsStmt) msg);
static CreateEventTrigStmt * _readCreateEventTrigStmt(OUT_TYPE(CreateEventTrigStmt, CreateEventTrigStmt) msg);
static AlterEventTrigStmt * _readAlterEventTrigStmt(OUT_TYPE(AlterEventTrigStmt, AlterEventTrigStmt) msg);
static RefreshMatViewStmt * _readRefreshMatViewStmt(OUT_TYPE(RefreshMatViewStmt, RefreshMatViewStmt) msg);
static ReplicaIdentityStmt * _readReplicaIdentityStmt(OUT_TYPE(ReplicaIdentityStmt, ReplicaIdentityStmt) msg);
static AlterSystemStmt * _readAlterSystemStmt(OUT_TYPE(AlterSystemStmt, AlterSystemStmt) msg);
static CreatePolicyStmt * _readCreatePolicyStmt(OUT_TYPE(CreatePolicyStmt, CreatePolicyStmt) msg);
static AlterPolicyStmt * _readAlterPolicyStmt(OUT_TYPE(AlterPolicyStmt, AlterPolicyStmt) msg);
static CreateTransformStmt * _readCreateTransformStmt(OUT_TYPE(CreateTransformStmt, CreateTransformStmt) msg);
static CreateAmStmt * _readCreateAmStmt(OUT_TYPE(CreateAmStmt, CreateAmStmt) msg);
static CreatePublicationStmt * _readCreatePublicationStmt(OUT_TYPE(CreatePublicationStmt, CreatePublicationStmt) msg);
static AlterPublicationStmt * _readAlterPublicationStmt(OUT_TYPE(AlterPublicationStmt, AlterPublicationStmt) msg);
static CreateSubscriptionStmt * _readCreateSubscriptionStmt(OUT_TYPE(CreateSubscriptionStmt, CreateSubscriptionStmt) msg);
static AlterSubscriptionStmt * _readAlterSubscriptionStmt(OUT_TYPE(AlterSubscriptionStmt, AlterSubscriptionStmt) msg);
static DropSubscriptionStmt * _readDropSubscriptionStmt(OUT_TYPE(DropSubscriptionStmt, DropSubscriptionStmt) msg);
static CreateStatsStmt * _readCreateStatsStmt(OUT_TYPE(CreateStatsStmt, CreateStatsStmt) msg);
static AlterCollationStmt * _readAlterCollationStmt(OUT_TYPE(AlterCollationStmt, AlterCollationStmt) msg);
static CallStmt * _readCallStmt(OUT_TYPE(CallStmt, CallStmt) msg);
static AlterStatsStmt * _readAlterStatsStmt(OUT_TYPE(AlterStatsStmt, AlterStatsStmt) msg);
static A_Expr * _readAExpr(OUT_TYPE(A_Expr, AExpr) msg);
static ColumnRef * _readColumnRef(OUT_TYPE(ColumnRef, ColumnRef) msg);
static ParamRef * _readParamRef(OUT_TYPE(ParamRef, ParamRef) msg);
static FuncCall * _readFuncCall(OUT_TYPE(FuncCall, FuncCall) msg);
static A_Star * _readAStar(OUT_TYPE(A_Star, AStar) msg);
static A_Indices * _readAIndices(OUT_TYPE(A_Indices, AIndices) msg);
static A_Indirection * _readAIndirection(OUT_TYPE(A_Indirection, AIndirection) msg);
static A_ArrayExpr * _readAArrayExpr(OUT_TYPE(A_ArrayExpr, AArrayExpr) msg);
static ResTarget * _readResTarget(OUT_TYPE(ResTarget, ResTarget) msg);
static MultiAssignRef * _readMultiAssignRef(OUT_TYPE(MultiAssignRef, MultiAssignRef) msg);
static TypeCast * _readTypeCast(OUT_TYPE(TypeCast, TypeCast) msg);
static CollateClause * _readCollateClause(OUT_TYPE(CollateClause, CollateClause) msg);
static SortBy * _readSortBy(OUT_TYPE(SortBy, SortBy) msg);
static WindowDef * _readWindowDef(OUT_TYPE(WindowDef, WindowDef) msg);
static RangeSubselect * _readRangeSubselect(OUT_TYPE(RangeSubselect, RangeSubselect) msg);
static RangeFunction * _readRangeFunction(OUT_TYPE(RangeFunction, RangeFunction) msg);
static RangeTableSample * _readRangeTableSample(OUT_TYPE(RangeTableSample, RangeTableSample) msg);
static RangeTableFunc * _readRangeTableFunc(OUT_TYPE(RangeTableFunc, RangeTableFunc) msg);
static RangeTableFuncCol * _readRangeTableFuncCol(OUT_TYPE(RangeTableFuncCol, RangeTableFuncCol) msg);
static TypeName * _readTypeName(OUT_TYPE(TypeName, TypeName) msg);
static ColumnDef * _readColumnDef(OUT_TYPE(ColumnDef, ColumnDef) msg);
static IndexElem * _readIndexElem(OUT_TYPE(IndexElem, IndexElem) msg);
static StatsElem * _readStatsElem(OUT_TYPE(StatsElem, StatsElem) msg);
static Constraint * _readConstraint(OUT_TYPE(Constraint, Constraint) msg);
static DefElem * _readDefElem(OUT_TYPE(DefElem, DefElem) msg);
static RangeTblEntry * _readRangeTblEntry(OUT_TYPE(RangeTblEntry, RangeTblEntry) msg);
static RangeTblFunction * _readRangeTblFunction(OUT_TYPE(RangeTblFunction, RangeTblFunction) msg);
static TableSampleClause * _readTableSampleClause(OUT_TYPE(TableSampleClause, TableSampleClause) msg);
static WithCheckOption * _readWithCheckOption(OUT_TYPE(WithCheckOption, WithCheckOption) msg);
static SortGroupClause * _readSortGroupClause(OUT_TYPE(SortGroupClause, SortGroupClause) msg);
static GroupingSet * _readGroupingSet(OUT_TYPE(GroupingSet, GroupingSet) msg);
static WindowClause * _readWindowClause(OUT_TYPE(WindowClause, WindowClause) msg);
static ObjectWithArgs * _readObjectWithArgs(OUT_TYPE(ObjectWithArgs, ObjectWithArgs) msg);
static AccessPriv * _readAccessPriv(OUT_TYPE(AccessPriv, AccessPriv) msg);
static CreateOpClassItem * _readCreateOpClassItem(OUT_TYPE(CreateOpClassItem, CreateOpClassItem) msg);
static TableLikeClause * _readTableLikeClause(OUT_TYPE(TableLikeClause, TableLikeClause) msg);
static FunctionParameter * _readFunctionParameter(OUT_TYPE(FunctionParameter, FunctionParameter) msg);
static LockingClause * _readLockingClause(OUT_TYPE(LockingClause, LockingClause) msg);
static RowMarkClause * _readRowMarkClause(OUT_TYPE(RowMarkClause, RowMarkClause) msg);
static XmlSerialize * _readXmlSerialize(OUT_TYPE(XmlSerialize, XmlSerialize) msg);
static WithClause * _readWithClause(OUT_TYPE(WithClause, WithClause) msg);
static InferClause * _readInferClause(OUT_TYPE(InferClause, InferClause) msg);
static OnConflictClause * _readOnConflictClause(OUT_TYPE(OnConflictClause, OnConflictClause) msg);
static CTESearchClause * _readCTESearchClause(OUT_TYPE(CTESearchClause, CTESearchClause) msg);
static CTECycleClause * _readCTECycleClause(OUT_TYPE(CTECycleClause, CTECycleClause) msg);
static CommonTableExpr * _readCommonTableExpr(OUT_TYPE(CommonTableExpr, CommonTableExpr) msg);
static MergeWhenClause * _readMergeWhenClause(OUT_TYPE(MergeWhenClause, MergeWhenClause) msg);
static RoleSpec * _readRoleSpec(OUT_TYPE(RoleSpec, RoleSpec) msg);
static TriggerTransition * _readTriggerTransition(OUT_TYPE(TriggerTransition, TriggerTransition) msg);
static PartitionElem * _readPartitionElem(OUT_TYPE(PartitionElem, PartitionElem) msg);
static PartitionSpec * _readPartitionSpec(OUT_TYPE(PartitionSpec, PartitionSpec) msg);
static PartitionBoundSpec * _readPartitionBoundSpec(OUT_TYPE(PartitionBoundSpec, PartitionBoundSpec) msg);
static PartitionRangeDatum * _readPartitionRangeDatum(OUT_TYPE(PartitionRangeDatum, PartitionRangeDatum) msg);
static PartitionCmd * _readPartitionCmd(OUT_TYPE(PartitionCmd, PartitionCmd) msg);
static VacuumRelation * _readVacuumRelation(OUT_TYPE(VacuumRelation, VacuumRelation) msg);
static PublicationObjSpec * _readPublicationObjSpec(OUT_TYPE(PublicationObjSpec, PublicationObjSpec) msg);
static PublicationTable * _readPublicationTable(OUT_TYPE(PublicationTable, PublicationTable) msg);
static InlineCodeBlock * _readInlineCodeBlock(OUT_TYPE(InlineCodeBlock, InlineCodeBlock) msg);
static CallContext * _readCallContext(OUT_TYPE(CallContext, CallContext) msg);
static Alias *
_readAlias(OUT_TYPE(Alias, Alias) msg)
{
Alias *node = makeNode(Alias);
READ_STRING_FIELD(aliasname, aliasname, aliasname);
READ_LIST_FIELD(colnames, colnames, colnames);
return node;
}
static RangeVar *
_readRangeVar(OUT_TYPE(RangeVar, RangeVar) msg)
{
RangeVar *node = makeNode(RangeVar);
READ_STRING_FIELD(catalogname, catalogname, catalogname);
READ_STRING_FIELD(schemaname, schemaname, schemaname);
READ_STRING_FIELD(relname, relname, relname);
READ_BOOL_FIELD(inh, inh, inh);
READ_CHAR_FIELD(relpersistence, relpersistence, relpersistence);
READ_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias);
READ_INT_FIELD(location, location, location);
return node;
}
static TableFunc *
_readTableFunc(OUT_TYPE(TableFunc, TableFunc) msg)
{
TableFunc *node = makeNode(TableFunc);
READ_LIST_FIELD(ns_uris, ns_uris, ns_uris);
READ_LIST_FIELD(ns_names, ns_names, ns_names);
READ_NODE_PTR_FIELD(docexpr, docexpr, docexpr);
READ_NODE_PTR_FIELD(rowexpr, rowexpr, rowexpr);
READ_LIST_FIELD(colnames, colnames, colnames);
READ_LIST_FIELD(coltypes, coltypes, coltypes);
READ_LIST_FIELD(coltypmods, coltypmods, coltypmods);
READ_LIST_FIELD(colcollations, colcollations, colcollations);
READ_LIST_FIELD(colexprs, colexprs, colexprs);
READ_LIST_FIELD(coldefexprs, coldefexprs, coldefexprs);
READ_BITMAPSET_FIELD(notnulls, notnulls, notnulls);
READ_INT_FIELD(ordinalitycol, ordinalitycol, ordinalitycol);
READ_INT_FIELD(location, location, location);
return node;
}
static Var *
_readVar(OUT_TYPE(Var, Var) msg)
{
Var *node = makeNode(Var);
READ_INT_FIELD(varno, varno, varno);
READ_INT_FIELD(varattno, varattno, varattno);
READ_UINT_FIELD(vartype, vartype, vartype);
READ_INT_FIELD(vartypmod, vartypmod, vartypmod);
READ_UINT_FIELD(varcollid, varcollid, varcollid);
READ_UINT_FIELD(varlevelsup, varlevelsup, varlevelsup);
READ_UINT_FIELD(varnosyn, varnosyn, varnosyn);
READ_INT_FIELD(varattnosyn, varattnosyn, varattnosyn);
READ_INT_FIELD(location, location, location);
return node;
}
static Param *
_readParam(OUT_TYPE(Param, Param) msg)
{
Param *node = makeNode(Param);
READ_ENUM_FIELD(ParamKind, paramkind, paramkind, paramkind);
READ_INT_FIELD(paramid, paramid, paramid);
READ_UINT_FIELD(paramtype, paramtype, paramtype);
READ_INT_FIELD(paramtypmod, paramtypmod, paramtypmod);
READ_UINT_FIELD(paramcollid, paramcollid, paramcollid);
READ_INT_FIELD(location, location, location);
return node;
}
static Aggref *
_readAggref(OUT_TYPE(Aggref, Aggref) msg)
{
Aggref *node = makeNode(Aggref);
READ_UINT_FIELD(aggfnoid, aggfnoid, aggfnoid);
READ_UINT_FIELD(aggtype, aggtype, aggtype);
READ_UINT_FIELD(aggcollid, aggcollid, aggcollid);
READ_UINT_FIELD(inputcollid, inputcollid, inputcollid);
READ_UINT_FIELD(aggtranstype, aggtranstype, aggtranstype);
READ_LIST_FIELD(aggargtypes, aggargtypes, aggargtypes);
READ_LIST_FIELD(aggdirectargs, aggdirectargs, aggdirectargs);
READ_LIST_FIELD(args, args, args);
READ_LIST_FIELD(aggorder, aggorder, aggorder);
READ_LIST_FIELD(aggdistinct, aggdistinct, aggdistinct);
READ_EXPR_PTR_FIELD(aggfilter, aggfilter, aggfilter);
READ_BOOL_FIELD(aggstar, aggstar, aggstar);
READ_BOOL_FIELD(aggvariadic, aggvariadic, aggvariadic);
READ_CHAR_FIELD(aggkind, aggkind, aggkind);
READ_UINT_FIELD(agglevelsup, agglevelsup, agglevelsup);
READ_ENUM_FIELD(AggSplit, aggsplit, aggsplit, aggsplit);
READ_INT_FIELD(aggno, aggno, aggno);
READ_INT_FIELD(aggtransno, aggtransno, aggtransno);
READ_INT_FIELD(location, location, location);
return node;
}
static GroupingFunc *
_readGroupingFunc(OUT_TYPE(GroupingFunc, GroupingFunc) msg)
{
GroupingFunc *node = makeNode(GroupingFunc);
READ_LIST_FIELD(args, args, args);
READ_LIST_FIELD(refs, refs, refs);
READ_LIST_FIELD(cols, cols, cols);
READ_UINT_FIELD(agglevelsup, agglevelsup, agglevelsup);
READ_INT_FIELD(location, location, location);
return node;
}
static WindowFunc *
_readWindowFunc(OUT_TYPE(WindowFunc, WindowFunc) msg)
{
WindowFunc *node = makeNode(WindowFunc);
READ_UINT_FIELD(winfnoid, winfnoid, winfnoid);
READ_UINT_FIELD(wintype, wintype, wintype);
READ_UINT_FIELD(wincollid, wincollid, wincollid);
READ_UINT_FIELD(inputcollid, inputcollid, inputcollid);
READ_LIST_FIELD(args, args, args);
READ_EXPR_PTR_FIELD(aggfilter, aggfilter, aggfilter);
READ_UINT_FIELD(winref, winref, winref);
READ_BOOL_FIELD(winstar, winstar, winstar);
READ_BOOL_FIELD(winagg, winagg, winagg);
READ_INT_FIELD(location, location, location);
return node;
}
static SubscriptingRef *
_readSubscriptingRef(OUT_TYPE(SubscriptingRef, SubscriptingRef) msg)
{
SubscriptingRef *node = makeNode(SubscriptingRef);
READ_UINT_FIELD(refcontainertype, refcontainertype, refcontainertype);
READ_UINT_FIELD(refelemtype, refelemtype, refelemtype);
READ_UINT_FIELD(refrestype, refrestype, refrestype);
READ_INT_FIELD(reftypmod, reftypmod, reftypmod);
READ_UINT_FIELD(refcollid, refcollid, refcollid);
READ_LIST_FIELD(refupperindexpr, refupperindexpr, refupperindexpr);
READ_LIST_FIELD(reflowerindexpr, reflowerindexpr, reflowerindexpr);
READ_EXPR_PTR_FIELD(refexpr, refexpr, refexpr);
READ_EXPR_PTR_FIELD(refassgnexpr, refassgnexpr, refassgnexpr);
return node;
}
static FuncExpr *
_readFuncExpr(OUT_TYPE(FuncExpr, FuncExpr) msg)
{
FuncExpr *node = makeNode(FuncExpr);
READ_UINT_FIELD(funcid, funcid, funcid);
READ_UINT_FIELD(funcresulttype, funcresulttype, funcresulttype);
READ_BOOL_FIELD(funcretset, funcretset, funcretset);
READ_BOOL_FIELD(funcvariadic, funcvariadic, funcvariadic);
READ_ENUM_FIELD(CoercionForm, funcformat, funcformat, funcformat);
READ_UINT_FIELD(funccollid, funccollid, funccollid);
READ_UINT_FIELD(inputcollid, inputcollid, inputcollid);
READ_LIST_FIELD(args, args, args);
READ_INT_FIELD(location, location, location);
return node;
}
static NamedArgExpr *
_readNamedArgExpr(OUT_TYPE(NamedArgExpr, NamedArgExpr) msg)
{
NamedArgExpr *node = makeNode(NamedArgExpr);
READ_EXPR_PTR_FIELD(arg, arg, arg);
READ_STRING_FIELD(name, name, name);
READ_INT_FIELD(argnumber, argnumber, argnumber);
READ_INT_FIELD(location, location, location);
return node;
}
static OpExpr *
_readOpExpr(OUT_TYPE(OpExpr, OpExpr) msg)
{
OpExpr *node = makeNode(OpExpr);
READ_UINT_FIELD(opno, opno, opno);
READ_UINT_FIELD(opfuncid, opfuncid, opfuncid);
READ_UINT_FIELD(opresulttype, opresulttype, opresulttype);
READ_BOOL_FIELD(opretset, opretset, opretset);
READ_UINT_FIELD(opcollid, opcollid, opcollid);
READ_UINT_FIELD(inputcollid, inputcollid, inputcollid);
READ_LIST_FIELD(args, args, args);
READ_INT_FIELD(location, location, location);
return node;
}
static DistinctExpr *
_readDistinctExpr(OUT_TYPE(DistinctExpr, DistinctExpr) msg)
{
DistinctExpr *node = makeNode(DistinctExpr);
READ_UINT_FIELD(opno, opno, opno);
READ_UINT_FIELD(opfuncid, opfuncid, opfuncid);
READ_UINT_FIELD(opresulttype, opresulttype, opresulttype);
READ_BOOL_FIELD(opretset, opretset, opretset);
READ_UINT_FIELD(opcollid, opcollid, opcollid);
READ_UINT_FIELD(inputcollid, inputcollid, inputcollid);
READ_LIST_FIELD(args, args, args);
READ_INT_FIELD(location, location, location);
return node;
}
static NullIfExpr *
_readNullIfExpr(OUT_TYPE(NullIfExpr, NullIfExpr) msg)
{
NullIfExpr *node = makeNode(NullIfExpr);
READ_UINT_FIELD(opno, opno, opno);
READ_UINT_FIELD(opfuncid, opfuncid, opfuncid);
READ_UINT_FIELD(opresulttype, opresulttype, opresulttype);
READ_BOOL_FIELD(opretset, opretset, opretset);
READ_UINT_FIELD(opcollid, opcollid, opcollid);
READ_UINT_FIELD(inputcollid, inputcollid, inputcollid);
READ_LIST_FIELD(args, args, args);
READ_INT_FIELD(location, location, location);
return node;
}
static ScalarArrayOpExpr *
_readScalarArrayOpExpr(OUT_TYPE(ScalarArrayOpExpr, ScalarArrayOpExpr) msg)
{
ScalarArrayOpExpr *node = makeNode(ScalarArrayOpExpr);
READ_UINT_FIELD(opno, opno, opno);
READ_UINT_FIELD(opfuncid, opfuncid, opfuncid);
READ_UINT_FIELD(hashfuncid, hashfuncid, hashfuncid);
READ_UINT_FIELD(negfuncid, negfuncid, negfuncid);
READ_BOOL_FIELD(use_or, useOr, useOr);
READ_UINT_FIELD(inputcollid, inputcollid, inputcollid);
READ_LIST_FIELD(args, args, args);
READ_INT_FIELD(location, location, location);
return node;
}
static BoolExpr *
_readBoolExpr(OUT_TYPE(BoolExpr, BoolExpr) msg)
{
BoolExpr *node = makeNode(BoolExpr);
READ_ENUM_FIELD(BoolExprType, boolop, boolop, boolop);
READ_LIST_FIELD(args, args, args);
READ_INT_FIELD(location, location, location);
return node;
}
static SubLink *
_readSubLink(OUT_TYPE(SubLink, SubLink) msg)
{
SubLink *node = makeNode(SubLink);
READ_ENUM_FIELD(SubLinkType, sub_link_type, subLinkType, subLinkType);
READ_INT_FIELD(sub_link_id, subLinkId, subLinkId);
READ_NODE_PTR_FIELD(testexpr, testexpr, testexpr);
READ_LIST_FIELD(oper_name, operName, operName);
READ_NODE_PTR_FIELD(subselect, subselect, subselect);
READ_INT_FIELD(location, location, location);
return node;
}
static SubPlan *
_readSubPlan(OUT_TYPE(SubPlan, SubPlan) msg)
{
SubPlan *node = makeNode(SubPlan);
READ_ENUM_FIELD(SubLinkType, sub_link_type, subLinkType, subLinkType);
READ_NODE_PTR_FIELD(testexpr, testexpr, testexpr);
READ_LIST_FIELD(param_ids, paramIds, paramIds);
READ_INT_FIELD(plan_id, plan_id, plan_id);
READ_STRING_FIELD(plan_name, plan_name, plan_name);
READ_UINT_FIELD(first_col_type, firstColType, firstColType);
READ_INT_FIELD(first_col_typmod, firstColTypmod, firstColTypmod);
READ_UINT_FIELD(first_col_collation, firstColCollation, firstColCollation);
READ_BOOL_FIELD(use_hash_table, useHashTable, useHashTable);
READ_BOOL_FIELD(unknown_eq_false, unknownEqFalse, unknownEqFalse);
READ_BOOL_FIELD(parallel_safe, parallel_safe, parallel_safe);
READ_LIST_FIELD(set_param, setParam, setParam);
READ_LIST_FIELD(par_param, parParam, parParam);
READ_LIST_FIELD(args, args, args);
READ_FLOAT_FIELD(startup_cost, startup_cost, startup_cost);
READ_FLOAT_FIELD(per_call_cost, per_call_cost, per_call_cost);
return node;
}
static AlternativeSubPlan *
_readAlternativeSubPlan(OUT_TYPE(AlternativeSubPlan, AlternativeSubPlan) msg)
{
AlternativeSubPlan *node = makeNode(AlternativeSubPlan);
READ_LIST_FIELD(subplans, subplans, subplans);
return node;
}
static FieldSelect *
_readFieldSelect(OUT_TYPE(FieldSelect, FieldSelect) msg)
{
FieldSelect *node = makeNode(FieldSelect);
READ_EXPR_PTR_FIELD(arg, arg, arg);
READ_INT_FIELD(fieldnum, fieldnum, fieldnum);
READ_UINT_FIELD(resulttype, resulttype, resulttype);
READ_INT_FIELD(resulttypmod, resulttypmod, resulttypmod);
READ_UINT_FIELD(resultcollid, resultcollid, resultcollid);
return node;
}
static FieldStore *
_readFieldStore(OUT_TYPE(FieldStore, FieldStore) msg)
{
FieldStore *node = makeNode(FieldStore);
READ_EXPR_PTR_FIELD(arg, arg, arg);
READ_LIST_FIELD(newvals, newvals, newvals);
READ_LIST_FIELD(fieldnums, fieldnums, fieldnums);
READ_UINT_FIELD(resulttype, resulttype, resulttype);
return node;
}
static RelabelType *
_readRelabelType(OUT_TYPE(RelabelType, RelabelType) msg)
{
RelabelType *node = makeNode(RelabelType);
READ_EXPR_PTR_FIELD(arg, arg, arg);
READ_UINT_FIELD(resulttype, resulttype, resulttype);
READ_INT_FIELD(resulttypmod, resulttypmod, resulttypmod);
READ_UINT_FIELD(resultcollid, resultcollid, resultcollid);
READ_ENUM_FIELD(CoercionForm, relabelformat, relabelformat, relabelformat);
READ_INT_FIELD(location, location, location);
return node;
}
static CoerceViaIO *
_readCoerceViaIO(OUT_TYPE(CoerceViaIO, CoerceViaIO) msg)
{
CoerceViaIO *node = makeNode(CoerceViaIO);
READ_EXPR_PTR_FIELD(arg, arg, arg);
READ_UINT_FIELD(resulttype, resulttype, resulttype);
READ_UINT_FIELD(resultcollid, resultcollid, resultcollid);
READ_ENUM_FIELD(CoercionForm, coerceformat, coerceformat, coerceformat);
READ_INT_FIELD(location, location, location);
return node;
}
static ArrayCoerceExpr *
_readArrayCoerceExpr(OUT_TYPE(ArrayCoerceExpr, ArrayCoerceExpr) msg)
{
ArrayCoerceExpr *node = makeNode(ArrayCoerceExpr);
READ_EXPR_PTR_FIELD(arg, arg, arg);
READ_EXPR_PTR_FIELD(elemexpr, elemexpr, elemexpr);
READ_UINT_FIELD(resulttype, resulttype, resulttype);
READ_INT_FIELD(resulttypmod, resulttypmod, resulttypmod);
READ_UINT_FIELD(resultcollid, resultcollid, resultcollid);
READ_ENUM_FIELD(CoercionForm, coerceformat, coerceformat, coerceformat);
READ_INT_FIELD(location, location, location);
return node;
}
static ConvertRowtypeExpr *
_readConvertRowtypeExpr(OUT_TYPE(ConvertRowtypeExpr, ConvertRowtypeExpr) msg)
{
ConvertRowtypeExpr *node = makeNode(ConvertRowtypeExpr);
READ_EXPR_PTR_FIELD(arg, arg, arg);
READ_UINT_FIELD(resulttype, resulttype, resulttype);
READ_ENUM_FIELD(CoercionForm, convertformat, convertformat, convertformat);
READ_INT_FIELD(location, location, location);
return node;
}
static CollateExpr *
_readCollateExpr(OUT_TYPE(CollateExpr, CollateExpr) msg)
{
CollateExpr *node = makeNode(CollateExpr);
READ_EXPR_PTR_FIELD(arg, arg, arg);
READ_UINT_FIELD(coll_oid, collOid, collOid);
READ_INT_FIELD(location, location, location);
return node;
}
static CaseExpr *
_readCaseExpr(OUT_TYPE(CaseExpr, CaseExpr) msg)
{
CaseExpr *node = makeNode(CaseExpr);
READ_UINT_FIELD(casetype, casetype, casetype);
READ_UINT_FIELD(casecollid, casecollid, casecollid);
READ_EXPR_PTR_FIELD(arg, arg, arg);
READ_LIST_FIELD(args, args, args);
READ_EXPR_PTR_FIELD(defresult, defresult, defresult);
READ_INT_FIELD(location, location, location);
return node;
}
static CaseWhen *
_readCaseWhen(OUT_TYPE(CaseWhen, CaseWhen) msg)
{
CaseWhen *node = makeNode(CaseWhen);
READ_EXPR_PTR_FIELD(expr, expr, expr);
READ_EXPR_PTR_FIELD(result, result, result);
READ_INT_FIELD(location, location, location);
return node;
}
static CaseTestExpr *
_readCaseTestExpr(OUT_TYPE(CaseTestExpr, CaseTestExpr) msg)
{
CaseTestExpr *node = makeNode(CaseTestExpr);
READ_UINT_FIELD(type_id, typeId, typeId);
READ_INT_FIELD(type_mod, typeMod, typeMod);
READ_UINT_FIELD(collation, collation, collation);
return node;
}
static ArrayExpr *
_readArrayExpr(OUT_TYPE(ArrayExpr, ArrayExpr) msg)
{
ArrayExpr *node = makeNode(ArrayExpr);
READ_UINT_FIELD(array_typeid, array_typeid, array_typeid);
READ_UINT_FIELD(array_collid, array_collid, array_collid);
READ_UINT_FIELD(element_typeid, element_typeid, element_typeid);
READ_LIST_FIELD(elements, elements, elements);
READ_BOOL_FIELD(multidims, multidims, multidims);
READ_INT_FIELD(location, location, location);
return node;
}
static RowExpr *
_readRowExpr(OUT_TYPE(RowExpr, RowExpr) msg)
{
RowExpr *node = makeNode(RowExpr);
READ_LIST_FIELD(args, args, args);
READ_UINT_FIELD(row_typeid, row_typeid, row_typeid);
READ_ENUM_FIELD(CoercionForm, row_format, row_format, row_format);
READ_LIST_FIELD(colnames, colnames, colnames);
READ_INT_FIELD(location, location, location);
return node;
}
static RowCompareExpr *
_readRowCompareExpr(OUT_TYPE(RowCompareExpr, RowCompareExpr) msg)
{
RowCompareExpr *node = makeNode(RowCompareExpr);
READ_ENUM_FIELD(RowCompareType, rctype, rctype, rctype);
READ_LIST_FIELD(opnos, opnos, opnos);
READ_LIST_FIELD(opfamilies, opfamilies, opfamilies);
READ_LIST_FIELD(inputcollids, inputcollids, inputcollids);
READ_LIST_FIELD(largs, largs, largs);
READ_LIST_FIELD(rargs, rargs, rargs);
return node;
}
static CoalesceExpr *
_readCoalesceExpr(OUT_TYPE(CoalesceExpr, CoalesceExpr) msg)
{
CoalesceExpr *node = makeNode(CoalesceExpr);
READ_UINT_FIELD(coalescetype, coalescetype, coalescetype);
READ_UINT_FIELD(coalescecollid, coalescecollid, coalescecollid);
READ_LIST_FIELD(args, args, args);
READ_INT_FIELD(location, location, location);
return node;
}
static MinMaxExpr *
_readMinMaxExpr(OUT_TYPE(MinMaxExpr, MinMaxExpr) msg)
{
MinMaxExpr *node = makeNode(MinMaxExpr);
READ_UINT_FIELD(minmaxtype, minmaxtype, minmaxtype);
READ_UINT_FIELD(minmaxcollid, minmaxcollid, minmaxcollid);
READ_UINT_FIELD(inputcollid, inputcollid, inputcollid);
READ_ENUM_FIELD(MinMaxOp, op, op, op);
READ_LIST_FIELD(args, args, args);
READ_INT_FIELD(location, location, location);
return node;
}
static SQLValueFunction *
_readSQLValueFunction(OUT_TYPE(SQLValueFunction, SQLValueFunction) msg)
{
SQLValueFunction *node = makeNode(SQLValueFunction);
READ_ENUM_FIELD(SQLValueFunctionOp, op, op, op);
READ_UINT_FIELD(type, type, type);
READ_INT_FIELD(typmod, typmod, typmod);
READ_INT_FIELD(location, location, location);
return node;
}
static XmlExpr *
_readXmlExpr(OUT_TYPE(XmlExpr, XmlExpr) msg)
{
XmlExpr *node = makeNode(XmlExpr);
READ_ENUM_FIELD(XmlExprOp, op, op, op);
READ_STRING_FIELD(name, name, name);
READ_LIST_FIELD(named_args, named_args, named_args);
READ_LIST_FIELD(arg_names, arg_names, arg_names);
READ_LIST_FIELD(args, args, args);
READ_ENUM_FIELD(XmlOptionType, xmloption, xmloption, xmloption);
READ_UINT_FIELD(type, type, type);
READ_INT_FIELD(typmod, typmod, typmod);
READ_INT_FIELD(location, location, location);
return node;
}
static NullTest *
_readNullTest(OUT_TYPE(NullTest, NullTest) msg)
{
NullTest *node = makeNode(NullTest);
READ_EXPR_PTR_FIELD(arg, arg, arg);
READ_ENUM_FIELD(NullTestType, nulltesttype, nulltesttype, nulltesttype);
READ_BOOL_FIELD(argisrow, argisrow, argisrow);
READ_INT_FIELD(location, location, location);
return node;
}
static BooleanTest *
_readBooleanTest(OUT_TYPE(BooleanTest, BooleanTest) msg)
{
BooleanTest *node = makeNode(BooleanTest);
READ_EXPR_PTR_FIELD(arg, arg, arg);
READ_ENUM_FIELD(BoolTestType, booltesttype, booltesttype, booltesttype);
READ_INT_FIELD(location, location, location);
return node;
}
static CoerceToDomain *
_readCoerceToDomain(OUT_TYPE(CoerceToDomain, CoerceToDomain) msg)
{
CoerceToDomain *node = makeNode(CoerceToDomain);
READ_EXPR_PTR_FIELD(arg, arg, arg);
READ_UINT_FIELD(resulttype, resulttype, resulttype);
READ_INT_FIELD(resulttypmod, resulttypmod, resulttypmod);
READ_UINT_FIELD(resultcollid, resultcollid, resultcollid);
READ_ENUM_FIELD(CoercionForm, coercionformat, coercionformat, coercionformat);
READ_INT_FIELD(location, location, location);
return node;
}
static CoerceToDomainValue *
_readCoerceToDomainValue(OUT_TYPE(CoerceToDomainValue, CoerceToDomainValue) msg)
{
CoerceToDomainValue *node = makeNode(CoerceToDomainValue);
READ_UINT_FIELD(type_id, typeId, typeId);
READ_INT_FIELD(type_mod, typeMod, typeMod);
READ_UINT_FIELD(collation, collation, collation);
READ_INT_FIELD(location, location, location);
return node;
}
static SetToDefault *
_readSetToDefault(OUT_TYPE(SetToDefault, SetToDefault) msg)
{
SetToDefault *node = makeNode(SetToDefault);
READ_UINT_FIELD(type_id, typeId, typeId);
READ_INT_FIELD(type_mod, typeMod, typeMod);
READ_UINT_FIELD(collation, collation, collation);
READ_INT_FIELD(location, location, location);
return node;
}
static CurrentOfExpr *
_readCurrentOfExpr(OUT_TYPE(CurrentOfExpr, CurrentOfExpr) msg)
{
CurrentOfExpr *node = makeNode(CurrentOfExpr);
READ_UINT_FIELD(cvarno, cvarno, cvarno);
READ_STRING_FIELD(cursor_name, cursor_name, cursor_name);
READ_INT_FIELD(cursor_param, cursor_param, cursor_param);
return node;
}
static NextValueExpr *
_readNextValueExpr(OUT_TYPE(NextValueExpr, NextValueExpr) msg)
{
NextValueExpr *node = makeNode(NextValueExpr);
READ_UINT_FIELD(seqid, seqid, seqid);
READ_UINT_FIELD(type_id, typeId, typeId);
return node;
}
static InferenceElem *
_readInferenceElem(OUT_TYPE(InferenceElem, InferenceElem) msg)
{
InferenceElem *node = makeNode(InferenceElem);
READ_NODE_PTR_FIELD(expr, expr, expr);
READ_UINT_FIELD(infercollid, infercollid, infercollid);
READ_UINT_FIELD(inferopclass, inferopclass, inferopclass);
return node;
}
static TargetEntry *
_readTargetEntry(OUT_TYPE(TargetEntry, TargetEntry) msg)
{
TargetEntry *node = makeNode(TargetEntry);
READ_EXPR_PTR_FIELD(expr, expr, expr);
READ_INT_FIELD(resno, resno, resno);
READ_STRING_FIELD(resname, resname, resname);
READ_UINT_FIELD(ressortgroupref, ressortgroupref, ressortgroupref);
READ_UINT_FIELD(resorigtbl, resorigtbl, resorigtbl);
READ_INT_FIELD(resorigcol, resorigcol, resorigcol);
READ_BOOL_FIELD(resjunk, resjunk, resjunk);
return node;
}
static RangeTblRef *
_readRangeTblRef(OUT_TYPE(RangeTblRef, RangeTblRef) msg)
{
RangeTblRef *node = makeNode(RangeTblRef);
READ_INT_FIELD(rtindex, rtindex, rtindex);
return node;
}
static JoinExpr *
_readJoinExpr(OUT_TYPE(JoinExpr, JoinExpr) msg)
{
JoinExpr *node = makeNode(JoinExpr);
READ_ENUM_FIELD(JoinType, jointype, jointype, jointype);
READ_BOOL_FIELD(is_natural, isNatural, isNatural);
READ_NODE_PTR_FIELD(larg, larg, larg);
READ_NODE_PTR_FIELD(rarg, rarg, rarg);
READ_LIST_FIELD(using_clause, usingClause, usingClause);
READ_SPECIFIC_NODE_PTR_FIELD(Alias, alias, join_using_alias, join_using_alias, join_using_alias);
READ_NODE_PTR_FIELD(quals, quals, quals);
READ_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias);
READ_INT_FIELD(rtindex, rtindex, rtindex);
return node;
}
static FromExpr *
_readFromExpr(OUT_TYPE(FromExpr, FromExpr) msg)
{
FromExpr *node = makeNode(FromExpr);
READ_LIST_FIELD(fromlist, fromlist, fromlist);
READ_NODE_PTR_FIELD(quals, quals, quals);
return node;
}
static OnConflictExpr *
_readOnConflictExpr(OUT_TYPE(OnConflictExpr, OnConflictExpr) msg)
{
OnConflictExpr *node = makeNode(OnConflictExpr);
READ_ENUM_FIELD(OnConflictAction, action, action, action);
READ_LIST_FIELD(arbiter_elems, arbiterElems, arbiterElems);
READ_NODE_PTR_FIELD(arbiter_where, arbiterWhere, arbiterWhere);
READ_UINT_FIELD(constraint, constraint, constraint);
READ_LIST_FIELD(on_conflict_set, onConflictSet, onConflictSet);
READ_NODE_PTR_FIELD(on_conflict_where, onConflictWhere, onConflictWhere);
READ_INT_FIELD(excl_rel_index, exclRelIndex, exclRelIndex);
READ_LIST_FIELD(excl_rel_tlist, exclRelTlist, exclRelTlist);
return node;
}
static IntoClause *
_readIntoClause(OUT_TYPE(IntoClause, IntoClause) msg)
{
IntoClause *node = makeNode(IntoClause);
READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, rel, rel, rel);
READ_LIST_FIELD(col_names, colNames, colNames);
READ_STRING_FIELD(access_method, accessMethod, accessMethod);
READ_LIST_FIELD(options, options, options);
READ_ENUM_FIELD(OnCommitAction, on_commit, onCommit, onCommit);
READ_STRING_FIELD(table_space_name, tableSpaceName, tableSpaceName);
READ_NODE_PTR_FIELD(view_query, viewQuery, viewQuery);
READ_BOOL_FIELD(skip_data, skipData, skipData);
return node;
}
static MergeAction *
_readMergeAction(OUT_TYPE(MergeAction, MergeAction) msg)
{
MergeAction *node = makeNode(MergeAction);
READ_BOOL_FIELD(matched, matched, matched);
READ_ENUM_FIELD(CmdType, command_type, commandType, commandType);
READ_ENUM_FIELD(OverridingKind, override, override, override);
READ_NODE_PTR_FIELD(qual, qual, qual);
READ_LIST_FIELD(target_list, targetList, targetList);
READ_LIST_FIELD(update_colnos, updateColnos, updateColnos);
return node;
}
static RawStmt *
_readRawStmt(OUT_TYPE(RawStmt, RawStmt) msg)
{
RawStmt *node = makeNode(RawStmt);
READ_NODE_PTR_FIELD(stmt, stmt, stmt);
READ_INT_FIELD(stmt_location, stmt_location, stmt_location);
READ_INT_FIELD(stmt_len, stmt_len, stmt_len);
return node;
}
static Query *
_readQuery(OUT_TYPE(Query, Query) msg)
{
Query *node = makeNode(Query);
READ_ENUM_FIELD(CmdType, command_type, commandType, commandType);
READ_ENUM_FIELD(QuerySource, query_source, querySource, querySource);
READ_BOOL_FIELD(can_set_tag, canSetTag, canSetTag);
READ_NODE_PTR_FIELD(utility_stmt, utilityStmt, utilityStmt);
READ_INT_FIELD(result_relation, resultRelation, resultRelation);
READ_BOOL_FIELD(has_aggs, hasAggs, hasAggs);
READ_BOOL_FIELD(has_window_funcs, hasWindowFuncs, hasWindowFuncs);
READ_BOOL_FIELD(has_target_srfs, hasTargetSRFs, hasTargetSRFs);
READ_BOOL_FIELD(has_sub_links, hasSubLinks, hasSubLinks);
READ_BOOL_FIELD(has_distinct_on, hasDistinctOn, hasDistinctOn);
READ_BOOL_FIELD(has_recursive, hasRecursive, hasRecursive);
READ_BOOL_FIELD(has_modifying_cte, hasModifyingCTE, hasModifyingCTE);
READ_BOOL_FIELD(has_for_update, hasForUpdate, hasForUpdate);
READ_BOOL_FIELD(has_row_security, hasRowSecurity, hasRowSecurity);
READ_BOOL_FIELD(is_return, isReturn, isReturn);
READ_LIST_FIELD(cte_list, cteList, cteList);
READ_LIST_FIELD(rtable, rtable, rtable);
READ_SPECIFIC_NODE_PTR_FIELD(FromExpr, from_expr, jointree, jointree, jointree);
READ_LIST_FIELD(merge_action_list, mergeActionList, mergeActionList);
READ_BOOL_FIELD(merge_use_outer_join, mergeUseOuterJoin, mergeUseOuterJoin);
READ_LIST_FIELD(target_list, targetList, targetList);
READ_ENUM_FIELD(OverridingKind, override, override, override);
READ_SPECIFIC_NODE_PTR_FIELD(OnConflictExpr, on_conflict_expr, on_conflict, onConflict, onConflict);
READ_LIST_FIELD(returning_list, returningList, returningList);
READ_LIST_FIELD(group_clause, groupClause, groupClause);
READ_BOOL_FIELD(group_distinct, groupDistinct, groupDistinct);
READ_LIST_FIELD(grouping_sets, groupingSets, groupingSets);
READ_NODE_PTR_FIELD(having_qual, havingQual, havingQual);
READ_LIST_FIELD(window_clause, windowClause, windowClause);
READ_LIST_FIELD(distinct_clause, distinctClause, distinctClause);
READ_LIST_FIELD(sort_clause, sortClause, sortClause);
READ_NODE_PTR_FIELD(limit_offset, limitOffset, limitOffset);
READ_NODE_PTR_FIELD(limit_count, limitCount, limitCount);
READ_ENUM_FIELD(LimitOption, limit_option, limitOption, limitOption);
READ_LIST_FIELD(row_marks, rowMarks, rowMarks);
READ_NODE_PTR_FIELD(set_operations, setOperations, setOperations);
READ_LIST_FIELD(constraint_deps, constraintDeps, constraintDeps);
READ_LIST_FIELD(with_check_options, withCheckOptions, withCheckOptions);
READ_INT_FIELD(stmt_location, stmt_location, stmt_location);
READ_INT_FIELD(stmt_len, stmt_len, stmt_len);
return node;
}
static InsertStmt *
_readInsertStmt(OUT_TYPE(InsertStmt, InsertStmt) msg)
{
InsertStmt *node = makeNode(InsertStmt);
READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
READ_LIST_FIELD(cols, cols, cols);
READ_NODE_PTR_FIELD(select_stmt, selectStmt, selectStmt);
READ_SPECIFIC_NODE_PTR_FIELD(OnConflictClause, on_conflict_clause, on_conflict_clause, onConflictClause, onConflictClause);
READ_LIST_FIELD(returning_list, returningList, returningList);
READ_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause);
READ_ENUM_FIELD(OverridingKind, override, override, override);
return node;
}
static DeleteStmt *
_readDeleteStmt(OUT_TYPE(DeleteStmt, DeleteStmt) msg)
{
DeleteStmt *node = makeNode(DeleteStmt);
READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
READ_LIST_FIELD(using_clause, usingClause, usingClause);
READ_NODE_PTR_FIELD(where_clause, whereClause, whereClause);
READ_LIST_FIELD(returning_list, returningList, returningList);
READ_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause);
return node;
}
static UpdateStmt *
_readUpdateStmt(OUT_TYPE(UpdateStmt, UpdateStmt) msg)
{
UpdateStmt *node = makeNode(UpdateStmt);
READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
READ_LIST_FIELD(target_list, targetList, targetList);
READ_NODE_PTR_FIELD(where_clause, whereClause, whereClause);
READ_LIST_FIELD(from_clause, fromClause, fromClause);
READ_LIST_FIELD(returning_list, returningList, returningList);
READ_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause);
return node;
}
static MergeStmt *
_readMergeStmt(OUT_TYPE(MergeStmt, MergeStmt) msg)
{
MergeStmt *node = makeNode(MergeStmt);
READ_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
READ_NODE_PTR_FIELD(source_relation, sourceRelation, sourceRelation);
READ_NODE_PTR_FIELD(join_condition, joinCondition, joinCondition);