Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: Add missing operator <->(box, point) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Add missing operator <->(box, point)
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: Add missing operator <->(box, point)  (Alexander Korotkov <[email protected]>)
List pgsql-hackers
Alexander Korotkov <[email protected]> writes:
> On Tue, Jul 2, 2019 at 9:19 PM Nikita Glukhov <[email protected]> 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCH v5] Show detailed table persistence in \dt+
Next
From: Alvaro Herrera
Date:
Subject: Re: [PATCH v5] Show detailed table persistence in \dt+