-
- Downloads
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
Showing
- contrib/cube/cube.c 36 additions, 8 deletionscontrib/cube/cube.c
- contrib/cube/expected/cube.out 166 additions, 2 deletionscontrib/cube/expected/cube.out
- contrib/cube/expected/cube_2.out 166 additions, 2 deletionscontrib/cube/expected/cube_2.out
- contrib/cube/sql/cube.sql 8 additions, 0 deletionscontrib/cube/sql/cube.sql
- doc/src/sgml/cube.sgml 3 additions, 2 deletionsdoc/src/sgml/cube.sgml
Loading
Please register or sign in to comment