forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8ac4c25
committed
Clean up some dead code in pg_dump with tar format and gzip compression
Compression with gzip has never been supported in the tar format ofpg_dump since this code has been introduced inc3e1880, as the use ofbuffered I/O in gzdopen() changes the file positioning that tarrequires. The original idea behind the use of compression with the tarmode is to be able to include compressed data files (named %u.dat.gz)and blob files (blob_%u.dat.gz) in the tarball generated by the dump,with toc.dat, that tracks down if compression is used in the dump,always uncompressed.Note that this commit removes the dump part of the code as well as therestore part, removing any dependency to zlib in pg_backup_tar.c. Therecould be an argument behind keeping around the restore part, but thiswould require one to change the internals of a tarball previously dumpedso as data and blob files are compressed with toc.dat itself changed totrack down if compression is enabled. However, the argument aboutgzdopen() still holds in the read case with pg_restore.Removing this code simplifies future additions related to compression inpg_dump.Author: Georgios Kokolatos, Rachel HeatonDiscussion:https://postgr.es/m/faUNEOpts9vunEaLnmxmG-DldLSg_ql137OC3JYDmgrOMHm1RvvWY2IdBkv_CRxm5spCCb_OmKNk2T03TMm0fBEWveFF9wA1WizPuAgB7Ss=@protonmail.com1 parentf8e0d90 commit8ac4c25
1 file changed
+11
-78
lines changedLines changed: 11 additions & 78 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 | 68 |
| |
74 | 69 |
| |
75 | 70 |
| |
| |||
248 | 243 |
| |
249 | 244 |
| |
250 | 245 |
| |
251 |
| - | |
252 |
| - | |
253 |
| - | |
254 |
| - | |
255 |
| - | |
256 |
| - | |
257 |
| - | |
258 |
| - | |
| 246 | + | |
259 | 247 |
| |
260 | 248 |
| |
261 | 249 |
| |
| |||
320 | 308 |
| |
321 | 309 |
| |
322 | 310 |
| |
323 |
| - | |
324 |
| - | |
325 |
| - | |
326 |
| - | |
327 | 311 |
| |
328 | 312 |
| |
329 | 313 |
| |
| |||
344 | 328 |
| |
345 | 329 |
| |
346 | 330 |
| |
347 |
| - | |
348 |
| - | |
349 | 331 |
| |
350 | 332 |
| |
351 | 333 |
| |
352 | 334 |
| |
353 |
| - | |
354 |
| - | |
355 |
| - | |
356 |
| - | |
357 | 335 |
| |
358 | 336 |
| |
359 | 337 |
| |
| |||
405 | 383 |
| |
406 | 384 |
| |
407 | 385 |
| |
408 |
| - | |
409 |
| - | |
410 |
| - | |
411 |
| - | |
412 |
| - | |
413 |
| - | |
414 |
| - | |
415 |
| - | |
416 |
| - | |
417 |
| - | |
| 386 | + | |
418 | 387 |
| |
419 |
| - | |
420 |
| - | |
421 |
| - | |
422 |
| - | |
| 388 | + | |
| 389 | + | |
423 | 390 |
| |
424 | 391 |
| |
425 | 392 |
| |
| |||
434 | 401 |
| |
435 | 402 |
| |
436 | 403 |
| |
437 |
| - | |
438 |
| - | |
439 |
| - | |
440 | 404 |
| |
441 |
| - | |
442 |
| - | |
443 |
| - | |
444 |
| - | |
445 |
| - | |
| 405 | + | |
446 | 406 |
| |
447 | 407 |
| |
448 | 408 |
| |
| |||
456 | 416 |
| |
457 | 417 |
| |
458 | 418 |
| |
459 |
| - | |
460 | 419 |
| |
461 | 420 |
| |
462 | 421 |
| |
| |||
542 | 501 |
| |
543 | 502 |
| |
544 | 503 |
| |
545 |
| - | |
546 |
| - | |
547 |
| - | |
548 |
| - | |
549 |
| - | |
550 |
| - | |
551 |
| - | |
552 |
| - | |
553 |
| - | |
554 |
| - | |
555 |
| - | |
556 |
| - | |
557 |
| - | |
558 |
| - | |
559 |
| - | |
560 |
| - | |
561 |
| - | |
562 |
| - | |
563 |
| - | |
564 |
| - | |
565 |
| - | |
566 |
| - | |
567 |
| - | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
568 | 507 |
| |
569 | 508 |
| |
570 | 509 |
| |
| |||
596 | 535 |
| |
597 | 536 |
| |
598 | 537 |
| |
599 |
| - | |
600 |
| - | |
601 |
| - | |
602 |
| - | |
| 538 | + | |
603 | 539 |
| |
604 | 540 |
| |
605 | 541 |
| |
| |||
949 | 885 |
| |
950 | 886 |
| |
951 | 887 |
| |
952 |
| - | |
953 | 888 |
| |
954 | 889 |
| |
955 | 890 |
| |
956 | 891 |
| |
957 | 892 |
| |
958 |
| - | |
959 |
| - | |
960 |
| - | |
| 893 | + | |
961 | 894 |
| |
962 |
| - | |
| 895 | + | |
963 | 896 |
| |
964 | 897 |
| |
965 | 898 |
| |
|
0 commit comments
Comments
(0)