Re: Cube extension kNN support

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема Re: Cube extension kNN support
Дата
Msg-id CAPpHfdvQuyELW-6NapnvUwhbbQF3877ai6De6gepm8GoBVfffA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Cube extension kNN support  (Stas Kelvich <stas.kelvich@gmail.com>)
Список pgsql-hackers
On Thu, Mar 12, 2015 at 8:43 PM, Stas Kelvich <stas.kelvich@gmail.com> wrote:
Documentation along with style fix.

Since we change the interface of extension we have to change it version and create a migration script.
E.g. you have to rename cube--1.0.sql to cube--1.1.sql and create cube--1.0--1.1.sql to migrate the old version.

+ -- Alias for backword compatibility
  CREATE FUNCTION cube_distance(cube, cube)
  RETURNS float8
+ AS 'MODULE_PATHNAME', 'distance_euclid'
+ LANGUAGE C IMMUTABLE STRICT;

For backward compatibility it would be better to keep the old name of cube_distance so that extension with old definition could work with new binary.

------
With best regards,
Alexander Korotkov. 

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: Re: Abbreviated keys for Datum tuplesort
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Abbreviated keys for text cost model fix