On Mar 7, 2012, at 11:36 AM, Bob Basques wrote: > if (x > minx && x < max && y > miny && y < maxy) then true. . This is precisely the kind of problem that GiST solves. The above query is not likely to be better than a spatial query. -- Puneet Kishor