mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-03 08:00:21 +08:00
f50c80dbb1
~> (cube, int) operator was especially designed for knn-gist search. However, knn-gist supports only ascending ordering of results. Nevertheless it would be useful to support descending ordering by ~> (cube, int) operator. We provide workaround for that: negative coordinate give us inversed value of corresponding cube bound. Therefore, knn search using negative coordinate gives us an effect of descending ordering by cube bound. Author: Alexander Korotkov Reviewed by: Tomas Vondra, Andrey Borodin Discussion: https://www.postgresql.org/message-id/flat/a9657f6a-b497-36ff-e56-482a2c7e3292@2ndquadrant.com |
||
---|---|---|
.. | ||
data | ||
expected | ||
sql | ||
.gitignore | ||
CHANGES | ||
cube--1.0--1.1.sql | ||
cube--1.1--1.2.sql | ||
cube--1.2--1.3.sql | ||
cube--1.2.sql | ||
cube--1.3--1.4.sql | ||
cube--unpackaged--1.0.sql | ||
cube.c | ||
cube.control | ||
cubedata.h | ||
cubeparse.y | ||
cubescan.l | ||
Makefile |