forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd07c294
committed
Add support for progress reporting to pg_verifybackup
This adds a new option to pg_verifybackup called -P/--progress, showingevery second some information about the progress of the checksumverification based on the data of a backup manifest.Similarly to what is done for pg_rewind and pg_basebackup, theinformation printed in the progress report consists of the currentamount of data computed and the total amount of data that will becomputed. Note that files found with an incorrect size do not havetheir checksum verified, hence their size is not appended to the totalamount of data estimated during the first scan of the manifest data(such incorrect sizes could be overly high, for one, falsifying theprogress report).Author: Masahiko SawadaDiscussion:https://postgr.es/m/CAD21AoC5+JOgMd4o3z_oxw0f8JDSsCYY7zSbhe-O9x7f33rw_A@mail.gmail.com1 parent71c3779 commitd07c294
File tree
3 files changed
+111
-7
lines changed- doc/src/sgml/ref
- src/bin/pg_verifybackup
- t
3 files changed
+111
-7
lines changedLines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
178 | 178 |
| |
179 | 179 |
| |
180 | 180 |
| |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
181 | 196 |
| |
182 | 197 |
| |
183 | 198 |
| |
|
Lines changed: 83 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| 19 | + | |
19 | 20 |
| |
20 | 21 |
| |
21 | 22 |
| |
22 | 23 |
| |
23 | 24 |
| |
24 | 25 |
| |
| 26 | + | |
25 | 27 |
| |
26 | 28 |
| |
27 | 29 |
| |
| |||
58 | 60 |
| |
59 | 61 |
| |
60 | 62 |
| |
| 63 | + | |
| 64 | + | |
| 65 | + | |
61 | 66 |
| |
62 | 67 |
| |
63 | 68 |
| |
| |||
147 | 152 |
| |
148 | 153 |
| |
149 | 154 |
| |
| 155 | + | |
150 | 156 |
| |
151 | 157 |
| |
152 | 158 |
| |
153 | 159 |
| |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
154 | 168 |
| |
155 | 169 |
| |
156 | 170 |
| |
| |||
162 | 176 |
| |
163 | 177 |
| |
164 | 178 |
| |
| 179 | + | |
165 | 180 |
| |
166 | 181 |
| |
167 | 182 |
| |
| |||
174 | 189 |
| |
175 | 190 |
| |
176 | 191 |
| |
177 |
| - | |
178 | 192 |
| |
179 | 193 |
| |
180 | 194 |
| |
| |||
219 | 233 |
| |
220 | 234 |
| |
221 | 235 |
| |
222 |
| - | |
| 236 | + | |
223 | 237 |
| |
224 | 238 |
| |
225 | 239 |
| |
| |||
241 | 255 |
| |
242 | 256 |
| |
243 | 257 |
| |
| 258 | + | |
| 259 | + | |
| 260 | + | |
244 | 261 |
| |
245 | 262 |
| |
246 | 263 |
| |
| |||
277 | 294 |
| |
278 | 295 |
| |
279 | 296 |
| |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
280 | 302 |
| |
281 | 303 |
| |
282 | 304 |
| |
| |||
638 | 660 |
| |
639 | 661 |
| |
640 | 662 |
| |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
641 | 667 |
| |
642 | 668 |
| |
643 | 669 |
| |
| |||
675 | 701 |
| |
676 | 702 |
| |
677 | 703 |
| |
| 704 | + | |
| 705 | + | |
678 | 706 |
| |
679 | 707 |
| |
680 | 708 |
| |
681 |
| - | |
| 709 | + | |
682 | 710 |
| |
683 | 711 |
| |
684 | 712 |
| |
| |||
694 | 722 |
| |
695 | 723 |
| |
696 | 724 |
| |
| 725 | + | |
| 726 | + | |
697 | 727 |
| |
698 | 728 |
| |
699 | 729 |
| |
| |||
740 | 770 |
| |
741 | 771 |
| |
742 | 772 |
| |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
743 | 777 |
| |
744 | 778 |
| |
745 | 779 |
| |
| |||
894 | 928 |
| |
895 | 929 |
| |
896 | 930 |
| |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
897 | 976 |
| |
898 | 977 |
| |
899 | 978 |
| |
| |||
907 | 986 |
| |
908 | 987 |
| |
909 | 988 |
| |
| 989 | + | |
910 | 990 |
| |
911 | 991 |
| |
912 | 992 |
| |
|
Lines changed: 13 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 |
| |
32 | 38 |
| |
33 | 39 |
| |
| |||
48 | 54 |
| |
49 | 55 |
| |
50 | 56 |
| |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
55 | 64 |
| |
56 | 65 |
| |
57 | 66 |
| |
|
0 commit comments
Comments
(0)