aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/parser/pg_catalog/proto/pg_catalog.proto
blob: b36113dff6a9f593c8b52bd83dde80171b7ef09a (plain) (blame)
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
package NYql.NProto;
option java_package = "ru.yandex.yql.proto";
import "yql/essentials/protos/pg_ext.proto";

message TPgType {
    optional uint32 TypeId = 1;
    optional string Name = 2;
    optional uint32 ExtensionIndex = 3;
    optional uint32 ArrayTypeId = 4;
    optional uint32 Category = 5;
    optional int32 TypeLen = 6;
    optional bool PassByValue = 7;
    optional uint32 TypeAlign = 8;
    optional uint32 ElementTypeId = 9;
    optional uint32 InFuncId = 10;
    optional uint32 OutFuncId = 11;
    optional uint32 SendFuncId = 12;
    optional uint32 ReceiveFuncId = 13;
    optional uint32 TypeModInFuncId = 14;
    optional uint32 TypeModOutFuncId = 15;
    optional uint32 TypeSubscriptFuncId = 16;
    optional uint32 LessProcId = 17;
    optional uint32 EqualProcId = 18;
    optional uint32 CompareProcId = 19;
    optional uint32 HashProcId = 20;
}

message TPgProc {
    optional uint32 ProcId = 1;
    optional string Name = 2;
    optional uint32 ExtensionIndex = 3;
    optional string Src = 4;
    repeated uint32 ArgType = 5;
    repeated uint32 OutputArgType = 6;
    optional uint32 VariadicType = 7;
    optional uint32 VariadicArgType = 8;
    repeated bool DefaultArgNull = 9;
    repeated string DefaultArgValue = 10;
    repeated string InputArgName = 11;
    repeated string OutputArgName = 12;
    optional string VariadicArgName = 13;
    optional bool IsStrict = 14;
    optional uint32 Lang = 15;
    optional uint32 ResultType = 16;
    optional bool ReturnSet = 17;
    optional uint32 Kind = 18;
}

message TPgTable {
    optional uint32 Oid = 1;
    optional string Schema = 2;
    optional string Name = 3;
    optional uint32 ExtensionIndex = 4;
    repeated string Column = 5;
    repeated string UdtType = 6;
    repeated string DataValue = 7;
    repeated bool DataNull = 8;
}

message TPgCast {
    optional uint32 Id = 1;
    optional uint32 SourceId = 2;
    optional uint32 TargetId = 3;
    optional uint32 ExtensionIndex = 4;
    optional uint32 Method = 5;
    optional uint32 FunctionId = 6;
    optional uint32 CoercionCode = 7;
}

message TPgOper {
    optional uint32 OperId = 1;
    optional string Name = 2;
    optional uint32 ExtensionIndex = 3;
    optional uint32 LeftType = 4;
    optional uint32 RightType = 5;
    optional uint32 Kind = 6;
    optional uint32 ProcId = 7;
    optional uint32 ResultType = 8;
    optional uint32 ComId = 9;
    optional uint32 NegateId = 10;
}

message TPgAggregation {
    optional uint32 AggId = 1;
    optional string Name = 2;
    optional uint32 ExtensionIndex = 3;
    repeated uint32 ArgType = 4;
    optional uint32 Kind = 5;
    optional uint32 TransTypeId = 6;
    optional uint32 TransFuncId = 7;
    optional uint32 FinalFuncId = 8;
    optional uint32 CombineFuncId = 9;
    optional uint32 SerializeFuncId = 10;
    optional uint32 DeserializeFuncId = 11;
    optional string InitValue = 12;
    optional bool FinalExtra = 13;
    optional uint32 NumDirectArgs = 14;
}

message TPgOpClassFamily {
    optional uint32 FamilyId = 1;
    optional string Name = 2;
    optional uint32 ExtensionIndex = 3;
}

message TPgOpClass {
    optional uint32 Method = 1;
    optional uint32 TypeId = 2;
    optional uint32 ExtensionIndex = 3;
    optional string Name = 4;
    optional uint32 FamilyId = 5;
}

message TPgAmOp {
    optional uint32 FamilyId = 1;
    optional uint32 Strategy = 2;
    optional uint32 LeftType = 3;
    optional uint32 RightType = 4;
    optional uint32 OperId = 5;
    optional uint32 ExtensionIndex = 6;
}

message TPgAmProc {
    optional uint32 FamilyId = 1;
    optional uint32 ProcNum = 2;
    optional uint32 LeftType = 3;
    optional uint32 RightType = 4;
    optional uint32 ProcId = 5;
    optional uint32 ExtensionIndex = 6;
}

message TPgCatalog {
    repeated TPgExtension Extension = 1;
    repeated TPgType Type = 2;
    repeated TPgProc Proc = 3;
    repeated TPgTable Table = 4;
    repeated TPgCast Cast = 5;
    repeated TPgOper Oper = 6;
    repeated TPgAggregation Aggregation = 7;
    repeated TPgOpClassFamily OpClassFamily = 8;
    repeated TPgOpClass OpClass = 9;
    repeated TPgAmOp AmOp = 10;
    repeated TPgAmProc AmProc = 11;
}