]> granicus.if.org Git - postgresql/commit
Cube extension kNN support
authorTeodor Sigaev <teodor@sigaev.ru>
Fri, 18 Dec 2015 11:38:27 +0000 (14:38 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Fri, 18 Dec 2015 11:38:27 +0000 (14:38 +0300)
commit33bd250f6c4cc309f4eeb657da80f1e7743b3e5c
treea426b00e401cb3f0a38fee9b95acbfc73ba0d15b
parent3d0c50ffa0bdb683c28bfe0e79d23d87111da2aa
Cube extension kNN support

Introduce distance operators over cubes:
<#> taxicab distance
<->  euclidean distance
<=> chebyshev distance

Also add kNN support of those distances in GiST opclass.

Author: Stas Kelvich
12 files changed:
contrib/cube/Makefile
contrib/cube/cube--1.0--1.1.sql [new file with mode: 0644]
contrib/cube/cube--1.1.sql [moved from contrib/cube/cube--1.0.sql with 84% similarity]
contrib/cube/cube.c
contrib/cube/cube.control
contrib/cube/cubedata.h
contrib/cube/expected/cube.out
contrib/cube/expected/cube_1.out
contrib/cube/expected/cube_2.out
contrib/cube/expected/cube_3.out
contrib/cube/sql/cube.sql
doc/src/sgml/cube.sgml