Fix KNN GiST ordering type - Mailing list pgsql-hackers

From Alexander Korotkov
Subject Fix KNN GiST ordering type
Date
Msg-id CAPpHfdt19FwQXarYjkzxb3oxmv-KAn3FLuZrooARE_U3H3CV9g@mail.gmail.com
Whole thread Raw
Responses Re: Fix KNN GiST ordering type
List 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

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: [PATCH] better systemd integration
Next
From: Pavel Stehule
Date:
Subject: Re: proposal: PL/Pythonu - function ereport