- Notifications
You must be signed in to change notification settings - Fork5
Commit9d306c6
committed
Avoid unnecessary page-level SSI lock check in heap_insert().
As observed by Heikki, we need not conflict on heap page locks during aninsert; heap page locks are only aggregated tuple locks, they don't implylocking "gaps" as index page locks do. So we can avoid some unnecessaryconflicts, and also do the SSI check while not holding exclusive lock onthe target buffer.Kevin Grittner, reviewed by Jeff Davis. Back-patch to 9.1.1 parente6ed34f commit9d306c6
1 file changed
+12
-7
lines changedLines changed: 12 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1916 | 1916 |
| |
1917 | 1917 |
| |
1918 | 1918 |
| |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
1919 | 1931 |
| |
1920 | 1932 |
| |
1921 | 1933 |
| |
| |||
1924 | 1936 |
| |
1925 | 1937 |
| |
1926 | 1938 |
| |
1927 |
| - | |
1928 |
| - | |
1929 |
| - | |
1930 |
| - | |
1931 |
| - | |
1932 |
| - | |
1933 |
| - | |
1934 | 1939 |
| |
1935 | 1940 |
| |
1936 | 1941 |
| |
|
0 commit comments
Comments
(0)