8000 fix found_index_size in pick_suitable_index() · postgrespro/pgsphere@1e3bf66 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1e3bf66

Browse files
committed
fix found_index_size in pick_suitable_index()
1 parent 16e45b5 commit 1e3bf66

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

init.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,10 @@ pick_suitable_index(Oid relation, AttrNumber column)
208208

209209
/* column must use 'spoint2' opclass */
210210
if (!is_null && indclasses->values[i] == spoint2_opclass)
211+
{
211212
found_index = pg_ind->indexrelid;
213+
found_index_size = cur_index_size;
214+
}
212215
}
213216

214217
break; /* no need to scan 'indkey' further */

0 commit comments

Comments
 (0)
0