forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3d6a984
committed
Don't initialize page in {vm,fsm}_extend(), not needed
The read path needs to be able to initialize pages anyway, as relationextensions are not durable. By avoiding initializing pages, we can, in afuture patch, extend the relation by multiple blocks at once.Using smgrextend() for {vm,fsm}_extend() is not a good idea in general, as atleast one page of the VM/FSM will be read immediately after, always causing acache miss, requiring us to read content we just wrote.Discussion:https://postgr.es/m/20230301223515.pucbj7nb54n4i4nv@awork3.anarazel.de1 parent86a3fc7 commit3d6a984
File tree
2 files changed
+2
-9
lines changed- src/backend
- access/heap
- storage/freespace
2 files changed
+2
-9
lines changedLines changed: 1 addition & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
622 | 622 |
| |
623 | 623 |
| |
624 | 624 |
| |
625 |
| - | |
| 625 | + | |
626 | 626 |
| |
627 | 627 |
| |
628 |
| - | |
629 |
| - | |
630 | 628 |
| |
631 | 629 |
| |
632 | 630 |
| |
| |||
662 | 660 |
| |
663 | 661 |
| |
664 | 662 |
| |
665 |
| - | |
666 |
| - | |
667 | 663 |
| |
668 | 664 |
| |
669 | 665 |
| |
|
Lines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
608 | 608 |
| |
609 | 609 |
| |
610 | 610 |
| |
611 |
| - | |
| 611 | + | |
612 | 612 |
| |
613 | 613 |
| |
614 |
| - | |
615 | 614 |
| |
616 | 615 |
| |
617 | 616 |
| |
| |||
649 | 648 |
| |
650 | 649 |
| |
651 | 650 |
| |
652 |
| - | |
653 |
| - | |
654 | 651 |
| |
655 | 652 |
| |
656 | 653 |
| |
|
0 commit comments
Comments
(0)