Re: Problem with text_pattern_ops

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Problem with text_pattern_ops
Дата
Msg-id 20050726183414.V67910@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: Problem with text_pattern_ops  (Joseph Shraibman <jks@selectacast.net>)
Список pgsql-general
On Tue, 26 Jul 2005, Joseph Shraibman wrote:

> Stephan Szabo wrote:
>
> > It is for the operators ~<~, ~<=~, ~=~, ~>=~, ~>~ (for like optimization).
> > The docs seem to say that it does a character by character comparison
> > rather than one using the collation thus being better for pattern
> > matching. I'd think letting it do <, <=, =, >=, > would have it giving the
> > wrong results for such queries (well, in non-C locales).
>
> Well maybe queries of > < shouldn't be allowed because they would return
> the wrong results, but surely equals is equals.

I don't know how any locales I have access to handle separate accent
characters, but I think in theory at least, that handling may be different
than character by character comparison.


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

Предыдущее
От: Joseph Shraibman
Дата:
Сообщение: Re: Problem with text_pattern_ops
Следующее
От: Dr NoName
Дата:
Сообщение: Re: transaction timeout