forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc25ed20
committed
Fix record length computation in pg_waldump/xlogdump.
The current method of computing the record length (excluding thelenght of full-page images) has been wrong since the WAL format hasbeen revamped in2c03216. Only themain record's length was counted, but that can be significantly toolittle if there's data associated with further blocks.Fix by computing the record length as total_lenght - fpi_length.Reported-By: Chen HuajunBug: #14687Reviewed-By: Heikki LinnakangasDiscussion:https://postgr.es/m/20170603165939.1436.58887@wrigleys.postgresql.orgBackpatch: 9.5-1 parent3e60c6f commitc25ed20
1 file changed
+34
-15
lines changedLines changed: 34 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
363 | 363 |
| |
364 | 364 |
| |
365 | 365 |
| |
366 |
| - | |
| 366 | + | |
367 | 367 |
| |
368 | 368 |
| |
369 |
| - | |
370 |
| - | |
| 369 | + | |
371 | 370 |
| |
372 |
| - | |
373 |
| - | |
374 |
| - | |
375 |
| - | |
376 | 371 |
| |
377 | 372 |
| |
378 |
| - | |
379 |
| - | |
380 |
| - | |
381 |
| - | |
382 |
| - | |
383 | 373 |
| |
384 | 374 |
| |
385 | 375 |
| |
386 | 376 |
| |
387 | 377 |
| |
388 | 378 |
| |
389 | 379 |
| |
390 |
| - | |
| 380 | + | |
391 | 381 |
| |
392 | 382 |
| |
393 | 383 |
| |
394 |
| - | |
| 384 | + | |
395 | 385 |
| |
396 | 386 |
| |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
397 | 412 |
| |
398 | 413 |
| |
399 | 414 |
| |
| |||
422 | 437 |
| |
423 | 438 |
| |
424 | 439 |
| |
| 440 | + | |
| 441 | + | |
425 | 442 |
| |
426 | 443 |
| |
427 | 444 |
| |
428 | 445 |
| |
429 | 446 |
| |
430 | 447 |
| |
431 | 448 |
| |
| 449 | + | |
| 450 | + | |
432 | 451 |
| |
433 | 452 |
| |
434 | 453 |
| |
435 | 454 |
| |
436 | 455 |
| |
437 | 456 |
| |
438 |
| - | |
| 457 | + | |
439 | 458 |
| |
440 | 459 |
| |
441 | 460 |
| |
|
0 commit comments
Comments
(0)