forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit812a6c2
committed
- Move most of the I/O in both libpq and the backend to a set
of common routines in pqcomprim.c (pq communication primitives). Not all adapted to it yet, but it's a start. - Rewritten some of those routines, to write/read bigger chunks of data, precomputing stuff in buffers instead of sending out byte by byte. - As a consequence, I need to know the endianness of the machine. Currently I rely on getting it from machine/endian.h, but this may not be available everywhere? (Who the hell thought it was a good idea to pass integers to the backend the other way around than the normal network byte order? *argl*) - Libpq looks in the environment for magic variables, and upon establishing a connection to the backend, sends it queries of the form "SET var_name TO 'var_value'". This needs a change in the backend parser (Mr. Parser, are you there? :) - Currently it looks for two Env-Vars, namely PG_DATEFORMAT and PG_FLOATFORMAT. What else makes sense? PG_TIMEFORMAT? PG_TIMEZONE?From: "Martin J. Laubach" <mjl@wwx.vip.at>1 parentd146305 commit812a6c2
File tree
6 files changed
+275
-68
lines changed- src
- backend
- libpq
- utils/init
- include
- interfaces/libpq
6 files changed
+275
-68
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
| 26 | + | |
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
|
Lines changed: 78 additions & 63 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
206 | 206 |
| |
207 | 207 |
| |
208 | 208 |
| |
209 |
| - | |
210 |
| - | |
211 |
| - | |
212 |
| - | |
213 |
| - | |
| 209 | + | |
| 210 | + | |
214 | 211 |
| |
215 | 212 |
| |
216 | 213 |
| |
217 |
| - | |
218 |
| - | |
219 |
| - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
220 | 224 |
| |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
221 | 229 |
| |
222 |
| - | |
223 |
| - | |
224 |
| - | |
225 |
| - | |
| 230 | + | |
226 | 231 |
| |
227 |
| - | |
228 |
| - | |
229 | 232 |
| |
230 | 233 |
| |
231 | 234 |
| |
| |||
252 | 255 |
| |
253 | 256 |
| |
254 | 257 |
| |
| 258 | + | |
| 259 | + | |
| 260 | + | |
255 | 261 |
| |
256 | 262 |
| |
257 | 263 |
| |
| |||
270 | 276 |
| |
271 | 277 |
| |
272 | 278 |
| |
| 279 | + | |
273 | 280 |
| |
274 | 281 |
| |
275 | 282 |
| |
| |||
282 | 289 |
| |
283 | 290 |
| |
284 | 291 |
| |
285 |
| - | |
286 |
| - | |
287 |
| - | |
288 |
| - | |
289 |
| - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
290 | 312 |
| |
291 | 313 |
| |
292 |
| - | |
293 |
| - | |
294 |
| - | |
295 |
| - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
296 | 321 |
| |
297 | 322 |
| |
298 |
| - | |
| 323 | + | |
299 | 324 |
| |
300 | 325 |
| |
301 | 326 |
| |
| |||
305 | 330 |
| |
306 | 331 |
| |
307 | 332 |
| |
308 |
| - | |
309 |
| - | |
310 |
| - | |
311 |
| - | |
312 |
| - | |
313 |
| - | |
314 |
| - | |
315 |
| - | |
316 |
| - | |
317 |
| - | |
318 |
| - | |
319 |
| - | |
320 |
| - | |
| 333 | + | |
| 334 | + | |
321 | 335 |
| |
322 |
| - | |
323 |
| - | |
| 336 | + | |
324 | 337 |
| |
325 | 338 |
| |
326 | 339 |
| |
327 |
| - | |
328 | 340 |
| |
329 | 341 |
| |
330 | 342 |
| |
| |||
333 | 345 |
| |
334 | 346 |
| |
335 | 347 |
| |
336 |
| - | |
337 |
| - | |
338 |
| - | |
339 |
| - | |
340 |
| - | |
341 |
| - | |
342 |
| - | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
343 | 351 |
| |
344 | 352 |
| |
345 | 353 |
| |
346 | 354 |
| |
347 | 355 |
| |
348 | 356 |
| |
349 | 357 |
| |
350 |
| - | |
351 |
| - | |
352 | 358 |
| |
353 | 359 |
| |
354 | 360 |
| |
| |||
362 | 368 |
| |
363 | 369 |
| |
364 | 370 |
| |
365 |
| - | |
366 |
| - | |
367 |
| - | |
368 |
| - | |
369 |
| - | |
370 |
| - | |
371 |
| - | |
372 |
| - | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
373 | 391 |
| |
374 |
| - | |
375 |
| - | |
| 392 | + | |
376 | 393 |
| |
377 | 394 |
| |
378 | 395 |
| |
379 |
| - | |
380 |
| - | |
381 | 396 |
| |
382 | 397 |
| |
383 | 398 |
| |
|
0 commit comments
Comments
(0)