| From: | Alexander Korotkov <aekorotkov(at)gmail(dot)com> |
|---|---|
| To: | Stas Kelvich <stas(dot)kelvich(at)gmail(dot)com> |
| Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Cube extension kNN support |
| Date: | 2015-04-03 12:23:51 |
| Message-ID: | CAPpHfdvQuyELW-6NapnvUwhbbQF3877ai6De6gepm8GoBVfffA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Thu, Mar 12, 2015 at 8:43 PM, Stas Kelvich <stas(dot)kelvich(at)gmail(dot)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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Haas | 2015-04-03 12:49:37 | Re: Abbreviated keys for text cost model fix |
| Previous Message | Peter Geoghegan | 2015-04-03 12:18:58 | Re: Re: Abbreviated keys for Datum tuplesort |