From: | Alexander Korotkov <a(dot)korotkov(at)postgrespro(dot)ru> |
---|---|
To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Fix KNN GiST ordering type |
Date: | 2016-02-01 16:31:48 |
Message-ID: | CAPpHfdt19FwQXarYjkzxb3oxmv-KAn3FLuZrooARE_U3H3CV9g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi!
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.
Should be backpatched to 9.5.
------
Alexander Korotkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
Attachment | Content-Type | Size |
---|---|---|
fix-knn-gist-ordering-type.patch | application/octet-stream | 991 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2016-02-01 16:37:35 | Re: proposal: PL/Pythonu - function ereport |
Previous Message | Pavel Stehule | 2016-02-01 16:09:19 | Re: [PATCH] better systemd integration |