Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id C0CDCB5DC36 for ; Tue, 30 Aug 2011 12:57:17 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 49842-07 for ; Tue, 30 Aug 2011 15:57:11 +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 53AD2B5DC1E for ; Tue, 30 Aug 2011 12:57:11 -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 p7UFvAME003815; Tue, 30 Aug 2011 11:57:10 -0400 Message-ID: <4E5D0856.105@encs.concordia.ca> Date: Tue, 30 Aug 2011 11:57:10 -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: Tom Lane 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> In-Reply-To: <17497.1314719596@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on oldperseverance.encs.concordia.ca at 2011/08/30 11:57:10 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/124 X-Sequence-Number: 35792 Hi Tom, >>> select * from tablename >>> where not (col1 ~~* any(array['str1%', 'str2%'... 'strN%'])); > >> If next version could have "not ilike ('', '')" added into window >> functions, that's will be great! > > Why? And what's this got to do with window functions? 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? I have a feeling that windows functions deal with all fancy functions. I would consider ilike ('str'...) as a non-standard SQL command? Emi