]> granicus.if.org Git - postgresql/commit
Add polygon opclass for SP-GiST
authorTeodor Sigaev <teodor@sigaev.ru>
Mon, 25 Dec 2017 15:59:38 +0000 (18:59 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Mon, 25 Dec 2017 15:59:38 +0000 (18:59 +0300)
commitff963b393ca93a71d2f398c4c584b322cd351c2c
tree531c491b2ec392d511767b1d3ee26af9bdf87979
parent4e2970f8807f1ccfc8029979a70dc80ee102ce48
Add polygon opclass for SP-GiST

Polygon opclass uses compress method feature of SP-GiST added earlier. For now
it's a single operator class which uses this feature. SP-GiST actually indexes
a bounding boxes of input polygons, so part of supported operations are lossy.
Opclass uses most methods of corresponding opclass over boxes of SP-GiST and
treats bounding boxes as point in 4D-space.

Bump catalog version.

Authors: Nikita Glukhov, Alexander Korotkov with minor editorization by me
Reviewed-By: all authors + Darafei Praliaskouski
Discussion: https://www.postgresql.org/message-id/flat/54907069.1030506@sigaev.ru
13 files changed:
doc/src/sgml/spgist.sgml
src/backend/utils/adt/geo_ops.c
src/backend/utils/adt/geo_spgist.c
src/include/catalog/catversion.h
src/include/catalog/pg_amop.h
src/include/catalog/pg_amproc.h
src/include/catalog/pg_opclass.h
src/include/catalog/pg_opfamily.h
src/include/catalog/pg_proc.h
src/include/utils/geo_decls.h
src/test/regress/expected/polygon.out
src/test/regress/expected/sanity_check.out
src/test/regress/sql/polygon.sql