Commit 3d6a984
committed
Don't initialize page in {vm,fsm}_extend(), not needed
The read path needs to be able to initialize pages anyway, as relation
extensions are not durable. By avoiding initializing pages, we can, in a
future patch, extend the relation by multiple blocks at once.
Using smgrextend() for {vm,fsm}_extend() is not a good idea in general, as at
least one page of the VM/FSM will be read immediately after, always causing a
cache miss, requiring us to read content we just wrote.
Discussion: https://postgr.es/m/20230301223515.pucbj7nb54n4i4nv@awork3.anarazel.de1 parent 86a3fc7 commit 3d6a984
File tree
2 files changed
+2
-9
lines changed- src/backend
- access/heap
- storage/freespace
2 files changed
+2
-9
lines changed| 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 | | |
| |||
| 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