Re: Using regular expressions in LIKE

Поиск
Список
Период
Сортировка
От Karsten Hilbert
Тема Re: Using regular expressions in LIKE
Дата
Msg-id 20040115164446.C905@hermes.hilbert.loc
обсуждение исходный текст
Ответ на Re: Using regular expressions in LIKE  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Using regular expressions in LIKE  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
> Regexes are optimized the same way as equivalent LIKE expressions.  In
> particular, the pattern has to be left-anchored to consider using it
> with an index.  In LIKE that means no wildcard at the start of the
> pattern, in regex it means there has to be a ^.
What about "^.*oobar" in a regex ? I mean, it seems impossible
to use an index on that, right ?

Thanks,
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

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

Предыдущее
От: Jonathan Bartlett
Дата:
Сообщение: Re: serverless postgresql
Следующее
От: Tom Lane
Дата:
Сообщение: Re: fixed-length row