From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Lewis <mlewis@entrata.com>
Cc: Thomas Kellerer <spam_eater@gmx.net>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Overloaded && operator from intarray module prevents index usage.
Date: Thu, 28 Feb 2019 17:34:20 -0500
Message-ID: <1650.1551393260@sss.pgh.pa.us> (raw)
In-Reply-To: <CAHOFxGpW7JkX8HGW4MFFrSagCdW08yM-DK1jZvRJnj7dp84m=A@mail.gmail.com>
References: <q583lv$5t8m$1@blaine.gmane.org>
<10517.1551372290@sss.pgh.pa.us>
<CAHOFxGpW7JkX8HGW4MFFrSagCdW08yM-DK1jZvRJnj7dp84m=A@mail.gmail.com>
Michael Lewis <mlewis@entrata.com> writes:
> Can you dumb down how to change the index or column type such that an index
> will be used for the && operator while intarray extension is installed? We
> have the intarray extension installed and I doubt that I can get it
> removed.
There's no magic nice solution to this, or we'd have told you about it.
Possible options:
1. Remove intarray extension.
2. Move intarray extension to a schema that's not in your search path.
3. Create an index using intarray's opclass, instead of or in addition
to the core-opclass index.
4. Rename intarray's && operator to something else (will bite you at
next dump/reload, where the renaming will be lost).
5. Always schema-qualify references to the core && operator.
All of these have obvious downsides, especially if you're actively
using the intarray extension for other purposes.
regards, tom lane
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-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, mlewis@entrata.com, spam_eater@gmx.net
Subject: Re: Overloaded && operator from intarray module prevents index usage.
In-Reply-To: <1650.1551393260@sss.pgh.pa.us>
References: <q583lv$5t8m$1@blaine.gmane.org> <10517.1551372290@sss.pgh.pa.us> <CAHOFxGpW7JkX8HGW4MFFrSagCdW08yM-DK1jZvRJnj7dp84m=A@mail.gmail.com> <1650.1551393260@sss.pgh.pa.us>
* 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