forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita3fcbcd
committed
Fix backup manifests to generate correct WAL-Ranges across timelines
In a backup manifest, WAL-Ranges stores the range of WAL that isrequired for the backup to be valid. pg_verifybackup would theninternally use pg_waldump for the checks based on this data.When the timeline where the backup started was more than 1 with ahistory file looked at for the manifest data generation, the calculationof the WAL range for the first timeline to check was incorrect. Theprevious logic used as start LSN the start position of the firsttimeline, but it needs to use the start LSN of the backup. This wouldcause failures with pg_verifybackup, or any tools making use of thebackup manifests.This commit adds a test based on a logic using a self-promoted node,making it rather cheap.Author: Kyotaro HoriguchiDiscussion:https://postgr.es/m/20210818.143031.1867083699202617521.horikyota.ntt@gmail.comBackpatch-through: 131 parentc818c25 commita3fcbcd
File tree
2 files changed
+29
-5
lines changed- src
- backend/replication
- bin/pg_verifybackup/t
2 files changed
+29
-5
lines changedLines changed: 11 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
251 | 251 |
| |
252 | 252 |
| |
253 | 253 |
| |
254 |
| - | |
255 |
| - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
256 | 263 |
| |
257 | 264 |
| |
258 |
| - | |
| 265 | + | |
259 | 266 |
| |
260 | 267 |
| |
261 | 268 |
| |
262 | 269 |
| |
263 | 270 |
| |
264 | 271 |
| |
265 | 272 |
| |
266 |
| - | |
| 273 | + | |
267 | 274 |
| |
268 | 275 |
| |
269 | 276 |
| |
|
Lines changed: 18 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| |||
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + |
0 commit comments
Comments
(0)