forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0dd6ff0
committed
Avoid some unnecessary block reads in WAL reader
When reading a new page internally and depending on the way the WALreader facility gets used by plugins, the current implementation of theWAL reader may finish by reading a block multiple times while it is notactually necessary as the requested data length may be equal to what hasbeen already read. This can happen for any size, but is more likely tohappen at the end of a page. This can cause performance penalties inplugins which rely on the block reads to be purely sequential, zlib notliking backward reads for example. The new behavior also shaves somecycles when doing recovery.Author: Arthur ZakirovReviewed-by: Andrey Lepikhov, Michael Paquier, Grigory SmolkinDiscussion:https://postgr.es/m/2ddf4a32-517e-d6f4-d992-4a63b6035bfd@postgrespro.ru1 parent0b55aaa commit0dd6ff0
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
536 | 536 |
| |
537 | 537 |
| |
538 | 538 |
| |
539 |
| - | |
| 539 | + | |
540 | 540 |
| |
541 | 541 |
| |
542 | 542 |
| |
|
0 commit comments
Comments
(0)