Re: regex engine

Поиск
Список
Период
Сортировка
От Markus Bertheau
Тема Re: regex engine
Дата
Msg-id 1090782455.9204.8.camel@teetnang
обсуждение исходный текст
Ответ на Re: SELECT from a list  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: regex engine  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: SELECT from a list
Следующее
От: Tom Lane
Дата:
Сообщение: Re: regex engine