Re: [HACKERS] [PATCH] kNN for btree

2017-03-09 Thread Alexander Korotkov
On Thu, Mar 2, 2017 at 5:57 PM, David Steele wrote: > Hi Alexander, > > On 2/16/17 11:20 AM, Robert Haas wrote: > > On Thu, Feb 16, 2017 at 10:59 AM, Tom Lane wrote: > >> Robert Haas writes: > >>> On Thu, Feb 16, 2017 at 8:05 AM,

Re: [HACKERS] [PATCH] kNN for btree

2017-03-02 Thread David Steele
Hi Alexander, On 2/16/17 11:20 AM, Robert Haas wrote: > On Thu, Feb 16, 2017 at 10:59 AM, Tom Lane wrote: >> Robert Haas writes: >>> On Thu, Feb 16, 2017 at 8:05 AM, Alexander Korotkov >>> wrote: My idea is that we need

Re: [HACKERS] [PATCH] kNN for btree

2017-02-16 Thread Robert Haas
On Thu, Feb 16, 2017 at 10:59 AM, Tom Lane wrote: > Robert Haas writes: >> On Thu, Feb 16, 2017 at 8:05 AM, Alexander Korotkov >> wrote: >>> My idea is that we need more general redesign of specifying ordering which >>> index

Re: [HACKERS] [PATCH] kNN for btree

2017-02-16 Thread Tom Lane
Robert Haas writes: > On Thu, Feb 16, 2017 at 8:05 AM, Alexander Korotkov > wrote: >> My idea is that we need more general redesign of specifying ordering which >> index can produce. Ideally, we should replace amcanorder, amcanbackward and >>

Re: [HACKERS] [PATCH] kNN for btree

2017-02-16 Thread Robert Haas
On Thu, Feb 16, 2017 at 8:05 AM, Alexander Korotkov wrote: > My idea is that we need more general redesign of specifying ordering which > index can produce. Ideally, we should replace amcanorder, amcanbackward and > amcanorderbyop with single callback. Such callback

Re: [HACKERS] [PATCH] kNN for btree

2017-02-16 Thread Alexander Korotkov
Hi, Nikita! I have assigned as a reviewer for this patchset. I took a fist look to these patches. At first, I'd like to notice that it's very cool that you picked up this work. I frequently hear people complains about lack of this feature. k | kNN-btree | kNN-GiST| Opt. query

Re: [HACKERS] [PATCH] kNN for btree

2017-01-18 Thread Nikita Glukhov
Sorry for the broken formatting in my previous message. Below is a corrected version of this message. I'd like to present a series of patches that implements k-Nearest Neighbors (kNN) search for btree, which can be used to speed up ORDER BY distance queries like this: SELECT * FROM events ORDER