Re: regex engine - Mailing list pgsql-sql

From Markus Bertheau
Subject Re: regex engine
Date
Msg-id 1090782455.9204.8.camel@teetnang
Whole thread Raw
In response to Re: SELECT from a list  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: regex engine
List pgsql-sql
В Вск, 25.07.2004, в 19:34, Tom Lane пишет:
> Markus Bertheau <twanger@bluetwanger.de> writes:
> > В Вск, 25.07.2004, в 16:40, Jean-Luc Lachance пишет:
> >> Better yet:
> >>
> >> SELECT * FROM table WHERE phrase ~ '^[0-9]';
>
> > Not so sure if that's better - the regex engines aren't the fastest.
>
> [ raised eyebrow... ]  I was under the impression that we had a pretty
> good one as of PG 7.4.  Have you tested it lately?

I wasn't trying to say that pg's regex engine was particularly slow, but
that regex engines in general are slower than an exact substring search.
If I'm mistaken here, please tell. pg's regex engine does have one
shortcoming though: it doesn't know UTF-8.

--
Markus Bertheau <twanger@bluetwanger.de>



pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: SELECT from a list
Next
From: Tom Lane
Date:
Subject: Re: regex engine