Вадим Самохин <samokhinvadim@gmail.com> writes: > 6. But postgresql still doesn't want to use my index: > postgres=# explain analyze select * from zonez where '(2,2)'::point <@ p;
It can't, because "polygon @> point" isn't one of the operators supported by that opclass. You could use a polygon comparison: