pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Add support for <-> (box, point) operator to GiST box_ops
2+ messages / 1 participants
[nested] [flat]

* pgsql: Add support for <-> (box, point) operator to GiST box_ops
@ 2019-07-14 12:18 Alexander Korotkov <akorotkov@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Alexander Korotkov @ 2019-07-14 12:18 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add support for <-> (box, point) operator to GiST box_ops

Index-based calculation of this operator is exact.  So, signature of
gist_bbox_distance() function is changes so that caller is responsible for
setting *recheck flag.

Discussion: https://postgr.es/m/f71ba19d-d989-63b6-f04a-abf02ad9345d%40postgrespro.ru
Author: Nikita Glukhov
Reviewed-by: Tom Lane, Alexander Korotkov

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c085e1c1cb4e29637552f5d250d45ad0cb83e5cf

Modified Files
--------------
doc/src/sgml/gist.sgml             |  1 +
src/backend/access/gist/gistproc.c | 48 +++++++++++++++---------
src/include/catalog/pg_amop.dat    |  3 ++
src/include/catalog/pg_amproc.dat  |  2 +
src/include/catalog/pg_proc.dat    |  4 ++
src/test/regress/expected/gist.out | 76 ++++++++++++++++++++++++++++++++++++++
src/test/regress/sql/gist.sql      | 16 ++++++++
7 files changed, 133 insertions(+), 17 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Add support for <-> (box, point) operator to SP-GiST box_ops
@ 2019-07-14 12:18 Alexander Korotkov <akorotkov@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Alexander Korotkov @ 2019-07-14 12:18 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add support for <-> (box, point) operator to SP-GiST box_ops

Opclass support functions already can handle this operator, just catalog
adjustment appears to be required.

Discussion: https://postgr.es/m/f71ba19d-d989-63b6-f04a-abf02ad9345d%40postgrespro.ru
Author: Nikita Glukhov
Reviewed-by: Tom Lane, Alexander Korotkov

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/075f0a880fbf790f4a3dcac83e2d5125bcad9646

Modified Files
--------------
doc/src/sgml/spgist.sgml                   |  1 +
src/include/catalog/pg_amop.dat            |  4 ++
src/test/regress/expected/box.out          | 82 +++++++++++++++++++++++++-----
src/test/regress/expected/sanity_check.out |  2 +
src/test/regress/sql/box.sql               | 70 ++++++++++++++++++++-----
5 files changed, 135 insertions(+), 24 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2019-07-14 12:18 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-07-14 12:18 pgsql: Add support for <-> (box, point) operator to GiST box_ops Alexander Korotkov <akorotkov@postgresql.org>
2019-07-14 12:18 pgsql: Add support for <-> (box, point) operator to SP-GiST box_ops Alexander Korotkov <akorotkov@postgresql.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox