Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C993D9FB962 for ; Wed, 21 Mar 2007 22:35:38 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 09848-02 for ; Wed, 21 Mar 2007 22:35:34 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id D86529FB893 for ; Wed, 21 Mar 2007 22:35:34 -0300 (ADT) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1HUDD1-00011Y-Vw for pgsql-sql@postgresql.org; Wed, 21 Mar 2007 21:39:24 -0500 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id 0CD073F9E; Wed, 21 Mar 2007 21:35:28 -0400 (EDT) Date: Wed, 21 Mar 2007 21:35:28 -0400 From: Andrew Sullivan To: pgsql-sql@postgresql.org Subject: Re: Regular Expressions Message-ID: <20070322013528.GC29677@phlogiston.dyndns.org> References: <46013B89.4040603@fastcon.com.br> <1174487806.26600.15.camel@sigurd.incentre.net> <46016D43.9030300@fastcon.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46016D43.9030300@fastcon.com.br> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/295 X-Sequence-Number: 27933 On Wed, Mar 21, 2007 at 02:37:07PM -0300, Ezequias R. da Rocha wrote: > Great I am thinking of putting my like to rest. I felt it faster than > "like" statement, have you any information about that ? I think this rather depends on what you're doing. If you're searching for "like 'blahblah%' or " ~ 'blahblah.*'", they're AFAIK about the same. When you have a more complicated RE, though, it might turn out to be a win. A -- Andrew Sullivan | ajs@crankycanuck.ca Information security isn't a technological problem. It's an economics problem. --Bruce Schneier