Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id B548CB5DC4B for ; Tue, 30 Aug 2011 12:53:36 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 39231-07 for ; Tue, 30 Aug 2011 15:53:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 584D7B5DC50 for ; Tue, 30 Aug 2011 12:53:30 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p7UFrGjx017498; Tue, 30 Aug 2011 11:53:16 -0400 (EDT) To: emilu@encs.concordia.ca cc: pgsql-sql@postgresql.org Subject: Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support? In-reply-to: <4E5D0656.8090709@encs.concordia.ca> References: <4E5CF8F8.7030404@encs.concordia.ca> <16967.1314717876@sss.pgh.pa.us> <4E5D0656.8090709@encs.concordia.ca> Comments: In-reply-to Emi Lu message dated "Tue, 30 Aug 2011 11:48:38 -0400" Date: Tue, 30 Aug 2011 11:53:16 -0400 Message-ID: <17497.1314719596@sss.pgh.pa.us> From: Tom Lane 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/123 X-Sequence-Number: 35791 Emi Lu writes: > On 08/30/2011 11:24 AM, Tom Lane wrote: >> 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? regards, tom lane