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#define CANCEL_REQUEST_CODE PG_PROTOCOL(1234,5678)
112
113
114
115
116
117#define NEGOTIATE_SSL_CODE PG_PROTOCOL(1234,5679)
118#define NEGOTIATE_GSS_CODE PG_PROTOCOL(1234,5680)
119
120
122
123
124
125
126
127
128
130
131
132
133
134
135
136
137#define MAX_STARTUP_PACKET_LENGTH 10000
138
139
141
142
143
144
145
146
147
148
149
151{
152
156
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178#define PG_ALPN_PROTOCOL "postgresql"
179#define PG_ALPN_PROTOCOL_VECTOR { 10, 'p','o','s','t','g','r','e','s','q','l' }
180
181#endif
#define FLEXIBLE_ARRAY_MEMBER
#define is_absolute_path(filename)
uint8 cancelAuthCode[FLEXIBLE_ARRAY_MEMBER]
ProtocolVersion cancelRequestCode