Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 4B3EFB5DC40 for ; Wed, 31 Aug 2011 09:54:51 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 34072-09 for ; Wed, 31 Aug 2011 12:54:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from oldperseverance.encs.concordia.ca (oldperseverance.encs.concordia.ca [132.205.96.94]) by mail.postgresql.org (Postfix) with ESMTP id 041A5B5DBCE for ; Wed, 31 Aug 2011 09:54:44 -0300 (ADT) Received: from cacao.encs.concordia.ca (emilu@cacao.encs.concordia.ca [132.205.47.225]) by oldperseverance.encs.concordia.ca (envelope-from emilu@encs.concordia.ca) (8.13.7/8.13.7) with ESMTP id p7VCsXCg028223; Wed, 31 Aug 2011 08:54:33 -0400 Message-ID: <4E5E2F08.7010007@encs.concordia.ca> Date: Wed, 31 Aug 2011 08:54:32 -0400 From: Emi Lu Reply-To: emilu@encs.concordia.ca User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20101125 Lightning/1.0b1 Thunderbird/3.0.11 MIME-Version: 1.0 To: Emre Hasegeli CC: pgsql-sql@postgresql.org Subject: Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support? References: <4E5CF8F8.7030404@encs.concordia.ca> <16967.1314717876@sss.pgh.pa.us> <4E5D0656.8090709@encs.concordia.ca> <17497.1314719596@sss.pgh.pa.us> <4E5D0856.105@encs.concordia.ca> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on oldperseverance.encs.concordia.ca at 2011/08/31 08:54:33 EDT X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201108/127 X-Sequence-Number: 35795 On 08/31/2011 03:16 AM, Emre Hasegeli wrote: > 2011/8/30 Emi Lu: > >> First, where not (col1 ~~* any(array['str1%', 'str2%'... 'strN%'])) will >> work for me. >> >> But I feel " ilike ('str1', ... 'strN')" is more intuitive, isn't it? > > It is not. It is like "where id = (3, 5, 7)". What I mean is ilike ('%str1%', ... '%strN%') I just forgot to put % Emi