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

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

Thank you Tom

On 26 July 2018 at 18:44, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> 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

Browse pgsql-performance by date

  From Date Subject
Next Message Dinesh Kumar 2018-07-29 05:38:31 Performance difference in accessing differrent columns in a Postgres Table
Previous Message Nicolas Even 2018-07-26 19:17:50 Re: Query with "ILIKE ALL" does not use the index