forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit55b59ed
committed
Fix GiST index-only scans for opclasses with different storage type.
We cannot use the index's tuple descriptor directly to describe the indextuples returned in an index-only scan. That's because the index might usea different datatype for the values stored on disk than the type originallyindexed. As long as they were both pass-by-ref, it worked, but will not workfor pass-by-value types of different sizes. I noticed this as a crash when Istarted hacking a patch to add fetch methods to btree_gist.1 parent785941c commit55b59ed
File tree
3 files changed
+30
-8
lines changed- src
- backend/access/gist
- include/access
3 files changed
+30
-8
lines changedLines changed: 27 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
89 | 89 |
| |
90 | 90 |
| |
91 | 91 |
| |
92 |
| - | |
93 |
| - | |
94 |
| - | |
| 92 | + | |
| 93 | + | |
95 | 94 |
| |
96 |
| - | |
97 | 95 |
| |
98 | 96 |
| |
99 | 97 |
| |
| |||
149 | 147 |
| |
150 | 148 |
| |
151 | 149 |
| |
152 |
| - | |
153 |
| - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
154 | 153 |
| |
155 |
| - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
156 | 175 |
| |
157 | 176 |
| |
158 | 177 |
| |
159 | 178 |
| |
160 | 179 |
| |
| 180 | + | |
161 | 181 |
| |
162 | 182 |
| |
163 | 183 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
657 | 657 |
| |
658 | 658 |
| |
659 | 659 |
| |
660 |
| - | |
| 660 | + | |
661 | 661 |
| |
662 | 662 |
| |
663 | 663 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
| 81 | + | |
| 82 | + | |
81 | 83 |
| |
82 | 84 |
| |
83 | 85 |
| |
|
0 commit comments
Comments
(0)