- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit76a39f2
committed
Fix nbtree high key "continuescan" row compare bug.
Commit29b64d1 mishandled skipping over truncated high key attributesduring row comparisons. The row comparison key matching loop would loopforever when a truncated attribute was encountered for a row comparesubkey. Fix by following the example of other code in the loop: advancethe current subkey, or break out of the loop when the last subkey isreached.Add test coverage for the relevant _bt_check_rowcompare() code path.The new test case is somewhat tied to nbtree implementation details,which isn't ideal, but seems unavoidable.1 parent8fba397 commit76a39f2
File tree
3 files changed
+30
-2
lines changed- src
- backend/access/nbtree
- test/regress
- expected
- sql
3 files changed
+30
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1543 | 1543 | | |
1544 | 1544 | | |
1545 | 1545 | | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
1546 | 1549 | | |
1547 | 1550 | | |
1548 | 1551 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
147 | 165 | | |
| 166 | + | |
148 | 167 | | |
149 | 168 | | |
150 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
79 | 84 | | |
| 85 | + | |
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
| |||
0 commit comments
Comments
(0)