Re: Fix KNN GiST ordering type - Mailing list pgsql-hackers

From Alexander Korotkov
Subject Re: Fix KNN GiST ordering type
Date
Msg-id CAPpHfdt1NqHp90ctEHkK11qSKMnLTLXM7uFNCGChHh4ruF43pQ@mail.gmail.com
Whole thread Raw
In response to Fix KNN GiST ordering type  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
List pgsql-hackers
On Mon, Feb 1, 2016 at 7:31 PM, Alexander Korotkov <a.korotkov@postgrespro.ru> wrote:
KNN GiST detects which type it should return by returning type of ordering operator.
But it appears that type of sk_func is detected after it was replaced with distance function. That is wrong: distance function should always return float8.
I think it is just a typo.

I found this was introduced by this commit.
http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=821b821a2421beaa58225ff000833df69fb962c5;hp=284bef297733e553c73f1c858e0ce1532f754d18

However, commit message doesn't say anything special about this change.

------
Alexander Korotkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
 

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Freeze avoidance of very large table.
Next
From: Alvaro Herrera
Date:
Subject: Re: get current log file