forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4c9f50d
committed
Optimize pg_checksums --enable where checksum is already set
This commit prevents pg_checksums to do a rewrite of a block if it hasno need to, in the case where the computed checksum matches with what'salready stored in the block read. This is helpful to acceleratesuccessive runs of the tool when the previous ones got interrupted, forexample.The number of blocks and files written is tracked and reported by thetool once finished. Note that the final flush of the data folderhappens even if no blocks are written, as it could be possible that aprevious interrupted run got stopped while doing a flush.Author: Greg Sabino MullaneReviewed-by: Paquier Michael, Julien RouhaudDiscussion:https://postgr.es/m/CAKAnmmL+k6goxmVzQJB+0bAR0PN1sgo6GDUXJhyhUmVMze1QAw@mail.gmail.com1 parent178ec46 commit4c9f50d
File tree
2 files changed
+32
-7
lines changed- doc/src/sgml/ref
- src/bin/pg_checksums
2 files changed
+32
-7
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 |
| - | |
| 50 | + | |
| 51 | + | |
51 | 52 |
| |
52 | 53 |
| |
53 | 54 |
| |
|
Lines changed: 30 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
35 |
| - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
36 | 38 |
| |
37 | 39 |
| |
38 | 40 |
| |
| |||
195 | 197 |
| |
196 | 198 |
| |
197 | 199 |
| |
| 200 | + | |
198 | 201 |
| |
199 | 202 |
| |
200 | 203 |
| |
| |||
208 | 211 |
| |
209 | 212 |
| |
210 | 213 |
| |
211 |
| - | |
| 214 | + | |
212 | 215 |
| |
213 | 216 |
| |
214 | 217 |
| |
| |||
227 | 230 |
| |
228 | 231 |
| |
229 | 232 |
| |
230 |
| - | |
| 233 | + | |
231 | 234 |
| |
232 | 235 |
| |
233 | 236 |
| |
| |||
256 | 259 |
| |
257 | 260 |
| |
258 | 261 |
| |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
259 | 271 |
| |
260 | 272 |
| |
261 | 273 |
| |
| |||
292 | 304 |
| |
293 | 305 |
| |
294 | 306 |
| |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
295 | 314 |
| |
296 | 315 |
| |
297 | 316 |
| |
| |||
637 | 656 |
| |
638 | 657 |
| |
639 | 658 |
| |
640 |
| - | |
641 |
| - | |
| 659 | + | |
| 660 | + | |
642 | 661 |
| |
643 | 662 |
| |
644 | 663 |
| |
| |||
647 | 666 |
| |
648 | 667 |
| |
649 | 668 |
| |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
650 | 674 |
| |
651 | 675 |
| |
652 | 676 |
| |
|
0 commit comments
Comments
(0)