-
Notifications
You must be signed in to change notification settings - Fork 185
/
Copy pathpg_query.proto
3673 lines (3370 loc) · 104 KB
/
pg_query.proto
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
syntax = "proto3";
package pg_query;
message ParseResult {
int32 version = 1;
repeated RawStmt stmts = 2;
}
message ScanResult {
int32 version = 1;
repeated ScanToken tokens = 2;
}
message Node {
oneof node {
Alias alias = 1 [json_name="Alias"];
RangeVar range_var = 2 [json_name="RangeVar"];
TableFunc table_func = 3 [json_name="TableFunc"];
Var var = 4 [json_name="Var"];
Param param = 5 [json_name="Param"];
Aggref aggref = 6 [json_name="Aggref"];
GroupingFunc grouping_func = 7 [json_name="GroupingFunc"];
WindowFunc window_func = 8 [json_name="WindowFunc"];
SubscriptingRef subscripting_ref = 9 [json_name="SubscriptingRef"];
FuncExpr func_expr = 10 [json_name="FuncExpr"];
NamedArgExpr named_arg_expr = 11 [json_name="NamedArgExpr"];
OpExpr op_expr = 12 [json_name="OpExpr"];
DistinctExpr distinct_expr = 13 [json_name="DistinctExpr"];
NullIfExpr null_if_expr = 14 [json_name="NullIfExpr"];
ScalarArrayOpExpr scalar_array_op_expr = 15 [json_name="ScalarArrayOpExpr"];
BoolExpr bool_expr = 16 [json_name="BoolExpr"];
SubLink sub_link = 17 [json_name="SubLink"];
SubPlan sub_plan = 18 [json_name="SubPlan"];
AlternativeSubPlan alternative_sub_plan = 19 [json_name="AlternativeSubPlan"];
FieldSelect field_select = 20 [json_name="FieldSelect"];
FieldStore field_store = 21 [json_name="FieldStore"];
RelabelType relabel_type = 22 [json_name="RelabelType"];
CoerceViaIO coerce_via_io = 23 [json_name="CoerceViaIO"];
ArrayCoerceExpr array_coerce_expr = 24 [json_name="ArrayCoerceExpr"];
ConvertRowtypeExpr convert_rowtype_expr = 25 [json_name="ConvertRowtypeExpr"];
CollateExpr collate_expr = 26 [json_name="CollateExpr"];
CaseExpr case_expr = 27 [json_name="CaseExpr"];
CaseWhen case_when = 28 [json_name="CaseWhen"];
CaseTestExpr case_test_expr = 29 [json_name="CaseTestExpr"];
ArrayExpr array_expr = 30 [json_name="ArrayExpr"];
RowExpr row_expr = 31 [json_name="RowExpr"];
RowCompareExpr row_compare_expr = 32 [json_name="RowCompareExpr"];
CoalesceExpr coalesce_expr = 33 [json_name="CoalesceExpr"];
MinMaxExpr min_max_expr = 34 [json_name="MinMaxExpr"];
SQLValueFunction sqlvalue_function = 35 [json_name="SQLValueFunction"];
XmlExpr xml_expr = 36 [json_name="XmlExpr"];
NullTest null_test = 37 [json_name="NullTest"];
BooleanTest boolean_test = 38 [json_name="BooleanTest"];
CoerceToDomain coerce_to_domain = 39 [json_name="CoerceToDomain"];
CoerceToDomainValue coerce_to_domain_value = 40 [json_name="CoerceToDomainValue"];
SetToDefault set_to_default = 41 [json_name="SetToDefault"];
CurrentOfExpr current_of_expr = 42 [json_name="CurrentOfExpr"];
NextValueExpr next_value_expr = 43 [json_name="NextValueExpr"];
InferenceElem inference_elem = 44 [json_name="InferenceElem"];
TargetEntry target_entry = 45 [json_name="TargetEntry"];
RangeTblRef range_tbl_ref = 46 [json_name="RangeTblRef"];
JoinExpr join_expr = 47 [json_name="JoinExpr"];
FromExpr from_expr = 48 [json_name="FromExpr"];
OnConflictExpr on_conflict_expr = 49 [json_name="OnConflictExpr"];
IntoClause into_clause = 50 [json_name="IntoClause"];
MergeAction merge_action = 51 [json_name="MergeAction"];
RawStmt raw_stmt = 52 [json_name="RawStmt"];
Query query = 53 [json_name="Query"];
InsertStmt insert_stmt = 54 [json_name="InsertStmt"];
DeleteStmt delete_stmt = 55 [json_name="DeleteStmt"];
UpdateStmt update_stmt = 56 [json_name="UpdateStmt"];
MergeStmt merge_stmt = 57 [json_name="MergeStmt"];
SelectStmt select_stmt = 58 [json_name="SelectStmt"];
ReturnStmt return_stmt = 59 [json_name="ReturnStmt"];
PLAssignStmt plassign_stmt = 60 [json_name="PLAssignStmt"];
AlterTableStmt alter_table_stmt = 61 [json_name="AlterTableStmt"];
AlterTableCmd alter_table_cmd = 62 [json_name="AlterTableCmd"];
AlterDomainStmt alter_domain_stmt = 63 [json_name="AlterDomainStmt"];
SetOperationStmt set_operation_stmt = 64 [json_name="SetOperationStmt"];
GrantStmt grant_stmt = 65 [json_name="GrantStmt"];
GrantRoleStmt grant_role_stmt = 66 [json_name="GrantRoleStmt"];
AlterDefaultPrivilegesStmt alter_default_privileges_stmt = 67 [json_name="AlterDefaultPrivilegesStmt"];
ClosePortalStmt close_portal_stmt = 68 [json_name="ClosePortalStmt"];
ClusterStmt cluster_stmt = 69 [json_name="ClusterStmt"];
CopyStmt copy_stmt = 70 [json_name="CopyStmt"];
CreateStmt create_stmt = 71 [json_name="CreateStmt"];
DefineStmt define_stmt = 72 [json_name="DefineStmt"];
DropStmt drop_stmt = 73 [json_name="DropStmt"];
TruncateStmt truncate_stmt = 74 [json_name="TruncateStmt"];
CommentStmt comment_stmt = 75 [json_name="CommentStmt"];
FetchStmt fetch_stmt = 76 [json_name="FetchStmt"];
IndexStmt index_stmt = 77 [json_name="IndexStmt"];
CreateFunctionStmt create_function_stmt = 78 [json_name="CreateFunctionStmt"];
AlterFunctionStmt alter_function_stmt = 79 [json_name="AlterFunctionStmt"];
DoStmt do_stmt = 80 [json_name="DoStmt"];
RenameStmt rename_stmt = 81 [json_name="RenameStmt"];
RuleStmt rule_stmt = 82 [json_name="RuleStmt"];
NotifyStmt notify_stmt = 83 [json_name="NotifyStmt"];
ListenStmt listen_stmt = 84 [json_name="ListenStmt"];
UnlistenStmt unlisten_stmt = 85 [json_name="UnlistenStmt"];
TransactionStmt transaction_stmt = 86 [json_name="TransactionStmt"];
ViewStmt view_stmt = 87 [json_name="ViewStmt"];
LoadStmt load_stmt = 88 [json_name="LoadStmt"];
CreateDomainStmt create_domain_stmt = 89 [json_name="CreateDomainStmt"];
CreatedbStmt createdb_stmt = 90 [json_name="CreatedbStmt"];
DropdbStmt dropdb_stmt = 91 [json_name="DropdbStmt"];
VacuumStmt vacuum_stmt = 92 [json_name="VacuumStmt"];
ExplainStmt explain_stmt = 93 [json_name="ExplainStmt"];
CreateTableAsStmt create_table_as_stmt = 94 [json_name="CreateTableAsStmt"];
CreateSeqStmt create_seq_stmt = 95 [json_name="CreateSeqStmt"];
AlterSeqStmt alter_seq_stmt = 96 [json_name="AlterSeqStmt"];
VariableSetStmt variable_set_stmt = 97 [json_name="VariableSetStmt"];
VariableShowStmt variable_show_stmt = 98 [json_name="VariableShowStmt"];
DiscardStmt discard_stmt = 99 [json_name="DiscardStmt"];
CreateTrigStmt create_trig_stmt = 100 [json_name="CreateTrigStmt"];
CreatePLangStmt create_plang_stmt = 101 [json_name="CreatePLangStmt"];
CreateRoleStmt create_role_stmt = 102 [json_name="CreateRoleStmt"];
AlterRoleStmt alter_role_stmt = 103 [json_name="AlterRoleStmt"];
DropRoleStmt drop_role_stmt = 104 [json_name="DropRoleStmt"];
LockStmt lock_stmt = 105 [json_name="LockStmt"];
ConstraintsSetStmt constraints_set_stmt = 106 [json_name="ConstraintsSetStmt"];
ReindexStmt reindex_stmt = 107 [json_name="ReindexStmt"];
CheckPointStmt check_point_stmt = 108 [json_name="CheckPointStmt"];
CreateSchemaStmt create_schema_stmt = 109 [json_name="CreateSchemaStmt"];
AlterDatabaseStmt alter_database_stmt = 110 [json_name="AlterDatabaseStmt"];
AlterDatabaseRefreshCollStmt alter_database_refresh_coll_stmt = 111 [json_name="AlterDatabaseRefreshCollStmt"];
AlterDatabaseSetStmt alter_database_set_stmt = 112 [json_name="AlterDatabaseSetStmt"];
AlterRoleSetStmt alter_role_set_stmt = 113 [json_name="AlterRoleSetStmt"];
CreateConversionStmt create_conversion_stmt = 114 [json_name="CreateConversionStmt"];
CreateCastStmt create_cast_stmt = 115 [json_name="CreateCastStmt"];
CreateOpClassStmt create_op_class_stmt = 116 [json_name="CreateOpClassStmt"];
CreateOpFamilyStmt create_op_family_stmt = 117 [json_name="CreateOpFamilyStmt"];
AlterOpFamilyStmt alter_op_family_stmt = 118 [json_name="AlterOpFamilyStmt"];
PrepareStmt prepare_stmt = 119 [json_name="PrepareStmt"];
ExecuteStmt execute_stmt = 120 [json_name="ExecuteStmt"];
DeallocateStmt deallocate_stmt = 121 [json_name="DeallocateStmt"];
DeclareCursorStmt declare_cursor_stmt = 122 [json_name="DeclareCursorStmt"];
CreateTableSpaceStmt create_table_space_stmt = 123 [json_name="CreateTableSpaceStmt"];
DropTableSpaceStmt drop_table_space_stmt = 124 [json_name="DropTableSpaceStmt"];
AlterObjectDependsStmt alter_object_depends_stmt = 125 [json_name="AlterObjectDependsStmt"];
AlterObjectSchemaStmt alter_object_schema_stmt = 126 [json_name="AlterObjectSchemaStmt"];
AlterOwnerStmt alter_owner_stmt = 127 [json_name="AlterOwnerStmt"];
AlterOperatorStmt alter_operator_stmt = 128 [json_name="AlterOperatorStmt"];
AlterTypeStmt alter_type_stmt = 129 [json_name="AlterTypeStmt"];
DropOwnedStmt drop_owned_stmt = 130 [json_name="DropOwnedStmt"];
ReassignOwnedStmt reassign_owned_stmt = 131 [json_name="ReassignOwnedStmt"];
CompositeTypeStmt composite_type_stmt = 132 [json_name="CompositeTypeStmt"];
CreateEnumStmt create_enum_stmt = 133 [json_name="CreateEnumStmt"];
CreateRangeStmt create_range_stmt = 134 [json_name="CreateRangeStmt"];
AlterEnumStmt alter_enum_stmt = 135 [json_name="AlterEnumStmt"];
AlterTSDictionaryStmt alter_tsdictionary_stmt = 136 [json_name="AlterTSDictionaryStmt"];
AlterTSConfigurationStmt alter_tsconfiguration_stmt = 137 [json_name="AlterTSConfigurationStmt"];
CreateFdwStmt create_fdw_stmt = 138 [json_name="CreateFdwStmt"];
AlterFdwStmt alter_fdw_stmt = 139 [json_name="AlterFdwStmt"];
CreateForeignServerStmt create_foreign_server_stmt = 140 [json_name="CreateForeignServerStmt"];
AlterForeignServerStmt alter_foreign_server_stmt = 141 [json_name="AlterForeignServerStmt"];
CreateUserMappingStmt create_user_mapping_stmt = 142 [json_name="CreateUserMappingStmt"];
AlterUserMappingStmt alter_user_mapping_stmt = 143 [json_name="AlterUserMappingStmt"];
DropUserMappingStmt drop_user_mapping_stmt = 144 [json_name="DropUserMappingStmt"];
AlterTableSpaceOptionsStmt alter_table_space_options_stmt = 145 [json_name="AlterTableSpaceOptionsStmt"];
AlterTableMoveAllStmt alter_table_move_all_stmt = 146 [json_name="AlterTableMoveAllStmt"];
SecLabelStmt sec_label_stmt = 147 [json_name="SecLabelStmt"];
CreateForeignTableStmt create_foreign_table_stmt = 148 [json_name="CreateForeignTableStmt"];
ImportForeignSchemaStmt import_foreign_schema_stmt = 149 [json_name="ImportForeignSchemaStmt"];
CreateExtensionStmt create_extension_stmt = 150 [json_name="CreateExtensionStmt"];
AlterExtensionStmt alter_extension_stmt = 151 [json_name="AlterExtensionStmt"];
AlterExtensionContentsStmt alter_extension_contents_stmt = 152 [json_name="AlterExtensionContentsStmt"];
CreateEventTrigStmt create_event_trig_stmt = 153 [json_name="CreateEventTrigStmt"];
AlterEventTrigStmt alter_event_trig_stmt = 154 [json_name="AlterEventTrigStmt"];
RefreshMatViewStmt refresh_mat_view_stmt = 155 [json_name="RefreshMatViewStmt"];
ReplicaIdentityStmt replica_identity_stmt = 156 [json_name="ReplicaIdentityStmt"];
AlterSystemStmt alter_system_stmt = 157 [json_name="AlterSystemStmt"];
CreatePolicyStmt create_policy_stmt = 158 [json_name="CreatePolicyStmt"];
AlterPolicyStmt alter_policy_stmt = 159 [json_name="AlterPolicyStmt"];
CreateTransformStmt create_transform_stmt = 160 [json_name="CreateTransformStmt"];
CreateAmStmt create_am_stmt = 161 [json_name="CreateAmStmt"];
CreatePublicationStmt create_publication_stmt = 162 [json_name="CreatePublicationStmt"];
AlterPublicationStmt alter_publication_stmt = 163 [json_name="AlterPublicationStmt"];
CreateSubscriptionStmt create_subscription_stmt = 164 [json_name="CreateSubscriptionStmt"];
AlterSubscriptionStmt alter_subscription_stmt = 165 [json_name="AlterSubscriptionStmt"];
DropSubscriptionStmt drop_subscription_stmt = 166 [json_name="DropSubscriptionStmt"];
CreateStatsStmt create_stats_stmt = 167 [json_name="CreateStatsStmt"];
AlterCollationStmt alter_collation_stmt = 168 [json_name="AlterCollationStmt"];
CallStmt call_stmt = 169 [json_name="CallStmt"];
AlterStatsStmt alter_stats_stmt = 170 [json_name="AlterStatsStmt"];
A_Expr a_expr = 171 [json_name="A_Expr"];
ColumnRef column_ref = 172 [json_name="ColumnRef"];
ParamRef param_ref = 173 [json_name="ParamRef"];
FuncCall func_call = 174 [json_name="FuncCall"];
A_Star a_star = 175 [json_name="A_Star"];
A_Indices a_indices = 176 [json_name="A_Indices"];
A_Indirection a_indirection = 177 [json_name="A_Indirection"];
A_ArrayExpr a_array_expr = 178 [json_name="A_ArrayExpr"];
ResTarget res_target = 179 [json_name="ResTarget"];
MultiAssignRef multi_assign_ref = 180 [json_name="MultiAssignRef"];
TypeCast type_cast = 181 [json_name="TypeCast"];
CollateClause collate_clause = 182 [json_name="CollateClause"];
SortBy sort_by = 183 [json_name="SortBy"];
WindowDef window_def = 184 [json_name="WindowDef"];
RangeSubselect range_subselect = 185 [json_name="RangeSubselect"];
RangeFunction range_function = 186 [json_name="RangeFunction"];
RangeTableSample range_table_sample = 187 [json_name="RangeTableSample"];
RangeTableFunc range_table_func = 188 [json_name="RangeTableFunc"];
RangeTableFuncCol range_table_func_col = 189 [json_name="RangeTableFuncCol"];
TypeName type_name = 190 [json_name="TypeName"];
ColumnDef column_def = 191 [json_name="ColumnDef"];
IndexElem index_elem = 192 [json_name="IndexElem"];
StatsElem stats_elem = 193 [json_name="StatsElem"];
Constraint constraint = 194 [json_name="Constraint"];
DefElem def_elem = 195 [json_name="DefElem"];
RangeTblEntry range_tbl_entry = 196 [json_name="RangeTblEntry"];
RangeTblFunction range_tbl_function = 197 [json_name="RangeTblFunction"];
TableSampleClause table_sample_clause = 198 [json_name="TableSampleClause"];
WithCheckOption with_check_option = 199 [json_name="WithCheckOption"];
SortGroupClause sort_group_clause = 200 [json_name="SortGroupClause"];
GroupingSet grouping_set = 201 [json_name="GroupingSet"];
WindowClause window_clause = 202 [json_name="WindowClause"];
ObjectWithArgs object_with_args = 203 [json_name="ObjectWithArgs"];
AccessPriv access_priv = 204 [json_name="AccessPriv"];
CreateOpClassItem create_op_class_item = 205 [json_name="CreateOpClassItem"];
TableLikeClause table_like_clause = 206 [json_name="TableLikeClause"];
FunctionParameter function_parameter = 207 [json_name="FunctionParameter"];
LockingClause locking_clause = 208 [json_name="LockingClause"];
RowMarkClause row_mark_clause = 209 [json_name="RowMarkClause"];
XmlSerialize xml_serialize = 210 [json_name="XmlSerialize"];
WithClause with_clause = 211 [json_name="WithClause"];
InferClause infer_clause = 212 [json_name="InferClause"];
OnConflictClause on_conflict_clause = 213 [json_name="OnConflictClause"];
CTESearchClause ctesearch_clause = 214 [json_name="CTESearchClause"];
CTECycleClause ctecycle_clause = 215 [json_name="CTECycleClause"];
CommonTableExpr common_table_expr = 216 [json_name="CommonTableExpr"];
MergeWhenClause merge_when_clause = 217 [json_name="MergeWhenClause"];
RoleSpec role_spec = 218 [json_name="RoleSpec"];
TriggerTransition trigger_transition = 219 [json_name="TriggerTransition"];
PartitionElem partition_elem = 220 [json_name="PartitionElem"];
PartitionSpec partition_spec = 221 [json_name="PartitionSpec"];
PartitionBoundSpec partition_bound_spec = 222 [json_name="PartitionBoundSpec"];
PartitionRangeDatum partition_range_datum = 223 [json_name="PartitionRangeDatum"];
PartitionCmd partition_cmd = 224 [json_name="PartitionCmd"];
VacuumRelation vacuum_relation = 225 [json_name="VacuumRelation"];
PublicationObjSpec publication_obj_spec = 226 [json_name="PublicationObjSpec"];
PublicationTable publication_table = 227 [json_name="PublicationTable"];
InlineCodeBlock inline_code_block = 228 [json_name="InlineCodeBlock"];
CallContext call_context = 229 [json_name="CallContext"];
Integer integer = 230 [json_name="Integer"];
Float float = 231 [json_name="Float"];
Boolean boolean = 232 [json_name="Boolean"];
String string = 233 [json_name="String"];
BitString bit_string = 234 [json_name="BitString"];
List list = 235 [json_name="List"];
IntList int_list = 236 [json_name="IntList"];
OidList oid_list = 237 [json_name="OidList"];
A_Const a_const = 238 [json_name="A_Const"];
}
}
message Integer
{
int32 ival = 1; /* machine integer */
}
message Float
{
string fval = 1; /* string */
}
message Boolean
{
bool boolval = 1;
}
message String
{
string sval = 1; /* string */
}
message BitString
{
string bsval = 1; /* string */
}
message List
{
repeated Node items = 1;
}
message OidList
{
repeated Node items = 1;
}
message IntList
{
repeated Node items = 1;
}
message A_Const
{
oneof val {
Integer ival = 1;
Float fval = 2;
Boolean boolval = 3;
String sval = 4;
BitString bsval = 5;
}
bool isnull = 10;
int32 location = 11;
}
message Alias
{
string aliasname = 1 [json_name="aliasname"];
repeated Node colnames = 2 [json_name="colnames"];
}
message RangeVar
{
string catalogname = 1 [json_name="catalogname"];
string schemaname = 2 [json_name="schemaname"];
string relname = 3 [json_name="relname"];
bool inh = 4 [json_name="inh"];
string relpersistence = 5 [json_name="relpersistence"];
Alias alias = 6 [json_name="alias"];
int32 location = 7 [json_name="location"];
}
message TableFunc
{
repeated Node ns_uris = 1 [json_name="ns_uris"];
repeated Node ns_names = 2 [json_name="ns_names"];
Node docexpr = 3 [json_name="docexpr"];
Node rowexpr = 4 [json_name="rowexpr"];
repeated Node colnames = 5 [json_name="colnames"];
repeated Node coltypes = 6 [json_name="coltypes"];
repeated Node coltypmods = 7 [json_name="coltypmods"];
repeated Node colcollations = 8 [json_name="colcollations"];
repeated Node colexprs = 9 [json_name="colexprs"];
repeated Node coldefexprs = 10 [json_name="coldefexprs"];
repeated uint64 notnulls = 11 [json_name="notnulls"];
int32 ordinalitycol = 12 [json_name="ordinalitycol"];
int32 location = 13 [json_name="location"];
}
message Var
{
Node xpr = 1 [json_name="xpr"];
int32 varno = 2 [json_name="varno"];
int32 varattno = 3 [json_name="varattno"];
uint32 vartype = 4 [json_name="vartype"];
int32 vartypmod = 5 [json_name="vartypmod"];
uint32 varcollid = 6 [json_name="varcollid"];
uint32 varlevelsup = 7 [json_name="varlevelsup"];
uint32 varnosyn = 8 [json_name="varnosyn"];
int32 varattnosyn = 9 [json_name="varattnosyn"];
int32 location = 10 [json_name="location"];
}
message Param
{
Node xpr = 1 [json_name="xpr"];
ParamKind paramkind = 2 [json_name="paramkind"];
int32 paramid = 3 [json_name="paramid"];
uint32 paramtype = 4 [json_name="paramtype"];
int32 paramtypmod = 5 [json_name="paramtypmod"];
uint32 paramcollid = 6 [json_name="paramcollid"];
int32 location = 7 [json_name="location"];
}
message Aggref
{
Node xpr = 1 [json_name="xpr"];
uint32 aggfnoid = 2 [json_name="aggfnoid"];
uint32 aggtype = 3 [json_name="aggtype"];
uint32 aggcollid = 4 [json_name="aggcollid"];
uint32 inputcollid = 5 [json_name="inputcollid"];
uint32 aggtranstype = 6 [json_name="aggtranstype"];
repeated Node aggargtypes = 7 [json_name="aggargtypes"];
repeated Node aggdirectargs = 8 [json_name="aggdirectargs"];
repeated Node args = 9 [json_name="args"];
repeated Node aggorder = 10 [json_name="aggorder"];
repeated Node aggdistinct = 11 [json_name="aggdistinct"];
Node aggfilter = 12 [json_name="aggfilter"];
bool aggstar = 13 [json_name="aggstar"];
bool aggvariadic = 14 [json_name="aggvariadic"];
string aggkind = 15 [json_name="aggkind"];
uint32 agglevelsup = 16 [json_name="agglevelsup"];
AggSplit aggsplit = 17 [json_name="aggsplit"];
int32 aggno = 18 [json_name="aggno"];
int32 aggtransno = 19 [json_name="aggtransno"];
int32 location = 20 [json_name="location"];
}
message GroupingFunc
{
Node xpr = 1 [json_name="xpr"];
repeated Node args = 2 [json_name="args"];
repeated Node refs = 3 [json_name="refs"];
repeated Node cols = 4 [json_name="cols"];
uint32 agglevelsup = 5 [json_name="agglevelsup"];
int32 location = 6 [json_name="location"];
}
message WindowFunc
{
Node xpr = 1 [json_name="xpr"];
uint32 winfnoid = 2 [json_name="winfnoid"];
uint32 wintype = 3 [json_name="wintype"];
uint32 wincollid = 4 [json_name="wincollid"];
uint32 inputcollid = 5 [json_name="inputcollid"];
repeated Node args = 6 [json_name="args"];
Node aggfilter = 7 [json_name="aggfilter"];
uint32 winref = 8 [json_name="winref"];
bool winstar = 9 [json_name="winstar"];
bool winagg = 10 [json_name="winagg"];
int32 location = 11 [json_name="location"];
}
message SubscriptingRef
{
Node xpr = 1 [json_name="xpr"];
uint32 refcontainertype = 2 [json_name="refcontainertype"];
uint32 refelemtype = 3 [json_name="refelemtype"];
uint32 refrestype = 4 [json_name="refrestype"];
int32 reftypmod = 5 [json_name="reftypmod"];
uint32 refcollid = 6 [json_name="refcollid"];
repeated Node refupperindexpr = 7 [json_name="refupperindexpr"];
repeated Node reflowerindexpr = 8 [json_name="reflowerindexpr"];
Node refexpr = 9 [json_name="refexpr"];
Node refassgnexpr = 10 [json_name="refassgnexpr"];
}
message FuncExpr
{
Node xpr = 1 [json_name="xpr"];
uint32 funcid = 2 [json_name="funcid"];
uint32 funcresulttype = 3 [json_name="funcresulttype"];
bool funcretset = 4 [json_name="funcretset"];
bool funcvariadic = 5 [json_name="funcvariadic"];
CoercionForm funcformat = 6 [json_name="funcformat"];
uint32 funccollid = 7 [json_name="funccollid"];
uint32 inputcollid = 8 [json_name="inputcollid"];
repeated Node args = 9 [json_name="args"];
int32 location = 10 [json_name="location"];
}
message NamedArgExpr
{
Node xpr = 1 [json_name="xpr"];
Node arg = 2 [json_name="arg"];
string name = 3 [json_name="name"];
int32 argnumber = 4 [json_name="argnumber"];
int32 location = 5 [json_name="location"];
}
message OpExpr
{
Node xpr = 1 [json_name="xpr"];
uint32 opno = 2 [json_name="opno"];
uint32 opfuncid = 3 [json_name="opfuncid"];
uint32 opresulttype = 4 [json_name="opresulttype"];
bool opretset = 5 [json_name="opretset"];
uint32 opcollid = 6 [json_name="opcollid"];
uint32 inputcollid = 7 [json_name="inputcollid"];
repeated Node args = 8 [json_name="args"];
int32 location = 9 [json_name="location"];
}
message DistinctExpr
{
Node xpr = 1 [json_name="xpr"];
uint32 opno = 2 [json_name="opno"];
uint32 opfuncid = 3 [json_name="opfuncid"];
uint32 opresulttype = 4 [json_name="opresulttype"];
bool opretset = 5 [json_name="opretset"];
uint32 opcollid = 6 [json_name="opcollid"];
uint32 inputcollid = 7 [json_name="inputcollid"];
repeated Node args = 8 [json_name="args"];
int32 location = 9 [json_name="location"];
}
message NullIfExpr
{
Node xpr = 1 [json_name="xpr"];
uint32 opno = 2 [json_name="opno"];
uint32 opfuncid = 3 [json_name="opfuncid"];
uint32 opresulttype = 4 [json_name="opresulttype"];
bool opretset = 5 [json_name="opretset"];
uint32 opcollid = 6 [json_name="opcollid"];
uint32 inputcollid = 7 [json_name="inputcollid"];
repeated Node args = 8 [json_name="args"];
int32 location = 9 [json_name="location"];
}
message ScalarArrayOpExpr
{
Node xpr = 1 [json_name="xpr"];
uint32 opno = 2 [json_name="opno"];
uint32 opfuncid = 3 [json_name="opfuncid"];
uint32 hashfuncid = 4 [json_name="hashfuncid"];
uint32 negfuncid = 5 [json_name="negfuncid"];
bool use_or = 6 [json_name="useOr"];
uint32 inputcollid = 7 [json_name="inputcollid"];
repeated Node args = 8 [json_name="args"];
int32 location = 9 [json_name="location"];
}
message BoolExpr
{
Node xpr = 1 [json_name="xpr"];
BoolExprType boolop = 2 [json_name="boolop"];
repeated Node args = 3 [json_name="args"];
int32 location = 4 [json_name="location"];
}
message SubLink
{
Node xpr = 1 [json_name="xpr"];
SubLinkType sub_link_type = 2 [json_name="subLinkType"];
int32 sub_link_id = 3 [json_name="subLinkId"];
Node testexpr = 4 [json_name="testexpr"];
repeated Node oper_name = 5 [json_name="operName"];
Node subselect = 6 [json_name="subselect"];
int32 location = 7 [json_name="location"];
}
message SubPlan
{
Node xpr = 1 [json_name="xpr"];
SubLinkType sub_link_type = 2 [json_name="subLinkType"];
Node testexpr = 3 [json_name="testexpr"];
repeated Node param_ids = 4 [json_name="paramIds"];
int32 plan_id = 5 [json_name="plan_id"];
string plan_name = 6 [json_name="plan_name"];
uint32 first_col_type = 7 [json_name="firstColType"];
int32 first_col_typmod = 8 [json_name="firstColTypmod"];
uint32 first_col_collation = 9 [json_name="firstColCollation"];
bool use_hash_table = 10 [json_name="useHashTable"];
bool unknown_eq_false = 11 [json_name="unknownEqFalse"];
bool parallel_safe = 12 [json_name="parallel_safe"];
repeated Node set_param = 13 [json_name="setParam"];
repeated Node par_param = 14 [json_name="parParam"];
repeated Node args = 15 [json_name="args"];
double startup_cost = 16 [json_name="startup_cost"];
double per_call_cost = 17 [json_name="per_call_cost"];
}
message AlternativeSubPlan
{
Node xpr = 1 [json_name="xpr"];
repeated Node subplans = 2 [json_name="subplans"];
}
message FieldSelect
{
Node xpr = 1 [json_name="xpr"];
Node arg = 2 [json_name="arg"];
int32 fieldnum = 3 [json_name="fieldnum"];
uint32 resulttype = 4 [json_name="resulttype"];
int32 resulttypmod = 5 [json_name="resulttypmod"];
uint32 resultcollid = 6 [json_name="resultcollid"];
}
message FieldStore
{
Node xpr = 1 [json_name="xpr"];
Node arg = 2 [json_name="arg"];
repeated Node newvals = 3 [json_name="newvals"];
repeated Node fieldnums = 4 [json_name="fieldnums"];
uint32 resulttype = 5 [json_name="resulttype"];
}
message RelabelType
{
Node xpr = 1 [json_name="xpr"];
Node arg = 2 [json_name="arg"];
uint32 resulttype = 3 [json_name="resulttype"];
int32 resulttypmod = 4 [json_name="resulttypmod"];
uint32 resultcollid = 5 [json_name="resultcollid"];
CoercionForm relabelformat = 6 [json_name="relabelformat"];
int32 location = 7 [json_name="location"];
}
message CoerceViaIO
{
Node xpr = 1 [json_name="xpr"];
Node arg = 2 [json_name="arg"];
uint32 resulttype = 3 [json_name="resulttype"];
uint32 resultcollid = 4 [json_name="resultcollid"];
CoercionForm coerceformat = 5 [json_name="coerceformat"];
int32 location = 6 [json_name="location"];
}
message ArrayCoerceExpr
{
Node xpr = 1 [json_name="xpr"];
Node arg = 2 [json_name="arg"];
Node elemexpr = 3 [json_name="elemexpr"];
uint32 resulttype = 4 [json_name="resulttype"];
int32 resulttypmod = 5 [json_name="resulttypmod"];
uint32 resultcollid = 6 [json_name="resultcollid"];
CoercionForm coerceformat = 7 [json_name="coerceformat"];
int32 location = 8 [json_name="location"];
}
message ConvertRowtypeExpr
{
Node xpr = 1 [json_name="xpr"];
Node arg = 2 [json_name="arg"];
uint32 resulttype = 3 [json_name="resulttype"];
CoercionForm convertformat = 4 [json_name="convertformat"];
int32 location = 5 [json_name="location"];
}
message CollateExpr
{
Node xpr = 1 [json_name="xpr"];
Node arg = 2 [json_name="arg"];
uint32 coll_oid = 3 [json_name="collOid"];
int32 location = 4 [json_name="location"];
}
message CaseExpr
{
Node xpr = 1 [json_name="xpr"];
uint32 casetype = 2 [json_name="casetype"];
uint32 casecollid = 3 [json_name="casecollid"];
Node arg = 4 [json_name="arg"];
repeated Node args = 5 [json_name="args"];
Node defresult = 6 [json_name="defresult"];
int32 location = 7 [json_name="location"];
}
message CaseWhen
{
Node xpr = 1 [json_name="xpr"];
Node expr = 2 [json_name="expr"];
Node result = 3 [json_name="result"];
int32 location = 4 [json_name="location"];
}
message CaseTestExpr
{
Node xpr = 1 [json_name="xpr"];
uint32 type_id = 2 [json_name="typeId"];
int32 type_mod = 3 [json_name="typeMod"];
uint32 collation = 4 [json_name="collation"];
}
message ArrayExpr
{
Node xpr = 1 [json_name="xpr"];
uint32 array_typeid = 2 [json_name="array_typeid"];
uint32 array_collid = 3 [json_name="array_collid"];
uint32 element_typeid = 4 [json_name="element_typeid"];
repeated Node elements = 5 [json_name="elements"];
bool multidims = 6 [json_name="multidims"];
int32 location = 7 [json_name="location"];
}
message RowExpr
{
Node xpr = 1 [json_name="xpr"];
repeated Node args = 2 [json_name="args"];
uint32 row_typeid = 3 [json_name="row_typeid"];
CoercionForm row_format = 4 [json_name="row_format"];
repeated Node colnames = 5 [json_name="colnames"];
int32 location = 6 [json_name="location"];
}
message RowCompareExpr
{
Node xpr = 1 [json_name="xpr"];
RowCompareType rctype = 2 [json_name="rctype"];
repeated Node opnos = 3 [json_name="opnos"];
repeated Node opfamilies = 4 [json_name="opfamilies"];
repeated Node inputcollids = 5 [json_name="inputcollids"];
repeated Node largs = 6 [json_name="largs"];
repeated Node rargs = 7 [json_name="rargs"];
}
message CoalesceExpr
{
Node xpr = 1 [json_name="xpr"];
uint32 coalescetype = 2 [json_name="coalescetype"];
uint32 coalescecollid = 3 [json_name="coalescecollid"];
repeated Node args = 4 [json_name="args"];
int32 location = 5 [json_name="location"];
}
message MinMaxExpr
{
Node xpr = 1 [json_name="xpr"];
uint32 minmaxtype = 2 [json_name="minmaxtype"];
uint32 minmaxcollid = 3 [json_name="minmaxcollid"];
uint32 inputcollid = 4 [json_name="inputcollid"];
MinMaxOp op = 5 [json_name="op"];
repeated Node args = 6 [json_name="args"];
int32 location = 7 [json_name="location"];
}
message SQLValueFunction
{
Node xpr = 1 [json_name="xpr"];
SQLValueFunctionOp op = 2 [json_name="op"];
uint32 type = 3 [json_name="type"];
int32 typmod = 4 [json_name="typmod"];
int32 location = 5 [json_name="location"];
}
message XmlExpr
{
Node xpr = 1 [json_name="xpr"];
XmlExprOp op = 2 [json_name="op"];
string name = 3 [json_name="name"];
repeated Node named_args = 4 [json_name="named_args"];
repeated Node arg_names = 5 [json_name="arg_names"];
repeated Node args = 6 [json_name="args"];
XmlOptionType xmloption = 7 [json_name="xmloption"];
uint32 type = 8 [json_name="type"];
int32 typmod = 9 [json_name="typmod"];
int32 location = 10 [json_name="location"];
}
message NullTest
{
Node xpr = 1 [json_name="xpr"];
Node arg = 2 [json_name="arg"];
NullTestType nulltesttype = 3 [json_name="nulltesttype"];
bool argisrow = 4 [json_name="argisrow"];
int32 location = 5 [json_name="location"];
}
message BooleanTest
{
Node xpr = 1 [json_name="xpr"];
Node arg = 2 [json_name="arg"];
BoolTestType booltesttype = 3 [json_name="booltesttype"];
int32 location = 4 [json_name="location"];
}
message CoerceToDomain
{
Node xpr = 1 [json_name="xpr"];
Node arg = 2 [json_name="arg"];
uint32 resulttype = 3 [json_name="resulttype"];
int32 resulttypmod = 4 [json_name="resulttypmod"];
uint32 resultcollid = 5 [json_name="resultcollid"];
CoercionForm coercionformat = 6 [json_name="coercionformat"];
int32 location = 7 [json_name="location"];
}
message CoerceToDomainValue
{
Node xpr = 1 [json_name="xpr"];
uint32 type_id = 2 [json_name="typeId"];
int32 type_mod = 3 [json_name="typeMod"];
uint32 collation = 4 [json_name="collation"];
int32 location = 5 [json_name="location"];
}
message SetToDefault
{
Node xpr = 1 [json_name="xpr"];
uint32 type_id = 2 [json_name="typeId"];
int32 type_mod = 3 [json_name="typeMod"];
uint32 collation = 4 [json_name="collation"];
int32 location = 5 [json_name="location"];
}
message CurrentOfExpr
{
Node xpr = 1 [json_name="xpr"];
uint32 cvarno = 2 [json_name="cvarno"];
string cursor_name = 3 [json_name="cursor_name"];
int32 cursor_param = 4 [json_name="cursor_param"];
}
message NextValueExpr
{
Node xpr = 1 [json_name="xpr"];
uint32 seqid = 2 [json_name="seqid"];
uint32 type_id = 3 [json_name="typeId"];
}
message InferenceElem
{
Node xpr = 1 [json_name="xpr"];
Node expr = 2 [json_name="expr"];
uint32 infercollid = 3 [json_name="infercollid"];
uint32 inferopclass = 4 [json_name="inferopclass"];
}
message TargetEntry
{
Node xpr = 1 [json_name="xpr"];
Node expr = 2 [json_name="expr"];
int32 resno = 3 [json_name="resno"];
string resname = 4 [json_name="resname"];
uint32 ressortgroupref = 5 [json_name="ressortgroupref"];
uint32 resorigtbl = 6 [json_name="resorigtbl"];
int32 resorigcol = 7 [json_name="resorigcol"];
bool resjunk = 8 [json_name="resjunk"];
}
message RangeTblRef
{
int32 rtindex = 1 [json_name="rtindex"];
}
message JoinExpr
{
JoinType jointype = 1 [json_name="jointype"];
bool is_natural = 2 [json_name="isNatural"];
Node larg = 3 [json_name="larg"];
Node rarg = 4 [json_name="rarg"];
repeated Node using_clause = 5 [json_name="usingClause"];
Alias join_using_alias = 6 [json_name="join_using_alias"];
Node quals = 7 [json_name="quals"];
Alias alias = 8 [json_name="alias"];
int32 rtindex = 9 [json_name="rtindex"];
}
message FromExpr
{
repeated Node fromlist = 1 [json_name="fromlist"];
Node quals = 2 [json_name="quals"];
}
message OnConflictExpr
{
OnConflictAction action = 1 [json_name="action"];
repeated Node arbiter_elems = 2 [json_name="arbiterElems"];
Node arbiter_where = 3 [json_name="arbiterWhere"];
uint32 constraint = 4 [json_name="constraint"];
repeated Node on_conflict_set = 5 [json_name="onConflictSet"];
Node on_conflict_where = 6 [json_name="onConflictWhere"];
int32 excl_rel_index = 7 [json_name="exclRelIndex"];
repeated Node excl_rel_tlist = 8 [json_name="exclRelTlist"];
}
message IntoClause
{
RangeVar rel = 1 [json_name="rel"];
repeated Node col_names = 2 [json_name="colNames"];
string access_method = 3 [json_name="accessMethod"];
repeated Node options = 4 [json_name="options"];
OnCommitAction on_commit = 5 [json_name="onCommit"];
string table_space_name = 6 [json_name="tableSpaceName"];
Node view_query = 7 [json_name="viewQuery"];
bool skip_data = 8 [json_name="skipData"];
}
message MergeAction
{
bool matched = 1 [json_name="matched"];
CmdType command_type = 2 [json_name="commandType"];
OverridingKind override = 3 [json_name="override"];
Node qual = 4 [json_name="qual"];
repeated Node target_list = 5 [json_name="targetList"];
repeated Node update_colnos = 6 [json_name="updateColnos"];
}
message RawStmt
{
Node stmt = 1 [json_name="stmt"];
int32 stmt_location = 2 [json_name="stmt_location"];
int32 stmt_len = 3 [json_name="stmt_len"];
}
message Query
{
CmdType command_type = 1 [json_name="commandType"];
QuerySource query_source = 2 [json_name="querySource"];
bool can_set_tag = 3 [json_name="canSetTag"];
Node utility_stmt = 4 [json_name="utilityStmt"];
int32 result_relation = 5 [json_name="resultRelation"];
bool has_aggs = 6 [json_name="hasAggs"];
bool has_window_funcs = 7 [json_name="hasWindowFuncs"];
bool has_target_srfs = 8 [json_name="hasTargetSRFs"];
bool has_sub_links = 9 [json_name="hasSubLinks"];
bool has_distinct_on = 10 [json_name="hasDistinctOn"];
bool has_recursive = 11 [json_name="hasRecursive"];
bool has_modifying_cte = 12 [json_name="hasModifyingCTE"];
bool has_for_update = 13 [json_name="hasForUpdate"];
bool has_row_security = 14 [json_name="hasRowSecurity"];
bool is_return = 15 [json_name="isReturn"];
repeated Node cte_list = 16 [json_name="cteList"];
repeated Node rtable = 17 [json_name="rtable"];
FromExpr jointree = 18 [json_name="jointree"];
repeated Node merge_action_list = 19 [json_name="mergeActionList"];
bool merge_use_outer_join = 20 [json_name="mergeUseOuterJoin"];
repeated Node target_list = 21 [json_name="targetList"];
OverridingKind override = 22 [json_name="override"];
OnConflictExpr on_conflict = 23 [json_name="onConflict"];
repeated Node returning_list = 24 [json_name="returningList"];
repeated Node group_clause = 25 [json_name="groupClause"];
bool group_distinct = 26 [json_name="groupDistinct"];
repeated Node grouping_sets = 27 [json_name="groupingSets"];
Node having_qual = 28 [json_name="havingQual"];
repeated Node window_clause = 29 [json_name="windowClause"];
repeated Node distinct_clause = 30 [json_name="distinctClause"];
repeated Node sort_clause = 31 [json_name="sortClause"];
Node limit_offset = 32 [json_name="limitOffset"];
Node limit_count = 33 [json_name="limitCount"];
LimitOption limit_option = 34 [json_name="limitOption"];
repeated Node row_marks = 35 [json_name="rowMarks"];
Node set_operations = 36 [json_name="setOperations"];
repeated Node constraint_deps = 37 [json_name="constraintDeps"];
repeated Node with_check_options = 38 [json_name="withCheckOptions"];
int32 stmt_location = 39 [json_name="stmt_location"];
int32 stmt_len = 40 [json_name="stmt_len"];
}
message InsertStmt
{
RangeVar relation = 1 [json_name="relation"];
repeated Node cols = 2 [json_name="cols"];
Node select_stmt = 3 [json_name="selectStmt"];
OnConflictClause on_conflict_clause = 4 [json_name="onConflictClause"];
repeated Node returning_list = 5 [json_name="returningList"];
WithClause with_clause = 6 [json_name="withClause"];
OverridingKind override = 7 [json_name="override"];
}
message DeleteStmt
{
RangeVar relation = 1 [json_name="relation"];
repeated Node using_clause = 2 [json_name="usingClause"];
Node where_clause = 3 [json_name="whereClause"];
repeated Node returning_list = 4 [json_name="returningList"];
WithClause with_clause = 5 [json_name="withClause"];
}
message UpdateStmt
{
RangeVar relation = 1 [json_name="relation"];
repeated Node target_list = 2 [json_name="targetList"];
Node where_clause = 3 [json_name="whereClause"];
repeated Node from_clause = 4 [json_name="fromClause"];
repeated Node returning_list = 5 [json_name="returningList"];
WithClause with_clause = 6 [json_name="withClause"];
}
message MergeStmt
{
RangeVar relation = 1 [json_name="relation"];
Node source_relation = 2 [json_name="sourceRelation"];
Node join_condition = 3 [json_name="joinCondition"];
repeated Node merge_when_clauses = 4 [json_name="mergeWhenClauses"];
WithClause with_clause = 5 [json_name="withClause"];
}
message SelectStmt
{
repeated Node distinct_clause = 1 [json_name="distinctClause"];
IntoClause into_clause = 2 [json_name="intoClause"];
repeated Node target_list = 3 [json_name="targetList"];
repeated Node from_clause = 4 [json_name="fromClause"];
Node where_clause = 5 [json_name="whereClause"];
repeated Node group_clause = 6 [json_name="groupClause"];
bool group_distinct = 7 [json_name="groupDistinct"];
Node having_clause = 8 [json_name="havingClause"];
repeated Node window_clause = 9 [json_name="windowClause"];
repeated Node values_lists = 10 [json_name="valuesLists"];
repeated Node sort_clause = 11 [json_name="sortClause"];
Node limit_offset = 12 [json_name="limitOffset"];
Node limit_count = 13 [json_name="limitCount"];
LimitOption limit_option = 14 [json_name="limitOption"];
repeated Node locking_clause = 15 [json_name="lockingClause"];
WithClause with_clause = 16 [json_name="withClause"];
SetOperation op = 17 [json_name="op"];
bool all = 18 [json_name="all"];
SelectStmt larg = 19 [json_name="larg"];
SelectStmt rarg = 20 [json_name="rarg"];
}
message ReturnStmt
{
Node returnval = 1 [json_name="returnval"];
}
message PLAssignStmt
{
string name = 1 [json_name="name"];
repeated Node indirection = 2 [json_name="indirection"];
int32 nnames = 3 [json_name="nnames"];
SelectStmt val = 4 [json_name="val"];
int32 location = 5 [json_name="location"];
}
message AlterTableStmt
{
RangeVar relation = 1 [json_name="relation"];
repeated Node cmds = 2 [json_name="cmds"];
ObjectType objtype = 3 [json_name="objtype"];
bool missing_ok = 4 [json_name="missing_ok"];
}