forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit042a923
committed
Rework compression options of pg_receivewal
Sincebabbbb5 and the introduction of LZ4 in pg_receivewal, thecompression of the WAL archived is controlled by two options:- --compression-method with "gzip", "none" or "lz4" as possible value.- --compress=N to specify a compression level. This includes abackward-incompatible change where a value of 0 leads to a failureinstead of no compression enforced.This commit takes advantage ofa4b5754 and3603f7c to rework thecompression options of pg_receivewal, as of:- The removal of --compression-method.- The extenction of --compress to use the same grammar as pg_basebackup,with a METHOD:DETAIL format, where a METHOD is "gzip", "none" or "lz4"and a DETAIL is a comma-separated list of options, the only keywordsupported is now "level" to control the compression level. If only aninteger is specified as value of this option, "none" is implied on 0and "gzip" is implied otherwise. This brings back --compress to bebackward-compatible with ~14, while still supporting LZ4.This has also the advantage of centralizing the set of checks used bypg_receivewal to validate its compression options.Author: Michael PaquierReviewed-by: Robert Haas, Georgios KokolatosDiscussion:https://postgr.es/m/YlPQGNAAa04raObK@paquier.xyz1 parentd27323d commit042a923
File tree
3 files changed
+121
-79
lines changed- doc/src/sgml/ref
- src/bin/pg_basebackup
- t
3 files changed
+121
-79
lines changedLines changed: 22 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
263 | 263 |
| |
264 | 264 |
| |
265 | 265 |
| |
266 |
| - | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
267 | 270 |
| |
268 | 271 |
| |
269 |
| - | |
270 |
| - | |
271 |
| - | |
272 |
| - | |
| 272 | + | |
273 | 273 |
| |
274 |
| - | |
275 | 274 |
| |
276 |
| - | |
277 |
| - | |
278 |
| - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
279 | 284 |
| |
280 |
| - | |
281 |
| - | |
282 |
| - | |
283 |
| - | |
284 |
| - | |
285 |
| - | |
286 |
| - | |
287 | 285 |
| |
288 |
| - | |
289 |
| - | |
290 |
| - | |
291 |
| - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
292 | 291 |
| |
293 |
| - | |
294 | 292 |
| |
295 |
| - | |
296 |
| - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
297 | 296 |
| |
298 | 297 |
| |
299 | 298 |
| |
|
Lines changed: 90 additions & 37 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
| 60 | + | |
| 61 | + | |
60 | 62 |
| |
61 | 63 |
| |
62 | 64 |
| |
| |||
90 | 92 |
| |
91 | 93 |
| |
92 | 94 |
| |
93 |
| - | |
94 |
| - | |
95 |
| - | |
| 95 | + | |
| 96 | + | |
96 | 97 |
| |
97 | 98 |
| |
98 | 99 |
| |
| |||
108 | 109 |
| |
109 | 110 |
| |
110 | 111 |
| |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
111 | 172 |
| |
112 | 173 |
| |
113 | 174 |
| |
| |||
651 | 712 |
| |
652 | 713 |
| |
653 | 714 |
| |
654 |
| - | |
655 | 715 |
| |
656 | 716 |
| |
657 | 717 |
| |
| |||
660 | 720 |
| |
661 | 721 |
| |
662 | 722 |
| |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
663 | 727 |
| |
664 | 728 |
| |
665 | 729 |
| |
| |||
728 | 792 |
| |
729 | 793 |
| |
730 | 794 |
| |
731 |
| - | |
732 |
| - | |
733 |
| - | |
| 795 | + | |
| 796 | + | |
734 | 797 |
| |
735 | 798 |
| |
736 | 799 |
| |
| |||
748 | 811 |
| |
749 | 812 |
| |
750 | 813 |
| |
751 |
| - | |
752 |
| - | |
753 |
| - | |
754 |
| - | |
755 |
| - | |
756 |
| - | |
757 |
| - | |
758 |
| - | |
759 |
| - | |
760 |
| - | |
761 |
| - | |
762 | 814 |
| |
763 | 815 |
| |
764 | 816 |
| |
| |||
810 | 862 |
| |
811 | 863 |
| |
812 | 864 |
| |
813 |
| - | |
814 | 865 |
| |
815 |
| - | |
| 866 | + | |
816 | 867 |
| |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
817 | 884 |
| |
818 | 885 |
| |
819 | 886 |
| |
820 |
| - | |
821 |
| - | |
822 |
| - | |
823 |
| - | |
824 |
| - | |
825 |
| - | |
826 |
| - | |
| 887 | + | |
827 | 888 |
| |
828 | 889 |
| |
829 | 890 |
| |
830 |
| - | |
| 891 | + | |
831 | 892 |
| |
832 | 893 |
| |
833 | 894 |
| |
| |||
838 | 899 |
| |
839 | 900 |
| |
840 | 901 |
| |
841 |
| - | |
842 |
| - | |
843 |
| - | |
844 |
| - | |
845 |
| - | |
846 |
| - | |
847 |
| - | |
848 |
| - | |
849 |
| - | |
| 902 | + | |
850 | 903 |
| |
851 | 904 |
| |
852 | 905 |
| |
|
Lines changed: 9 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
43 | 40 |
| |
44 | 41 |
| |
45 | 42 |
| |
| |||
48 | 45 |
| |
49 | 46 |
| |
50 | 47 |
| |
51 |
| - | |
| 48 | + | |
52 | 49 |
| |
53 | 50 |
| |
54 | 51 |
| |
| |||
93 | 90 |
| |
94 | 91 |
| |
95 | 92 |
| |
96 |
| - | |
97 |
| - | |
98 | 93 |
| |
99 | 94 |
| |
100 |
| - | |
101 |
| - | |
102 |
| - | |
103 |
| - | |
104 |
| - | |
| 95 | + | |
| 96 | + | |
105 | 97 |
| |
106 | 98 |
| |
107 | 99 |
| |
| |||
153 | 145 |
| |
154 | 146 |
| |
155 | 147 |
| |
156 |
| - | |
157 |
| - | |
158 |
| - | |
159 |
| - | |
| 148 | + | |
| 149 | + | |
160 | 150 |
| |
161 | 151 |
| |
162 |
| - | |
| 152 | + | |
163 | 153 |
| |
164 | 154 |
| |
165 | 155 |
| |
|
0 commit comments
Comments
(0)