From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nicolas Even <neven@ztel.org>
Cc: pgsql-performance@lists.postgresql.org
Subject: Re: Query with "ILIKE ALL" does not use the index
Date: Thu, 26 Jul 2018 12:44:14 -0400
Message-ID: <17421.1532623454@sss.pgh.pa.us> (raw)
In-Reply-To: <CALghGHM72CTRyb7-ggFU-ubm3LfXqK019Y=WjP-JwzjzT8QDCA@mail.gmail.com>
References: <CALghGHM72CTRyb7-ggFU-ubm3LfXqK019Y=WjP-JwzjzT8QDCA@mail.gmail.com>
Nicolas Even <neven@ztel.org> writes:
> However when I run the same (as far as I understand it) query but with
> the ALL operator, the index is not used:
> explain analyze select name from totoz where name ilike all(array['%tot%']);
There's only index support for "op ANY (array)", not "op ALL (array)".
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, neven@ztel.org, pgsql-performance@lists.postgresql.org
Subject: Re: Query with "ILIKE ALL" does not use the index
In-Reply-To: <17421.1532623454@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