Re: Query with "ILIKE ALL" does not use the index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Nicolas Even <neven(at)ztel(dot)org>
Cc: pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: Query with "ILIKE ALL" does not use the index
Date: 2018-07-26 16:44:14
Message-ID: 17421.1532623454@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Nicolas Even <neven(at)ztel(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Matthew Hall 2018-07-26 17:22:21 Re: Query with "ILIKE ALL" does not use the index
Previous Message Nicolas Even 2018-07-26 15:53:33 Query with "ILIKE ALL" does not use the index