forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita879544
committed
Extend PageIsVerified() to handle more custom options
This is useful for checks of relation pages without having to load thepages into the shared buffers, and two cases can make use of that: pageverification in base backups and the online, lock-safe, flavor.Compatibility is kept with past versions using a routine that calls thenew extended routine with the set of options compatible with theoriginal version. Contrary tod401c57, a macro cannot be used as theremay be external code relying on the presence of the original routine.This is applied down to 11, where this will be used by a follow-upcommit addressing a set of issues with page verification in basebackups.Extracted from a larger patch by the same author.Author: Anastasia LubennikovaReviewed-by: Michael Paquier, Julien RouhaudDiscussion:https://postgr.es/m/608f3476-0598-2514-2c03-e05c7d2b0cbd@postgrespro.ruBackpatch-through: 111 parent7d72fd9 commita879544
4 files changed
+39
-9
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
338 | 338 |
| |
339 | 339 |
| |
340 | 340 |
| |
341 |
| - | |
| 341 | + | |
| 342 | + | |
342 | 343 |
| |
343 | 344 |
| |
344 | 345 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
613 | 613 |
| |
614 | 614 |
| |
615 | 615 |
| |
616 |
| - | |
| 616 | + | |
| 617 | + | |
617 | 618 |
| |
618 | 619 |
| |
619 | 620 |
| |
| |||
905 | 906 |
| |
906 | 907 |
| |
907 | 908 |
| |
908 |
| - | |
| 909 | + | |
| 910 | + | |
909 | 911 |
| |
910 | 912 |
| |
911 | 913 |
| |
|
Lines changed: 26 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
65 | 77 |
| |
66 | 78 |
| |
67 | 79 |
| |
| |||
77 | 89 |
| |
78 | 90 |
| |
79 | 91 |
| |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
80 | 98 |
| |
81 | 99 |
| |
82 |
| - | |
| 100 | + | |
83 | 101 |
| |
84 | 102 |
| |
85 | 103 |
| |
| |||
147 | 165 |
| |
148 | 166 |
| |
149 | 167 |
| |
150 |
| - | |
151 |
| - | |
152 |
| - | |
153 |
| - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
154 | 173 |
| |
155 |
| - | |
| 174 | + | |
| 175 | + | |
156 | 176 |
| |
157 | 177 |
| |
158 | 178 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
410 | 410 |
| |
411 | 411 |
| |
412 | 412 |
| |
| 413 | + | |
| 414 | + | |
413 | 415 |
| |
414 | 416 |
| |
415 | 417 |
| |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
416 | 422 |
| |
417 | 423 |
| |
418 | 424 |
| |
419 | 425 |
| |
420 | 426 |
| |
421 | 427 |
| |
422 | 428 |
| |
| 429 | + | |
423 | 430 |
| |
424 | 431 |
| |
425 | 432 |
| |
|
0 commit comments
Comments
(0)