postgresql/contrib/cube
Teodor Sigaev f50c80dbb1 llow negative coordinate for ~> (cube, int) operator
~> (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
2018-01-11 14:49:36 +03:00
..
data
expected llow negative coordinate for ~> (cube, int) operator 2018-01-11 14:49:36 +03:00
sql llow negative coordinate for ~> (cube, int) operator 2018-01-11 14:49:36 +03:00
.gitignore
CHANGES
cube--1.0--1.1.sql
cube--1.1--1.2.sql
cube--1.2--1.3.sql Distinguish selectivity of < from <= and > from >=. 2017-09-13 11:12:39 -04:00
cube--1.2.sql
cube--1.3--1.4.sql Support index-only scans in contrib/cube and contrib/seg GiST indexes. 2017-11-20 20:25:18 -05:00
cube--unpackaged--1.0.sql
cube.c llow negative coordinate for ~> (cube, int) operator 2018-01-11 14:49:36 +03:00
cube.control Support index-only scans in contrib/cube and contrib/seg GiST indexes. 2017-11-20 20:25:18 -05:00
cubedata.h Make DatumGetFoo/PG_GETARG_FOO/PG_RETURN_FOO macro names more consistent. 2017-09-18 15:21:23 -04:00
cubeparse.y
cubescan.l Exclude flex-generated code from coverage testing 2017-10-16 16:28:11 -04:00
Makefile Support index-only scans in contrib/cube and contrib/seg GiST indexes. 2017-11-20 20:25:18 -05:00