forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9945ad6
committed
Justify nbtree page split locking in code comment.
Delaying unlocking the right child page until after the point that theleft child's parent page has been refound is no longer truly necessary.Commit40dae7e made nbtree tolerant of interrupted page splits. VACUUMwas taught to avoid deleting a page that happens to be the right half ofan incomplete split. As long as page splits don't unlock the left childpage until the end of the second/final phase, it should be safe tounlock the right child page earlier (at the end of the first phase).It probably isn't actually useful to release the right child's lockearlier like this (it probably won't improve performance). Even still,pointing out that it ought to be safe to do so should make it easier tounderstand the overall design.1 parent1e61480 commit9945ad6
1 file changed
+11
-2
lines changedLines changed: 11 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2128 | 2128 |
| |
2129 | 2129 |
| |
2130 | 2130 |
| |
2131 |
| - | |
2132 |
| - | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
2133 | 2142 |
| |
2134 | 2143 |
| |
2135 | 2144 |
| |
|
0 commit comments
Comments
(0)