forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite5b86c9
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 parent57d3dc2 commite5b86c9
1 file changed
+12
-7
lines changedLines changed: 12 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1921 | 1921 |
| |
1922 | 1922 |
| |
1923 | 1923 |
| |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
1924 | 1936 |
| |
1925 | 1937 |
| |
1926 | 1938 |
| |
1927 | 1939 |
| |
1928 |
| - | |
1929 |
| - | |
1930 |
| - | |
1931 |
| - | |
1932 |
| - | |
1933 |
| - | |
1934 |
| - | |
1935 | 1940 |
| |
1936 | 1941 |
| |
1937 | 1942 |
| |
|
0 commit comments
Comments
(0)