Re: SELECT from a list

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

It is true that the above won't be indexable whereas the more tedious OR
form potentially could use an index.  This is not the fault of the regex
engine however, but of limited understanding of regexes in the planner.
        regards, tom lane


В списке pgsql-sql по дате отправления:

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