I need to do KNN- and within-region queries for POI data. I store the POI locations in a geography column. Since I understand that ST_DISTANCE
doesn't use the geography index, I added a geometry index in order to use the <->
operator with indexed performance. This works nicely (unfortunately not over the 180° meridian but that's OK in my case).
Now I'm asking myself for which operations a geography index is actually useful?
Best Answer
This tutorial/explanation seems to contradict your question's premise(?). But the pertinent part says: