Re: Controlling locale and impact on LIKE statements

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Controlling locale and impact on LIKE statements
Дата
Msg-id 873axt6c2p.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: Controlling locale and impact on LIKE statements  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-general
"Alvaro Herrera" <alvherre@commandprompt.com> writes:

> Martin Langhoff escribió:
>
>> the whole thing of figuring out what the locale is and whether to add
>> magical additional indexes just for Pg makes me look like a loony.
>
> You are right and Eloy is wrong on that discussion.  There is not
> anything the DB can do to use the regular index if the locale is not C
> for LIKE queries.  There are good reasons for this.  There's not much
> option beyond creating the pattern_ops index.

Indeed *all* indexes are magical additional things added just for the one
database. There's not any standard definition of what indexes you'll need for
all databases out there. Indexes aren't even in the SQL standard because
they're part of performance tuning for each individual database engine.


--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Documentation fix regarding atan2
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Documentation fix regarding atan2