- Notifications
You must be signed in to change notification settings - Fork5k
Commit26158b8
committed
Use ExtendBufferedRelTo() in XLogReadBufferExtended()
Instead of extending the relation block-by-block, use ExtendBufferedRelTo(),introduced in31966b1. This is faster and simpler.This also somewhat reduces the danger that disconnected segments pose (whichcan be "discovered" once the previous segment reaches SEGSIZE), asExtendBufferedRelTo() won't extend past the block it has been asked. However,the risk of the content of such a disconnected segment being invalidremains.Discussion:https://postgr.es/m/20221029025420.eplyow6k7tgu6he3@awork3.anarazel.deDiscussion:https://postgr.es/m/20230223010147.32oir7sb66slqnjk@awork3.anarazel.de1 parentae78cae commit26158b8
1 file changed
+7
-22
lines changedLines changed: 7 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
524 | 524 |
| |
525 | 525 |
| |
526 | 526 |
| |
527 |
| - | |
528 |
| - | |
529 |
| - | |
530 |
| - | |
531 |
| - | |
532 |
| - | |
533 |
| - | |
534 |
| - | |
535 |
| - | |
536 |
| - | |
537 |
| - | |
538 |
| - | |
539 |
| - | |
540 |
| - | |
541 |
| - | |
542 |
| - | |
543 |
| - | |
544 |
| - | |
545 |
| - | |
546 |
| - | |
547 |
| - | |
548 |
| - | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
549 | 534 |
| |
550 | 535 |
| |
551 | 536 |
| |
|
0 commit comments
Comments
(0)