forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit50547a3
committed
Fix wal_consistency_checking enhanced desc output.
Recent enhancements to rmgr desc routines that made the output summarizecertain block data (added by commits7d8219a and1c453cf) dealt withrecords that lack relevant block data (and so have nothing to give amore detailed summary of) by testing !DecodedBkpBlock.has_image. As aresult, more detailed descriptions of block data were not output whenwal_consistency_checking was enabled.This bug affected records with summarizable block data that alsohappened to have an FPI that the REDO routine isn't supposed to apply(FPIs used for consistency checking purposes only). The presence ofsuch an FPI was incorrectly taken to indicate the absence of block data.To fix, test DecodedBkpBlock.has_data, not !DecodedBkpBlock.has_image.This is the exact condition that we care about, not an inexact proxy.Author: Peter Geoghegan <pg@bowt.ie>Discussion:https://postgr.es/m/CAH2-Wzm5Sc9cBg1qWV_cEBfLNJCrW9FjS-SoHVt8FLA7Ldn8yg@mail.gmail.com1 parent9e1e9d6 commit50547a3
File tree
3 files changed
+8
-6
lines changed- src
- backend/access/rmgrdesc
- include/access
3 files changed
+8
-6
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
184 | 184 |
| |
185 | 185 |
| |
186 | 186 |
| |
187 |
| - | |
| 187 | + | |
188 | 188 |
| |
189 | 189 |
| |
190 | 190 |
| |
| |||
223 | 223 |
| |
224 | 224 |
| |
225 | 225 |
| |
226 |
| - | |
| 226 | + | |
227 | 227 |
| |
228 | 228 |
| |
229 | 229 |
| |
| |||
241 | 241 |
| |
242 | 242 |
| |
243 | 243 |
| |
244 |
| - | |
| 244 | + | |
245 | 245 |
| |
246 | 246 |
| |
247 | 247 |
| |
| |||
270 | 270 |
| |
271 | 271 |
| |
272 | 272 |
| |
273 |
| - | |
| 273 | + | |
274 | 274 |
| |
275 | 275 |
| |
276 | 276 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
65 |
| - | |
| 65 | + | |
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 |
| - | |
| 78 | + | |
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
423 | 423 |
| |
424 | 424 |
| |
425 | 425 |
| |
| 426 | + | |
| 427 | + | |
426 | 428 |
| |
427 | 429 |
| |
428 | 430 |
| |
|
0 commit comments
Comments
(0)