pgsql: Simplify box_overlap computations.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Simplify box_overlap computations.
Дата
Msg-id E1U3xKi-00083p-O0@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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).

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f806c191a3d5faa1af1e5032d394fc6c5f93df86

Modified Files
--------------
src/backend/utils/adt/geo_ops.c |   13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix gist_box_same and gist_point_consistent to handle fuzziness
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Add support for ALTER RULE ... RENAME TO.