Commit 7e04160
committed
Fix handling of non-key columns get_index_column_opclass()
f2e4038 introduces support of non-key attributes in GiST indexes. Then if
get_index_column_opclass() is asked by gistproperty() to get an opclass of
non-key column, it returns garbage past oidvector value. This commit fixes
that by making get_index_column_opclass() return InvalidOid in this case.
Discussion: https://postgr.es/m/20190902231948.GA5343%40alvherre.pgsql
Author: Nikita Glukhov, Alexander Korotkov
Backpatch-through: 121 parent 89b160c commit 7e04160
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3157 | 3157 | | |
3158 | 3158 | | |
3159 | 3159 | | |
3160 | | - | |
| 3160 | + | |
| 3161 | + | |
3161 | 3162 | | |
3162 | 3163 | | |
3163 | 3164 | | |
| |||
3180 | 3181 | | |
3181 | 3182 | | |
3182 | 3183 | | |
| 3184 | + | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
3183 | 3191 | | |
3184 | 3192 | | |
3185 | 3193 | | |
3186 | 3194 | | |
3187 | 3195 | | |
| 3196 | + | |
| 3197 | + | |
3188 | 3198 | | |
3189 | 3199 | | |
3190 | 3200 | | |
| |||
0 commit comments