Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fijNK-00039h-Bg for pgsql-performance@arkaria.postgresql.org; Thu, 26 Jul 2018 16:44:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fijNI-0007Tv-Ji for pgsql-performance@arkaria.postgresql.org; Thu, 26 Jul 2018 16:44:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fijNI-0007To-CY for pgsql-performance@lists.postgresql.org; Thu, 26 Jul 2018 16:44:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fijNA-0006cQ-Se for pgsql-performance@lists.postgresql.org; Thu, 26 Jul 2018 16:44:23 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w6QGiE3d017422; Thu, 26 Jul 2018 12:44:14 -0400 From: Tom Lane To: Nicolas Even cc: pgsql-performance@lists.postgresql.org Subject: Re: Query with "ILIKE ALL" does not use the index In-reply-to: References: Comments: In-reply-to Nicolas Even message dated "Thu, 26 Jul 2018 17:53:33 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17420.1532623454.1@sss.pgh.pa.us> Date: Thu, 26 Jul 2018 12:44:14 -0400 Message-ID: <17421.1532623454@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Nicolas Even 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