Re: Regex query not using index

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Regex query not using index
Дата
Msg-id 29085.1203486336@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Regex query not using index  ("Postgres User" <postgres.developer@gmail.com>)
Ответы Re: Regex query not using index
Re: Regex query not using index
Список pgsql-general
"Postgres User" <postgres.developer@gmail.com> writes:
> Yes that works, but the whole point of the exercise is replace many OR
> statements with 1 regex expression.  So it's not what I'm looking for.

Unfortunately, Postgres is not as intelligent as you are.  There is
no mechanism to rewrite a multi-branch regex condition into multiple
indexscans.  I recommend going back to the OR's.

            regards, tom lane

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

Предыдущее
От: "Postgres User"
Дата:
Сообщение: Re: Regex query not using index
Следующее
От: "Postgres User"
Дата:
Сообщение: Re: Regex query not using index