-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathpg_query.proto
More file actions
4234 lines (3877 loc) Β· 120 KB
/
pg_query.proto
File metadata and controls
4234 lines (3877 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
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"];
IntoClause into_clause = 4 [json_name="IntoClause"];
Var var = 5 [json_name="Var"];
Param param = 6 [json_name="Param"];
Aggref aggref = 7 [json_name="Aggref"];
GroupingFunc grouping_func = 8 [json_name="GroupingFunc"];
WindowFunc window_func = 9 [json_name="WindowFunc"];
WindowFuncRunCondition window_func_run_condition = 10 [json_name="WindowFuncRunCondition"];
MergeSupportFunc merge_support_func = 11 [json_name="MergeSupportFunc"];
SubscriptingRef subscripting_ref = 12 [json_name="SubscriptingRef"];
FuncExpr func_expr = 13 [json_name="FuncExpr"];
NamedArgExpr named_arg_expr = 14 [json_name="NamedArgExpr"];
OpExpr op_expr = 15 [json_name="OpExpr"];
DistinctExpr distinct_expr = 16 [json_name="DistinctExpr"];
NullIfExpr null_if_expr = 17 [json_name="NullIfExpr"];
ScalarArrayOpExpr scalar_array_op_expr = 18 [json_name="ScalarArrayOpExpr"];
BoolExpr bool_expr = 19 [json_name="BoolExpr"];
SubLink sub_link = 20 [json_name="SubLink"];
SubPlan sub_plan = 21 [json_name="SubPlan"];
AlternativeSubPlan alternative_sub_plan = 22 [json_name="AlternativeSubPlan"];
FieldSelect field_select = 23 [json_name="FieldSelect"];
FieldStore field_store = 24 [json_name="FieldStore"];
RelabelType relabel_type = 25 [json_name="RelabelType"];
CoerceViaIO coerce_via_io = 26 [json_name="CoerceViaIO"];
ArrayCoerceExpr array_coerce_expr = 27 [json_name="ArrayCoerceExpr"];
ConvertRowtypeExpr convert_rowtype_expr = 28 [json_name="ConvertRowtypeExpr"];
CollateExpr collate_expr = 29 [json_name="CollateExpr"];
CaseExpr case_expr = 30 [json_name="CaseExpr"];
CaseWhen case_when = 31 [json_name="CaseWhen"];
CaseTestExpr case_test_expr = 32 [json_name="CaseTestExpr"];
ArrayExpr array_expr = 33 [json_name="ArrayExpr"];
RowExpr row_expr = 34 [json_name="RowExpr"];
RowCompareExpr row_compare_expr = 35 [json_name="RowCompareExpr"];
CoalesceExpr coalesce_expr = 36 [json_name="CoalesceExpr"];
MinMaxExpr min_max_expr = 37 [json_name="MinMaxExpr"];
SQLValueFunction sqlvalue_function = 38 [json_name="SQLValueFunction"];
XmlExpr xml_expr = 39 [json_name="XmlExpr"];
JsonFormat json_format = 40 [json_name="JsonFormat"];
JsonReturning json_returning = 41 [json_name="JsonReturning"];
JsonValueExpr json_value_expr = 42 [json_name="JsonValueExpr"];
JsonConstructorExpr json_constructor_expr = 43 [json_name="JsonConstructorExpr"];
JsonIsPredicate json_is_predicate = 44 [json_name="JsonIsPredicate"];
JsonBehavior json_behavior = 45 [json_name="JsonBehavior"];
JsonExpr json_expr = 46 [json_name="JsonExpr"];
JsonTablePath json_table_path = 47 [json_name="JsonTablePath"];
JsonTablePathScan json_table_path_scan = 48 [json_name="JsonTablePathScan"];
JsonTableSiblingJoin json_table_sibling_join = 49 [json_name="JsonTableSiblingJoin"];
NullTest null_test = 50 [json_name="NullTest"];
BooleanTest boolean_test = 51 [json_name="BooleanTest"];
MergeAction merge_action = 52 [json_name="MergeAction"];
CoerceToDomain coerce_to_domain = 53 [json_name="CoerceToDomain"];
CoerceToDomainValue coerce_to_domain_value = 54 [json_name="CoerceToDomainValue"];
SetToDefault set_to_default = 55 [json_name="SetToDefault"];
CurrentOfExpr current_of_expr = 56 [json_name="CurrentOfExpr"];
NextValueExpr next_value_expr = 57 [json_name="NextValueExpr"];
InferenceElem inference_elem = 58 [json_name="InferenceElem"];
ReturningExpr returning_expr = 59 [json_name="ReturningExpr"];
TargetEntry target_entry = 60 [json_name="TargetEntry"];
RangeTblRef range_tbl_ref = 61 [json_name="RangeTblRef"];
JoinExpr join_expr = 62 [json_name="JoinExpr"];
FromExpr from_expr = 63 [json_name="FromExpr"];
OnConflictExpr on_conflict_expr = 64 [json_name="OnConflictExpr"];
Query query = 65 [json_name="Query"];
TypeName type_name = 66 [json_name="TypeName"];
ColumnRef column_ref = 67 [json_name="ColumnRef"];
ParamRef param_ref = 68 [json_name="ParamRef"];
A_Expr a_expr = 69 [json_name="A_Expr"];
TypeCast type_cast = 70 [json_name="TypeCast"];
CollateClause collate_clause = 71 [json_name="CollateClause"];
RoleSpec role_spec = 72 [json_name="RoleSpec"];
FuncCall func_call = 73 [json_name="FuncCall"];
A_Star a_star = 74 [json_name="A_Star"];
A_Indices a_indices = 75 [json_name="A_Indices"];
A_Indirection a_indirection = 76 [json_name="A_Indirection"];
A_ArrayExpr a_array_expr = 77 [json_name="A_ArrayExpr"];
ResTarget res_target = 78 [json_name="ResTarget"];
MultiAssignRef multi_assign_ref = 79 [json_name="MultiAssignRef"];
SortBy sort_by = 80 [json_name="SortBy"];
WindowDef window_def = 81 [json_name="WindowDef"];
RangeSubselect range_subselect = 82 [json_name="RangeSubselect"];
RangeFunction range_function = 83 [json_name="RangeFunction"];
RangeTableFunc range_table_func = 84 [json_name="RangeTableFunc"];
RangeTableFuncCol range_table_func_col = 85 [json_name="RangeTableFuncCol"];
RangeTableSample range_table_sample = 86 [json_name="RangeTableSample"];
ColumnDef column_def = 87 [json_name="ColumnDef"];
TableLikeClause table_like_clause = 88 [json_name="TableLikeClause"];
IndexElem index_elem = 89 [json_name="IndexElem"];
DefElem def_elem = 90 [json_name="DefElem"];
LockingClause locking_clause = 91 [json_name="LockingClause"];
XmlSerialize xml_serialize = 92 [json_name="XmlSerialize"];
PartitionElem partition_elem = 93 [json_name="PartitionElem"];
PartitionSpec partition_spec = 94 [json_name="PartitionSpec"];
PartitionBoundSpec partition_bound_spec = 95 [json_name="PartitionBoundSpec"];
PartitionRangeDatum partition_range_datum = 96 [json_name="PartitionRangeDatum"];
PartitionCmd partition_cmd = 97 [json_name="PartitionCmd"];
RangeTblEntry range_tbl_entry = 98 [json_name="RangeTblEntry"];
RTEPermissionInfo rtepermission_info = 99 [json_name="RTEPermissionInfo"];
RangeTblFunction range_tbl_function = 100 [json_name="RangeTblFunction"];
TableSampleClause table_sample_clause = 101 [json_name="TableSampleClause"];
WithCheckOption with_check_option = 102 [json_name="WithCheckOption"];
SortGroupClause sort_group_clause = 103 [json_name="SortGroupClause"];
GroupingSet grouping_set = 104 [json_name="GroupingSet"];
WindowClause window_clause = 105 [json_name="WindowClause"];
RowMarkClause row_mark_clause = 106 [json_name="RowMarkClause"];
WithClause with_clause = 107 [json_name="WithClause"];
InferClause infer_clause = 108 [json_name="InferClause"];
OnConflictClause on_conflict_clause = 109 [json_name="OnConflictClause"];
CTESearchClause ctesearch_clause = 110 [json_name="CTESearchClause"];
CTECycleClause ctecycle_clause = 111 [json_name="CTECycleClause"];
CommonTableExpr common_table_expr = 112 [json_name="CommonTableExpr"];
MergeWhenClause merge_when_clause = 113 [json_name="MergeWhenClause"];
ReturningOption returning_option = 114 [json_name="ReturningOption"];
ReturningClause returning_clause = 115 [json_name="ReturningClause"];
TriggerTransition trigger_transition = 116 [json_name="TriggerTransition"];
JsonOutput json_output = 117 [json_name="JsonOutput"];
JsonArgument json_argument = 118 [json_name="JsonArgument"];
JsonFuncExpr json_func_expr = 119 [json_name="JsonFuncExpr"];
JsonTablePathSpec json_table_path_spec = 120 [json_name="JsonTablePathSpec"];
JsonTable json_table = 121 [json_name="JsonTable"];
JsonTableColumn json_table_column = 122 [json_name="JsonTableColumn"];
JsonKeyValue json_key_value = 123 [json_name="JsonKeyValue"];
JsonParseExpr json_parse_expr = 124 [json_name="JsonParseExpr"];
JsonScalarExpr json_scalar_expr = 125 [json_name="JsonScalarExpr"];
JsonSerializeExpr json_serialize_expr = 126 [json_name="JsonSerializeExpr"];
JsonObjectConstructor json_object_constructor = 127 [json_name="JsonObjectConstructor"];
JsonArrayConstructor json_array_constructor = 128 [json_name="JsonArrayConstructor"];
JsonArrayQueryConstructor json_array_query_constructor = 129 [json_name="JsonArrayQueryConstructor"];
JsonAggConstructor json_agg_constructor = 130 [json_name="JsonAggConstructor"];
JsonObjectAgg json_object_agg = 131 [json_name="JsonObjectAgg"];
JsonArrayAgg json_array_agg = 132 [json_name="JsonArrayAgg"];
RawStmt raw_stmt = 133 [json_name="RawStmt"];
InsertStmt insert_stmt = 134 [json_name="InsertStmt"];
DeleteStmt delete_stmt = 135 [json_name="DeleteStmt"];
UpdateStmt update_stmt = 136 [json_name="UpdateStmt"];
MergeStmt merge_stmt = 137 [json_name="MergeStmt"];
SelectStmt select_stmt = 138 [json_name="SelectStmt"];
SetOperationStmt set_operation_stmt = 139 [json_name="SetOperationStmt"];
ReturnStmt return_stmt = 140 [json_name="ReturnStmt"];
PLAssignStmt plassign_stmt = 141 [json_name="PLAssignStmt"];
CreateSchemaStmt create_schema_stmt = 142 [json_name="CreateSchemaStmt"];
AlterTableStmt alter_table_stmt = 143 [json_name="AlterTableStmt"];
AlterTableCmd alter_table_cmd = 144 [json_name="AlterTableCmd"];
ATAlterConstraint atalter_constraint = 145 [json_name="ATAlterConstraint"];
ReplicaIdentityStmt replica_identity_stmt = 146 [json_name="ReplicaIdentityStmt"];
AlterCollationStmt alter_collation_stmt = 147 [json_name="AlterCollationStmt"];
AlterDomainStmt alter_domain_stmt = 148 [json_name="AlterDomainStmt"];
GrantStmt grant_stmt = 149 [json_name="GrantStmt"];
ObjectWithArgs object_with_args = 150 [json_name="ObjectWithArgs"];
AccessPriv access_priv = 151 [json_name="AccessPriv"];
GrantRoleStmt grant_role_stmt = 152 [json_name="GrantRoleStmt"];
AlterDefaultPrivilegesStmt alter_default_privileges_stmt = 153 [json_name="AlterDefaultPrivilegesStmt"];
CopyStmt copy_stmt = 154 [json_name="CopyStmt"];
VariableSetStmt variable_set_stmt = 155 [json_name="VariableSetStmt"];
VariableShowStmt variable_show_stmt = 156 [json_name="VariableShowStmt"];
CreateStmt create_stmt = 157 [json_name="CreateStmt"];
Constraint constraint = 158 [json_name="Constraint"];
CreateTableSpaceStmt create_table_space_stmt = 159 [json_name="CreateTableSpaceStmt"];
DropTableSpaceStmt drop_table_space_stmt = 160 [json_name="DropTableSpaceStmt"];
AlterTableSpaceOptionsStmt alter_table_space_options_stmt = 161 [json_name="AlterTableSpaceOptionsStmt"];
AlterTableMoveAllStmt alter_table_move_all_stmt = 162 [json_name="AlterTableMoveAllStmt"];
CreateExtensionStmt create_extension_stmt = 163 [json_name="CreateExtensionStmt"];
AlterExtensionStmt alter_extension_stmt = 164 [json_name="AlterExtensionStmt"];
AlterExtensionContentsStmt alter_extension_contents_stmt = 165 [json_name="AlterExtensionContentsStmt"];
CreateFdwStmt create_fdw_stmt = 166 [json_name="CreateFdwStmt"];
AlterFdwStmt alter_fdw_stmt = 167 [json_name="AlterFdwStmt"];
CreateForeignServerStmt create_foreign_server_stmt = 168 [json_name="CreateForeignServerStmt"];
AlterForeignServerStmt alter_foreign_server_stmt = 169 [json_name="AlterForeignServerStmt"];
CreateForeignTableStmt create_foreign_table_stmt = 170 [json_name="CreateForeignTableStmt"];
CreateUserMappingStmt create_user_mapping_stmt = 171 [json_name="CreateUserMappingStmt"];
AlterUserMappingStmt alter_user_mapping_stmt = 172 [json_name="AlterUserMappingStmt"];
DropUserMappingStmt drop_user_mapping_stmt = 173 [json_name="DropUserMappingStmt"];
ImportForeignSchemaStmt import_foreign_schema_stmt = 174 [json_name="ImportForeignSchemaStmt"];
CreatePolicyStmt create_policy_stmt = 175 [json_name="CreatePolicyStmt"];
AlterPolicyStmt alter_policy_stmt = 176 [json_name="AlterPolicyStmt"];
CreateAmStmt create_am_stmt = 177 [json_name="CreateAmStmt"];
CreateTrigStmt create_trig_stmt = 178 [json_name="CreateTrigStmt"];
CreateEventTrigStmt create_event_trig_stmt = 179 [json_name="CreateEventTrigStmt"];
AlterEventTrigStmt alter_event_trig_stmt = 180 [json_name="AlterEventTrigStmt"];
CreatePLangStmt create_plang_stmt = 181 [json_name="CreatePLangStmt"];
CreateRoleStmt create_role_stmt = 182 [json_name="CreateRoleStmt"];
AlterRoleStmt alter_role_stmt = 183 [json_name="AlterRoleStmt"];
AlterRoleSetStmt alter_role_set_stmt = 184 [json_name="AlterRoleSetStmt"];
DropRoleStmt drop_role_stmt = 185 [json_name="DropRoleStmt"];
CreateSeqStmt create_seq_stmt = 186 [json_name="CreateSeqStmt"];
AlterSeqStmt alter_seq_stmt = 187 [json_name="AlterSeqStmt"];
DefineStmt define_stmt = 188 [json_name="DefineStmt"];
CreateDomainStmt create_domain_stmt = 189 [json_name="CreateDomainStmt"];
CreateOpClassStmt create_op_class_stmt = 190 [json_name="CreateOpClassStmt"];
CreateOpClassItem create_op_class_item = 191 [json_name="CreateOpClassItem"];
CreateOpFamilyStmt create_op_family_stmt = 192 [json_name="CreateOpFamilyStmt"];
AlterOpFamilyStmt alter_op_family_stmt = 193 [json_name="AlterOpFamilyStmt"];
DropStmt drop_stmt = 194 [json_name="DropStmt"];
TruncateStmt truncate_stmt = 195 [json_name="TruncateStmt"];
CommentStmt comment_stmt = 196 [json_name="CommentStmt"];
SecLabelStmt sec_label_stmt = 197 [json_name="SecLabelStmt"];
DeclareCursorStmt declare_cursor_stmt = 198 [json_name="DeclareCursorStmt"];
ClosePortalStmt close_portal_stmt = 199 [json_name="ClosePortalStmt"];
FetchStmt fetch_stmt = 200 [json_name="FetchStmt"];
IndexStmt index_stmt = 201 [json_name="IndexStmt"];
CreateStatsStmt create_stats_stmt = 202 [json_name="CreateStatsStmt"];
StatsElem stats_elem = 203 [json_name="StatsElem"];
AlterStatsStmt alter_stats_stmt = 204 [json_name="AlterStatsStmt"];
CreateFunctionStmt create_function_stmt = 205 [json_name="CreateFunctionStmt"];
FunctionParameter function_parameter = 206 [json_name="FunctionParameter"];
AlterFunctionStmt alter_function_stmt = 207 [json_name="AlterFunctionStmt"];
DoStmt do_stmt = 208 [json_name="DoStmt"];
InlineCodeBlock inline_code_block = 209 [json_name="InlineCodeBlock"];
CallStmt call_stmt = 210 [json_name="CallStmt"];
CallContext call_context = 211 [json_name="CallContext"];
RenameStmt rename_stmt = 212 [json_name="RenameStmt"];
AlterObjectDependsStmt alter_object_depends_stmt = 213 [json_name="AlterObjectDependsStmt"];
AlterObjectSchemaStmt alter_object_schema_stmt = 214 [json_name="AlterObjectSchemaStmt"];
AlterOwnerStmt alter_owner_stmt = 215 [json_name="AlterOwnerStmt"];
AlterOperatorStmt alter_operator_stmt = 216 [json_name="AlterOperatorStmt"];
AlterTypeStmt alter_type_stmt = 217 [json_name="AlterTypeStmt"];
RuleStmt rule_stmt = 218 [json_name="RuleStmt"];
NotifyStmt notify_stmt = 219 [json_name="NotifyStmt"];
ListenStmt listen_stmt = 220 [json_name="ListenStmt"];
UnlistenStmt unlisten_stmt = 221 [json_name="UnlistenStmt"];
TransactionStmt transaction_stmt = 222 [json_name="TransactionStmt"];
CompositeTypeStmt composite_type_stmt = 223 [json_name="CompositeTypeStmt"];
CreateEnumStmt create_enum_stmt = 224 [json_name="CreateEnumStmt"];
CreateRangeStmt create_range_stmt = 225 [json_name="CreateRangeStmt"];
AlterEnumStmt alter_enum_stmt = 226 [json_name="AlterEnumStmt"];
ViewStmt view_stmt = 227 [json_name="ViewStmt"];
LoadStmt load_stmt = 228 [json_name="LoadStmt"];
CreatedbStmt createdb_stmt = 229 [json_name="CreatedbStmt"];
AlterDatabaseStmt alter_database_stmt = 230 [json_name="AlterDatabaseStmt"];
AlterDatabaseRefreshCollStmt alter_database_refresh_coll_stmt = 231 [json_name="AlterDatabaseRefreshCollStmt"];
AlterDatabaseSetStmt alter_database_set_stmt = 232 [json_name="AlterDatabaseSetStmt"];
DropdbStmt dropdb_stmt = 233 [json_name="DropdbStmt"];
AlterSystemStmt alter_system_stmt = 234 [json_name="AlterSystemStmt"];
ClusterStmt cluster_stmt = 235 [json_name="ClusterStmt"];
VacuumStmt vacuum_stmt = 236 [json_name="VacuumStmt"];
VacuumRelation vacuum_relation = 237 [json_name="VacuumRelation"];
ExplainStmt explain_stmt = 238 [json_name="ExplainStmt"];
CreateTableAsStmt create_table_as_stmt = 239 [json_name="CreateTableAsStmt"];
RefreshMatViewStmt refresh_mat_view_stmt = 240 [json_name="RefreshMatViewStmt"];
CheckPointStmt check_point_stmt = 241 [json_name="CheckPointStmt"];
DiscardStmt discard_stmt = 242 [json_name="DiscardStmt"];
LockStmt lock_stmt = 243 [json_name="LockStmt"];
ConstraintsSetStmt constraints_set_stmt = 244 [json_name="ConstraintsSetStmt"];
ReindexStmt reindex_stmt = 245 [json_name="ReindexStmt"];
CreateConversionStmt create_conversion_stmt = 246 [json_name="CreateConversionStmt"];
CreateCastStmt create_cast_stmt = 247 [json_name="CreateCastStmt"];
CreateTransformStmt create_transform_stmt = 248 [json_name="CreateTransformStmt"];
PrepareStmt prepare_stmt = 249 [json_name="PrepareStmt"];
ExecuteStmt execute_stmt = 250 [json_name="ExecuteStmt"];
DeallocateStmt deallocate_stmt = 251 [json_name="DeallocateStmt"];
DropOwnedStmt drop_owned_stmt = 252 [json_name="DropOwnedStmt"];
ReassignOwnedStmt reassign_owned_stmt = 253 [json_name="ReassignOwnedStmt"];
AlterTSDictionaryStmt alter_tsdictionary_stmt = 254 [json_name="AlterTSDictionaryStmt"];
AlterTSConfigurationStmt alter_tsconfiguration_stmt = 255 [json_name="AlterTSConfigurationStmt"];
PublicationTable publication_table = 256 [json_name="PublicationTable"];
PublicationObjSpec publication_obj_spec = 257 [json_name="PublicationObjSpec"];
CreatePublicationStmt create_publication_stmt = 258 [json_name="CreatePublicationStmt"];
AlterPublicationStmt alter_publication_stmt = 259 [json_name="AlterPublicationStmt"];
CreateSubscriptionStmt create_subscription_stmt = 260 [json_name="CreateSubscriptionStmt"];
AlterSubscriptionStmt alter_subscription_stmt = 261 [json_name="AlterSubscriptionStmt"];
DropSubscriptionStmt drop_subscription_stmt = 262 [json_name="DropSubscriptionStmt"];
Integer integer = 263 [json_name="Integer"];
Float float = 264 [json_name="Float"];
Boolean boolean = 265 [json_name="Boolean"];
String string = 266 [json_name="String"];
BitString bit_string = 267 [json_name="BitString"];
List list = 268 [json_name="List"];
IntList int_list = 269 [json_name="IntList"];
OidList oid_list = 270 [json_name="OidList"];
A_Const a_const = 271 [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
{
TableFuncType functype = 1 [json_name="functype"];
repeated Node ns_uris = 2 [json_name="ns_uris"];
repeated Node ns_names = 3 [json_name="ns_names"];
Node docexpr = 4 [json_name="docexpr"];
Node rowexpr = 5 [json_name="rowexpr"];
repeated Node colnames = 6 [json_name="colnames"];
repeated Node coltypes = 7 [json_name="coltypes"];
repeated Node coltypmods = 8 [json_name="coltypmods"];
repeated Node colcollations = 9 [json_name="colcollations"];
repeated Node colexprs = 10 [json_name="colexprs"];
repeated Node coldefexprs = 11 [json_name="coldefexprs"];
repeated Node colvalexprs = 12 [json_name="colvalexprs"];
repeated Node passingvalexprs = 13 [json_name="passingvalexprs"];
repeated uint64 notnulls = 14 [json_name="notnulls"];
Node plan = 15 [json_name="plan"];
int32 ordinalitycol = 16 [json_name="ordinalitycol"];
int32 location = 17 [json_name="location"];
}
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"];
Query view_query = 7 [json_name="viewQuery"];
bool skip_data = 8 [json_name="skipData"];
}
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"];
repeated uint64 varnullingrels = 7 [json_name="varnullingrels"];
uint32 varlevelsup = 8 [json_name="varlevelsup"];
VarReturningType varreturningtype = 9 [json_name="varreturningtype"];
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"];
repeated Node aggargtypes = 6 [json_name="aggargtypes"];
repeated Node aggdirectargs = 7 [json_name="aggdirectargs"];
repeated Node args = 8 [json_name="args"];
repeated Node aggorder = 9 [json_name="aggorder"];
repeated Node aggdistinct = 10 [json_name="aggdistinct"];
Node aggfilter = 11 [json_name="aggfilter"];
bool aggstar = 12 [json_name="aggstar"];
bool aggvariadic = 13 [json_name="aggvariadic"];
string aggkind = 14 [json_name="aggkind"];
uint32 agglevelsup = 15 [json_name="agglevelsup"];
AggSplit aggsplit = 16 [json_name="aggsplit"];
int32 aggno = 17 [json_name="aggno"];
int32 aggtransno = 18 [json_name="aggtransno"];
int32 location = 19 [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"];
uint32 agglevelsup = 4 [json_name="agglevelsup"];
int32 location = 5 [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"];
repeated Node run_condition = 8 [json_name="runCondition"];
uint32 winref = 9 [json_name="winref"];
bool winstar = 10 [json_name="winstar"];
bool winagg = 11 [json_name="winagg"];
int32 location = 12 [json_name="location"];
}
message WindowFuncRunCondition
{
Node xpr = 1 [json_name="xpr"];
uint32 opno = 2 [json_name="opno"];
uint32 inputcollid = 3 [json_name="inputcollid"];
bool wfunc_left = 4 [json_name="wfunc_left"];
Node arg = 5 [json_name="arg"];
}
message MergeSupportFunc
{
Node xpr = 1 [json_name="xpr"];
uint32 msftype = 2 [json_name="msftype"];
uint32 msfcollid = 3 [json_name="msfcollid"];
int32 location = 4 [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 opresulttype = 3 [json_name="opresulttype"];
bool opretset = 4 [json_name="opretset"];
uint32 opcollid = 5 [json_name="opcollid"];
uint32 inputcollid = 6 [json_name="inputcollid"];
repeated Node args = 7 [json_name="args"];
int32 location = 8 [json_name="location"];
}
message DistinctExpr
{
Node xpr = 1 [json_name="xpr"];
uint32 opno = 2 [json_name="opno"];
uint32 opresulttype = 3 [json_name="opresulttype"];
bool opretset = 4 [json_name="opretset"];
uint32 opcollid = 5 [json_name="opcollid"];
uint32 inputcollid = 6 [json_name="inputcollid"];
repeated Node args = 7 [json_name="args"];
int32 location = 8 [json_name="location"];
}
message NullIfExpr
{
Node xpr = 1 [json_name="xpr"];
uint32 opno = 2 [json_name="opno"];
uint32 opresulttype = 3 [json_name="opresulttype"];
bool opretset = 4 [json_name="opretset"];
uint32 opcollid = 5 [json_name="opcollid"];
uint32 inputcollid = 6 [json_name="inputcollid"];
repeated Node args = 7 [json_name="args"];
int32 location = 8 [json_name="location"];
}
message ScalarArrayOpExpr
{
Node xpr = 1 [json_name="xpr"];
uint32 opno = 2 [json_name="opno"];
bool use_or = 3 [json_name="useOr"];
uint32 inputcollid = 4 [json_name="inputcollid"];
repeated Node args = 5 [json_name="args"];
int32 location = 6 [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 list_start = 7 [json_name="list_start"];
int32 list_end = 8 [json_name="list_end"];
int32 location = 9 [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"];
CompareType cmptype = 2 [json_name="cmptype"];
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"];
bool indent = 8 [json_name="indent"];
uint32 type = 9 [json_name="type"];
int32 typmod = 10 [json_name="typmod"];
int32 location = 11 [json_name="location"];
}
message JsonFormat
{
JsonFormatType format_type = 1 [json_name="format_type"];
JsonEncoding encoding = 2 [json_name="encoding"];
int32 location = 3 [json_name="location"];
}
message JsonReturning
{
JsonFormat format = 1 [json_name="format"];
uint32 typid = 2 [json_name="typid"];
int32 typmod = 3 [json_name="typmod"];
}
message JsonValueExpr
{
Node raw_expr = 1 [json_name="raw_expr"];
Node formatted_expr = 2 [json_name="formatted_expr"];
JsonFormat format = 3 [json_name="format"];
}
message JsonConstructorExpr
{
Node xpr = 1 [json_name="xpr"];
JsonConstructorType type = 2 [json_name="type"];
repeated Node args = 3 [json_name="args"];
Node func = 4 [json_name="func"];
Node coercion = 5 [json_name="coercion"];
JsonReturning returning = 6 [json_name="returning"];
bool absent_on_null = 7 [json_name="absent_on_null"];
bool unique = 8 [json_name="unique"];
int32 location = 9 [json_name="location"];
}
message JsonIsPredicate
{
Node expr = 1 [json_name="expr"];
JsonFormat format = 2 [json_name="format"];
JsonValueType item_type = 3 [json_name="item_type"];
bool unique_keys = 4 [json_name="unique_keys"];
int32 location = 5 [json_name="location"];
}
message JsonBehavior
{
JsonBehaviorType btype = 1 [json_name="btype"];
Node expr = 2 [json_name="expr"];
bool coerce = 3 [json_name="coerce"];
int32 location = 4 [json_name="location"];
}
message JsonExpr
{
Node xpr = 1 [json_name="xpr"];
JsonExprOp op = 2 [json_name="op"];
string column_name = 3 [json_name="column_name"];
Node formatted_expr = 4 [json_name="formatted_expr"];
JsonFormat format = 5 [json_name="format"];
Node path_spec = 6 [json_name="path_spec"];
JsonReturning returning = 7 [json_name="returning"];
repeated Node passing_names = 8 [json_name="passing_names"];
repeated Node passing_values = 9 [json_name="passing_values"];
JsonBehavior on_empty = 10 [json_name="on_empty"];
JsonBehavior on_error = 11 [json_name="on_error"];
bool use_io_coercion = 12 [json_name="use_io_coercion"];
bool use_json_coercion = 13 [json_name="use_json_coercion"];
JsonWrapper wrapper = 14 [json_name="wrapper"];
bool omit_quotes = 15 [json_name="omit_quotes"];
uint32 collation = 16 [json_name="collation"];
int32 location = 17 [json_name="location"];
}
message JsonTablePath
{
string name = 1 [json_name="name"];
}
message JsonTablePathScan
{
Node plan = 1 [json_name="plan"];
JsonTablePath path = 2 [json_name="path"];
bool error_on_error = 3 [json_name="errorOnError"];
Node child = 4 [json_name="child"];
int32 col_min = 5 [json_name="colMin"];
int32 col_max = 6 [json_name="colMax"];
}
message JsonTableSiblingJoin
{
Node plan = 1 [json_name="plan"];
Node lplan = 2 [json_name="lplan"];
Node rplan = 3 [json_name="rplan"];
}
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 MergeAction
{
MergeMatchKind match_kind = 1 [json_name="matchKind"];
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 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 ReturningExpr
{
Node xpr = 1 [json_name="xpr"];
int32 retlevelsup = 2 [json_name="retlevelsup"];
bool retold = 3 [json_name="retold"];
Node retexpr = 4 [json_name="retexpr"];
}
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