Hi Greg,
Thanks for v2. Index and seq scan order now agree for box and point in
my tests.
One note on the commit message. It says the bounding boxes of circles
and polygons are always a lower bound. Rounding can make them too high
even with one row:
CREATE TABLE cm (c circle);
INSERT INTO cm VALUES ('<(37.2,1.9999998957559666),26.6>');
CREATE INDEX ON cm USING gist (c);
SET enable_seqscan = off;
SELECT * FROM cm ORDER BY c <-> point '(0.9999996,2)';
ERROR: index returned tuples in wrong order
Thanks,
Shihao