forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit14f98e0
committed
hio: Release extension lock before initializing page / pinning VM
PageInit() while holding the extension lock is unnecessary after0d1fe9fstarted to use RBM_ZERO_AND_LOCK - nobody can look at the new page before werelease the page lock. PageInit() zeroes the page, which isn't that cheap, sodeferring it until after the extension lock is released seems like a good idea.Doing visibilitymap_pin() while holding the extension lock, introduced in7db0cd2, looks like an accident. Due to the restrictions onHEAP_INSERT_FROZEN it's unlikely to be a performance issue, but it still seemsbetter to move it out. We also are doing the visibilitymap_pin() whileholding the buffer lock, which will be fixed in a separate commit.Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>Discussion:http://postgr.es/m/419312fd-9255-078c-c3e3-f0525f911d7f@iki.fi1 parent0070b66 commit14f98e0
1 file changed
+7
-7
lines changedLines changed: 7 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
623 | 623 |
| |
624 | 624 |
| |
625 | 625 |
| |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
626 | 633 |
| |
627 | 634 |
| |
628 | 635 |
| |
| |||
647 | 654 |
| |
648 | 655 |
| |
649 | 656 |
| |
650 |
| - | |
651 |
| - | |
652 |
| - | |
653 |
| - | |
654 |
| - | |
655 |
| - | |
656 |
| - | |
657 | 657 |
| |
658 | 658 |
| |
659 | 659 |
| |
|
0 commit comments
Comments
(0)