pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove <@ from contrib/intarray's GiST operator classes.
Date: Sat, 08 Aug 2020 21:26:41 +0000
Message-ID: <E1k4WMT-0005d6-Op@gemulon.postgresql.org> (raw)

Remove <@ from contrib/intarray's GiST operator classes.

Since commit efc77cf5f, an indexed query using <@ has required a
full-index scan, so that it actually performs worse than a plain seqscan
would do.  As I noted at the time, we'd be better off to not treat <@ as
being indexable by such indexes at all; and that's what this patch does.

It would have been difficult to remove these opclass members without
dropping the whole opclass before commit 9f9682783 fixed GiST opclass
member dependency rules, but now it's quite simple, so let's do it.

I left the existing support code in place for the time being, with
comments noting it's now unreachable.  At some point, perhaps we should
remove that code in favor of throwing an error telling people to upgrade
the extension version.

Discussion: https://postgr.es/m/2176979.1596389859@sss.pgh.pa.us
Discussion: https://postgr.es/m/458.1565114141@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/20e7e1fe316467720d8d062e1a1429f798fc31bf

Modified Files
--------------
contrib/intarray/Makefile               |  3 ++-
contrib/intarray/_int_gist.c            |  6 ++++++
contrib/intarray/_intbig_gist.c         |  6 ++++++
contrib/intarray/intarray--1.3--1.4.sql | 21 +++++++++++++++++++++
contrib/intarray/intarray.control       |  2 +-
doc/src/sgml/intarray.sgml              |  5 +++--
6 files changed, 39 insertions(+), 4 deletions(-)



Message-ID: <E1k4WMT-0005d6-Op@gemulon.postgresql.org>
Permalink:  ../E1k4WMT-0005d6-Op@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1k4WMT-0005d6-Op@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Remove <@ from contrib/intarray's GiST operator classes.
  In-Reply-To: <E1k4WMT-0005d6-Op@gemulon.postgresql.org>
  References: <E1k4WMT-0005d6-Op@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