forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc702d65
committed
heap pruning: Only call BufferGetBlockNumber() once.
BufferGetBlockNumber() is not that cheap and obviously cannot change duringone heap_prune_page(), so only call it once. We might be able to do better andpass the block number from the caller, but that'd be a larger change...Discussion:https://postgr.es/m/20211211045710.ljtuu4gfloh754rs@alap3.anarazel.de1 parent35b2803 commitc702d65
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
269 | 269 |
| |
270 | 270 |
| |
271 | 271 |
| |
| 272 | + | |
272 | 273 |
| |
273 | 274 |
| |
274 | 275 |
| |
| |||
335 | 336 |
| |
336 | 337 |
| |
337 | 338 |
| |
338 |
| - | |
| 339 | + | |
339 | 340 |
| |
340 | 341 |
| |
341 | 342 |
| |
|
0 commit comments
Comments
(0)