pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add polygon opclass for SP-GiST
Date: Mon, 25 Dec 2017 16:00:26 +0000
Message-ID: <E1eTVAw-0000Bh-Ap@gemulon.postgresql.org> (raw)

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

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/spgist.sgml                   |  36 +++++
src/backend/utils/adt/geo_ops.c            |   3 +-
src/backend/utils/adt/geo_spgist.c         |  92 ++++++++++-
src/include/catalog/catversion.h           |   2 +-
src/include/catalog/pg_amop.h              |  16 ++
src/include/catalog/pg_amproc.h            |   6 +
src/include/catalog/pg_opclass.h           |   1 +
src/include/catalog/pg_opfamily.h          |   1 +
src/include/catalog/pg_proc.h              |   5 +
src/include/utils/geo_decls.h              |   3 +-
src/test/regress/expected/polygon.out      | 238 +++++++++++++++++++++++++++++
src/test/regress/expected/sanity_check.out |   3 +
src/test/regress/sql/polygon.sql           |  93 +++++++++++
13 files changed, 491 insertions(+), 8 deletions(-)



Message-ID: <E1eTVAw-0000Bh-Ap@gemulon.postgresql.org>
Permalink:  ../E1eTVAw-0000Bh-Ap@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eTVAw-0000Bh-Ap@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: teodor@sigaev.ru
  Subject: Re: pgsql: Add polygon opclass for SP-GiST
  In-Reply-To: <E1eTVAw-0000Bh-Ap@gemulon.postgresql.org>
  References: <E1eTVAw-0000Bh-Ap@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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