forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb450abd
committed
Remove entry tree root conflict checking from GIN predicate locking
According to README we acquire predicate locks on entry tree leafs and postingtree roots. However, when ginFindLeafPage() is going to lock leaf in exclusivemode, then it checks root for conflicts regardless whether it's a entry orposting tree. Assuming that we never place predicate lock on entry tree root(excluding corner case when root is leaf), this check is redundant. Thiscommit removes this check. Now, root conflict checking is controlled byseparate argument of ginFindLeafPage().Discussion:https://postgr.es/m/CAPpHfdv7rrDyy%3DMgsaK-L9kk0AH7az0B-mdC3w3p0FSb9uoyEg%40mail.gmail.comAuthor: Alexander KorotkovBackpatch-through: 111 parent1e504f0 commitb450abd
File tree
5 files changed
+13
-8
lines changed- src
- backend/access/gin
- include/access
5 files changed
+13
-8
lines changedLines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
| 75 | + | |
| 76 | + | |
| 77 | + | |
75 | 78 |
| |
76 | 79 |
| |
77 |
| - | |
| 80 | + | |
| 81 | + | |
78 | 82 |
| |
79 | 83 |
| |
80 | 84 |
| |
| |||
84 | 88 |
| |
85 | 89 |
| |
86 | 90 |
| |
87 |
| - | |
| 91 | + | |
88 | 92 |
| |
89 | 93 |
| |
90 | 94 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1913 | 1913 |
| |
1914 | 1914 |
| |
1915 | 1915 |
| |
1916 |
| - | |
| 1916 | + | |
1917 | 1917 |
| |
1918 | 1918 |
| |
1919 | 1919 |
| |
| |||
1932 | 1932 |
| |
1933 | 1933 |
| |
1934 | 1934 |
| |
1935 |
| - | |
| 1935 | + | |
1936 | 1936 |
| |
1937 | 1937 |
| |
1938 | 1938 |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
338 | 338 |
| |
339 | 339 |
| |
340 | 340 |
| |
341 |
| - | |
| 341 | + | |
342 | 342 |
| |
343 | 343 |
| |
344 | 344 |
| |
| |||
679 | 679 |
| |
680 | 680 |
| |
681 | 681 |
| |
682 |
| - | |
| 682 | + | |
683 | 683 |
| |
684 | 684 |
| |
685 | 685 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
195 | 195 |
| |
196 | 196 |
| |
197 | 197 |
| |
198 |
| - | |
| 198 | + | |
199 | 199 |
| |
200 | 200 |
| |
201 | 201 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
195 | 195 |
| |
196 | 196 |
| |
197 | 197 |
| |
198 |
| - | |
| 198 | + | |
| 199 | + | |
199 | 200 |
| |
200 | 201 |
| |
201 | 202 |
| |
|
0 commit comments
Comments
(0)