pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Implement operators for checking if the range contains a multira
Date: Tue, 29 Dec 2020 20:45:42 +0000
Message-ID: <E1kuLsE-0000pw-Pc@gemulon.postgresql.org> (raw)

Implement operators for checking if the range contains a multirange

We have operators for checking if the multirange contains a range but don't
have the opposite.  This commit improves completeness of the operator set by
adding two new operators: @> (anyrange,anymultirange) and
<@(anymultirange,anyrange).

Catversion is bumped.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4d7684cc754f312aee468abb83ca4f7da94b30a3

Modified Files
--------------
doc/src/sgml/func.sgml                           |  14 ++
src/backend/utils/adt/multirangetypes.c          |  60 ++++++
src/backend/utils/adt/multirangetypes_selfuncs.c |   6 +-
src/include/catalog/catversion.h                 |   2 +-
src/include/catalog/pg_operator.dat              |  12 ++
src/include/catalog/pg_proc.dat                  |   6 +
src/include/utils/multirangetypes.h              |   4 +-
src/test/regress/expected/multirangetypes.out    | 240 +++++++++++++++++++++++
src/test/regress/sql/multirangetypes.sql         |  40 ++++
9 files changed, 381 insertions(+), 3 deletions(-)



Message-ID: <E1kuLsE-0000pw-Pc@gemulon.postgresql.org>
Permalink:  ../E1kuLsE-0000pw-Pc@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kuLsE-0000pw-Pc@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: akorotkov@postgresql.org
  Subject: Re: pgsql: Implement operators for checking if the range contains a multira
  In-Reply-To: <E1kuLsE-0000pw-Pc@gemulon.postgresql.org>
  References: <E1kuLsE-0000pw-Pc@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