forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0ad8032
committed
Server-side gzip compression.
pg_basebackup's --compression option now lets you write either"client-gzip" or "server-gzip" instead of just "gzip" to specifywhere the compression should be performed. If you write simply"gzip" it's taken to mean "client-gzip" unless you also use--target, in which case it is interpreted to mean "server-gzip",because that's the only thing that makes any sense in that case.To make this work, the BASE_BACKUP command now takes newCOMPRESSION and COMPRESSION_LEVEL options.At present, pg_basebackup cannot decompress .gz files, soserver-side compression will cause a failure if (1) -Ft is notused or (2) -R is used or (3) -D- is used without --no-manifest.Along the way, I removed the information message added by commit5c649fe which occurred if youspecified no compression level and told you that the default levelhad been used instead. That seemed like more output than mostpeople would want.Also along the way, this adds a check to the server forunrecognized base backup options. This repairs a bug introducedby commit0ba281c.This commit also adds some new test cases for pg_verifybackup.They take a server-side backup with and without compression, andthen extract the backup if we have the OS facilities availableto do so, and then run pg_verifybackup on the extracteddirectory. That is a good test of the functionality added bythis commit and also improves test coverage for the backup targetpatch (commit3500ccc) and forpg_verifybackup itself.Patch by me, with a bug fix by Jeevan Ladhe. The patch set of whichthis is a part has also had review and/or testing from Tushar Ahuja,Suraj Kharage, Dipesh Pandit, and Mark Dilger.Discussion:http://postgr.es/m/CA+Tgmoa-ST7fMLsVJduOB7Eub=2WjfpHS+QxHVEpUoinf4bOSg@mail.gmail.com1 parentaa01051 commit0ad8032
File tree
10 files changed
+641
-24
lines changed- doc/src/sgml
- ref
- src
- backend
- replication
- bin
- pg_basebackup
- pg_verifybackup
- t
- include/replication
10 files changed
+641
-24
lines changedLines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2719 | 2719 |
| |
2720 | 2720 |
| |
2721 | 2721 |
| |
| 2722 | + | |
| 2723 | + | |
| 2724 | + | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
| 2737 | + | |
| 2738 | + | |
| 2739 | + | |
| 2740 | + | |
| 2741 | + | |
| 2742 | + | |
| 2743 | + | |
2722 | 2744 |
| |
2723 | 2745 |
| |
2724 | 2746 |
| |
|
Lines changed: 22 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
400 | 400 |
| |
401 | 401 |
| |
402 | 402 |
| |
403 |
| - | |
| 403 | + | |
404 | 404 |
| |
405 | 405 |
| |
406 |
| - | |
407 |
| - | |
408 |
| - | |
409 |
| - | |
410 |
| - | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
411 | 417 |
| |
412 | 418 |
| |
413 | 419 |
| |
414 | 420 |
| |
415 | 421 |
| |
416 | 422 |
| |
417 |
| - | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
418 | 433 |
| |
419 | 434 |
| |
420 | 435 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
| 51 | + | |
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| 21 | + | |
21 | 22 |
| |
22 | 23 |
| |
23 | 24 |
| |
|
Lines changed: 54 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
64 | 70 |
| |
65 | 71 |
| |
66 | 72 |
| |
| |||
73 | 79 |
| |
74 | 80 |
| |
75 | 81 |
| |
| 82 | + | |
| 83 | + | |
76 | 84 |
| |
77 | 85 |
| |
78 | 86 |
| |
| |||
707 | 715 |
| |
708 | 716 |
| |
709 | 717 |
| |
| 718 | + | |
| 719 | + | |
710 | 720 |
| |
711 | 721 |
| |
712 | 722 |
| |
713 | 723 |
| |
714 | 724 |
| |
| 725 | + | |
715 | 726 |
| |
716 | 727 |
| |
717 | 728 |
| |
| |||
881 | 892 |
| |
882 | 893 |
| |
883 | 894 |
| |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
884 | 928 |
| |
| 929 | + | |
885 | 930 |
| |
886 | 931 |
| |
887 | 932 |
| |
| |||
908 | 953 |
| |
909 | 954 |
| |
910 | 955 |
| |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
911 | 961 |
| |
912 | 962 |
| |
913 | 963 |
| |
| |||
975 | 1025 |
| |
976 | 1026 |
| |
977 | 1027 |
| |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
978 | 1032 |
| |
979 | 1033 |
| |
980 | 1034 |
| |
|
0 commit comments
Comments
(0)