git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 563a053) | patch
llow negative coordinate for ~> (cube, int) operator
2018年1月11日 11:49:36 +0000 (14:49 +0300)
2018年1月11日 11:49:36 +0000 (14:49 +0300)
commit f50c80dbb17efa39c169f6c510e9464486ff5edc
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
contrib/cube/cube.c diff | blob | blame | history
contrib/cube/expected/cube.out diff | blob | blame | history
contrib/cube/expected/cube_2.out diff | blob | blame | history
contrib/cube/sql/cube.sql diff | blob | blame | history
doc/src/sgml/cube.sgml diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /