66{
68}
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85#define PG_PROTOCOL_MAJOR(v) ((v) >> 16)
86#define PG_PROTOCOL_MINOR(v) ((v) & 0x0000ffff)
87#define PG_PROTOCOL_FULL(v) (PG_PROTOCOL_MAJOR(v) * 10000 + PG_PROTOCOL_MINOR(v))
88#define PG_PROTOCOL(m,n) (((m) << 16) | (n))
89
90
91
92
93#define PG_PROTOCOL_EARLIEST PG_PROTOCOL(3,0)
94#define PG_PROTOCOL_LATEST PG_PROTOCOL(3,2)
95
96
97
98
99
100
101
102
103
104#define PG_PROTOCOL_RESERVED_31 PG_PROTOCOL(3,1)
105
106
107
108
109
110
111
112
113
114#define PG_PROTOCOL_GREASE PG_PROTOCOL(3,9999)
115
116
117
118
119
120
121#define CANCEL_REQUEST_CODE PG_PROTOCOL(1234,5678)
122
123
124
125
126
127#define NEGOTIATE_SSL_CODE PG_PROTOCOL(1234,5679)
128#define NEGOTIATE_GSS_CODE PG_PROTOCOL(1234,5680)
129
130
132
133
134
135
136
137
138
140
141
142
143
144
145
146
147#define MAX_STARTUP_PACKET_LENGTH 10000
148
149
151
152
153
154
155
156
157
158
159
161{
162
166
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188#define PG_ALPN_PROTOCOL "postgresql"
189#define PG_ALPN_PROTOCOL_VECTOR { 10, 'p','o','s','t','g','r','e','s','q','l' }
190
191#endif
#define FLEXIBLE_ARRAY_MEMBER
#define is_absolute_path(filename)
uint8 cancelAuthCode[FLEXIBLE_ARRAY_MEMBER]
ProtocolVersion cancelRequestCode