forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5c99513
committed
Fix various checksum check problems for pg_verify_checksums and base backups
Three issues are fixed in this patch:- Base backups forgot to ignore files specific to EXEC_BACKEND, leadingto spurious warnings when checksums are enabled, per analysis from me.- pg_verify_checksums forgot about files specific to EXEC_BACKEND,leading to failures of the tool on any such build, particularly Windows.This error was originally found by newly-introduced TAP tests in variousbuildfarm members using EXEC_BACKEND.- pg_verify_checksums forgot to count for temporary files and temporarypaths, which could be valid relation files, without checksums, perreport from Andres Freund. More tests are added to cover this case.A new test case which emulates corruption for a file in a differenttablespace is added, coming from from Michael Banck, while I have codedthe main code and refactored the test code.Author: Michael Banck, Michael PaquierReviewed-by: Stephen Frost, David SteeleDiscussion:https://postgr.es/m/20181021134206.GA14282@paquier.xyz1 parenta1c91dd commit5c99513
File tree
3 files changed
+121
-46
lines changed- src
- backend/replication
- bin/pg_verify_checksums
- t
3 files changed
+121
-46
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
189 | 189 |
| |
190 | 190 |
| |
191 | 191 |
| |
| 192 | + | |
| 193 | + | |
| 194 | + | |
192 | 195 |
| |
193 | 196 |
| |
194 | 197 |
| |
195 | 198 |
| |
196 | 199 |
| |
197 | 200 |
| |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
198 | 205 |
| |
199 | 206 |
| |
200 | 207 |
| |
|
Lines changed: 28 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| 23 | + | |
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
| |||
49 | 50 |
| |
50 | 51 |
| |
51 | 52 |
| |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
52 | 58 |
| |
53 | 59 |
| |
54 | 60 |
| |
55 | 61 |
| |
56 | 62 |
| |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
57 | 67 |
| |
58 | 68 |
| |
59 | 69 |
| |
| |||
62 | 72 |
| |
63 | 73 |
| |
64 | 74 |
| |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 | 75 |
| |
70 | 76 |
| |
71 | 77 |
| |
| 78 | + | |
72 | 79 |
| |
73 | 80 |
| |
74 | 81 |
| |
| |||
146 | 153 |
| |
147 | 154 |
| |
148 | 155 |
| |
149 |
| - | |
| 156 | + | |
| 157 | + | |
150 | 158 |
| |
151 | 159 |
| |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
152 | 172 |
| |
153 | 173 |
| |
154 | 174 |
| |
| |||
163 | 183 |
| |
164 | 184 |
| |
165 | 185 |
| |
| 186 | + | |
| 187 | + | |
| 188 | + | |
166 | 189 |
| |
167 | 190 |
| |
168 | 191 |
| |
|
Lines changed: 86 additions & 41 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
9 | 76 |
| |
10 | 77 |
| |
11 | 78 |
| |
| |||
27 | 94 |
| |
28 | 95 |
| |
29 | 96 |
| |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
30 | 103 |
| |
31 | 104 |
| |
32 | 105 |
| |
| |||
36 | 109 |
| |
37 | 110 |
| |
38 | 111 |
| |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
| 112 | + | |
| 113 | + | |
65 | 114 |
| |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
80 | 122 |
| |
81 | 123 |
| |
82 | 124 |
| |
| |||
101 | 143 |
| |
102 | 144 |
| |
103 | 145 |
| |
| 146 | + | |
| 147 | + | |
| 148 | + | |
104 | 149 |
| |
105 | 150 |
| |
106 | 151 |
| |
|
0 commit comments
Comments
(0)