summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-02-08 18:26:08 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2013-02-08 18:26:08 -0500
commitf806c191a3d5faa1af1e5032d394fc6c5f93df86 (patch)
tree3832482c3db41ba6e640209ba499b6c94fc1d782 /src/backend/access/gist/gist.c
parent3c29b196b0ce46662cb9bb7a1f91079fbacbcabb (diff)
downloadpostgresql-f806c191a3d5faa1af1e5032d394fc6c5f93df86.tar.gz
Simplify box_overlap computations.
Given the assumption that a box's high coordinates are not less than its low coordinates, the tests in box_ov() are overly complicated and can be reduced to about half as much work. Since many other functions in geo_ops.c rely on that assumption, there doesn't seem to be a good reason not to use it here. Per discussion of Alexander Korotkov's GiST fix, which was already using the simplified logic (in a non-fuzzy form, but the equivalence holds just as well for fuzzy).
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions