| От | Tom Lane |
|---|---|
| Тема | Re: Add missing operator <->(box, point) |
| Дата | |
| Msg-id | 4682.1562094810@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Add missing operator <->(box, point) (Alexander Korotkov <a.korotkov@postgrespro.ru>) |
| Список | pgsql-hackers |
Alexander Korotkov <a.korotkov@postgrespro.ru> writes:
> On Tue, Jul 2, 2019 at 9:19 PM Nikita Glukhov <n.gluhov@postgrespro.ru> wrote:
>> We could use commuted "const <-> var" operators for kNN searches, but the
>> current implementation requires the existence of "var <-> const" operators, and
>> order-by-op clauses are rebuilt using them (see match_clause_to_ordering_op()
>> at /src/backend/optimizer/path/indxpath.c).
> But probably it's still worth to just add commutator for every <->
> operator and close this question.
Yeah, I was just thinking that it was weird not to have the commutator
operators, independently of indexing considerations. Seems like a
usability thing.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера