Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hwxSw-0006Xo-Cq for pgsql-bugs@arkaria.postgresql.org; Sun, 11 Aug 2019 23:41:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hwxSu-0003tZ-SE for pgsql-bugs@arkaria.postgresql.org; Sun, 11 Aug 2019 23:41:32 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hwxSu-0003tS-Ky for pgsql-bugs@lists.postgresql.org; Sun, 11 Aug 2019 23:41:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hwxSs-0002uB-Jw for pgsql-bugs@lists.postgresql.org; Sun, 11 Aug 2019 23:41:32 +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 x7BNfSai022764; Sun, 11 Aug 2019 19:41:28 -0400 From: Tom Lane To: james.inform@pharmapp.de cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15948: TRGM gin index is not be taken into account when using like all (array) In-reply-to: <15948-8767af672d99063a@postgresql.org> References: <15948-8767af672d99063a@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Sun, 11 Aug 2019 23:35:06 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22762.1565566888.1@sss.pgh.pa.us> Date: Sun, 11 Aug 2019 19:41:28 -0400 Message-ID: <22763.1565566888@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form writes: > -- Now try to query all record which contain "36dedd" AND "4e45f" > -- Using LIKE ALL, a seq scan is used which is very expensive > explain analyze > select * from mytable where mytext like all (array['%36dedd%','%4e45f%']); This is not a bug. At most it's an unimplemented feature ... one I can't get very excited about, considering how little use there is for such queries. regards, tom lane