forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1fde38b
committed
Allow on-line enabling and disabling of data checksums
This makes it possible to turn checksums on in a live cluster, withoutthe previous need for dump/reload or logical replication (and to turn itoff).Enabling checkusm starts a background process in the form of alauncher/worker combination that goes through the entire database andrecalculates checksums on each and every page. Only when all pages havebeen checksummed are they fully enabled in the cluster. Any failure ofthe process will revert to checksums off and the process has to bestarted.This adds a new WAL record that indicates the state of checksums, sothe process works across replicated clusters.Authors: Magnus Hagander and Daniel GustafssonReview: Tomas Vondra, Michael Banck, Heikki Linnakangas, Andrey Borodin1 parentc39e903 commit1fde38b
File tree
45 files changed
+2118
-34
lines changed- doc/src/sgml
- ref
- src
- backend
- access
- rmgrdesc
- transam
- catalog
- postmaster
- replication
- logical
- storage
- ipc
- page
- utils/misc
- bin
- pg_upgrade
- pg_verify_checksums
- include
- access
- catalog
- postmaster
- storage
- test
- checksum
- t
- isolation
- expected
- specs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
45 files changed
+2118
-34
lines changedLines changed: 65 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19540 | 19540 |
| |
19541 | 19541 |
| |
19542 | 19542 |
| |
| 19543 | + | |
| 19544 | + | |
| 19545 | + | |
| 19546 | + | |
| 19547 | + | |
| 19548 | + | |
| 19549 | + | |
| 19550 | + | |
| 19551 | + | |
| 19552 | + | |
| 19553 | + | |
| 19554 | + | |
| 19555 | + | |
| 19556 | + | |
| 19557 | + | |
| 19558 | + | |
| 19559 | + | |
| 19560 | + | |
| 19561 | + | |
| 19562 | + | |
| 19563 | + | |
| 19564 | + | |
| 19565 | + | |
| 19566 | + | |
| 19567 | + | |
| 19568 | + | |
| 19569 | + | |
| 19570 | + | |
| 19571 | + | |
| 19572 | + | |
| 19573 | + | |
| 19574 | + | |
| 19575 | + | |
| 19576 | + | |
| 19577 | + | |
| 19578 | + | |
| 19579 | + | |
| 19580 | + | |
| 19581 | + | |
| 19582 | + | |
| 19583 | + | |
| 19584 | + | |
| 19585 | + | |
| 19586 | + | |
| 19587 | + | |
| 19588 | + | |
| 19589 | + | |
| 19590 | + | |
| 19591 | + | |
| 19592 | + | |
| 19593 | + | |
| 19594 | + | |
| 19595 | + | |
| 19596 | + | |
| 19597 | + | |
| 19598 | + | |
| 19599 | + | |
| 19600 | + | |
| 19601 | + | |
| 19602 | + | |
| 19603 | + | |
| 19604 | + | |
| 19605 | + | |
| 19606 | + | |
| 19607 | + | |
19543 | 19608 |
| |
19544 | 19609 |
| |
19545 | 19610 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
211 | 211 |
| |
212 | 212 |
| |
213 | 213 |
| |
| 214 | + | |
214 | 215 |
| |
215 | 216 |
| |
216 | 217 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
195 | 195 |
| |
196 | 196 |
| |
197 | 197 |
| |
198 |
| - | |
199 |
| - | |
200 |
| - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
201 | 201 |
| |
202 | 202 |
| |
203 | 203 |
| |
|
Lines changed: 112 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 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 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + |
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
284 | 284 |
| |
285 | 285 |
| |
286 | 286 |
| |
| 287 | + | |
287 | 288 |
| |
288 | 289 |
| |
289 | 290 |
| |
|
Lines changed: 81 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
230 | 230 |
| |
231 | 231 |
| |
232 | 232 |
| |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
233 | 314 |
| |
234 | 315 |
| |
235 | 316 |
| |
|
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| 20 | + | |
20 | 21 |
| |
21 | 22 |
| |
22 | 23 |
| |
| |||
137 | 138 |
| |
138 | 139 |
| |
139 | 140 |
| |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
140 | 153 |
| |
141 | 154 |
| |
142 | 155 |
| |
| |||
182 | 195 |
| |
183 | 196 |
| |
184 | 197 |
| |
| 198 | + | |
| 199 | + | |
| 200 | + | |
185 | 201 |
| |
186 | 202 |
| |
187 | 203 |
| |
|
0 commit comments
Comments
(0)