I think select distinct the_geom should work using vertex-by-vertex equality operator, not the bbox one. Has this been discussed already ? I understand the index needs bbox comparision, but isn't there a way to be more specific about what the index should use ? --strk;